FFmpeg
Macros | Functions | Variables
dcahuff.h File Reference
#include <stdint.h>
#include "libavutil/attributes.h"
#include "vlc.h"

Go to the source code of this file.

Macros

#define DCA_CODE_BOOKS   10
 
#define DCA_BITALLOC_12_COUNT   5
 
#define DCA_NUM_BITALLOC_CODES
 
#define DCA_TMODE_VLC_BITS   3
 
#define DCA_SCALES_VLC_BITS   9
 
#define DCA_TNL_GRP_VLC_BITS   9
 
#define DCA_TNL_SCF_VLC_BITS   9
 
#define DCA_DAMP_VLC_BITS   6
 
#define DCA_DPH_VLC_BITS   6
 
#define DCA_FST_RSD_VLC_BITS   9
 
#define DCA_RSD_APPRX_VLC_BITS   5
 
#define DCA_RSD_AMP_VLC_BITS   9
 
#define DCA_AVG_G3_VLC_BITS   9
 
#define DCA_ST_GRID_VLC_BITS   9
 
#define DCA_GRID_VLC_BITS   9
 
#define DCA_RSD_VLC_BITS   6
 

Functions

av_cold void ff_dca_init_vlcs (void)
 

Variables

VLC ff_dca_vlc_bit_allocation [5]
 
VLC ff_dca_vlc_transition_mode [4]
 
VLC ff_dca_vlc_scale_factor [5]
 
VLC ff_dca_vlc_quant_index [DCA_CODE_BOOKS][7]
 
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
 
const int8_t ff_dca_bitalloc_offsets [DCA_CODE_BOOKS]
 
const uint8_t ff_dca_bitalloc_sizes [DCA_CODE_BOOKS]
 
const uint8_t ff_dca_vlc_src_tables [][2]
 

Macro Definition Documentation

◆ DCA_CODE_BOOKS

#define DCA_CODE_BOOKS   10

Definition at line 32 of file dcahuff.h.

◆ DCA_BITALLOC_12_COUNT

#define DCA_BITALLOC_12_COUNT   5

Definition at line 33 of file dcahuff.h.

◆ DCA_NUM_BITALLOC_CODES

#define DCA_NUM_BITALLOC_CODES
Value:
(1 * 3 + \
3 * (5 + 7 + 9 + 13) \
+ 7 * (17 + 25 + 33 + 65 + 129))

Definition at line 34 of file dcahuff.h.

◆ DCA_TMODE_VLC_BITS

#define DCA_TMODE_VLC_BITS   3

Definition at line 39 of file dcahuff.h.

◆ DCA_SCALES_VLC_BITS

#define DCA_SCALES_VLC_BITS   9

Definition at line 41 of file dcahuff.h.

◆ DCA_TNL_GRP_VLC_BITS

#define DCA_TNL_GRP_VLC_BITS   9

Definition at line 45 of file dcahuff.h.

◆ DCA_TNL_SCF_VLC_BITS

#define DCA_TNL_SCF_VLC_BITS   9

Definition at line 47 of file dcahuff.h.

◆ DCA_DAMP_VLC_BITS

#define DCA_DAMP_VLC_BITS   6

Definition at line 49 of file dcahuff.h.

◆ DCA_DPH_VLC_BITS

#define DCA_DPH_VLC_BITS   6

Definition at line 51 of file dcahuff.h.

◆ DCA_FST_RSD_VLC_BITS

#define DCA_FST_RSD_VLC_BITS   9

Definition at line 53 of file dcahuff.h.

◆ DCA_RSD_APPRX_VLC_BITS

#define DCA_RSD_APPRX_VLC_BITS   5

Definition at line 55 of file dcahuff.h.

◆ DCA_RSD_AMP_VLC_BITS

#define DCA_RSD_AMP_VLC_BITS   9

Definition at line 57 of file dcahuff.h.

◆ DCA_AVG_G3_VLC_BITS

#define DCA_AVG_G3_VLC_BITS   9

Definition at line 59 of file dcahuff.h.

◆ DCA_ST_GRID_VLC_BITS

#define DCA_ST_GRID_VLC_BITS   9

Definition at line 61 of file dcahuff.h.

◆ DCA_GRID_VLC_BITS

#define DCA_GRID_VLC_BITS   9

Definition at line 63 of file dcahuff.h.

◆ DCA_RSD_VLC_BITS

#define DCA_RSD_VLC_BITS   6

Definition at line 66 of file dcahuff.h.

Function Documentation

◆ ff_dca_init_vlcs()

