#include "jinclude.h"#include "jpeglib.h"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; \
get_buffer = permstate.get_buffer; \
bits_left = permstate.bits_left;
Definition at line 104 of file jdhuff.c.
Referenced by decode_mcu(), decode_mcu_AC_first(), decode_mcu_AC_refine(), decode_mcu_DC_first(), decode_mcu_DC_refine(), and decode_mcu_sub().
| #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; \
permstate.get_buffer = get_buffer; \
permstate.bits_left = bits_left
Definition at line 111 of file jdhuff.c.
Referenced by decode_mcu(), decode_mcu_AC_first(), decode_mcu_AC_refine(), decode_mcu_DC_first(), decode_mcu_DC_refine(), and decode_mcu_sub().
| #define BITREAD_STATE_VARS |
Value:
register bit_buf_type get_buffer; \ register int bits_left; \ bitread_working_state br_state
Definition at line 99 of file jdhuff.c.
Referenced by decode_mcu(), decode_mcu_AC_first(), decode_mcu_AC_refine(), decode_mcu_DC_first(), decode_mcu_DC_refine(), and decode_mcu_sub().
| #define CHECK_BIT_BUFFER | ( | state, | |||
| nbits, | |||||
| action | ) |
Value:
{ 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; } }
Definition at line 135 of file jdhuff.c.
Referenced by decode_mcu(), decode_mcu_AC_first(), decode_mcu_AC_refine(), decode_mcu_DC_first(), decode_mcu_DC_refine(), decode_mcu_sub(), and jpeg_huff_decode().
| #define GET_BITS | ( | nbits | ) | (((int) (get_buffer >> (bits_left -= (nbits)))) & BIT_MASK(nbits)) |
Definition at line 141 of file jdhuff.c.
Referenced by decode_mcu(), decode_mcu_AC_first(), decode_mcu_AC_refine(), decode_mcu_DC_first(), decode_mcu_DC_refine(), decode_mcu_sub(), and jpeg_huff_decode().
| #define HUFF_DECODE | ( | result, | |||
| state, | |||||
| htbl, | |||||
| failaction, | |||||
| slowlabel | ) |
Value:
{ 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; \
} \
}
Definition at line 168 of file jdhuff.c.
Referenced by decode_mcu(), decode_mcu_AC_first(), decode_mcu_AC_refine(), decode_mcu_DC_first(), and decode_mcu_sub().
Definition at line 578 of file jdhuff.c.
Referenced by decode_mcu(), decode_mcu_AC_first(), decode_mcu_DC_first(), and decode_mcu_sub().
| #define MIN_GET_BITS (BIT_BUF_SIZE-7) |
| #define PEEK_BITS | ( | nbits | ) | (((int) (get_buffer >> (bits_left - (nbits)))) & BIT_MASK(nbits)) |
| typedef INT32 bit_buf_type |
| typedef huff_entropy_decoder* huff_entropy_ptr |
| decode_mcu | ( | j_decompress_ptr | cinfo, | |
| JBLOCKROW * | MCU_data | |||
| ) |
Definition at line 1187 of file jdhuff.c.
References ASSIGN_STATE, BITREAD_LOAD_STATE, BITREAD_SAVE_STATE, BITREAD_STATE_VARS, CHECK_BIT_BUFFER, DCTSIZE2, DROP_BITS, FALSE, GET_BITS, htbl, HUFF_DECODE, HUFF_EXTEND, if(), jpeg_natural_order, k, process_restart(), huff_entropy_encoder::restarts_to_go, s, huff_entropy_encoder::saved, and TRUE.
| decode_mcu_AC_first | ( | j_decompress_ptr | cinfo, | |
| JBLOCKROW * | MCU_data | |||
| ) |
Definition at line 766 of file jdhuff.c.
References Al, BITREAD_LOAD_STATE, BITREAD_SAVE_STATE, BITREAD_STATE_VARS, CHECK_BIT_BUFFER, savable_state::EOBRUN, FALSE, GET_BITS, HUFF_DECODE, HUFF_EXTEND, if(), k, process_restart(), huff_entropy_encoder::restarts_to_go, s, huff_entropy_encoder::saved, and TRUE.
| decode_mcu_AC_refine | ( | j_decompress_ptr | cinfo, | |
| JBLOCKROW * | MCU_data | |||
| ) |
Definition at line 904 of file jdhuff.c.
References BITREAD_LOAD_STATE, BITREAD_SAVE_STATE, BITREAD_STATE_VARS, CHECK_BIT_BUFFER, DCTSIZE2, savable_state::EOBRUN, FALSE, GET_BITS, HUFF_DECODE, if(), k, p1(), process_restart(), huff_entropy_encoder::restarts_to_go, s, huff_entropy_encoder::saved, TRUE, and WARNMS.
| decode_mcu_DC_first | ( | j_decompress_ptr | cinfo, | |
| JBLOCKROW * | MCU_data | |||
| ) |
Definition at line 695 of file jdhuff.c.
References Al, ASSIGN_STATE, BITREAD_LOAD_STATE, BITREAD_SAVE_STATE, BITREAD_STATE_VARS, CHECK_BIT_BUFFER, compptr, FALSE, GET_BITS, HUFF_DECODE, HUFF_EXTEND, if(), process_restart(), huff_entropy_encoder::restarts_to_go, s, huff_entropy_encoder::saved, and TRUE.
| decode_mcu_DC_refine | ( | j_decompress_ptr | cinfo, | |
| JBLOCKROW * | MCU_data | |||
| ) |
Definition at line 855 of file jdhuff.c.
References BITREAD_LOAD_STATE, BITREAD_SAVE_STATE, BITREAD_STATE_VARS, CHECK_BIT_BUFFER, FALSE, GET_BITS, if(), p1(), process_restart(), huff_entropy_encoder::restarts_to_go, and TRUE.
| decode_mcu_sub | ( | j_decompress_ptr | cinfo, | |
| JBLOCKROW * | MCU_data | |||
| ) |
Definition at line 1059 of file jdhuff.c.
References ASSIGN_STATE, BITREAD_LOAD_STATE, BITREAD_SAVE_STATE, BITREAD_STATE_VARS, CHECK_BIT_BUFFER, DROP_BITS, FALSE, GET_BITS, htbl, HUFF_DECODE, HUFF_EXTEND, if(), k, process_restart(), huff_entropy_encoder::restarts_to_go, s, huff_entropy_encoder::saved, and TRUE.
| jinit_huff_decoder | ( | j_decompress_ptr | cinfo | ) |
Definition at line 1509 of file jdhuff.c.
References huff_entropy_encoder::ac_derived_tbls, huff_entropy_encoder::dc_derived_tbls, DCTSIZE2, i, int, JPOOL_IMAGE, NULL, NUM_HUFF_TBLS, huff_entropy_encoder::pub, SIZEOF, and start_pass_huff_decoder().
Referenced by master_selection(), and transdecode_master_selection().
| jpeg_fill_bit_buffer | ( | bitread_working_state * | state, | |
| register bit_buf_type | get_buffer, | |||
| register int | bits_left, | |||
| int | nbits | |||
| ) |
Definition at line 465 of file jdhuff.c.
References jpeg_source_mgr::bytes_in_buffer, c, jpeg_decompress_struct::entropy, FALSE, GETJOCTET, MIN_GET_BITS, jpeg_source_mgr::next_input_byte, size_t, jpeg_decompress_struct::src, TRUE, jpeg_decompress_struct::unread_marker, and WARNMS.
| jpeg_huff_decode | ( | bitread_working_state * | state, | |
| register bit_buf_type | get_buffer, | |||
| register int | bits_left, | |||
| d_derived_tbl * | htbl, | |||
| int | min_bits | |||
| ) |
| jpeg_make_d_derived_tbl | ( | j_decompress_ptr | cinfo, | |
| boolean | isDC, | |||
| int | tblno, | |||
| d_derived_tbl ** | pdtbl | |||
| ) |
Definition at line 323 of file jdhuff.c.
References JHUFF_TBL::bits, ERREXIT, ERREXIT1, htbl, i, if(), JPOOL_IMAGE, l, d_derived_tbl::maxcode, NULL, NUM_HUFF_TBLS, p, d_derived_tbl::pub, SIZEOF, and d_derived_tbl::valoffset.
| process_restart | ( | j_decompress_ptr | cinfo | ) |
Definition at line 636 of file jdhuff.c.
References savable_state::EOBRUN, FALSE, if(), savable_state::last_dc_val, huff_entropy_encoder::restarts_to_go, huff_entropy_encoder::saved, and TRUE.
| start_pass_huff_decoder | ( | j_decompress_ptr | cinfo | ) |
Definition at line 1310 of file jdhuff.c.
References compptr, decode_mcu_AC_first(), decode_mcu_DC_first(), ERREXIT4, i, if(), JERR_BAD_PROGRESSION, JWRN_BOGUS_PROGRESSION, huff_entropy_encoder::pub, and WARNMS2.
Referenced by jinit_huff_decoder().
const int bmask[16] [static] |
Initial value:
{ 0, 0x0001, 0x0003, 0x0007, 0x000F, 0x001F, 0x003F, 0x007F, 0x00FF,
0x01FF, 0x03FF, 0x07FF, 0x0FFF, 0x1FFF, 0x3FFF, 0x7FFF }
Definition at line 580 of file jdhuff.c.
Referenced by XrdCmsCluster::Broadcast(), init_true_color(), and XrdCmsCluster::Space().
const int jpeg_zigzag_order[8][8] [static] |
Initial value:
{
{ 0, 1, 5, 6, 14, 15, 27, 28 },
{ 2, 4, 7, 13, 16, 26, 29, 42 },
{ 3, 8, 12, 17, 25, 30, 41, 43 },
{ 9, 11, 18, 24, 31, 40, 44, 53 },
{ 10, 19, 23, 32, 39, 45, 52, 54 },
{ 20, 22, 33, 38, 46, 51, 55, 60 },
{ 21, 34, 37, 47, 50, 56, 59, 61 },
{ 35, 36, 48, 49, 57, 58, 62, 63 }
}
const int jpeg_zigzag_order2[2][2] [static] |
const int jpeg_zigzag_order3[3][3] [static] |
const int jpeg_zigzag_order4[4][4] [static] |
const int jpeg_zigzag_order5[5][5] [static] |
const int jpeg_zigzag_order6[6][6] [static] |
const int jpeg_zigzag_order7[7][7] [static] |
1.5.1