Go to the source code of this file.
#define BITREAD_LOAD_STATE |
( |
|
cinfop, |
|
|
|
permstate |
|
) |
| |
Value:br_state.cinfo = cinfop; \
br_state.next_input_byte = cinfop->src->next_input_byte; \
br_state.bytes_in_buffer = cinfop->src->bytes_in_buffer; \
br_state.unread_marker = cinfop->unread_marker; \
get_buffer = permstate.get_buffer; \
bits_left = permstate.bits_left; \
br_state.printed_eod_ptr = & permstate.printed_eod
Definition at line 105 of file jdhuff.h.
#define BITREAD_SAVE_STATE |
( |
|
cinfop, |
|
|
|
permstate |
|
) |
| |
Value:cinfop->src->next_input_byte = br_state.next_input_byte; \
cinfop->src->bytes_in_buffer = br_state.bytes_in_buffer; \
cinfop->unread_marker = br_state.unread_marker; \
permstate.get_buffer = get_buffer; \
permstate.bits_left = bits_left
Definition at line 114 of file jdhuff.h.
#define BITREAD_STATE_VARS |
Value:
register int bits_left; \
bitread_working_state br_state
Definition at line 100 of file jdhuff.h.
#define CHECK_BIT_BUFFER |
( |
|
state, |
|
|
|
nbits, |
|
|
|
action |
|
) |
| |
Value:{
if (bits_left < (nbits)) {
\
{ action; } \
get_buffer = (state).get_buffer; bits_left = (state).bits_left; } }
GLOBAL boolean jpeg_fill_bit_buffer(bitread_working_state *state, register bit_buf_type get_buffer, register int bits_left, int nbits)
if(!ValidDisplayID(prefInfo.prefDisplayID)) prefInfo.prefDisplayID
Definition at line 139 of file jdhuff.h.
#define DROP_BITS |
( |
|
nbits | ) |
(bits_left -= (nbits)) |
#define GET_BITS |
( |
|
nbits | ) |
(((int) (get_buffer >> (bits_left -= (nbits)))) & ((1<<(nbits))-1)) |
#define HUFF_DECODE |
( |
|
result, |
|
|
|
state, |
|
|
|
htbl, |
|
|
|
failaction, |
|
|
|
slowlabel |
|
) |
| |
Value:{
register int nb, look;
\
get_buffer = state.get_buffer; bits_left = state.bits_left;
\
nb = 1; goto slowlabel; \
} \
} \
if ((nb = htbl->look_nbits[look]) != 0) {
\
result = htbl->look_sym[look]; \
} else { \
{ failaction; } \
get_buffer = state.get_buffer; bits_left = state.bits_left; \
} \
}
GLOBAL int jpeg_huff_decode(bitread_working_state *state, register bit_buf_type get_buffer, register int bits_left, d_derived_tbl *htbl, int min_bits)
GLOBAL boolean jpeg_fill_bit_buffer(bitread_working_state *state, register bit_buf_type get_buffer, register int bits_left, int nbits)
if(!ValidDisplayID(prefInfo.prefDisplayID)) prefInfo.prefDisplayID
Definition at line 177 of file jdhuff.h.
#define HUFF_LOOKAHEAD 8 /* # of bits of lookahead */ |
#define PEEK_BITS |
( |
|
nbits | ) |
(((int) (get_buffer >> (bits_left - (nbits)))) & ((1<<(nbits))-1)) |