25 #include "config_components.h"
34 #define DECORRELATE_FUNCS(fmt, opt) \
35 void ff_flac_decorrelate_ls_##fmt##_##opt(uint8_t **out, int32_t **in, int channels, \
36 int len, int shift); \
37 void ff_flac_decorrelate_rs_##fmt##_##opt(uint8_t **out, int32_t **in, int channels, \
38 int len, int shift); \
39 void ff_flac_decorrelate_ms_##fmt##_##opt(uint8_t **out, int32_t **in, int channels, \
40 int len, int shift); \
41 void ff_flac_decorrelate_indep2_##fmt##_##opt(uint8_t **out, int32_t **in, int channels, \
42 int len, int shift); \
43 void ff_flac_decorrelate_indep4_##fmt##_##opt(uint8_t **out, int32_t **in, int channels, \
44 int len, int shift); \
45 void ff_flac_decorrelate_indep6_##fmt##_##opt(uint8_t **out, int32_t **in, int channels, \
46 int len, int shift); \
47 void ff_flac_decorrelate_indep8_##fmt##_##opt(uint8_t **out, int32_t **in, int channels, \
61 #if CONFIG_FLAC_DECODER
65 c->decorrelate[0] = ff_flac_decorrelate_indep2_16_sse2;
67 c->decorrelate[0] = ff_flac_decorrelate_indep4_16_sse2;
69 c->decorrelate[0] = ff_flac_decorrelate_indep6_16_sse2;
70 else if (ARCH_X86_64 &&
channels == 8)
71 c->decorrelate[0] = ff_flac_decorrelate_indep8_16_sse2;
72 c->decorrelate[1] = ff_flac_decorrelate_ls_16_sse2;
73 c->decorrelate[2] = ff_flac_decorrelate_rs_16_sse2;
74 c->decorrelate[3] = ff_flac_decorrelate_ms_16_sse2;
77 c->decorrelate[0] = ff_flac_decorrelate_indep2_32_sse2;
79 c->decorrelate[0] = ff_flac_decorrelate_indep4_32_sse2;
81 c->decorrelate[0] = ff_flac_decorrelate_indep6_32_sse2;
82 else if (ARCH_X86_64 &&
channels == 8)
83 c->decorrelate[0] = ff_flac_decorrelate_indep8_32_sse2;
84 c->decorrelate[1] = ff_flac_decorrelate_ls_32_sse2;
85 c->decorrelate[2] = ff_flac_decorrelate_rs_32_sse2;
86 c->decorrelate[3] = ff_flac_decorrelate_ms_32_sse2;
95 c->decorrelate[0] = ff_flac_decorrelate_indep8_16_avx;
98 c->decorrelate[0] = ff_flac_decorrelate_indep4_32_avx;
100 c->decorrelate[0] = ff_flac_decorrelate_indep6_32_avx;
101 else if (ARCH_X86_64 &&
channels == 8)
102 c->decorrelate[0] = ff_flac_decorrelate_indep8_32_avx;
110 #if CONFIG_FLAC_ENCODER