Go to the documentation of this file.
30 #define AC3_MAX_CODED_FRAME_SIZE 3840
31 #define AC3_MAX_CHANNELS 7
34 #define AC3_MAX_COEFS 256
35 #define AC3_BLOCK_SIZE 256
36 #define AC3_MAX_BLOCKS 6
37 #define AC3_FRAME_SIZE (AC3_MAX_BLOCKS * 256)
38 #define AC3_WINDOW_SIZE (AC3_BLOCK_SIZE * 2)
39 #define AC3_CRITICAL_BANDS 50
40 #define AC3_MAX_CPL_BANDS 18
62 #define FIXR(a) ((int)((a) * 0 + 0.5))
63 #define FIXR12(a) ((int)((a) * 4096 + 0.5))
64 #define FIXR15(a) ((int)((a) * 32768 + 0.5))
65 #define ROUND15(x) ((x) + 16384) >> 15
67 #define AC3_RENAME(x) x ## _fixed
68 #define AC3_NORM(norm) (1<<24)/(norm)
69 #define AC3_MUL(a,b) ((((int64_t) (a)) * (b))>>12)
70 #define AC3_RANGE(x) ((x)|(((x)&128)<<1))
71 #define AC3_HEAVY_RANGE(x) ((x)<<1)
72 #define AC3_DYNAMIC_RANGE(x) (x)
73 #define AC3_SPX_BLEND(x) (x)
74 #define AC3_DYNAMIC_RANGE1 0
77 #define SHORTFLOAT int16_t
81 #define FIXR(x) ((float)(x))
82 #define FIXR12(x) ((float)(x))
83 #define FIXR15(x) ((float)(x))
84 #define ROUND15(x) (x)
86 #define AC3_RENAME(x) x
87 #define AC3_NORM(norm) (1.0f/(norm))
88 #define AC3_MUL(a,b) ((a) * (b))
89 #define AC3_RANGE(x) (dynamic_range_tab[(x)])
90 #define AC3_HEAVY_RANGE(x) (heavy_dynamic_range_tab[(x)])
91 #define AC3_DYNAMIC_RANGE(x) (powf(x, s->drc_scale))
92 #define AC3_SPX_BLEND(x) (x)* (1.0f/32)
93 #define AC3_DYNAMIC_RANGE1 1.0f
95 #define INTFLOAT float
96 #define SHORTFLOAT float
100 #define AC3_LEVEL(x) ROUND15((x) * FIXR15(0.7071067811865476))
103 #define LEVEL_PLUS_3DB 1.4142135623730950
104 #define LEVEL_PLUS_1POINT5DB 1.1892071150027209
105 #define LEVEL_MINUS_1POINT5DB 0.8408964152537145
106 #define LEVEL_MINUS_3DB 0.7071067811865476
107 #define LEVEL_MINUS_4POINT5DB 0.5946035575013605
108 #define LEVEL_MINUS_6DB 0.5000000000000000
109 #define LEVEL_MINUS_9DB 0.3535533905932738
110 #define LEVEL_ZERO 0.0000000000000000
111 #define LEVEL_ONE 1.0000000000000000
193 #if AV_HAVE_INCOMPATIBLE_LIBAV_ABI
208 #if !AV_HAVE_INCOMPATIBLE_LIBAV_ABI
262 int start,
int end,
int fast_gain,
int is_lfe,
263 int dba_mode,
int dba_nsegs,
uint8_t *dba_offsets,