in jpec_huff_encode_block:
why not:
jpec_huff_state_t state;
state.buffer = h->state.buffer;
state.nbits = h->state.nbits;
state.dc = h->state.dc;
state.buf = buf;
jpec_huff_encode_block_impl(block, &state);
h->state.buffer = state.buffer;
h->state.nbits = state.nbits;
h->state.dc = state.dc;
h->state.buf = state.buf;
=>
h->state.buf = buf;
jpec_huff_encode_block_impl(block, &h->state);
? am I missing something?
in jpec_huff_encode_block:
why not:
=>
? am I missing something?