FFmpeg
Macros | Functions | Variables
aacps_fixed_tablegen.h File Reference
#include <math.h>
#include <stdint.h>
#include "libavutil/common.h"
#include "libavutil/mathematics.h"
#include "libavutil/mem_internal.h"
#include "aac_defines.h"
#include "libavutil/softfloat.h"

Go to the source code of this file.

Macros

#define NR_ALLPASS_BANDS20   30
 
#define NR_ALLPASS_BANDS34   50
 
#define PS_AP_LINKS   3
 
#define TABLE_CONST
 

Functions

static void make_filters_from_proto (int(*filter)[8][2], const int *proto, int bands)
 
static void ps_tableinit (void)
 

Variables

static int pd_re_smooth [8 *8 *8]
 
static int pd_im_smooth [8 *8 *8]
 
static int HA [46][8][4]
 
static int HB [46][8][4]
 
static int f20_0_8 [8][8][2]
 
static int f34_0_12 [12][8][2]
 
static int f34_1_8 [8][8][2]
 
static int f34_2_4 [4][8][2]
 
static TABLE_CONST int Q_fract_allpass [2][50][3][2]
 
static int phi_fract [2][50][2]
 
static const int g0_Q8 []
 
static const int g0_Q12 []
 
static const int g1_Q8 []
 
static const int g2_Q4 []
 
static const int sintbl_4 [4] = { 0, 1073741824, 0, -1073741824 }
 
static const int costbl_4 [4] = { 1073741824, 0, -1073741824, 0 }
 
static const int sintbl_8 [8]
 
static const int costbl_8 [8]
 
static const int sintbl_12 [12]
 
static const int costbl_12 [12]
 

Macro Definition Documentation

◆ NR_ALLPASS_BANDS20

#define NR_ALLPASS_BANDS20   30

Definition at line 48 of file aacps_fixed_tablegen.h.

◆ NR_ALLPASS_BANDS34

#define NR_ALLPASS_BANDS34   50

Definition at line 49 of file aacps_fixed_tablegen.h.

◆ PS_AP_LINKS

#define PS_AP_LINKS   3

Definition at line 50 of file aacps_fixed_tablegen.h.

◆ TABLE_CONST

#define TABLE_CONST

Definition at line 51 of file aacps_fixed_tablegen.h.

Function Documentation

◆ make_filters_from_proto()

static void make_filters_from_proto ( int(*)  filter[8][2],
const int proto,
int  bands 
)
static

Definition at line 96 of file aacps_fixed_tablegen.h.

Referenced by ps_tableinit().

◆ ps_tableinit()

static void ps_tableinit ( void  )
static

Definition at line 140 of file aacps_fixed_tablegen.h.

Referenced by ff_ps_init(), and main().

Variable Documentation

◆ pd_re_smooth

int pd_re_smooth[8 *8 *8]
static

Definition at line 52 of file aacps_fixed_tablegen.h.

Referenced by main(), ps_tableinit(), and stereo_processing().

◆ pd_im_smooth

int pd_im_smooth[8 *8 *8]
static

Definition at line 53 of file aacps_fixed_tablegen.h.

Referenced by main(), ps_tableinit(), and stereo_processing().

◆ HA

int HA[46][8][4]
static

Definition at line 54 of file aacps_fixed_tablegen.h.

Referenced by main(), ps_tableinit(), and stereo_processing().

◆ HB

int HB[46][8][4]
static

Definition at line 55 of file aacps_fixed_tablegen.h.

Referenced by main(), ps_tableinit(), and stereo_processing().

◆ f20_0_8

int f20_0_8[8][8][2]
static

Definition at line 56 of file aacps_fixed_tablegen.h.

Referenced by hybrid_analysis(), main(), and ps_tableinit().

◆ f34_0_12

int f34_0_12[12][8][2]
static

Definition at line 57 of file aacps_fixed_tablegen.h.

Referenced by hybrid_analysis(), main(), and ps_tableinit().

◆ f34_1_8

int f34_1_8[8][8][2]
static

Definition at line 58 of file aacps_fixed_tablegen.h.

Referenced by hybrid_analysis(), main(), and ps_tableinit().

