Go to the documentation of this file.
57 #define DOWNMIX_FUNC_OPT(ch, opt) \
58 void ff_ac3_downmix_ ## ch ## _to_1_ ## opt(float **samples, \
59 float **matrix, int len); \
60 void ff_ac3_downmix_ ## ch ## _to_2_ ## opt(float **samples, \
61 float **matrix, int len);
63 #define DOWNMIX_FUNCS(opt) \
64 DOWNMIX_FUNC_OPT(3, opt) \
65 DOWNMIX_FUNC_OPT(4, opt) \
66 DOWNMIX_FUNC_OPT(5, opt) \
67 DOWNMIX_FUNC_OPT(6, opt)
77 #define SET_DOWNMIX(ch, suf, SUF) \
78 if (ch == c->in_channels) { \
79 if (EXTERNAL_ ## SUF (cpu_flags)) { \
80 if (c->out_channels == 1) \
81 c->downmix = ff_ac3_downmix_ ## ch ## _to_1_ ## suf; \
83 c->downmix = ff_ac3_downmix_ ## ch ## _to_2_ ## suf; \
87 #define SET_DOWNMIX_ALL(suf, SUF) \
88 SET_DOWNMIX(3, suf, SUF) \
89 SET_DOWNMIX(4, suf, SUF) \
90 SET_DOWNMIX(5, suf, SUF) \
91 SET_DOWNMIX(6, suf, SUF)
static int nb_coefs(int length, int level, uint64_t sn)
void ff_ac3_extract_exponents_ssse3(uint8_t *exp, int32_t *coef, int nb_coefs)
void ff_ac3_extract_exponents_sse2(uint8_t *exp, int32_t *coef, int nb_coefs)
int av_get_cpu_flags(void)
Return the flags which specify extensions supported by the CPU.
av_cold void ff_ac3dsp_init_x86(AC3DSPContext *c)
static atomic_int cpu_flags
void ff_float_to_fixed24_sse2(int32_t *dst, const float *src, size_t len)
#define EXTERNAL_AVX_FAST(flags)
#define SET_DOWNMIX_ALL(suf, SUF)
void ff_float_to_fixed24_avx(int32_t *dst, const float *src, size_t len)
Undefined Behavior In the C some operations are like signed integer dereferencing freed accessing outside allocated Undefined Behavior must not occur in a C it is not safe even if the output of undefined operations is unused The unsafety may seem nit picking but Optimizing compilers have in fact optimized code on the assumption that no undefined Behavior occurs Optimizing code based on wrong assumptions can and has in some cases lead to effects beyond the output of computations The signed integer overflow problem in speed critical code Code which is highly optimized and works with signed integers sometimes has the problem that often the output of the computation does not c
#define AV_CPU_FLAG_AVXSLOW
AVX supported, but slow when using YMM registers (e.g. Bulldozer)
uint8_t ptrdiff_t const uint8_t ptrdiff_t int intptr_t intptr_t int int16_t * dst
#define EXTERNAL_SSE2(flags)
#define AV_CPU_FLAG_ATOM
Atom processor, some SSSE3 instructions are slower.
int ff_ac3_compute_mantissa_size_sse2(uint16_t mant_cnt[6][16])
void ff_ac3_exponent_min_sse2(uint8_t *exp, int num_reuse_blocks, int nb_coefs)
#define DOWNMIX_FUNCS(opt)
static int sse(MpegEncContext *s, const uint8_t *src1, const uint8_t *src2, int w, int h, int stride)
#define EXTERNAL_SSSE3(flags)
void ff_ac3dsp_set_downmix_x86(AC3DSPContext *c)