Go to the source code of this file.
Classes | |
struct | savable_state |
struct | huff_entropy_encoder |
struct | working_state |
Macros | |
#define | JPEG_INTERNALS |
#define | ASSIGN_STATE(dest, src) ((dest) = (src)) |
#define | emit_byte(state, val, action) |
#define | MAX_CLEN 32 /* assumed maximum initial code length */ |
Typedefs | |
typedef huff_entropy_encoder * | huff_entropy_ptr |
Variables | |
JBLOCKROW * | MCU_data |
Definition at line 34 of file jchuff.cpp.
Referenced by encode_mcu_huff(), and finish_pass_huff().
#define emit_byte | ( | state, | |
val, | |||
action | |||
) |
Definition at line 263 of file jchuff.cpp.
Referenced by emit_bits(), and emit_restart().
#define JPEG_INTERNALS |
Definition at line 10 of file jchuff.cpp.
Referenced by jpeg_gen_optimal_table().
typedef huff_entropy_encoder* huff_entropy_ptr |
Definition at line 67 of file jchuff.cpp.
dump_buffer | ( | working_state * | state | ) |
Definition at line 271 of file jchuff.cpp.
References FALSE, jpeg_destination_mgr::free_in_buffer, jpeg_destination_mgr::next_output_byte, and TRUE.
INLINE emit_bits | ( | working_state * | state, |
unsigned int | code, | ||
int | size | ||
) |
Definition at line 295 of file jchuff.cpp.
References emit_byte, ERREXIT, FALSE, and TRUE.
Referenced by encode_one_block(), and flush_bits().
emit_restart | ( | working_state * | state, |
int | restart_num | ||
) |
Definition at line 444 of file jchuff.cpp.
References emit_byte, FALSE, flush_bits(), JPEG_RST0, and TRUE.
Referenced by encode_mcu_huff().
encode_mcu_gather | ( | j_compress_ptr | cinfo, |
JBLOCKROW * | MCU_data | ||
) |
Definition at line 638 of file jchuff.cpp.
References huff_entropy_encoder::ac_count_ptrs, jpeg_component_info::ac_tbl_no, compptr, huff_entropy_encoder::dc_count_ptrs, jpeg_component_info::dc_tbl_no, htest_one_block(), savable_state::last_dc_val, MCU_data, huff_entropy_encoder::restarts_to_go, huff_entropy_encoder::saved, and TRUE.
Referenced by start_pass_huff().
encode_mcu_huff | ( | j_compress_ptr | cinfo, |
JBLOCKROW * | MCU_data | ||
) |
Definition at line 469 of file jchuff.cpp.
References huff_entropy_encoder::ac_derived_tbls, jpeg_component_info::ac_tbl_no, ASSIGN_STATE, compptr, huff_entropy_encoder::dc_derived_tbls, jpeg_component_info::dc_tbl_no, emit_restart(), encode_one_block(), FALSE, MCU_data, huff_entropy_encoder::next_restart_num, huff_entropy_encoder::restarts_to_go, huff_entropy_encoder::saved, and TRUE.
Referenced by start_pass_huff().
encode_one_block | ( | working_state * | state, |
JCOEFPTR | block, | ||
int | last_dc_val, | ||
c_derived_tbl * | dctbl, | ||
c_derived_tbl * | actbl | ||
) |
Definition at line 346 of file jchuff.cpp.
References DCTSIZE2, emit_bits(), ERREXIT, FALSE, jpeg_natural_order, MAX_COEF_BITS, nbits, and TRUE.
Referenced by encode_mcu_huff().
finish_pass_gather | ( | j_compress_ptr | cinfo | ) |
Definition at line 839 of file jchuff.cpp.
References huff_entropy_encoder::ac_count_ptrs, jpeg_component_info::ac_tbl_no, compptr, huff_entropy_encoder::dc_count_ptrs, jpeg_component_info::dc_tbl_no, jpeg_alloc_huff_table(), jpeg_gen_optimal_table(), MEMZERO, NUM_HUFF_TBLS, SIZEOF, and TRUE.
Referenced by start_pass_huff().
finish_pass_huff | ( | j_compress_ptr | cinfo | ) |
Definition at line 526 of file jchuff.cpp.
References ASSIGN_STATE, ERREXIT, flush_bits(), working_state::next_output_byte, and huff_entropy_encoder::saved.
Referenced by start_pass_huff().
flush_bits | ( | working_state * | state | ) |
Definition at line 333 of file jchuff.cpp.
References emit_bits(), FALSE, and TRUE.
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[] | ||
) |
Definition at line 565 of file jchuff.cpp.
References DCTSIZE2, ERREXIT, jpeg_natural_order, MAX_COEF_BITS, and nbits.
Referenced by encode_mcu_gather().
jinit_huff_encoder | ( | j_compress_ptr | cinfo | ) |
Definition at line 884 of file jchuff.cpp.
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, JPOOL_IMAGE, NUM_HUFF_TBLS, huff_entropy_encoder::pub, SIZEOF, and start_pass_huff().
Referenced by jinit_compress_master(), and transencode_master_selection().
jpeg_gen_optimal_table | ( | j_compress_ptr | cinfo, |
JHUFF_TBL * | htbl, | ||
long | freq[] | ||
) |
Definition at line 698 of file jchuff.cpp.
References JHUFF_TBL::bits, ERREXIT, FALSE, freq, htbl, JHUFF_TBL::huffval, MAX_CLEN, MEMCOPY, MEMZERO, JHUFF_TBL::sent_table, and SIZEOF.
Referenced by finish_pass_gather(), and finish_pass_gather_phuff().
jpeg_make_c_derived_tbl | ( | j_compress_ptr | cinfo, |
boolean | isDC, | ||
int | tblno, | ||
c_derived_tbl ** | pdtbl | ||
) |
Definition at line 172 of file jchuff.cpp.
References JHUFF_TBL::bits, c_derived_tbl::ehufco, c_derived_tbl::ehufsi, ERREXIT, ERREXIT1, htbl, JHUFF_TBL::huffval, isDC, JPOOL_IMAGE, MEMZERO, NUM_HUFF_TBLS, pdtbl, SIZEOF, and tblno.
Referenced by start_pass_huff(), and start_pass_phuff().
METHODDEF | ( | boolean | ) |
METHODDEF | ( | void | ) |
start_pass_huff | ( | j_compress_ptr | cinfo, |
boolean | gather_statistics | ||
) |
Definition at line 99 of file jchuff.cpp.
References huff_entropy_encoder::ac_count_ptrs, huff_entropy_encoder::ac_derived_tbls, jpeg_component_info::ac_tbl_no, 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(), jpeg_make_c_derived_tbl(), JPOOL_IMAGE, savable_state::last_dc_val, MEMZERO, huff_entropy_encoder::next_restart_num, 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.
Referenced by jinit_huff_encoder().
JBLOCKROW * MCU_data |
Definition at line 83 of file jchuff.cpp.
Referenced by decode_mcu(), encode_mcu_gather(), and encode_mcu_huff().
Page generated by Doxygen 1.8.14 for MRPT 1.5.7 Git: 5902e14cc Wed Apr 24 15:04:01 2019 +0200 at lun oct 28 01:39:17 CET 2019 |