#include "jinclude.h"
#include "jpeglib.h"
Go to the source code of this file.
Classes | |
struct | arith_entropy_encoder |
Defines | |
#define | JPEG_INTERNALS |
#define | DC_STAT_BINS 64 |
#define | AC_STAT_BINS 256 |
#define | ISHIFT_TEMPS |
#define | IRIGHT_SHIFT(x, shft) ((x) >> (shft)) |
Typedefs | |
typedef arith_entropy_encoder * | arith_entropy_ptr |
Functions | |
emit_byte (int val, j_compress_ptr cinfo) | |
finish_pass (j_compress_ptr cinfo) | |
arith_encode (j_compress_ptr cinfo, unsigned char *st, int val) | |
emit_restart (j_compress_ptr cinfo, int restart_num) | |
encode_mcu_DC_first (j_compress_ptr cinfo, JBLOCKROW *MCU_data) | |
encode_mcu_AC_first (j_compress_ptr cinfo, JBLOCKROW *MCU_data) | |
encode_mcu_DC_refine (j_compress_ptr cinfo, JBLOCKROW *MCU_data) | |
encode_mcu_AC_refine (j_compress_ptr cinfo, JBLOCKROW *MCU_data) | |
encode_mcu (j_compress_ptr cinfo, JBLOCKROW *MCU_data) | |
start_pass (j_compress_ptr cinfo, boolean gather_statistics) | |
jinit_arith_encoder (j_compress_ptr cinfo) |
#define AC_STAT_BINS 256 |
Definition at line 64 of file jcarith.c.
Referenced by emit_restart(), process_restart(), and start_pass().
#define DC_STAT_BINS 64 |
Definition at line 63 of file jcarith.c.
Referenced by emit_restart(), process_restart(), and start_pass().
#define ISHIFT_TEMPS |
Definition at line 110 of file jcarith.c.
Referenced by encode_mcu_DC_first(), and jpeg_idct_ifast().
typedef arith_entropy_encoder* arith_entropy_ptr |
arith_encode | ( | j_compress_ptr | cinfo, | |
unsigned char * | st, | |||
int | val | |||
) |
Definition at line 219 of file jcarith.c.
References arith_entropy_encoder::a, arith_entropy_encoder::buffer, arith_entropy_encoder::c, arith_entropy_encoder::ct, emit_byte, if(), jpeg_aritab, RooFitShortHand::L(), arith_entropy_encoder::sc, and arith_entropy_encoder::zc.
Referenced by encode_mcu(), encode_mcu_AC_first(), encode_mcu_AC_refine(), encode_mcu_DC_first(), and encode_mcu_DC_refine().
emit_byte | ( | int | val, | |
j_compress_ptr | cinfo | |||
) |
Definition at line 116 of file jcarith.c.
References ERREXIT, jpeg_destination_mgr::free_in_buffer, and jpeg_destination_mgr::next_output_byte.
emit_restart | ( | j_compress_ptr | cinfo, | |
int | restart_num | |||
) |
Definition at line 319 of file jcarith.c.
References AC_STAT_BINS, arith_entropy_encoder::ac_stats, jpeg_component_info::ac_tbl_no, compptr, arith_entropy_encoder::dc_context, DC_STAT_BINS, arith_entropy_encoder::dc_stats, jpeg_component_info::dc_tbl_no, emit_byte, finish_pass(), if(), JPEG_RST0, arith_entropy_encoder::last_dc_val, and MEMZERO.
Referenced by encode_mcu(), encode_mcu_AC_first(), encode_mcu_AC_refine(), encode_mcu_DC_first(), and encode_mcu_DC_refine().
encode_mcu | ( | j_compress_ptr | cinfo, | |
JBLOCKROW * | MCU_data | |||
) |
Definition at line 686 of file jcarith.c.
References arith_entropy_encoder::ac_stats, jpeg_component_info::ac_tbl_no, arith_encode(), compptr, arith_entropy_encoder::dc_context, arith_entropy_encoder::dc_stats, jpeg_component_info::dc_tbl_no, emit_restart(), arith_entropy_encoder::fixed_bin, if(), k, RooFitShortHand::L(), arith_entropy_encoder::last_dc_val, m, arith_entropy_encoder::next_restart_num, and arith_entropy_encoder::restarts_to_go.
Referenced by start_pass().
encode_mcu_AC_first | ( | j_compress_ptr | cinfo, | |
JBLOCKROW * | MCU_data | |||
) |
Definition at line 453 of file jcarith.c.
References arith_entropy_encoder::ac_stats, arith_encode(), emit_restart(), arith_entropy_encoder::fixed_bin, if(), k, m, arith_entropy_encoder::next_restart_num, and arith_entropy_encoder::restarts_to_go.
Referenced by METHODDEF(), start_pass(), and start_pass_huff().
encode_mcu_AC_refine | ( | j_compress_ptr | cinfo, | |
JBLOCKROW * | MCU_data | |||
) |
Definition at line 590 of file jcarith.c.
References arith_entropy_encoder::ac_stats, arith_encode(), emit_restart(), arith_entropy_encoder::fixed_bin, if(), k, arith_entropy_encoder::next_restart_num, and arith_entropy_encoder::restarts_to_go.
Referenced by METHODDEF(), start_pass(), and start_pass_huff().
encode_mcu_DC_first | ( | j_compress_ptr | cinfo, | |
JBLOCKROW * | MCU_data | |||
) |
Definition at line 362 of file jcarith.c.
References arith_encode(), arith_entropy_encoder::dc_context, arith_entropy_encoder::dc_stats, emit_restart(), if(), IRIGHT_SHIFT, ISHIFT_TEMPS, RooFitShortHand::L(), arith_entropy_encoder::last_dc_val, m, arith_entropy_encoder::next_restart_num, arith_entropy_encoder::restarts_to_go, and TRUE.
Referenced by METHODDEF(), start_pass(), and start_pass_huff().
encode_mcu_DC_refine | ( | j_compress_ptr | cinfo, | |
JBLOCKROW * | MCU_data | |||
) |
Definition at line 555 of file jcarith.c.
References Al, arith_encode(), emit_restart(), arith_entropy_encoder::fixed_bin, if(), arith_entropy_encoder::next_restart_num, arith_entropy_encoder::restarts_to_go, and TRUE.
Referenced by METHODDEF(), start_pass(), and start_pass_huff().
finish_pass | ( | j_compress_ptr | cinfo | ) |
Definition at line 133 of file jcarith.c.
References arith_entropy_encoder::a, arith_entropy_encoder::buffer, arith_entropy_encoder::c, arith_entropy_encoder::ct, emit_byte, if(), RooFitShortHand::L(), arith_entropy_encoder::sc, and arith_entropy_encoder::zc.
Referenced by emit_restart(), and jinit_arith_encoder().
jinit_arith_encoder | ( | j_compress_ptr | cinfo | ) |
Definition at line 914 of file jcarith.c.
References arith_entropy_encoder::ac_stats, arith_entropy_encoder::dc_stats, finish_pass(), arith_entropy_encoder::fixed_bin, i, JPOOL_IMAGE, NULL, NUM_ARITH_TBLS, arith_entropy_encoder::pub, SIZEOF, and start_pass().
Referenced by jinit_compress_master(), and transencode_master_selection().
start_pass | ( | j_compress_ptr | cinfo, | |
boolean | gather_statistics | |||
) |
Definition at line 831 of file jcarith.c.
References AC_STAT_BINS, arith_entropy_encoder::ac_stats, jpeg_component_info::ac_tbl_no, compptr, arith_entropy_encoder::dc_context, DC_STAT_BINS, arith_entropy_encoder::dc_stats, jpeg_component_info::dc_tbl_no, encode_mcu(), encode_mcu_AC_first(), encode_mcu_AC_refine(), encode_mcu_DC_first(), encode_mcu_DC_refine(), ERREXIT, ERREXIT1, if(), JPOOL_IMAGE, arith_entropy_encoder::last_dc_val, MEMZERO, NULL, NUM_ARITH_TBLS, and arith_entropy_encoder::pub.
Referenced by jinit_arith_decoder(), jinit_arith_encoder(), and jinit_inverse_dct().