Main MRPT website > C++ reference for MRPT 1.5.9
Classes | Macros | Typedefs | Functions | Variables
jdhuff.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  d_derived_tbl
 
struct  bitread_perm_state
 
struct  bitread_working_state
 

Macros

#define HUFF_LOOKAHEAD   8 /* # of bits of lookahead */
 
#define BIT_BUF_SIZE   32 /* size of buffer in bits */
 
#define BITREAD_STATE_VARS
 
#define BITREAD_LOAD_STATE(cinfop, permstate)
 
#define BITREAD_SAVE_STATE(cinfop, permstate)
 
#define CHECK_BIT_BUFFER(state, nbits, action)
 
#define GET_BITS(nbits)   (((int) (get_buffer >> (bits_left -= (nbits)))) & ((1<<(nbits))-1))
 
#define PEEK_BITS(nbits)   (((int) (get_buffer >> (bits_left - (nbits)))) & ((1<<(nbits))-1))
 
#define DROP_BITS(nbits)   (bits_left -= (nbits))
 
#define HUFF_DECODE(result, state, htbl, failaction, slowlabel)
 

Typedefs

typedef INT32 bit_buf_type
 

Functions

 EXTERN (void) jpeg_make_d_derived_tbl JPP((j_decompress_ptr cinfo
 
 EXTERN (boolean) jpeg_fill_bit_buffer JPP((bitread_working_state *state
 

Variables

boolean isDC
 
boolean int tblno
 
boolean int d_derived_tbl ** pdtbl
 
bit_buf_type get_buffer
 
bit_buf_type int bits_left
 
bit_buf_type int int nbits
 
bit_buf_type int d_derived_tblhtbl
 
bit_buf_type int d_derived_tbl int min_bits
 

Macro Definition Documentation

◆ BIT_BUF_SIZE

#define BIT_BUF_SIZE   32 /* size of buffer in bits */

Definition at line 70 of file jdhuff.h.

◆ BITREAD_LOAD_STATE

#define BITREAD_LOAD_STATE (   cinfop,
  permstate 
)
Value:
br_state.cinfo = cinfop; \
br_state.next_input_byte = cinfop->src->next_input_byte; \
br_state.bytes_in_buffer = cinfop->src->bytes_in_buffer; \
get_buffer = permstate.get_buffer; \
bits_left = permstate.bits_left;

Definition at line 104 of file jdhuff.h.

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

◆ BITREAD_SAVE_STATE

#define BITREAD_SAVE_STATE (   cinfop,
  permstate 
)
Value:
cinfop->src->next_input_byte = br_state.next_input_byte; \
cinfop->src->bytes_in_buffer = br_state.bytes_in_buffer; \
permstate.get_buffer = get_buffer; \
permstate.bits_left = bits_left
bit_buf_type int bits_left
Definition: jdhuff.h:152
bit_buf_type get_buffer
Definition: jdhuff.h:152

Definition at line 111 of file jdhuff.h.

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

◆ BITREAD_STATE_VARS

#define BITREAD_STATE_VARS
Value:
int bits_left; \
bitread_working_state br_state
bit_buf_type int bits_left
Definition: jdhuff.h:152
bit_buf_type get_buffer
Definition: jdhuff.h:152
INT32 bit_buf_type
Definition: jdhuff.h:69

Definition at line 99 of file jdhuff.h.

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

◆ CHECK_BIT_BUFFER

#define CHECK_BIT_BUFFER (   state,
  nbits,
  action 
)
Value:
{ if (bits_left < (nbits)) { \
{ action; } \
get_buffer = (state).get_buffer; bits_left = (state).bits_left; } }
jpeg_fill_bit_buffer(bitread_working_state *state, bit_buf_type get_buffer, int bits_left, int nbits)
Definition: jdhuff.cpp:285
bit_buf_type int bits_left
Definition: jdhuff.h:152
bit_buf_type int int nbits
Definition: jdhuff.h:152
bit_buf_type get_buffer
Definition: jdhuff.h:152

Definition at line 135 of file jdhuff.h.

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

◆ DROP_BITS

#define DROP_BITS (   nbits)    (bits_left -= (nbits))

Definition at line 147 of file jdhuff.h.

Referenced by decode_mcu().

◆ GET_BITS

#define GET_BITS (   nbits)    (((int) (get_buffer >> (bits_left -= (nbits)))) & ((1<<(nbits))-1))

◆ HUFF_DECODE

#define HUFF_DECODE (   result,
  state,
  htbl,
  failaction,
  slowlabel 
)
Value:
{ int nb, look; \
if (! jpeg_fill_bit_buffer(&state,get_buffer,bits_left, 0)) {failaction;} \
get_buffer = state.get_buffer; bits_left = state.bits_left; \
nb = 1; goto slowlabel; \
} \
} \
if ((nb = htbl->look_nbits[look]) != 0) { \
DROP_BITS(nb); \
result = htbl->look_sym[look]; \
} else { \
nb = HUFF_LOOKAHEAD+1; \
slowlabel: \
if ((result=jpeg_huff_decode(&state,get_buffer,bits_left,htbl,nb)) < 0) \
{ failaction; } \
get_buffer = state.get_buffer; bits_left = state.bits_left; \
} \
}
UINT8 look_sym[1<< HUFF_LOOKAHEAD]
Definition: jdhuff.h:42
jpeg_huff_decode(bitread_working_state *state, bit_buf_type get_buffer, int bits_left, d_derived_tbl *htbl, int min_bits)
Definition: jdhuff.cpp:391
int look_nbits[1<< HUFF_LOOKAHEAD]
Definition: jdhuff.h:41
jpeg_fill_bit_buffer(bitread_working_state *state, bit_buf_type get_buffer, int bits_left, int nbits)
Definition: jdhuff.cpp:285
bit_buf_type int bits_left
Definition: jdhuff.h:152
#define PEEK_BITS(nbits)
Definition: jdhuff.h:144
bit_buf_type int d_derived_tbl * htbl
Definition: jdhuff.h:197
bit_buf_type get_buffer
Definition: jdhuff.h:152
#define HUFF_LOOKAHEAD
Definition: jdhuff.h:21

