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)
Common code between the AC-3 encoder and decoder.
#define DOWNMIX_FUNCS(opt)
void ff_ac3_exponent_min_sse2(uint8_t *exp, int num_reuse_blocks, int nb_coefs)
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_sse2(int32_t *dst, const float *src, unsigned int len)
void ff_float_to_fixed24_3dnow(int32_t *dst, const float *src, unsigned int len)
av_cold void ff_ac3dsp_init_x86(AC3DSPContext *c, int bit_exact)
void ff_float_to_fixed24_sse(int32_t *dst, const float *src, unsigned int len)
int ff_ac3_compute_mantissa_size_sse2(uint16_t mant_cnt[6][16])
void ff_ac3_exponent_min_mmx(uint8_t *exp, int num_reuse_blocks, int nb_coefs)
void ff_ac3_extract_exponents_sse2(uint8_t *exp, int32_t *coef, int nb_coefs)
#define SET_DOWNMIX_ALL(suf, SUF)
void ff_ac3_exponent_min_mmxext(uint8_t *exp, int num_reuse_blocks, int nb_coefs)
Macro definitions for various function/variable attributes.
static atomic_int cpu_flags
int av_get_cpu_flags(void)
Return the flags which specify extensions supported by the CPU.
#define AV_CPU_FLAG_ATOM
Atom processor, some SSSE3 instructions are slower.
#define AV_CPU_FLAG_AVXSLOW
AVX supported, but slow when using YMM registers (e.g. Bulldozer)
Memory handling functions.
static int sse(MpegEncContext *s, uint8_t *src1, uint8_t *src2, int w, int h, int stride)
typedef void(RENAME(mix_any_func_type))
#define EXTERNAL_SSE(flags)
#define EXTERNAL_MMXEXT(flags)
#define EXTERNAL_SSSE3(flags)
#define EXTERNAL_MMX(flags)
#define EXTERNAL_AMD3DNOW(flags)
#define EXTERNAL_SSE2(flags)