FFmpeg
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
qdm2_tablegen.h File Reference
#include <stdint.h>
#include <math.h>
#include "libavutil/attributes.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)
 

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]
 

Macro Definition Documentation

#define SOFTCLIP_THRESHOLD   27600

Definition at line 30 of file qdm2_tablegen.h.

Referenced by qdm2_decode(), and softclip_table_init().

#define HARDCLIP_THRESHOLD   35716

Definition at line 31 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 45 of file qdm2_tablegen.h.

Referenced by main(), and qdm2_init().

static av_cold void rnd_table_init ( void  )
static

Definition at line 55 of file qdm2_tablegen.h.

Referenced by main(), and qdm2_init().

static av_cold void init_noise_samples ( void  )
static

Definition at line 86 of file qdm2_tablegen.h.

Referenced by main(), and qdm2_init().

Variable Documentation

uint16_t softclip_table[HARDCLIP_THRESHOLD-SOFTCLIP_THRESHOLD+1]
static

Definition at line 39 of file qdm2_tablegen.h.

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

float noise_table[4096+20]
static

Definition at line 40 of file qdm2_tablegen.h.

Referenced by rnd_table_init().

uint8_t random_dequant_index[256][5]
static

Definition at line 41 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 42 of file qdm2_tablegen.h.

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

float noise_samples[128]
static

Definition at line 43 of file qdm2_tablegen.h.

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