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)
71 #define AC3_DYNAMIC_RANGE(x) (x)
72 #define AC3_SPX_BLEND(x) (x)
73 #define AC3_DYNAMIC_RANGE1 0
76 #define SHORTFLOAT int16_t
80 #define FIXR(x) ((float)(x))
81 #define FIXR12(x) ((float)(x))
82 #define FIXR15(x) ((float)(x))
83 #define ROUND15(x) (x)
85 #define AC3_RENAME(x) x
86 #define AC3_NORM(norm) (1.0f/(norm))
87 #define AC3_MUL(a,b) ((a) * (b))
88 #define AC3_RANGE(x) (dynamic_range_tab[(x)])
89 #define AC3_DYNAMIC_RANGE(x) (powf(x, s->drc_scale))
90 #define AC3_SPX_BLEND(x) (x)* (1.0f/32)
91 #define AC3_DYNAMIC_RANGE1 1.0f
93 #define INTFLOAT float
94 #define SHORTFLOAT float
98 #define AC3_LEVEL(x) ROUND15((x) * FIXR15(0.7071067811865476))
101 #define LEVEL_PLUS_3DB 1.4142135623730950
102 #define LEVEL_PLUS_1POINT5DB 1.1892071150027209
103 #define LEVEL_MINUS_1POINT5DB 0.8408964152537145
104 #define LEVEL_MINUS_3DB 0.7071067811865476
105 #define LEVEL_MINUS_4POINT5DB 0.5946035575013605
106 #define LEVEL_MINUS_6DB 0.5000000000000000
107 #define LEVEL_MINUS_9DB 0.3535533905932738
108 #define LEVEL_ZERO 0.0000000000000000
109 #define LEVEL_ONE 1.0000000000000000
191 #if AV_HAVE_INCOMPATIBLE_LIBAV_ABI
206 #if !AV_HAVE_INCOMPATIBLE_LIBAV_ABI
260 int start,
int end,
int fast_gain,
int is_lfe,
261 int dba_mode,
int dba_nsegs,
uint8_t *dba_offsets,