fltk 1.3.0rc3
About: FLTK (Fast Light Tool Kit) is a cross-platform C++ GUI toolkit for UNIX/Linux (X11), Microsoft Windows, and MacOS X. Release candidate.
  SfR Fresh Dox: fltk-1.3.0rc3-source.tar.gz ("inofficial" and yet experimental doxygen-generated source code documentation)  

jchuff.c File Reference

#include "jinclude.h"
#include "jpeglib.h"
#include "jchuff.h"
Include dependency graph for jchuff.c:

Go to the source code of this file.

Classes

struct  savable_state
struct  huff_entropy_encoder
struct  working_state

Defines

#define JPEG_INTERNALS
#define ASSIGN_STATE(dest, src)   ((dest) = (src))
#define emit_byte(state, val, action)
#define MAX_CLEN   32

Typedefs

typedef huff_entropy_encoderhuff_entropy_ptr

Functions

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

Define Documentation

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

Definition at line 41 of file jchuff.c.

Referenced by encode_mcu_huff(), and finish_pass_huff().

#define emit_byte (   state,
  val,
  action 
)
Value:
{ *(state)->next_output_byte++ = (JOCTET) (val);  \
          if (--(state)->free_in_buffer == 0)  \
            if (! dump_buffer(state))  \
              { action; } }

Definition at line 270 of file jchuff.c.

Referenced by emit_bits(), and emit_restart().

#define JPEG_INTERNALS

Definition at line 17 of file jchuff.c.

#define MAX_CLEN   32

Referenced by jpeg_gen_optimal_table().


Typedef Documentation

Definition at line 74 of file jchuff.c.


Function Documentation

dump_buffer ( working_state state)
INLINE emit_bits ( working_state state,
unsigned int  code,
int  size 
)
emit_restart ( working_state state,
int  restart_num 
)
encode_one_block ( working_state state,
JCOEFPTR  block,
int  last_dc_val,
c_derived_tbl dctbl,
c_derived_tbl actbl 
)

Definition at line 353 of file jchuff.c.

References DCTSIZE2, emit_bits(), ERREXIT, FALSE, i, jpeg_natural_order, MAX_COEF_BITS, nbits, and TRUE.

Referenced by encode_mcu_huff().

finish_pass_huff ( j_compress_ptr  cinfo)

Definition at line 533 of file jchuff.c.

References ASSIGN_STATE, ERREXIT, flush_bits(), huff_entropy_encoder::saved, and state.

Referenced by METHODDEF().

flush_bits ( working_state state)

Definition at line 340 of file jchuff.c.

References emit_bits(), FALSE, and TRUE.

Referenced by emit_restart(), finish_pass_huff(), and finish_pass_phuff().

htest_one_block ( j_compress_ptr  cinfo,
JCOEFPTR  block,
int  last_dc_val,
long  dc_counts[],
long  ac_counts[] 
)

Definition at line 572 of file jchuff.c.

References DCTSIZE2, ERREXIT, jpeg_natural_order, MAX_COEF_BITS, and nbits.

Referenced by encode_mcu_gather().

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

Definition at line 705 of file jchuff.c.

References ERREXIT, FALSE, i, MAX_CLEN, MEMCOPY, MEMZERO, and SIZEOF.

Referenced by finish_pass_gather(), and finish_pass_gather_phuff().

jpeg_make_c_derived_tbl ( j_compress_ptr  cinfo,
boolean  isDC,
int  tblno,
c_derived_tbl **  pdtbl 
)