FFmpeg
Macros | Functions | Variables
qdm2_tablegen.h File Reference
#include <stdint.h>
#include <math.h>
#include "libavutil/attributes.h"
#include "qdm2data.h"

Go to the source code of this file.

Macros

#define SOFTCLIP_THRESHOLD   27600
 
#define HARDCLIP_THRESHOLD   35716
 

Functions

static av_cold void softclip_table_init (void)
 
static av_cold void rnd_table_init (void)
 
static av_cold void init_noise_samples (void)
 
static av_cold void build_vlc (VLC *vlc, int nb_bits, int nb_codes, unsigned *offset, const uint8_t tab[][2])
 
static av_cold void qdm2_init_vlc (void)
 

Variables

static uint16_t softclip_table [HARDCLIP_THRESHOLD - SOFTCLIP_THRESHOLD+1]
 
static float noise_table [4096+20]
 
static uint8_t random_dequant_index [256][5]
 
static uint8_t random_dequant_type24 [128][3]
 
static float noise_samples [128]
 
static VLC vlc_tab_level
 
static VLC vlc_tab_diff
 
static VLC vlc_tab_run
 
static VLC fft_level_exp_alt_vlc
 
static VLC fft_level_exp_vlc
 
static VLC fft_stereo_exp_vlc
 
static VLC fft_stereo_phase_vlc
 
static VLC vlc_tab_tone_level_idx_hi1
 
static VLC vlc_tab_tone_level_idx_mid
 
static VLC vlc_tab_tone_level_idx_hi2
 
static VLC vlc_tab_type30
 
static VLC vlc_tab_type34
 
static VLC vlc_tab_fft_tone_offset [5]
 
static VLC_TYPE qdm2_table [3838][2]
 

Macro Definition Documentation

◆ SOFTCLIP_THRESHOLD

#define SOFTCLIP_THRESHOLD   27600

Definition at line 31 of file qdm2_tablegen.h.

◆ HARDCLIP_THRESHOLD

#define HARDCLIP_THRESHOLD   35716

Definition at line 32 of file qdm2_tablegen.h.

Function Documentation

◆ softclip_table_init()

static av_cold void softclip_table_init ( void  )
static

Definition at line 47 of file qdm2_tablegen.h.

Referenced by main(), and qdm2_init_static_data().

◆ rnd_table_init()

static av_cold void rnd_table_init ( void  )
static

Definition at line 57 of file qdm2_tablegen.h.

Referenced by main(), and qdm2_init_static_data().

◆ init_noise_samples()

static av_cold void init_noise_samples ( void  )
static

Definition at line 88 of file qdm2_tablegen.h.

Referenced by main(), and qdm2_init_static_data().

◆ build_vlc()

static av_cold void build_vlc ( VLC vlc,
int  nb_bits,
int  nb_codes,
unsigned *  offset,
const uint8_t  tab[][2] 
)
static

Definition at line 114 of file qdm2_tablegen.h.

Referenced by qdm2_init_vlc().

◆ qdm2_init_vlc()

static av_cold void qdm2_init_vlc ( void  )
static

Definition at line 125 of file qdm2_tablegen.h.

Referenced by main(), and qdm2_init_static_data().

Variable Documentation

◆ softclip_table

uint16_t softclip_table[HARDCLIP_THRESHOLD - SOFTCLIP_THRESHOLD+1]
static

Definition at line 41 of file qdm2_tablegen.h.

Referenced by main(), qdm2_decode(), and softclip_table_init().

◆ noise_table

float noise_table[4096+20]
static

Definition at line 42 of file qdm2_tablegen.h.

Referenced by rnd_table_init().

◆ random_dequant_index

uint8_t random_dequant_index[256][5]
static

Definition at line 43 of file qdm2_tablegen.h.

Referenced by main(), rnd_table_init(), and synthfilt_build_sb_samples().

◆ random_dequant_type24

uint8_t random_dequant_type24[128][3]
static

Definition at line 44 of file qdm2_tablegen.h.

Referenced by main(), rnd_table_init(), and synthfilt_build_sb_samples().

◆ noise_samples

float noise_samples[128]
static

Definition at line 45 of file qdm2_tablegen.h.

Referenced by init_noise_samples(), main(), and synthfilt_build_sb_samples().

◆ vlc_tab_level

VLC vlc_tab_level
static

◆ vlc_tab_diff

VLC vlc_tab_diff
static

◆ vlc_tab_run

VLC vlc_tab_run
static

◆ fft_level_exp_alt_vlc

VLC fft_level_exp_alt_vlc
static

Definition at line 101 of file qdm2_tablegen.h.

Referenced by main(), qdm2_fft_decode_tones(), and qdm2_init_vlc().

◆ fft_level_exp_vlc

VLC fft_level_exp_vlc
static

◆ fft_stereo_exp_vlc

VLC fft_stereo_exp_vlc
static

Definition at line 103 of file qdm2_tablegen.h.

Referenced by main(), qdm2_fft_decode_tones(), and qdm2_init_vlc().

◆ fft_stereo_phase_vlc

VLC fft_stereo_phase_vlc
static

Definition at line 104 of file qdm2_tablegen.h.

Referenced by main(), qdm2_fft_decode_tones(), and qdm2_init_vlc().

◆ vlc_tab_tone_level_idx_hi1

VLC vlc_tab_tone_level_idx_hi1
static

Definition at line 105 of file qdm2_tablegen.h.

Referenced by init_tone_level_dequantization(), main(), and qdm2_init_vlc().

◆ vlc_tab_tone_level_idx_mid

VLC vlc_tab_tone_level_idx_mid
static

Definition at line 106 of file qdm2_tablegen.h.

Referenced by init_tone_level_dequantization(), main(), and qdm2_init_vlc().

◆ vlc_tab_tone_level_idx_hi2

VLC vlc_tab_tone_level_idx_hi2
static

Definition at line 107 of file qdm2_tablegen.h.

Referenced by init_tone_level_dequantization(), main(), and qdm2_init_vlc().

◆ vlc_tab_type30

VLC vlc_tab_type30
static

Definition at line 108 of file qdm2_tablegen.h.

Referenced by main(), qdm2_init_vlc(), and synthfilt_build_sb_samples().

◆ vlc_tab_type34

VLC vlc_tab_type34
static

Definition at line 109 of file qdm2_tablegen.h.

Referenced by main(), qdm2_init_vlc(), and synthfilt_build_sb_samples().

◆ vlc_tab_fft_tone_offset

VLC vlc_tab_fft_tone_offset[5]
static

Definition at line 110 of file qdm2_tablegen.h.

Referenced by main(), qdm2_fft_decode_tones(), and qdm2_init_vlc().

◆ qdm2_table

VLC_TYPE qdm2_table[3838][2]
static

Definition at line 112 of file qdm2_tablegen.h.

Referenced by build_vlc(), and main().