Go to the source code of this file.
Classes | |
struct | phuff_entropy_encoder |
Macros | |
#define | JPEG_INTERNALS |
#define | MAX_CORR_BITS 1000 /* Max # of correction bits I can buffer */ |
#define | ISHIFT_TEMPS |
#define | IRIGHT_SHIFT(x, shft) ((x) >> (shft)) |
#define | emit_byte(entropy, val) |
Typedefs | |
typedef phuff_entropy_encoder * | phuff_entropy_ptr |
Variables | |
JBLOCKROW * | MCU_data |
#define emit_byte | ( | entropy, | |
val | |||
) |
Definition at line 193 of file jcphuff.cpp.
Referenced by emit_bits(), and emit_restart().
Definition at line 80 of file jcphuff.cpp.
Referenced by encode_mcu_DC_first().
#define ISHIFT_TEMPS |
Definition at line 79 of file jcphuff.cpp.
Referenced by encode_mcu_DC_first().
#define JPEG_INTERNALS |
Definition at line 10 of file jcphuff.cpp.
#define MAX_CORR_BITS 1000 /* Max # of correction bits I can buffer */ |
Definition at line 65 of file jcphuff.cpp.
Referenced by encode_mcu_AC_refine(), and start_pass_phuff().
typedef phuff_entropy_encoder* phuff_entropy_ptr |
Definition at line 57 of file jcphuff.cpp.
dump_buffer | ( | phuff_entropy_ptr | entropy | ) |
Definition at line 200 of file jcphuff.cpp.
References ERREXIT, jpeg_destination_mgr::free_in_buffer, and jpeg_destination_mgr::next_output_byte.
INLINE emit_bits | ( | phuff_entropy_ptr | entropy, |
unsigned int | code, | ||
int | size | ||
) |
Definition at line 223 of file jcphuff.cpp.
References emit_byte, and ERREXIT.
Referenced by emit_buffered_bits(), emit_eobrun(), emit_symbol(), encode_mcu_AC_first(), encode_mcu_AC_refine(), encode_mcu_DC_first(), encode_mcu_DC_refine(), and flush_bits().
emit_buffered_bits | ( | phuff_entropy_ptr | entropy, |
char * | bufstart, | ||
unsigned int | nbits | ||
) |
Definition at line 292 of file jcphuff.cpp.
References emit_bits(), and nbits.
Referenced by emit_eobrun(), and encode_mcu_AC_refine().
emit_eobrun | ( | phuff_entropy_ptr | entropy | ) |
Definition at line 311 of file jcphuff.cpp.
References emit_bits(), emit_buffered_bits(), emit_symbol(), ERREXIT, and nbits.
Referenced by emit_restart(), encode_mcu_AC_first(), encode_mcu_AC_refine(), finish_pass_gather_phuff(), and finish_pass_phuff().
emit_restart | ( | phuff_entropy_ptr | entropy, |
int | restart_num | ||
) |
Definition at line 342 of file jcphuff.cpp.
References emit_byte, emit_eobrun(), flush_bits(), and JPEG_RST0.
Referenced by encode_mcu_AC_first(), encode_mcu_AC_refine(), encode_mcu_DC_first(), and encode_mcu_DC_refine().
INLINE emit_symbol | ( | phuff_entropy_ptr | entropy, |
int | tbl_no, | ||
int | symbol | ||
) |
Definition at line 276 of file jcphuff.cpp.
References c_derived_tbl::ehufco, c_derived_tbl::ehufsi, and emit_bits().
Referenced by emit_eobrun(), encode_mcu_AC_first(), encode_mcu_AC_refine(), and encode_mcu_DC_first().
encode_mcu_AC_first | ( | j_compress_ptr | cinfo, |
JBLOCKROW * | MCU_data | ||
) |
Definition at line 459 of file jcphuff.cpp.
References phuff_entropy_encoder::ac_tbl_no, emit_bits(), emit_eobrun(), emit_restart(), emit_symbol(), phuff_entropy_encoder::EOBRUN, ERREXIT, phuff_entropy_encoder::free_in_buffer, jpeg_natural_order, MAX_COEF_BITS, MCU_data, nbits, phuff_entropy_encoder::next_output_byte, phuff_entropy_encoder::next_restart_num, phuff_entropy_encoder::restarts_to_go, and TRUE.
Referenced by start_pass_phuff().
encode_mcu_AC_refine | ( | j_compress_ptr | cinfo, |
JBLOCKROW * | MCU_data | ||
) |
Definition at line 613 of file jcphuff.cpp.
References phuff_entropy_encoder::ac_tbl_no, phuff_entropy_encoder::BE, phuff_entropy_encoder::bit_buffer, DCTSIZE2, emit_bits(), emit_buffered_bits(), emit_eobrun(), emit_restart(), emit_symbol(), phuff_entropy_encoder::EOBRUN, phuff_entropy_encoder::free_in_buffer, jpeg_natural_order, MAX_CORR_BITS, MCU_data, phuff_entropy_encoder::next_output_byte, phuff_entropy_encoder::next_restart_num, phuff_entropy_encoder::restarts_to_go, and TRUE.
Referenced by start_pass_phuff().
encode_mcu_DC_first | ( | j_compress_ptr | cinfo, |
JBLOCKROW * | MCU_data | ||
) |
Definition at line 372 of file jcphuff.cpp.
References compptr, jpeg_component_info::dc_tbl_no, emit_bits(), emit_restart(), emit_symbol(), ERREXIT, phuff_entropy_encoder::free_in_buffer, IRIGHT_SHIFT, ISHIFT_TEMPS, phuff_entropy_encoder::last_dc_val, MAX_COEF_BITS, MCU_data, nbits, phuff_entropy_encoder::next_output_byte, phuff_entropy_encoder::next_restart_num, phuff_entropy_encoder::restarts_to_go, and TRUE.
Referenced by start_pass_phuff().
encode_mcu_DC_refine | ( | j_compress_ptr | cinfo, |
JBLOCKROW * | MCU_data | ||
) |
Definition at line 566 of file jcphuff.cpp.
References emit_bits(), emit_restart(), phuff_entropy_encoder::free_in_buffer, MCU_data, phuff_entropy_encoder::next_output_byte, phuff_entropy_encoder::next_restart_num, phuff_entropy_encoder::restarts_to_go, and TRUE.
Referenced by start_pass_phuff().
finish_pass_gather_phuff | ( | j_compress_ptr | cinfo | ) |
Definition at line 762 of file jcphuff.cpp.
References jpeg_component_info::ac_tbl_no, compptr, phuff_entropy_encoder::count_ptrs, jpeg_component_info::dc_tbl_no, emit_eobrun(), jpeg_alloc_huff_table(), jpeg_gen_optimal_table(), MEMZERO, NUM_HUFF_TBLS, SIZEOF, and TRUE.
Referenced by start_pass_phuff().
finish_pass_phuff | ( | j_compress_ptr | cinfo | ) |
Definition at line 741 of file jcphuff.cpp.
References emit_eobrun(), flush_bits(), phuff_entropy_encoder::free_in_buffer, and phuff_entropy_encoder::next_output_byte.
Referenced by start_pass_phuff().
flush_bits | ( | phuff_entropy_ptr | entropy | ) |
Definition at line 262 of file jcphuff.cpp.
References emit_bits().
Referenced by emit_restart(), and finish_pass_phuff().
jinit_phuff_encoder | ( | j_compress_ptr | cinfo | ) |
Definition at line 809 of file jcphuff.cpp.
References phuff_entropy_encoder::bit_buffer, phuff_entropy_encoder::count_ptrs, phuff_entropy_encoder::derived_tbls, JPOOL_IMAGE, NUM_HUFF_TBLS, phuff_entropy_encoder::pub, SIZEOF, and start_pass_phuff().
Referenced by jinit_compress_master(), and transencode_master_selection().
METHODDEF | ( | boolean | ) |
METHODDEF | ( | void | ) |
start_pass_phuff | ( | j_compress_ptr | cinfo, |
boolean | gather_statistics | ||
) |
Definition at line 101 of file jcphuff.cpp.
References phuff_entropy_encoder::ac_tbl_no, jpeg_component_info::ac_tbl_no, phuff_entropy_encoder::BE, phuff_entropy_encoder::bit_buffer, phuff_entropy_encoder::cinfo, compptr, phuff_entropy_encoder::count_ptrs, jpeg_component_info::dc_tbl_no, phuff_entropy_encoder::derived_tbls, encode_mcu_AC_first(), encode_mcu_AC_refine(), encode_mcu_DC_first(), encode_mcu_DC_refine(), phuff_entropy_encoder::EOBRUN, ERREXIT1, finish_pass_gather_phuff(), finish_pass_phuff(), phuff_entropy_encoder::gather_statistics, jpeg_make_c_derived_tbl(), JPOOL_IMAGE, phuff_entropy_encoder::last_dc_val, MAX_CORR_BITS, MEMZERO, phuff_entropy_encoder::next_restart_num, NUM_HUFF_TBLS, phuff_entropy_encoder::pub, phuff_entropy_encoder::put_bits, phuff_entropy_encoder::put_buffer, phuff_entropy_encoder::restarts_to_go, and SIZEOF.
Referenced by jinit_phuff_encoder().
JBLOCKROW* MCU_data |
Definition at line 85 of file jcphuff.cpp.
Referenced by encode_mcu_AC_first(), encode_mcu_AC_refine(), encode_mcu_DC_first(), and encode_mcu_DC_refine().
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 |