Go to the documentation of this file.
123 #define DOWNMIX_FUNC_OPT(ch, opt) \
124 void ff_ac3_downmix_ ## ch ## _to_1_ ## opt(float **samples, \
125 float **matrix, int len); \
126 void ff_ac3_downmix_ ## ch ## _to_2_ ## opt(float **samples, \
127 float **matrix, int len);
129 #define DOWNMIX_FUNCS(opt) \
130 DOWNMIX_FUNC_OPT(3, opt) \
131 DOWNMIX_FUNC_OPT(4, opt) \
132 DOWNMIX_FUNC_OPT(5, opt) \
133 DOWNMIX_FUNC_OPT(6, opt)
143 #define SET_DOWNMIX(ch, suf, SUF) \
144 if (ch == c->in_channels) { \
145 if (EXTERNAL_ ## SUF (cpu_flags)) { \
146 if (c->out_channels == 1) \
147 c->downmix = ff_ac3_downmix_ ## ch ## _to_1_ ## suf; \
149 c->downmix = ff_ac3_downmix_ ## ch ## _to_2_ ## suf; \
153 #define SET_DOWNMIX_ALL(suf, SUF) \
154 SET_DOWNMIX(3, suf, SUF) \
155 SET_DOWNMIX(4, suf, SUF) \
156 SET_DOWNMIX(5, suf, SUF) \
157 SET_DOWNMIX(6, suf, SUF)
void ff_apply_window_int16_ssse3(int16_t *output, const int16_t *input, const int16_t *window, unsigned int len)
void ff_ac3_rshift_int32_mmx(int32_t *src, unsigned int len, unsigned int shift)
void ff_ac3_lshift_int16_sse2(int16_t *src, unsigned int len, unsigned int shift)
int ff_ac3_compute_mantissa_size_sse2(uint16_t mant_cnt[6][16])
#define EXTERNAL_SSE2_FAST(flags)
filter_frame For filters that do not use the this method is called when a frame is pushed to the filter s input It can be called at any time except in a reentrant way If the input frame is enough to produce output
int ff_ac3_max_msb_abs_int16_mmxext(const int16_t *src, int len)
void ff_apply_window_int16_sse2(int16_t *output, const int16_t *input, const int16_t *window, unsigned int len)
#define EXTERNAL_AMD3DNOW(flags)
void ff_apply_window_int16_round_mmxext(int16_t *output, const int16_t *input, const int16_t *window, unsigned int len)
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)
static SDL_Window * window
int ff_ac3_max_msb_abs_int16_sse2(const int16_t *src, int len)
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_apply_window_int16_mmxext(int16_t *output, const int16_t *input, const int16_t *window, unsigned int len)
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
int ff_ac3_max_msb_abs_int16_mmx(const int16_t *src, int len)
#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)
and forward the test the status of outputs and forward it to the corresponding return FFERROR_NOT_READY If the filters stores internally one or a few frame for some input
void ff_ac3_rshift_int32_sse2(int32_t *src, unsigned int len, unsigned int shift)
#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)
void ff_ac3_lshift_int16_mmx(int16_t *src, unsigned int len, unsigned int shift)
static int shift(int a, int b)
void ff_apply_window_int16_ssse3_atom(int16_t *output, const int16_t *input, const int16_t *window, unsigned int len)
void ff_apply_window_int16_round_sse2(int16_t *output, const int16_t *input, const int16_t *window, unsigned int len)
#define EXTERNAL_SSSE3(flags)
void ff_ac3_exponent_min_mmx(uint8_t *exp, int num_reuse_blocks, int nb_coefs)
int ff_ac3_max_msb_abs_int16_ssse3(const int16_t *src, int len)
#define EXTERNAL_MMX(flags)
#define EXTERNAL_MMXEXT(flags)
void ff_float_to_fixed24_3dnow(int32_t *dst, const float *src, unsigned int len)