Main MRPT website > C++ reference for MRPT 1.5.8
Classes | Macros | Typedefs | Functions | Variables
jdhuff.cpp File Reference
#include "jinclude.h"
#include "mrpt_jpeglib.h"
#include "jdhuff.h"
Include dependency graph for jdhuff.cpp:

Go to the source code of this file.


struct  savable_state
struct  huff_entropy_decoder


#define ASSIGN_STATE(dest, src)   ((dest) = (src))
#define HUFF_EXTEND(x, s)   ((x) < extend_test[s] ? (x) + extend_offset[s] : (x))


typedef huff_entropy_decoderhuff_entropy_ptr


 start_pass_huff_decoder (j_decompress_ptr cinfo)
 jpeg_make_d_derived_tbl (j_decompress_ptr cinfo, boolean isDC, int tblno, d_derived_tbl **pdtbl)
 jpeg_fill_bit_buffer (bitread_working_state *state, bit_buf_type get_buffer, int bits_left, int nbits)
 jpeg_huff_decode (bitread_working_state *state, bit_buf_type get_buffer, int bits_left, d_derived_tbl *htbl, int min_bits)
 process_restart (j_decompress_ptr cinfo)
 decode_mcu (j_decompress_ptr cinfo, JBLOCKROW *MCU_data)
 jinit_huff_decoder (j_decompress_ptr cinfo)


static const int extend_test [16]
static const int extend_offset [16]

Macro Definition Documentation


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

Definition at line 33 of file jdhuff.cpp.

Referenced by decode_mcu().


#define HUFF_EXTEND (   x,
)    ((x) < extend_test[s] ? (x) + extend_offset[s] : (x))

Definition at line 440 of file jdhuff.cpp.

Referenced by decode_mcu().



Definition at line 10 of file jdhuff.cpp.



Definition at line 280 of file jdhuff.cpp.

Referenced by jpeg_fill_bit_buffer().

Typedef Documentation

◆ huff_entropy_ptr

Definition at line 71 of file jdhuff.cpp.

Function Documentation

◆ decode_mcu()

decode_mcu ( j_decompress_ptr  cinfo,

◆ jinit_huff_decoder()

jinit_huff_decoder ( j_decompress_ptr  cinfo)

◆ jpeg_fill_bit_buffer()

jpeg_fill_bit_buffer ( bitread_working_state state,
bit_buf_type  get_buffer,
int  bits_left,
int  nbits 

◆ jpeg_huff_decode()

jpeg_huff_decode ( bitread_working_state state,
bit_buf_type  get_buffer,
int  bits_left,
d_derived_tbl htbl,
int  min_bits 

Definition at line 391 of file jdhuff.cpp.

References bits_left, CHECK_BIT_BUFFER, GET_BITS, get_buffer, htbl, JHUFF_TBL::huffval, min_bits, and WARNMS.

◆ jpeg_make_d_derived_tbl()

jpeg_make_d_derived_tbl ( j_decompress_ptr  cinfo,
boolean  isDC,
int  tblno,
d_derived_tbl **  pdtbl 

◆ process_restart()

process_restart ( j_decompress_ptr  cinfo)

◆ start_pass_huff_decoder()

start_pass_huff_decoder ( j_decompress_ptr  cinfo)

Variable Documentation

◆ extend_offset

const int extend_offset[16]
Initial value:
{ 0,-1,-3,-7,-15,-31,-63,-127,-255,-511,-1023,-2047,-4095,-8191,-16383,-32767 }

Definition at line 446 of file jdhuff.cpp.

◆ extend_test

const int extend_test[16]
Initial value:
{ 0, 0x0001, 0x0002, 0x0004, 0x0008, 0x0010, 0x0020, 0x0040, 0x0080,
0x0100, 0x0200, 0x0400, 0x0800, 0x1000, 0x2000, 0x4000 }

Definition at line 442 of file jdhuff.cpp.

Page generated by Doxygen 1.8.14 for MRPT 1.5.8 Git: f67d0f871 Wed Sep 25 18:32:17 2019 +0200 at lun oct 28 01:58:29 CET 2019