Go to the documentation of this file.
36 #define DECORRELATE_FUNCS(fmt, opt) \
37 void ff_flac_decorrelate_ls_##fmt##_##opt(uint8_t **out, int32_t **in, int channels, \
38 int len, int shift); \
39 void ff_flac_decorrelate_rs_##fmt##_##opt(uint8_t **out, int32_t **in, int channels, \
40 int len, int shift); \
41 void ff_flac_decorrelate_ms_##fmt##_##opt(uint8_t **out, int32_t **in, int channels, \
44 #define DECORRELATE_IFUNCS(fmt, opt) \
45 void ff_flac_decorrelate_indep2_##fmt##_##opt(uint8_t **out, int32_t **in, int channels, \
46 int len, int shift); \
47 void ff_flac_decorrelate_indep4_##fmt##_##opt(uint8_t **out, int32_t **in, int channels, \
48 int len, int shift); \
49 void ff_flac_decorrelate_indep6_##fmt##_##opt(uint8_t **out, int32_t **in, int channels, \
50 int len, int shift); \
51 void ff_flac_decorrelate_indep8_##fmt##_##opt(uint8_t **out, int32_t **in, int channels, \
71 c->decorrelate[1] = ff_flac_decorrelate_ls_16_sse2;
72 c->decorrelate[2] = ff_flac_decorrelate_rs_16_sse2;
73 c->decorrelate[3] = ff_flac_decorrelate_ms_16_sse2;
75 c->decorrelate[1] = ff_flac_decorrelate_ls_32_sse2;
76 c->decorrelate[2] = ff_flac_decorrelate_rs_32_sse2;
77 c->decorrelate[3] = ff_flac_decorrelate_ms_32_sse2;
83 c->decorrelate[0] = ff_flac_decorrelate_indep2_16_ssse3;
85 c->decorrelate[0] = ff_flac_decorrelate_indep4_16_ssse3;
87 c->decorrelate[0] = ff_flac_decorrelate_indep6_16_ssse3;
88 else if (ARCH_X86_64 &&
channels == 8)
89 c->decorrelate[0] = ff_flac_decorrelate_indep8_16_ssse3;
92 c->decorrelate[0] = ff_flac_decorrelate_indep2_32_ssse3;
94 c->decorrelate[0] = ff_flac_decorrelate_indep4_32_ssse3;
96 c->decorrelate[0] = ff_flac_decorrelate_indep6_32_ssse3;
97 else if (ARCH_X86_64 &&
channels == 8)
98 c->decorrelate[0] = ff_flac_decorrelate_indep8_32_ssse3;
109 c->decorrelate[0] = ff_flac_decorrelate_indep8_16_avx;
112 c->decorrelate[0] = ff_flac_decorrelate_indep4_32_avx;
114 c->decorrelate[0] = ff_flac_decorrelate_indep6_32_avx;
115 else if (ARCH_X86_64 &&
channels == 8)
116 c->decorrelate[0] = ff_flac_decorrelate_indep8_32_avx;
int av_get_cpu_flags(void)
Return the flags which specify extensions supported by the CPU.
static atomic_int cpu_flags
void ff_flac_wasted_32_sse2(int32_t *decoded, int wasted, int len)
void ff_flac_lpc_16_sse4(int32_t *samples, const int coeffs[32], int order, int qlevel, int len)
void ff_flac_wasted_33_sse4(int64_t *decoded, const int32_t *residual, int wasted, int len)
#define EXTERNAL_XOP(flags)
#define DECORRELATE_FUNCS(fmt, opt)
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 DECORRELATE_IFUNCS(fmt, opt)
void ff_flac_lpc_32_sse4(int32_t *samples, const int coeffs[32], int order, int qlevel, int len)
#define EXTERNAL_SSE2(flags)
AVSampleFormat
Audio sample formats.
@ AV_SAMPLE_FMT_S16
signed 16 bits
#define EXTERNAL_AVX(flags)
av_cold void ff_flacdsp_init_x86(FLACDSPContext *c, enum AVSampleFormat fmt, int channels)
#define EXTERNAL_SSE4(flags)
Filter the word “frame” indicates either a video frame or a group of audio samples
void ff_flac_lpc_32_xop(int32_t *samples, const int coeffs[32], int order, int qlevel, int len)
#define EXTERNAL_SSSE3(flags)
@ AV_SAMPLE_FMT_S32
signed 32 bits