◆ f34_2_4

int f34_2_4[4][8][2]
static

Definition at line 59 of file aacps_fixed_tablegen.h.

Referenced by hybrid_analysis(), main(), and ps_tableinit().

◆ Q_fract_allpass

TABLE_CONST int Q_fract_allpass[2][50][3][2]
static

Definition at line 60 of file aacps_fixed_tablegen.h.

Referenced by decorrelation(), main(), and ps_tableinit().

◆ phi_fract

int phi_fract[2][50][2]
static

Definition at line 61 of file aacps_fixed_tablegen.h.

Referenced by decorrelation(), main(), ps_decorrelate_c(), and ps_tableinit().

◆ g0_Q8

const int g0_Q8[]
static
Initial value:
= {
Q31(0.00746082949812f), Q31(0.02270420949825f), Q31(0.04546865930473f), Q31(0.07266113929591f),
Q31(0.09885108575264f), Q31(0.11793710567217f), Q31(0.125f)
}

Definition at line 63 of file aacps_fixed_tablegen.h.

Referenced by ps_tableinit().

◆ g0_Q12

const int g0_Q12[]
static
Initial value:
= {
Q31(0.04081179924692f), Q31(0.03812810994926f), Q31(0.05144908135699f), Q31(0.06399831151592f),
Q31(0.07428313801106f), Q31(0.08100347892914f), Q31(0.08333333333333f)
}

Definition at line 68 of file aacps_fixed_tablegen.h.

Referenced by ps_tableinit().

◆ g1_Q8

const int g1_Q8[]
static
Initial value:
= {
Q31(0.01565675600122f), Q31(0.03752716391991f), Q31(0.05417891378782f), Q31(0.08417044116767f),
Q31(0.10307344158036f), Q31(0.12222452249753f), Q31(0.125f)
}

Definition at line 73 of file aacps_fixed_tablegen.h.

Referenced by ps_tableinit().

◆ g2_Q4

const int g2_Q4[]
static
Initial value:
= {
Q31(-0.05908211155639f), Q31(-0.04871498374946f), Q31(0.0f), Q31(0.07778723915851f),
Q31( 0.16486303567403f), Q31( 0.23279856662996f), Q31(0.25f)
}

Definition at line 78 of file aacps_fixed_tablegen.h.

Referenced by ps_tableinit().

◆ sintbl_4

const int sintbl_4[4] = { 0, 1073741824, 0, -1073741824 }
static

Definition at line 83 of file aacps_fixed_tablegen.h.

Referenced by make_filters_from_proto().

◆ costbl_4

const int costbl_4[4] = { 1073741824, 0, -1073741824, 0 }
static

Definition at line 84 of file aacps_fixed_tablegen.h.

Referenced by make_filters_from_proto().

◆ sintbl_8

const int sintbl_8[8]
static
Initial value:
= { 0, 759250125, 1073741824, 759250125,
0, -759250125, -1073741824, -759250125 }

Definition at line 85 of file aacps_fixed_tablegen.h.

Referenced by make_filters_from_proto().

◆ costbl_8

const int costbl_8[8]
static
Initial value:
= { 1073741824, 759250125, 0, -759250125,
-1073741824, -759250125, 0, 759250125 }

Definition at line 87 of file aacps_fixed_tablegen.h.

Referenced by make_filters_from_proto().

◆ sintbl_12

const int sintbl_12[12]
static
Initial value:
= { 0, 536870912, 929887697, 1073741824,
929887697, 536870912, 0, -536870912,
-929887697, -1073741824, -929887697, -536870912 }

Definition at line 89 of file aacps_fixed_tablegen.h.

Referenced by make_filters_from_proto().

◆ costbl_12

const int costbl_12[12]
static
Initial value:
= { 1073741824, 929887697, 536870912, 0,
-536870912, -929887697, -1073741824, -929887697,
-536870912, 0, 536870912, 929887697 }

Definition at line 92 of file aacps_fixed_tablegen.h.

Referenced by make_filters_from_proto().

f
#define f(width, name)
Definition: cbs_vp9.c:255
Q31
#define Q31(x)
Definition: aac_defines.h:98