jdarith.c File Reference

#include "jinclude.h"
#include "jpeglib.h"

Go to the source code of this file.

Classes

struct  arith_entropy_decoder

Defines

#define JPEG_INTERNALS
#define DC_STAT_BINS   64
#define AC_STAT_BINS   256

Typedefs

typedef arith_entropy_decoderarith_entropy_ptr

Functions

 get_byte (j_decompress_ptr cinfo)
 arith_decode (j_decompress_ptr cinfo, unsigned char *st)
 process_restart (j_decompress_ptr cinfo)
 decode_mcu_DC_first (j_decompress_ptr cinfo, JBLOCKROW *MCU_data)
 decode_mcu_AC_first (j_decompress_ptr cinfo, JBLOCKROW *MCU_data)
 decode_mcu_DC_refine (j_decompress_ptr cinfo, JBLOCKROW *MCU_data)
 decode_mcu_AC_refine (j_decompress_ptr cinfo, JBLOCKROW *MCU_data)
 decode_mcu (j_decompress_ptr cinfo, JBLOCKROW *MCU_data)
 start_pass (j_decompress_ptr cinfo)
 jinit_arith_decoder (j_decompress_ptr cinfo)


Define Documentation

#define AC_STAT_BINS   256

Definition at line 61 of file jdarith.c.

#define DC_STAT_BINS   64

Definition at line 60 of file jdarith.c.

#define JPEG_INTERNALS

Definition at line 16 of file jdarith.c.


Typedef Documentation

typedef arith_entropy_decoder* arith_entropy_ptr

Definition at line 45 of file jdarith.c.


Function Documentation

arith_decode ( j_decompress_ptr  cinfo,
unsigned char *  st 
)

Definition at line 106 of file jdarith.c.

References arith_entropy_encoder::a, arith_entropy_encoder::c, arith_entropy_encoder::ct, data, get_byte(), jpeg_aritab, and RooFitShortHand::L().

Referenced by decode_mcu(), decode_mcu_AC_first(), decode_mcu_AC_refine(), decode_mcu_DC_first(), and decode_mcu_DC_refine().

decode_mcu ( j_decompress_ptr  cinfo,
JBLOCKROW MCU_data 
)

Definition at line 503 of file jdarith.c.

References arith_entropy_encoder::ac_stats, jpeg_component_info::ac_tbl_no, arith_decode(), compptr, arith_entropy_encoder::ct, arith_entropy_encoder::dc_context, arith_entropy_encoder::dc_stats, jpeg_component_info::dc_tbl_no, arith_entropy_encoder::fixed_bin, for(), if(), k, RooFitShortHand::L(), arith_entropy_encoder::last_dc_val, m, process_restart(), arith_entropy_encoder::restarts_to_go, RootCsg::sign(), TRUE, and WARNMS.

decode_mcu_AC_first ( j_decompress_ptr  cinfo,
JBLOCKROW MCU_data 
)

Definition at line 321 of file jdarith.c.

References arith_entropy_encoder::ac_stats, arith_decode(), arith_entropy_encoder::ct, arith_entropy_encoder::fixed_bin, if(), k, m, process_restart(), arith_entropy_encoder::restarts_to_go, RootCsg::sign(), TRUE, and WARNMS.

Referenced by start_pass(), and start_pass_huff_decoder().

decode_mcu_AC_refine ( j_decompress_ptr  cinfo,
JBLOCKROW MCU_data 
)

Definition at line 431 of file jdarith.c.

References arith_entropy_encoder::ac_stats, arith_decode(), arith_entropy_encoder::ct, arith_entropy_encoder::fixed_bin, for(), if(), k, p1(), process_restart(), arith_entropy_encoder::restarts_to_go, TRUE, and WARNMS.

decode_mcu_DC_first ( j_decompress_ptr  cinfo,
JBLOCKROW MCU_data 
)

Definition at line 242 of file jdarith.c.

References arith_decode(), arith_entropy_encoder::ct, arith_entropy_encoder::dc_context, arith_entropy_encoder::dc_stats, if(), RooFitShortHand::L(), arith_entropy_encoder::last_dc_val, m, process_restart(), arith_entropy_encoder::restarts_to_go, RootCsg::sign(), TRUE, and WARNMS.

Referenced by start_pass(), and start_pass_huff_decoder().

decode_mcu_DC_refine ( j_decompress_ptr  cinfo,
JBLOCKROW MCU_data 
)

Definition at line 398 of file jdarith.c.

References arith_decode(), arith_entropy_encoder::fixed_bin, if(), p1(), process_restart(), arith_entropy_encoder::restarts_to_go, and TRUE.

get_byte ( j_decompress_ptr  cinfo  ) 

Definition at line 65 of file jdarith.c.

References ERREXIT, and GETJOCTET.

jinit_arith_decoder ( j_decompress_ptr  cinfo  ) 

Definition at line 741 of file jdarith.c.

References arith_entropy_encoder::ac_stats, arith_entropy_encoder::dc_stats, DCTSIZE2, arith_entropy_encoder::fixed_bin, i, int, JPOOL_IMAGE, NULL, NUM_ARITH_TBLS, arith_entropy_encoder::pub, SIZEOF, and start_pass().

Referenced by master_selection(), and transdecode_master_selection().

process_restart ( j_decompress_ptr  cinfo  ) 

Definition at line 190 of file jdarith.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, ERREXIT, if(), arith_entropy_encoder::last_dc_val, and MEMZERO.

Referenced by decode_mcu(), decode_mcu_AC_first(), decode_mcu_AC_refine(), decode_mcu_DC_first(), decode_mcu_DC_refine(), and decode_mcu_sub().

start_pass ( j_decompress_ptr  cinfo  ) 

Definition at line 631 of file jdarith.c.

References compptr, decode_mcu_AC_first(), decode_mcu_DC_first(), ERREXIT4, if(), JERR_BAD_PROGRESSION, JWRN_BOGUS_PROGRESSION, arith_entropy_encoder::pub, and WARNMS2.


Generated on Tue Jul 5 15:57:56 2011 for ROOT_528-00b_version by  doxygen 1.5.1