av_cold void ff_dca_init_vlcs ( void  )

Definition at line 789 of file dcahuff.c.

Referenced by dcadec_init_static().

Variable Documentation

◆ ff_dca_vlc_bit_allocation

VLC ff_dca_vlc_bit_allocation[5]

Definition at line 771 of file dcahuff.c.

Referenced by ff_dca_init_vlcs(), and parse_subframe_header().

◆ ff_dca_vlc_transition_mode

VLC ff_dca_vlc_transition_mode[4]

Definition at line 772 of file dcahuff.c.

Referenced by ff_dca_init_vlcs(), and parse_subframe_header().

◆ ff_dca_vlc_scale_factor

VLC ff_dca_vlc_scale_factor[5]

Definition at line 773 of file dcahuff.c.

Referenced by ff_dca_init_vlcs(), parse_joint_scale(), and parse_scale().

◆ ff_dca_vlc_quant_index

VLC ff_dca_vlc_quant_index[DCA_CODE_BOOKS][7]

Definition at line 774 of file dcahuff.c.

Referenced by ff_dca_init_vlcs(), parse_huffman_codes(), and parse_x96_subframe_header().

◆ ff_dca_vlc_tnl_grp

VLC ff_dca_vlc_tnl_grp[5]

Definition at line 776 of file dcahuff.c.

Referenced by ff_dca_init_vlcs(), and parse_tonal().

◆ ff_dca_vlc_tnl_scf

VLC ff_dca_vlc_tnl_scf

Definition at line 777 of file dcahuff.c.

Referenced by ff_dca_init_vlcs(), and parse_tonal().

◆ ff_dca_vlc_damp

VLC ff_dca_vlc_damp

Definition at line 778 of file dcahuff.c.

Referenced by ff_dca_init_vlcs(), and parse_tonal().

◆ ff_dca_vlc_dph

VLC ff_dca_vlc_dph

Definition at line 779 of file dcahuff.c.

Referenced by ff_dca_init_vlcs(), and parse_tonal().

◆ ff_dca_vlc_fst_rsd_amp

VLC ff_dca_vlc_fst_rsd_amp

Definition at line 780 of file dcahuff.c.

Referenced by ff_dca_init_vlcs(), and parse_scale_factors().

◆ ff_dca_vlc_rsd_apprx

VLC ff_dca_vlc_rsd_apprx

Definition at line 781 of file dcahuff.c.

Referenced by ff_dca_init_vlcs(), and parse_scale_factors().

◆ ff_dca_vlc_rsd_amp

VLC ff_dca_vlc_rsd_amp

Definition at line 782 of file dcahuff.c.

Referenced by ff_dca_init_vlcs(), and parse_scale_factors().

◆ ff_dca_vlc_avg_g3

VLC ff_dca_vlc_avg_g3

Definition at line 783 of file dcahuff.c.

Referenced by ff_dca_init_vlcs(), parse_grid_1_chunk(), and parse_grid_1_sec_ch().

◆ ff_dca_vlc_st_grid

VLC ff_dca_vlc_st_grid

Definition at line 784 of file dcahuff.c.

Referenced by ff_dca_init_vlcs(), and parse_st_code().

◆ ff_dca_vlc_grid_2

VLC ff_dca_vlc_grid_2

Definition at line 785 of file dcahuff.c.

Referenced by ff_dca_init_vlcs(), and parse_grid_2().

◆ ff_dca_vlc_grid_3

VLC ff_dca_vlc_grid_3

Definition at line 786 of file dcahuff.c.

Referenced by ff_dca_init_vlcs(), and parse_grid_3().

◆ ff_dca_vlc_rsd

VLC ff_dca_vlc_rsd

Definition at line 787 of file dcahuff.c.

Referenced by ff_dca_init_vlcs(), and parse_ch().

◆ ff_dca_bitalloc_offsets

const int8_t ff_dca_bitalloc_offsets[DCA_CODE_BOOKS]

Definition at line 41 of file dcahuff.c.

Referenced by dcaenc_init_static_tables(), and ff_dca_init_vlcs().

◆ ff_dca_bitalloc_sizes

const uint8_t ff_dca_bitalloc_sizes[DCA_CODE_BOOKS]

Definition at line 37 of file dcahuff.c.

Referenced by dcaenc_init_static_tables(), and ff_dca_init_vlcs().

◆ ff_dca_vlc_src_tables

const uint8_t ff_dca_vlc_src_tables[][2]

Definition at line 58 of file dcahuff.c.

Referenced by dcaenc_init_static_tables(), and ff_dca_init_vlcs().