FFmpeg  4.0
Data Structures | Macros | Functions | Variables
dcahuff.h File Reference
#include "libavutil/common.h"
#include "avcodec.h"
#include "get_bits.h"
#include "put_bits.h"

Go to the source code of this file.

Data Structures

struct  DCAVLC
 

Macros

#define DCA_CODE_BOOKS   10
 
#define DCA_BITALLOC_12_COUNT   5
 

Functions

av_cold void ff_dca_init_vlcs (void)
 
uint32_t ff_dca_vlc_calc_quant_bits (int *values, uint8_t n, uint8_t sel, uint8_t abits)
 
void ff_dca_vlc_enc_quant (PutBitContext *pb, int *values, uint8_t n, uint8_t sel, uint8_t abits)
 
uint32_t ff_dca_vlc_calc_alloc_bits (int *values, uint8_t n, uint8_t sel)
 
void ff_dca_vlc_enc_alloc (PutBitContext *pb, int *values, uint8_t n, uint8_t sel)
 

Variables

DCAVLC ff_dca_vlc_bit_allocation
 
DCAVLC ff_dca_vlc_transition_mode
 
DCAVLC ff_dca_vlc_scale_factor
 
DCAVLC ff_dca_vlc_quant_index [DCA_CODE_BOOKS]
 
VLC ff_dca_vlc_tnl_grp [5]
 
VLC ff_dca_vlc_tnl_scf
 
VLC ff_dca_vlc_damp
 
VLC ff_dca_vlc_dph
 
VLC ff_dca_vlc_fst_rsd_amp
 
VLC ff_dca_vlc_rsd_apprx
 
VLC ff_dca_vlc_rsd_amp
 
VLC ff_dca_vlc_avg_g3
 
VLC ff_dca_vlc_st_grid
 
VLC ff_dca_vlc_grid_2
 
VLC ff_dca_vlc_grid_3
 
VLC ff_dca_vlc_rsd
 

Macro Definition Documentation

◆ DCA_CODE_BOOKS

#define DCA_CODE_BOOKS   10

◆ DCA_BITALLOC_12_COUNT

#define DCA_BITALLOC_12_COUNT   5

Definition at line 33 of file dcahuff.h.

Referenced by set_best_abits_code().

Function Documentation

◆ ff_dca_init_vlcs()

av_cold void ff_dca_init_vlcs ( void  )

Definition at line 1263 of file dcahuff.c.

Referenced by dcadec_init().

◆ ff_dca_vlc_calc_quant_bits()

uint32_t ff_dca_vlc_calc_quant_bits ( int values,
uint8_t  n,
uint8_t  sel,
uint8_t  abits 
)

Definition at line 1338 of file dcahuff.c.

Referenced by accumulate_huff_bit_consumption().

◆ ff_dca_vlc_enc_quant()

void ff_dca_vlc_enc_quant ( PutBitContext pb,
int values,
uint8_t  n,
uint8_t  sel,
uint8_t  abits 
)

Definition at line 1350 of file dcahuff.c.

Referenced by put_subframe_samples().

◆ ff_dca_vlc_calc_alloc_bits()

uint32_t ff_dca_vlc_calc_alloc_bits ( int values,
uint8_t  n,
uint8_t  sel 
)

Definition at line 1360 of file dcahuff.c.

Referenced by set_best_abits_code().

◆ ff_dca_vlc_enc_alloc()

void ff_dca_vlc_enc_alloc ( PutBitContext pb,
int values,
uint8_t  n,
uint8_t  sel 
)

Definition at line 1371 of file dcahuff.c.

Referenced by put_subframe().

Variable Documentation

◆ ff_dca_vlc_bit_allocation

DCAVLC ff_dca_vlc_bit_allocation

Definition at line 1245 of file dcahuff.c.

Referenced by parse_subframe_header().

◆ ff_dca_vlc_transition_mode

DCAVLC ff_dca_vlc_transition_mode

Definition at line 1246 of file dcahuff.c.

Referenced by parse_subframe_header().

◆ ff_dca_vlc_scale_factor

DCAVLC ff_dca_vlc_scale_factor

Definition at line 1247 of file dcahuff.c.

Referenced by parse_joint_scale(), and parse_scale().

◆ ff_dca_vlc_quant_index

DCAVLC ff_dca_vlc_quant_index[DCA_CODE_BOOKS]

Definition at line 1248 of file dcahuff.c.

Referenced by parse_huffman_codes(), and parse_x96_subframe_header().

◆ ff_dca_vlc_tnl_grp

VLC ff_dca_vlc_tnl_grp[5]

Definition at line 1250 of file dcahuff.c.

Referenced by parse_tonal().

◆ ff_dca_vlc_tnl_scf

VLC ff_dca_vlc_tnl_scf

Definition at line 1251 of file dcahuff.c.

Referenced by parse_tonal().

◆ ff_dca_vlc_damp

VLC ff_dca_vlc_damp

Definition at line 1252 of file dcahuff.c.

Referenced by parse_tonal().

◆ ff_dca_vlc_dph

VLC ff_dca_vlc_dph

Definition at line 1253 of file dcahuff.c.

Referenced by parse_tonal().

◆ ff_dca_vlc_fst_rsd_amp

VLC ff_dca_vlc_fst_rsd_amp

Definition at line 1254 of file dcahuff.c.

Referenced by parse_scale_factors().

◆ ff_dca_vlc_rsd_apprx

VLC ff_dca_vlc_rsd_apprx

Definition at line 1255 of file dcahuff.c.

Referenced by parse_scale_factors().

◆ ff_dca_vlc_rsd_amp

VLC ff_dca_vlc_rsd_amp

Definition at line 1256 of file dcahuff.c.

Referenced by parse_scale_factors().

◆ ff_dca_vlc_avg_g3

VLC ff_dca_vlc_avg_g3

Definition at line 1257 of file dcahuff.c.

Referenced by parse_grid_1_chunk(), and parse_grid_1_sec_ch().

◆ ff_dca_vlc_st_grid

VLC ff_dca_vlc_st_grid

Definition at line 1258 of file dcahuff.c.

Referenced by parse_st_code().

◆ ff_dca_vlc_grid_2

VLC ff_dca_vlc_grid_2

Definition at line 1259 of file dcahuff.c.

Referenced by parse_grid_2().

◆ ff_dca_vlc_grid_3

VLC ff_dca_vlc_grid_3

Definition at line 1260 of file dcahuff.c.

Referenced by parse_grid_3().

◆ ff_dca_vlc_rsd

VLC ff_dca_vlc_rsd

Definition at line 1261 of file dcahuff.c.

Referenced by parse_ch().