Go to the documentation of this file.
53 #define DOWNMIX_FUNC_OPT(ch, opt) \
54 void ff_ac3_downmix_ ## ch ## _to_1_ ## opt(float **samples, \
55 float **matrix, int len); \
56 void ff_ac3_downmix_ ## ch ## _to_2_ ## opt(float **samples, \
57 float **matrix, int len);
59 #define DOWNMIX_FUNCS(opt) \
60 DOWNMIX_FUNC_OPT(3, opt) \
61 DOWNMIX_FUNC_OPT(4, opt) \
62 DOWNMIX_FUNC_OPT(5, opt) \
63 DOWNMIX_FUNC_OPT(6, opt)
73 #define SET_DOWNMIX(ch, suf, SUF) \
74 if (ch == c->in_channels) { \
75 if (EXTERNAL_ ## SUF (cpu_flags)) { \
76 if (c->out_channels == 1) \
77 c->downmix = ff_ac3_downmix_ ## ch ## _to_1_ ## suf; \
79 c->downmix = ff_ac3_downmix_ ## ch ## _to_2_ ## suf; \
83 #define SET_DOWNMIX_ALL(suf, SUF) \
84 SET_DOWNMIX(3, suf, SUF) \
85 SET_DOWNMIX(4, suf, SUF) \
86 SET_DOWNMIX(5, suf, SUF) \
87 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
#define SET_DOWNMIX_ALL(suf, SUF)
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)
#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_float_to_fixed24_sse2(int32_t *dst, const float *src, unsigned int len)
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)