Go to the documentation of this file.
73 #define DOWNMIX_FUNC_OPT(ch, opt) \
74 void ff_ac3_downmix_ ## ch ## _to_1_ ## opt(float **samples, \
75 float **matrix, int len); \
76 void ff_ac3_downmix_ ## ch ## _to_2_ ## opt(float **samples, \
77 float **matrix, int len);
79 #define DOWNMIX_FUNCS(opt) \
80 DOWNMIX_FUNC_OPT(3, opt) \
81 DOWNMIX_FUNC_OPT(4, opt) \
82 DOWNMIX_FUNC_OPT(5, opt) \
83 DOWNMIX_FUNC_OPT(6, opt)
93 #define SET_DOWNMIX(ch, suf, SUF) \
94 if (ch == c->in_channels) { \
95 if (EXTERNAL_ ## SUF (cpu_flags)) { \
96 if (c->out_channels == 1) \
97 c->downmix = ff_ac3_downmix_ ## ch ## _to_1_ ## suf; \
99 c->downmix = ff_ac3_downmix_ ## ch ## _to_2_ ## suf; \
103 #define SET_DOWNMIX_ALL(suf, SUF) \
104 SET_DOWNMIX(3, suf, SUF) \
105 SET_DOWNMIX(4, suf, SUF) \
106 SET_DOWNMIX(5, suf, SUF) \
107 SET_DOWNMIX(6, suf, SUF)
int ff_ac3_compute_mantissa_size_sse2(uint16_t mant_cnt[6][16])
#define EXTERNAL_AMD3DNOW(flags)
int av_get_cpu_flags(void)
Return the flags which specify extensions supported by the CPU.
void ff_ac3_exponent_min_sse2(uint8_t *exp, int num_reuse_blocks, int nb_coefs)
static atomic_int cpu_flags
void ff_ac3_extract_exponents_sse2(uint8_t *exp, int32_t *coef, int nb_coefs)
void ff_ac3_exponent_min_mmxext(uint8_t *exp, int num_reuse_blocks, int nb_coefs)
#define EXTERNAL_SSE(flags)
static int sse(MpegEncContext *s, uint8_t *src1, uint8_t *src2, int w, int h, int stride)
void ff_ac3_extract_exponents_ssse3(uint8_t *exp, int32_t *coef, int nb_coefs)
void ff_ac3dsp_set_downmix_x86(AC3DSPContext *c)
void ff_float_to_fixed24_sse(int32_t *dst, const float *src, unsigned int 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 DOWNMIX_FUNCS(opt)
#define AV_CPU_FLAG_AVXSLOW
AVX supported, but slow when using YMM registers (e.g. Bulldozer)
void ff_float_to_fixed24_sse2(int32_t *dst, const float *src, unsigned int len)
#define EXTERNAL_SSE2(flags)
#define SET_DOWNMIX_ALL(suf, SUF)
#define AV_CPU_FLAG_ATOM
Atom processor, some SSSE3 instructions are slower.
av_cold void ff_ac3dsp_init_x86(AC3DSPContext *c, int bit_exact)
#define EXTERNAL_SSSE3(flags)
void ff_ac3_exponent_min_mmx(uint8_t *exp, int num_reuse_blocks, int nb_coefs)
#define EXTERNAL_MMX(flags)
#define EXTERNAL_MMXEXT(flags)
void ff_float_to_fixed24_3dnow(int32_t *dst, const float *src, unsigned int len)