Go to the documentation of this file.
23 #ifndef AVCODEC_QDM2_TABLEGEN_H
24 #define AVCODEC_QDM2_TABLEGEN_H
31 #define SOFTCLIP_THRESHOLD 27600
32 #define HARDCLIP_THRESHOLD 35716
34 #if CONFIG_HARDCODED_TABLES
35 #define softclip_table_init()
36 #define rnd_table_init()
37 #define init_noise_samples()
38 #define qdm2_init_vlc()
39 #include "libavcodec/qdm2_tables.h"
50 float delta = 1.0 / -dfl;
60 uint64_t random_seed = 0;
61 float delta = 1.0 / 16384.0;
62 for(
i = 0;
i < 4096 ;
i++) {
63 random_seed = random_seed * 214013 + 2531011;
67 for (
i = 0;
i < 256 ;
i++) {
70 for (j = 0; j < 5 ;j++) {
76 for (
i = 0;
i < 128 ;
i++) {
79 for (j = 0; j < 3 ;j++) {
90 unsigned random_seed = 0;
91 float delta = 1.0 / 16384.0;
92 for (
i = 0;
i < 128;
i++) {
93 random_seed = random_seed * 214013 + 2531011;
113 0,260,566,598,894,1166,1230,1294,1678,1950,2214,2278,2310,2570,2834,3124,3448,3838,
static VLC fft_stereo_exp_vlc
static const uint16_t qdm2_vlc_offs[]
static VLC_TYPE qdm2_table[3838][2]
static VLC vlc_tab_type30
static VLC vlc_tab_type34
static const uint16_t vlc_tab_fft_tone_offset_1_huffcodes[28]
static const uint8_t vlc_tab_run_huffcodes[6]
static uint8_t random_dequant_index[256][5]
static const uint8_t vlc_tab_fft_tone_offset_4_huffbits[38]
static const uint8_t vlc_tab_fft_tone_offset_3_huffbits[35]
#define init_vlc(vlc, nb_bits, nb_codes, bits, bits_wrap, bits_size, codes, codes_wrap, codes_size, flags)
static const uint8_t vlc_tab_type30_huffbits[9]
static const uint8_t vlc_tab_level_huffbits[24]
static VLC vlc_tab_tone_level_idx_hi1
#define SOFTCLIP_THRESHOLD
static uint16_t softclip_table[HARDCLIP_THRESHOLD - SOFTCLIP_THRESHOLD+1]
static const uint16_t vlc_tab_fft_tone_offset_3_huffcodes[35]
static float noise_table[4096+20]
static av_cold void init_noise_samples(void)
static const uint8_t vlc_tab_run_huffbits[6]
static av_cold void rnd_table_init(void)
static const uint16_t vlc_tab_fft_tone_offset_0_huffcodes[23]
static const uint16_t fft_level_exp_alt_huffcodes[28]
FFT TABLES.
#define HARDCLIP_THRESHOLD
static const uint16_t vlc_tab_tone_level_idx_mid_huffcodes[24]
static const uint16_t vlc_tab_tone_level_idx_hi1_huffcodes[20]
static const uint8_t vlc_tab_tone_level_idx_hi2_huffbits[24]
static const uint8_t fft_stereo_exp_huffbits[7]
static const uint16_t fft_level_exp_huffcodes[20]
static VLC fft_stereo_phase_vlc
static const uint16_t vlc_tab_diff_huffcodes[37]
static const uint8_t vlc_tab_fft_tone_offset_2_huffbits[32]
static const uint8_t vlc_tab_type34_huffbits[10]
#define INIT_VLC_USE_NEW_STATIC
static const uint8_t fft_stereo_phase_huffbits[9]
static const uint8_t fft_stereo_phase_huffcodes[9]
static const uint16_t vlc_tab_level_huffcodes[24]
VLC TABLES.
static const uint16_t vlc_tab_fft_tone_offset_4_huffcodes[38]
static const uint8_t fft_level_exp_huffbits[20]
static const uint8_t vlc_tab_diff_huffbits[37]
static const uint8_t vlc_tab_type30_huffcodes[9]
static uint8_t random_dequant_type24[128][3]
static VLC vlc_tab_tone_level_idx_mid
static const uint8_t vlc_tab_tone_level_idx_hi1_huffbits[20]
static VLC vlc_tab_tone_level_idx_hi2
#define i(width, name, range_min, range_max)
static const uint16_t vlc_tab_fft_tone_offset_2_huffcodes[32]
static av_cold void qdm2_init_vlc(void)
static VLC fft_level_exp_alt_vlc
static const uint8_t vlc_tab_fft_tone_offset_0_huffbits[23]
static VLC fft_level_exp_vlc
static float noise_samples[128]
static const uint8_t fft_stereo_exp_huffcodes[7]
static const uint8_t vlc_tab_tone_level_idx_mid_huffbits[24]
static const uint16_t vlc_tab_tone_level_idx_hi2_huffcodes[24]
static const uint8_t vlc_tab_fft_tone_offset_1_huffbits[28]
static const uint8_t fft_level_exp_alt_huffbits[28]
static VLC vlc_tab_fft_tone_offset[5]
static const uint8_t vlc_tab_type34_huffcodes[10]
VLC_TYPE(* table)[2]
code, bits
static av_cold void softclip_table_init(void)