doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Macros | Typedefs | Functions
jchuff.c File Reference
#include "jinclude.h"
#include "jpeglib.h"
#include "jchuff.h"

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_encoderhuff_entropy_ptr
 

Functions

METHODDEF boolean encode_mcu_huff JPP ((j_compress_ptr cinfo, JBLOCKROW *MCU_data))
 
METHODDEF void finish_pass_huff JPP ((j_compress_ptr cinfo))
 
METHODDEF void start_pass_huff (j_compress_ptr cinfo, boolean gather_statistics)
 
GLOBAL void jpeg_make_c_derived_tbl (j_compress_ptr cinfo, JHUFF_TBL *htbl, c_derived_tbl **pdtbl)
 
LOCAL boolean dump_buffer (working_state *state)
 
INLINE LOCAL boolean emit_bits (working_state *state, unsigned int code, int size)
 
LOCAL boolean flush_bits (working_state *state)
 
LOCAL boolean encode_one_block (working_state *state, JCOEFPTR block, int last_dc_val, c_derived_tbl *dctbl, c_derived_tbl *actbl)
 
LOCAL boolean emit_restart (working_state *state, int restart_num)
 
METHODDEF boolean encode_mcu_huff (j_compress_ptr cinfo, JBLOCKROW *MCU_data)
 
METHODDEF void finish_pass_huff (j_compress_ptr cinfo)
 
LOCAL void htest_one_block (JCOEFPTR block, int last_dc_val, long dc_counts[], long ac_counts[])
 
METHODDEF boolean encode_mcu_gather (j_compress_ptr cinfo, JBLOCKROW *MCU_data)
 
GLOBAL void jpeg_gen_optimal_table (j_compress_ptr cinfo, JHUFF_TBL *htbl, long freq[])
 
METHODDEF void finish_pass_gather (j_compress_ptr cinfo)
 
GLOBAL void jinit_huff_encoder (j_compress_ptr cinfo)
 

Macro Definition Documentation

#define ASSIGN_STATE (   dest,
  src 
)    ((dest) = (src))

Definition at line 41 of file jchuff.c.

#define emit_byte (   state,
  val,
  action 
)
Value:
{ *(state)->next_output_byte++ = (JOCTET) (val); \
if (--(state)->free_in_buffer == 0) \
if (! dump_buffer(state)) \
{ action; } }
LOCAL boolean dump_buffer(working_state *state)
Definition: jchuff.c:247
char JOCTET
Definition: jmorecfg.h:115
if(!ValidDisplayID(prefInfo.prefDisplayID)) prefInfo.prefDisplayID

Definition at line 239 of file jchuff.c.

#define JPEG_INTERNALS

Definition at line 17 of file jchuff.c.

#define MAX_CLEN   32 /* assumed maximum initial code length */

Typedef Documentation

Definition at line 74 of file jchuff.c.

Function Documentation

LOCAL boolean dump_buffer ( working_state state)

Definition at line 247 of file jchuff.c.

INLINE LOCAL boolean emit_bits ( working_state state,
unsigned int  code,
int  size 
)

Definition at line 271 of file jchuff.c.

LOCAL boolean emit_restart ( working_state state,
int  restart_num 
)

Definition at line 412 of file jchuff.c.

METHODDEF boolean encode_mcu_gather ( j_compress_ptr  cinfo,
JBLOCKROW MCU_data 
)

Definition at line 605 of file jchuff.c.

METHODDEF boolean encode_mcu_huff ( j_compress_ptr  cinfo,
JBLOCKROW MCU_data 
)

Definition at line 437 of file jchuff.c.

LOCAL boolean encode_one_block ( working_state state,
JCOEFPTR  block,
int  last_dc_val,
c_derived_tbl dctbl,
c_derived_tbl actbl 
)

Definition at line 322 of file jchuff.c.

METHODDEF void finish_pass_gather ( j_compress_ptr  cinfo)

Definition at line 783 of file jchuff.c.

METHODDEF void finish_pass_huff ( j_compress_ptr  cinfo)

Definition at line 494 of file jchuff.c.

LOCAL boolean flush_bits ( working_state state)

Definition at line 309 of file jchuff.c.

LOCAL void htest_one_block ( JCOEFPTR  block,
int  last_dc_val,
long  dc_counts[],
long  ac_counts[] 
)

Definition at line 540 of file jchuff.c.

GLOBAL void jinit_huff_encoder ( j_compress_ptr  cinfo)

Definition at line 828 of file jchuff.c.

GLOBAL void jpeg_gen_optimal_table ( j_compress_ptr  cinfo,
JHUFF_TBL htbl,
long  freq[] 
)

Definition at line 642 of file jchuff.c.

GLOBAL void jpeg_make_c_derived_tbl ( j_compress_ptr  cinfo,
JHUFF_TBL htbl,
c_derived_tbl **  pdtbl 
)

Definition at line 179 of file jchuff.c.

METHODDEF void start_pass_huff ( j_compress_ptr  cinfo,
boolean  gather_statistics 
)

Definition at line 106 of file jchuff.c.