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

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_encoderphuff_entropy_ptr
 

Functions

METHODDEF boolean
encode_mcu_DC_first 
JPP ((j_compress_ptr cinfo, JBLOCKROW *MCU_data))
 
METHODDEF void finish_pass_phuff JPP ((j_compress_ptr cinfo))
 
METHODDEF void start_pass_phuff (j_compress_ptr cinfo, boolean gather_statistics)
 
LOCAL void dump_buffer (phuff_entropy_ptr entropy)
 
INLINE LOCAL void emit_bits (phuff_entropy_ptr entropy, unsigned int code, int size)
 
LOCAL void flush_bits (phuff_entropy_ptr entropy)
 
INLINE LOCAL void emit_symbol (phuff_entropy_ptr entropy, int tbl_no, int symbol)
 
LOCAL void emit_buffered_bits (phuff_entropy_ptr entropy, char *bufstart, unsigned int nbits)
 
LOCAL void emit_eobrun (phuff_entropy_ptr entropy)
 
LOCAL void emit_restart (phuff_entropy_ptr entropy, int restart_num)
 
METHODDEF boolean encode_mcu_DC_first (j_compress_ptr cinfo, JBLOCKROW *MCU_data)
 
METHODDEF boolean encode_mcu_AC_first (j_compress_ptr cinfo, JBLOCKROW *MCU_data)
 
METHODDEF boolean encode_mcu_DC_refine (j_compress_ptr cinfo, JBLOCKROW *MCU_data)
 
METHODDEF boolean encode_mcu_AC_refine (j_compress_ptr cinfo, JBLOCKROW *MCU_data)
 
METHODDEF void finish_pass_phuff (j_compress_ptr cinfo)
 
METHODDEF void finish_pass_gather_phuff (j_compress_ptr cinfo)
 
GLOBAL void jinit_phuff_encoder (j_compress_ptr cinfo)
 

Macro Definition Documentation

#define emit_byte (   entropy,
  val 
)
Value:
{ *(entropy)->next_output_byte++ = (JOCTET) (val); \
if (--(entropy)->free_in_buffer == 0) \
dump_buffer(entropy); }
LOCAL void dump_buffer(phuff_entropy_ptr entropy)
Definition: jcphuff.c:212
char JOCTET
Definition: jmorecfg.h:115
if(!ValidDisplayID(prefInfo.prefDisplayID)) prefInfo.prefDisplayID

Definition at line 205 of file jcphuff.c.

#define IRIGHT_SHIFT (   x,
  shft 
)    ((x) >> (shft))

Definition at line 85 of file jcphuff.c.

#define ISHIFT_TEMPS

Definition at line 84 of file jcphuff.c.

#define JPEG_INTERNALS

Definition at line 15 of file jcphuff.c.

#define MAX_CORR_BITS   1000 /* Max # of correction bits I can buffer */

Definition at line 70 of file jcphuff.c.

Typedef Documentation

Definition at line 62 of file jcphuff.c.

Function Documentation

LOCAL void dump_buffer ( phuff_entropy_ptr  entropy)

Definition at line 212 of file jcphuff.c.

INLINE LOCAL void emit_bits ( phuff_entropy_ptr  entropy,
unsigned int  code,
int  size 
)

Definition at line 235 of file jcphuff.c.

LOCAL void emit_buffered_bits ( phuff_entropy_ptr  entropy,
char *  bufstart,
unsigned int  nbits 
)

Definition at line 304 of file jcphuff.c.

LOCAL void emit_eobrun ( phuff_entropy_ptr  entropy)

Definition at line 323 of file jcphuff.c.

LOCAL void emit_restart ( phuff_entropy_ptr  entropy,
int  restart_num 
)

Definition at line 351 of file jcphuff.c.

INLINE LOCAL void emit_symbol ( phuff_entropy_ptr  entropy,
int  tbl_no,
int  symbol 
)

Definition at line 288 of file jcphuff.c.

METHODDEF boolean encode_mcu_AC_first ( j_compress_ptr  cinfo,
JBLOCKROW MCU_data 
)

Definition at line 463 of file jcphuff.c.

METHODDEF boolean encode_mcu_AC_refine ( j_compress_ptr  cinfo,
JBLOCKROW MCU_data 
)

Definition at line 614 of file jcphuff.c.

METHODDEF boolean encode_mcu_DC_first ( j_compress_ptr  cinfo,
JBLOCKROW MCU_data 
)

Definition at line 381 of file jcphuff.c.

METHODDEF boolean encode_mcu_DC_refine ( j_compress_ptr  cinfo,
JBLOCKROW MCU_data 
)

Definition at line 567 of file jcphuff.c.

METHODDEF void finish_pass_gather_phuff ( j_compress_ptr  cinfo)

Definition at line 763 of file jcphuff.c.

METHODDEF void finish_pass_phuff ( j_compress_ptr  cinfo)

Definition at line 742 of file jcphuff.c.

LOCAL void flush_bits ( phuff_entropy_ptr  entropy)

Definition at line 274 of file jcphuff.c.

GLOBAL void jinit_phuff_encoder ( j_compress_ptr  cinfo)

Definition at line 810 of file jcphuff.c.

METHODDEF void start_pass_phuff ( j_compress_ptr  cinfo,
boolean  gather_statistics 
)

Definition at line 106 of file jcphuff.c.