openshot-audio  0.1.6
Classes | Macros | Typedefs | Functions
jchuff.c File Reference
#include "jinclude.h"
#include "jpeglib.h"
#include "jchuff.h"

Classes

struct  savable_state
 
struct  huff_entropy_encoder
 
struct  working_state
 

Macros

#define JPEG_INTERNALS
 
#define ASSIGN_STATE(dest, src)   ((dest) = (src))
 
#define emit_byte(state, val, action)
 
#define MAX_CLEN   32 /* assumed maximum initial code length */
 
#define JPEG_INTERNALS
 
#define ASSIGN_STATE(dest, src)   ((dest) = (src))
 
#define emit_byte(state, val, action)
 
#define MAX_CLEN   32 /* assumed maximum initial code length */
 
#define JPEG_INTERNALS
 
#define ASSIGN_STATE(dest, src)   ((dest) = (src))
 
#define emit_byte(state, val, action)
 
#define MAX_CLEN   32 /* assumed maximum initial code length */
 

Typedefs

typedef huff_entropy_encoderhuff_entropy_ptr
 

Functions

 METHODDEF (boolean)
 
 jpeg_make_c_derived_tbl (j_compress_ptr cinfo, boolean isDC, int tblno, c_derived_tbl **pdtbl)
 
 dump_buffer (working_state *state)
 
INLINE emit_bits (working_state *state, unsigned int code, int size)
 
 flush_bits (working_state *state)
 
 encode_one_block (working_state *state, JCOEFPTR block, int last_dc_val, c_derived_tbl *dctbl, c_derived_tbl *actbl)
 
 emit_restart (working_state *state, int restart_num)
 
 encode_mcu_huff (j_compress_ptr cinfo, JBLOCKROW *MCU_data)
 
 finish_pass_huff (j_compress_ptr cinfo)
 
 htest_one_block (j_compress_ptr cinfo, JCOEFPTR block, int last_dc_val, long dc_counts[], long ac_counts[])
 
 encode_mcu_gather (j_compress_ptr cinfo, JBLOCKROW *MCU_data)
 
 jpeg_gen_optimal_table (j_compress_ptr cinfo, JHUFF_TBL *htbl, long freq[])
 
 finish_pass_gather (j_compress_ptr cinfo)
 
 jinit_huff_encoder (j_compress_ptr cinfo)
 

Macro Definition Documentation

◆ ASSIGN_STATE [1/3]

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

◆ ASSIGN_STATE [2/3]

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

◆ ASSIGN_STATE [3/3]

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

◆ emit_byte [1/3]

#define emit_byte (   state,
  val,
  action 
)
Value:
{ *(state)->next_output_byte++ = (JOCTET) (val); \
if (--(state)->free_in_buffer == 0) \
if (! dump_buffer(state)) \
{ action; } }
dump_buffer(working_state *state)
Definition: jchuff.c:278
int val
Definition: jpeglib.h:956
char JOCTET
Definition: jmorecfg.h:115

◆ emit_byte [2/3]

#define emit_byte (   state,
  val,
  action 
)
Value:
{ *(state)->next_output_byte++ = (JOCTET) (val); \
if (--(state)->free_in_buffer == 0) \
if (! dump_buffer(state)) \
{ action; } }
dump_buffer(working_state *state)
Definition: jchuff.c:278
int val
Definition: jpeglib.h:956
char JOCTET
Definition: jmorecfg.h:115

◆ emit_byte [3/3]

#define emit_byte (   state,
  val,
  action 
)
Value:
{ *(state)->next_output_byte++ = (JOCTET) (val); \
if (--(state)->free_in_buffer == 0) \
if (! dump_buffer(state)) \
{ action; } }
dump_buffer(working_state *state)
Definition: jchuff.c:278
int val
Definition: jpeglib.h:956
char JOCTET
Definition: jmorecfg.h:115

◆ JPEG_INTERNALS [1/3]

#define JPEG_INTERNALS

◆ JPEG_INTERNALS [2/3]

#define JPEG_INTERNALS

◆ JPEG_INTERNALS [3/3]

#define JPEG_INTERNALS

◆ MAX_CLEN [1/3]

#define MAX_CLEN   32 /* assumed maximum initial code length */

◆ MAX_CLEN [2/3]

#define MAX_CLEN   32 /* assumed maximum initial code length */

◆ MAX_CLEN [3/3]

#define MAX_CLEN   32 /* assumed maximum initial code length */

Typedef Documentation

◆ huff_entropy_ptr

Function Documentation

◆ dump_buffer()

dump_buffer ( working_state state)

◆ emit_bits()

INLINE emit_bits ( working_state state,
unsigned int  code,
int  size 
)

◆ emit_restart()

emit_restart ( working_state state,
int  restart_num 
)

◆ encode_mcu_gather()

encode_mcu_gather ( j_compress_ptr  cinfo,
JBLOCKROW MCU_data 
)

◆ encode_mcu_huff()

encode_mcu_huff ( j_compress_ptr  cinfo,
JBLOCKROW MCU_data 
)

◆ encode_one_block()

encode_one_block ( working_state state,
JCOEFPTR  block,
int  last_dc_val,
c_derived_tbl dctbl,
c_derived_tbl actbl 
)

◆ finish_pass_gather()

finish_pass_gather ( j_compress_ptr  cinfo)

◆ finish_pass_huff()

finish_pass_huff ( j_compress_ptr  cinfo)

◆ flush_bits()

flush_bits ( working_state state)

◆ htest_one_block()

htest_one_block ( j_compress_ptr  cinfo,
JCOEFPTR  block,
int  last_dc_val,
long  dc_counts[],
long  ac_counts[] 
)

◆ jinit_huff_encoder()

jinit_huff_encoder ( j_compress_ptr  cinfo)

◆ jpeg_gen_optimal_table()

jpeg_gen_optimal_table ( j_compress_ptr  cinfo,
JHUFF_TBL htbl,
long  freq[] 
)

◆ jpeg_make_c_derived_tbl()

jpeg_make_c_derived_tbl ( j_compress_ptr  cinfo,
boolean  isDC,
int  tblno,
c_derived_tbl **  pdtbl 
)

◆ METHODDEF()

METHODDEF ( boolean  )