Main MRPT website > C++ reference for MRPT 1.5.9
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.

Classes

struct  savable_state
 
struct  huff_entropy_decoder
 

Macros

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

Typedefs

typedef huff_entropy_decoderhuff_entropy_ptr
 

Functions

 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)
 

Variables

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

Macro Definition Documentation

◆ ASSIGN_STATE

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

Definition at line 33 of file jdhuff.cpp.

Referenced by decode_mcu().

◆ HUFF_EXTEND

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

Definition at line 440 of file jdhuff.cpp.

Referenced by decode_mcu().

◆ JPEG_INTERNALS

#define JPEG_INTERNALS

Definition at line 10 of file jdhuff.cpp.

◆ MIN_GET_BITS

#define MIN_GET_BITS   (BIT_BUF_SIZE-7)

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,
JBLOCKROW MCU_data 
)

◆ 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]
static
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]
static
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.9 Git: 690a4699f Wed Apr 15 19:29:53 2020 +0200 at miƩ abr 15 19:30:12 CEST 2020