Main MRPT website > C++ reference for MRPT 1.9.9
Classes | Macros | Typedefs | Functions | Variables
jdphuff.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  phuff_entropy_decoder
 

Macros

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

Typedefs

typedef phuff_entropy_decoderphuff_entropy_ptr
 

Functions

decode_mcu_DC_first JPP ((j_decompress_ptr cinfo, JBLOCKROW *MCU_data))
 
 start_pass_phuff_decoder (j_decompress_ptr cinfo)
 
 process_restart (j_decompress_ptr cinfo)
 
 decode_mcu_DC_first (j_decompress_ptr cinfo, JBLOCKROW *MCU_data)
 
 decode_mcu_AC_first (j_decompress_ptr cinfo, JBLOCKROW *MCU_data)
 
 decode_mcu_DC_refine (j_decompress_ptr cinfo, JBLOCKROW *MCU_data)
 
 decode_mcu_AC_refine (j_decompress_ptr cinfo, JBLOCKROW *MCU_data)
 
 jinit_phuff_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 36 of file jdphuff.cpp.

Referenced by decode_mcu_DC_first().

◆ HUFF_EXTEND

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

Definition at line 211 of file jdphuff.cpp.

Referenced by decode_mcu_AC_first(), and decode_mcu_DC_first().

◆ JPEG_INTERNALS

#define JPEG_INTERNALS

Definition at line 10 of file jdphuff.cpp.

Typedef Documentation

◆ phuff_entropy_ptr

Definition at line 67 of file jdphuff.cpp.

Function Documentation

◆ decode_mcu_AC_first()

decode_mcu_AC_first ( j_decompress_ptr  cinfo,
JBLOCKROW MCU_data 
)

◆ decode_mcu_AC_refine()

decode_mcu_AC_refine ( j_decompress_ptr  cinfo,
JBLOCKROW MCU_data 
)

◆ decode_mcu_DC_first()

decode_mcu_DC_first ( j_decompress_ptr  cinfo,
JBLOCKROW MCU_data 
)

◆ decode_mcu_DC_refine()

decode_mcu_DC_refine ( j_decompress_ptr  cinfo,
JBLOCKROW MCU_data 
)

Definition at line 451 of file jdphuff.cpp.

References BITREAD_LOAD_STATE, BITREAD_SAVE_STATE, BITREAD_STATE_VARS, CHECK_BIT_BUFFER, FALSE, GET_BITS, process_restart(), phuff_entropy_encoder::restarts_to_go, and TRUE.

Referenced by start_pass_phuff_decoder().

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

◆ jinit_phuff_decoder()

jinit_phuff_decoder ( j_decompress_ptr  cinfo)

Definition at line 674 of file jdphuff.cpp.

References DCTSIZE2, phuff_entropy_encoder::derived_tbls, JPOOL_IMAGE, NUM_HUFF_TBLS, phuff_entropy_encoder::pub, SIZEOF, and start_pass_phuff_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:

◆ JPP()

decode_mcu_AC_refine JPP ( (j_decompress_ptr cinfo, JBLOCKROW *MCU_data)  )

◆ process_restart()

process_restart ( j_decompress_ptr  cinfo)

◆ start_pass_phuff_decoder()

start_pass_phuff_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 217 of file jdphuff.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 213 of file jdphuff.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