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

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 476 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 295 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)

Definition at line 669 of file jdhuff.cpp.

References huff_entropy_encoder::ac_derived_tbls, huff_entropy_encoder::dc_derived_tbls, decode_mcu(), JPOOL_IMAGE, NUM_HUFF_TBLS, huff_entropy_encoder::pub, SIZEOF, and start_pass_huff_decoder().

Referenced by master_selection(), and transdecode_master_selection().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ 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 425 of file jdhuff.cpp.

References CHECK_BIT_BUFFER, GET_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)

Definition at line 494 of file jdhuff.cpp.

References FALSE, savable_state::last_dc_val, huff_entropy_encoder::pub, huff_entropy_encoder::restarts_to_go, huff_entropy_encoder::saved, and TRUE.

Referenced by decode_mcu().

Here is the caller graph for this function:

◆ 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 482 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 478 of file jdhuff.cpp.




Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: ae4571287 Thu Nov 23 00:06:53 2017 +0100 at dom oct 27 23:51:55 CET 2019