Eneboo - Documentación para desarrolladores
|
Ir al código fuente de este archivo.
#define BIT_BUF_SIZE 32 |
#define BITREAD_LOAD_STATE | ( | cinfop, | |
permstate | |||
) |
br_state.cinfo = cinfop; \ br_state.next_input_byte = cinfop->src->next_input_byte; \ br_state.bytes_in_buffer = cinfop->src->bytes_in_buffer; \ get_buffer = permstate.get_buffer; \ bits_left = permstate.bits_left;
#define BITREAD_SAVE_STATE | ( | cinfop, | |
permstate | |||
) |
cinfop->src->next_input_byte = br_state.next_input_byte; \ cinfop->src->bytes_in_buffer = br_state.bytes_in_buffer; \ permstate.get_buffer = get_buffer; \ permstate.bits_left = bits_left
#define BITREAD_STATE_VARS |
register bit_buf_type get_buffer; \ register int bits_left; \ bitread_working_state br_state
{ if (bits_left < (nbits)) { \ if (! jpeg_fill_bit_buffer(&(state),get_buffer,bits_left,nbits)) \ { action; } \ get_buffer = (state).get_buffer; bits_left = (state).bits_left; } }
{ register int nb, look; \ if (bits_left < HUFF_LOOKAHEAD) { \ if (! jpeg_fill_bit_buffer(&state,get_buffer,bits_left, 0)) {failaction;} \ get_buffer = state.get_buffer; bits_left = state.bits_left; \ if (bits_left < HUFF_LOOKAHEAD) { \ nb = 1; goto slowlabel; \ } \ } \ look = PEEK_BITS(HUFF_LOOKAHEAD); \ if ((nb = htbl->look_nbits[look]) != 0) { \ DROP_BITS(nb); \ result = htbl->look_sym[look]; \ } else { \ nb = HUFF_LOOKAHEAD+1; \ slowlabel: \ if ((result=jpeg_huff_decode(&state,get_buffer,bits_left,htbl,nb)) < 0) \ { failaction; } \ get_buffer = state.get_buffer; bits_left = state.bits_left; \ } \ }
#define HUFF_LOOKAHEAD 8 |
typedef INT32 bit_buf_type |
EXTERN | ( | void | ) |
EXTERN | ( | boolean | ) |
register bit_buf_type register int bits_left |
register bit_buf_type get_buffer |
register bit_buf_type register int d_derived_tbl* htbl |
register bit_buf_type register int d_derived_tbl int min_bits |
register bit_buf_type register int int nbits |