Data Structures | |
struct | huff_entropy_encoder |
struct | savable_state |
struct | working_state |
Macros | |
#define | ASSIGN_STATE(dest, src) ((dest) = (src)) |
#define | emit_byte(state, val, action) |
#define | JPEG_INTERNALS |
#define | MAX_CLEN 32 /* assumed maximum initial code length */ |
Typedefs | |
typedef huff_entropy_encoder * | huff_entropy_ptr |
Functions | |
emit_restart (working_state *state, int restart_num) | |
encode_mcu_gather (j_compress_ptr cinfo, JBLOCKROW *MCU_data) | |
encode_mcu_huff (j_compress_ptr cinfo, JBLOCKROW *MCU_data) | |
encode_one_block (working_state *state, JCOEFPTR block, int last_dc_val, c_derived_tbl *dctbl, c_derived_tbl *actbl) | |
ERREXIT (state->cinfo, JERR_HUFF_MISSING_CODE) | |
finish_pass_gather (j_compress_ptr cinfo) | |
finish_pass_huff (j_compress_ptr cinfo) | |
flush_bits (working_state *state) | |
htest_one_block (j_compress_ptr cinfo, JCOEFPTR block, int last_dc_val, long dc_counts[], long ac_counts[]) | |
if (!(*dest->empty_output_buffer)(state->cinfo)) return FALSE | |
jinit_huff_encoder (j_compress_ptr cinfo) | |
jpeg_gen_optimal_table (j_compress_ptr cinfo, JHUFF_TBL *htbl, long freq[]) | |
jpeg_make_c_derived_tbl (j_compress_ptr cinfo, boolean isDC, int tblno, c_derived_tbl **pdtbl) | |
METHODDEF (boolean) | |
while (put_bits >=8) | |
Variables | |
state | free_in_buffer = dest->free_in_buffer |
INLINE | |
state | next_output_byte = dest->next_output_byte |
register int | put_bits = state->cur.put_bits |
put_buffer<<=24-put_bits;put_buffer|=state-> cur | put_buffer = put_buffer |
return | TRUE |
#define ASSIGN_STATE | ( | dest, | |
src | |||
) | ((dest) = (src)) |
Referenced by encode_mcu_huff(), and finish_pass_huff().
Referenced by emit_restart(), if(), and while().
#define JPEG_INTERNALS |
Referenced by jpeg_gen_optimal_table().
typedef huff_entropy_encoder* huff_entropy_ptr |
emit_restart | ( | working_state * | state, |
int | restart_num | ||
) |
References ci, emit_byte, FALSE, flush_bits(), JPEG_RST0, and TRUE.
Referenced by encode_mcu_huff().
encode_mcu_gather | ( | j_compress_ptr | cinfo, |
JBLOCKROW * | MCU_data | ||
) |
References huff_entropy_encoder::ac_count_ptrs, jpeg_component_info::ac_tbl_no, ci, compptr, huff_entropy_encoder::dc_count_ptrs, jpeg_component_info::dc_tbl_no, htest_one_block(), if(), savable_state::last_dc_val, huff_entropy_encoder::restarts_to_go, huff_entropy_encoder::saved, and TRUE.
Referenced by METHODDEF().
encode_mcu_huff | ( | j_compress_ptr | cinfo, |
JBLOCKROW * | MCU_data | ||
) |
References huff_entropy_encoder::ac_derived_tbls, jpeg_component_info::ac_tbl_no, ASSIGN_STATE, ci, cinfo, compptr, huff_entropy_encoder::dc_derived_tbls, jpeg_component_info::dc_tbl_no, emit_restart(), encode_one_block(), FALSE, huff_entropy_encoder::next_restart_num, huff_entropy_encoder::restarts_to_go, huff_entropy_encoder::saved, and TRUE.
Referenced by METHODDEF().
encode_one_block | ( | working_state * | state, |
JCOEFPTR | block, | ||
int | last_dc_val, | ||
c_derived_tbl * | dctbl, | ||
c_derived_tbl * | actbl | ||
) |
References DCTSIZE2, ERREXIT, FALSE, i, jpeg_natural_order, MAX_COEF_BITS, nbits, temp, and TRUE.
Referenced by encode_mcu_huff().
ERREXIT | ( | state-> | cinfo, |
JERR_HUFF_MISSING_CODE | |||
) |
finish_pass_gather | ( | j_compress_ptr | cinfo | ) |
finish_pass_huff | ( | j_compress_ptr | cinfo | ) |
References ASSIGN_STATE, cinfo, ERREXIT, flush_bits(), working_state::next_output_byte, and huff_entropy_encoder::saved.
Referenced by METHODDEF().
flush_bits | ( | working_state * | state | ) |
Referenced by emit_restart(), and finish_pass_huff().
htest_one_block | ( | j_compress_ptr | cinfo, |
JCOEFPTR | block, | ||
int | last_dc_val, | ||
long | dc_counts[], | ||
long | ac_counts[] | ||
) |
References DCTSIZE2, ERREXIT, jpeg_natural_order, MAX_COEF_BITS, nbits, and temp.
Referenced by encode_mcu_gather().
jinit_huff_encoder | ( | j_compress_ptr | cinfo | ) |
References huff_entropy_encoder::ac_count_ptrs, huff_entropy_encoder::ac_derived_tbls, huff_entropy_encoder::dc_count_ptrs, huff_entropy_encoder::dc_derived_tbls, i, JPOOL_IMAGE, NULL, NUM_HUFF_TBLS, huff_entropy_encoder::pub, and SIZEOF.
Referenced by jinit_compress_master(), and transencode_master_selection().
jpeg_gen_optimal_table | ( | j_compress_ptr | cinfo, |
JHUFF_TBL * | htbl, | ||
long | freq[] | ||
) |
jpeg_make_c_derived_tbl | ( | j_compress_ptr | cinfo, |
boolean | isDC, | ||
int | tblno, | ||
c_derived_tbl ** | pdtbl | ||
) |
References JHUFF_TBL::bits, c_derived_tbl::ehufco, c_derived_tbl::ehufsi, ERREXIT, ERREXIT1, htbl, JHUFF_TBL::huffval, i, if(), JPOOL_IMAGE, MEMZERO, NULL, NUM_HUFF_TBLS, pdtbl, SIZEOF, and tblno.
Referenced by METHODDEF().
METHODDEF | ( | boolean | ) |
References huff_entropy_encoder::ac_count_ptrs, huff_entropy_encoder::ac_derived_tbls, jpeg_component_info::ac_tbl_no, ci, compptr, huff_entropy_encoder::dc_count_ptrs, huff_entropy_encoder::dc_derived_tbls, jpeg_component_info::dc_tbl_no, encode_mcu_gather(), encode_mcu_huff(), ERREXIT, ERREXIT1, FALSE, finish_pass_gather(), finish_pass_huff(), if(), jpeg_make_c_derived_tbl(), JPOOL_IMAGE, savable_state::last_dc_val, MEMZERO, huff_entropy_encoder::next_restart_num, NULL, NUM_HUFF_TBLS, huff_entropy_encoder::pub, savable_state::put_bits, savable_state::put_buffer, huff_entropy_encoder::restarts_to_go, huff_entropy_encoder::saved, SIZEOF, and TRUE.
while | ( | put_bits >= | 8 | ) |
References c, emit_byte, and FALSE.
Referenced by calendar_date_to_timestamp(), cmyk_ycck_convert(), decompress_data(), decompress_smooth_data(), int_upsample(), pre_process_context(), pre_process_data(), process_data_simple_main(), rgb_gray_convert(), rgb_ycc_convert(), uhi_cdc_install(), ycc_rgb565_convert(), ycc_rgb_convert(), and ycck_cmyk_convert().
state free_in_buffer = dest->free_in_buffer |
INLINE |
state next_output_byte = dest->next_output_byte |
state cur put_buffer = put_buffer |
return TRUE |