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)  

jcphuff.c File Reference

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

Go to the source code of this file.

Classes

struct  phuff_entropy_encoder

Defines

#define JPEG_INTERNALS
#define MAX_CORR_BITS   1000
#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)
 dump_buffer (phuff_entropy_ptr entropy)
INLINE emit_bits (phuff_entropy_ptr entropy, unsigned int code, int size)
 flush_bits (phuff_entropy_ptr entropy)
INLINE emit_symbol (phuff_entropy_ptr entropy, int tbl_no, int symbol)
 emit_buffered_bits (phuff_entropy_ptr entropy, char *bufstart, unsigned int nbits)
 emit_eobrun (phuff_entropy_ptr entropy)
 emit_restart (phuff_entropy_ptr entropy, 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)
 finish_pass_phuff (j_compress_ptr cinfo)
 finish_pass_gather_phuff (j_compress_ptr cinfo)
 jinit_phuff_encoder (j_compress_ptr cinfo)

Define Documentation

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

Definition at line 198 of file jcphuff.c.

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

Definition at line 85 of file jcphuff.c.

Referenced by encode_mcu_DC_first().

#define ISHIFT_TEMPS

Definition at line 84 of file jcphuff.c.

Referenced by encode_mcu_DC_first().

#define JPEG_INTERNALS

Definition at line 15 of file jcphuff.c.

#define MAX_CORR_BITS   1000

Definition at line 70 of file jcphuff.c.

Referenced by encode_mcu_AC_refine(), and METHODDEF().


Typedef Documentation

Definition at line 62 of file jcphuff.c.


Function Documentation

dump_buffer ( phuff_entropy_ptr  entropy)
INLINE emit_bits ( phuff_entropy_ptr  entropy,
unsigned int  code,
int  size 
)

Definition at line 228 of file jcphuff.c.

References emit_byte, ERREXIT, int, and size.

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

Definition at line 297 of file jcphuff.c.

References emit_bits().

Referenced by emit_eobrun(), and encode_mcu_AC_refine().

emit_restart ( phuff_entropy_ptr  entropy,
int  restart_num 
)

Definition at line 347 of file jcphuff.c.

References emit_byte, emit_eobrun(), flush_bits(), and JPEG_RST0.

INLINE emit_symbol ( phuff_entropy_ptr  entropy,
int  tbl_no,
int  symbol 
)
finish_pass_phuff ( j_compress_ptr  cinfo)
flush_bits ( phuff_entropy_ptr  entropy)

Definition at line 267 of file jcphuff.c.

References emit_bits().