Definition at line 173 of file jdhuff.h.

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

◆ HUFF_LOOKAHEAD

#define HUFF_LOOKAHEAD   8 /* # of bits of lookahead */

Definition at line 21 of file jdhuff.h.

Referenced by jpeg_make_d_derived_tbl().

◆ PEEK_BITS

#define PEEK_BITS (   nbits)    (((int) (get_buffer >> (bits_left - (nbits)))) & ((1<<(nbits))-1))

Definition at line 144 of file jdhuff.h.

Typedef Documentation

◆ bit_buf_type

Definition at line 69 of file jdhuff.h.

Function Documentation

◆ EXTERN() [1/2]

EXTERN ( void  )

◆ EXTERN() [2/2]

EXTERN ( boolean  )

Variable Documentation

◆ bits_left

bit_buf_type int bits_left

Definition at line 152 of file jdhuff.h.

Referenced by jpeg_fill_bit_buffer(), and jpeg_huff_decode().

◆ get_buffer

bit_buf_type get_buffer

Definition at line 152 of file jdhuff.h.

Referenced by jpeg_fill_bit_buffer(), and jpeg_huff_decode().

◆ htbl

Definition at line 197 of file jdhuff.h.

◆ isDC

boolean isDC

Definition at line 47 of file jdhuff.h.

◆ min_bits

bit_buf_type int d_derived_tbl int min_bits

Definition at line 197 of file jdhuff.h.

Referenced by jpeg_huff_decode().

◆ nbits

bit_buf_type int int nbits

◆ pdtbl

boolean int d_derived_tbl** pdtbl

Definition at line 47 of file jdhuff.h.

◆ tblno

boolean int tblno

Definition at line 47 of file jdhuff.h.




Page generated by Doxygen 1.8.14 for MRPT 1.5.9 Git: 690a4699f Wed Apr 15 19:29:53 2020 +0200 at miƩ abr 15 19:30:12 CEST 2020