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 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 const uint16_t qdm2_vlc_offs []
 
static VLC_TYPE qdm2_table [3838][2]
 

Macro Definition Documentation

#define SOFTCLIP_THRESHOLD   27600

Definition at line 31 of file qdm2_tablegen.h.

Referenced by qdm2_decode(), and softclip_table_init().

#define HARDCLIP_THRESHOLD   35716

Definition at line 32 of file qdm2_tablegen.h.

Referenced by qdm2_decode(), and softclip_table_init().

Function Documentation

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().

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().

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().

static av_cold void qdm2_init_vlc ( void  )
static

Definition at line 118 of file qdm2_tablegen.h.

Referenced by main(), and qdm2_init_static_data().

Variable Documentation

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().

float noise_table[4096+20]
static

Definition at line 42 of file qdm2_tablegen.h.

Referenced by rnd_table_init().

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().

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().

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 vlc_tab_level
static

Definition at line 98 of file qdm2_tablegen.h.

Referenced by init_quantized_coeffs_elem0(), main(), and process_subpacket_9().

VLC vlc_tab_diff
static

Definition at line 99 of file qdm2_tablegen.h.

Referenced by init_quantized_coeffs_elem0(), main(), and process_subpacket_9().

VLC vlc_tab_run
static

Definition at line 100 of file qdm2_tablegen.h.

Referenced by init_quantized_coeffs_elem0(), main(), and process_subpacket_9().

VLC fft_level_exp_alt_vlc
static

Definition at line 101 of file qdm2_tablegen.h.

Referenced by main(), and qdm2_fft_decode_tones().

VLC fft_level_exp_vlc
static

Definition at line 102 of file qdm2_tablegen.h.

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

VLC fft_stereo_exp_vlc
static

Definition at line 103 of file qdm2_tablegen.h.

Referenced by main(), and qdm2_fft_decode_tones().

VLC fft_stereo_phase_vlc
static

Definition at line 104 of file qdm2_tablegen.h.

Referenced by main(), and qdm2_fft_decode_tones().

VLC vlc_tab_tone_level_idx_hi1
static

Definition at line 105 of file qdm2_tablegen.h.

Referenced by init_tone_level_dequantization(), and main().

VLC vlc_tab_tone_level_idx_mid
static

Definition at line 106 of file qdm2_tablegen.h.

Referenced by init_tone_level_dequantization(), and main().

VLC vlc_tab_tone_level_idx_hi2
static

Definition at line 107 of file qdm2_tablegen.h.

Referenced by init_tone_level_dequantization(), and main().

VLC vlc_tab_type30
static

Definition at line 108 of file qdm2_tablegen.h.

Referenced by main(), and synthfilt_build_sb_samples().

VLC vlc_tab_type34
static

Definition at line 109 of file qdm2_tablegen.h.

Referenced by main(), and synthfilt_build_sb_samples().

VLC vlc_tab_fft_tone_offset[5]
static

Definition at line 110 of file qdm2_tablegen.h.

Referenced by main(), and qdm2_fft_decode_tones().

const uint16_t qdm2_vlc_offs[]
static
Initial value:
= {
0,260,566,598,894,1166,1230,1294,1678,1950,2214,2278,2310,2570,2834,3124,3448,3838,
}

Definition at line 112 of file qdm2_tablegen.h.

Referenced by qdm2_init_vlc().

VLC_TYPE qdm2_table[3838][2]
static

Definition at line 116 of file qdm2_tablegen.h.

Referenced by main(), and qdm2_init_vlc().