32 #define DECORRELATE_FUNCS(fmt, opt) \
33 void ff_flac_decorrelate_ls_##fmt##_##opt(uint8_t **out, int32_t **in, int channels, \
34 int len, int shift); \
35 void ff_flac_decorrelate_rs_##fmt##_##opt(uint8_t **out, int32_t **in, int channels, \
36 int len, int shift); \
37 void ff_flac_decorrelate_ms_##fmt##_##opt(uint8_t **out, int32_t **in, int channels, \
38 int len, int shift); \
39 void ff_flac_decorrelate_indep2_##fmt##_##opt(uint8_t **out, int32_t **in, int channels, \
40 int len, int shift); \
41 void ff_flac_decorrelate_indep4_##fmt##_##opt(uint8_t **out, int32_t **in, int channels, \
42 int len, int shift); \
43 void ff_flac_decorrelate_indep6_##fmt##_##opt(uint8_t **out, int32_t **in, int channels, \
44 int len, int shift); \
45 void ff_flac_decorrelate_indep8_##fmt##_##opt(uint8_t **out, int32_t **in, int channels, \
59 #if CONFIG_FLAC_DECODER
63 c->decorrelate[0] = ff_flac_decorrelate_indep2_16_sse2;
65 c->decorrelate[0] = ff_flac_decorrelate_indep4_16_sse2;
67 c->decorrelate[0] = ff_flac_decorrelate_indep6_16_sse2;
68 else if (ARCH_X86_64 &&
channels == 8)
69 c->decorrelate[0] = ff_flac_decorrelate_indep8_16_sse2;
70 c->decorrelate[1] = ff_flac_decorrelate_ls_16_sse2;
71 c->decorrelate[2] = ff_flac_decorrelate_rs_16_sse2;
72 c->decorrelate[3] = ff_flac_decorrelate_ms_16_sse2;
75 c->decorrelate[0] = ff_flac_decorrelate_indep2_32_sse2;
77 c->decorrelate[0] = ff_flac_decorrelate_indep4_32_sse2;
79 c->decorrelate[0] = ff_flac_decorrelate_indep6_32_sse2;
80 else if (ARCH_X86_64 &&
channels == 8)
81 c->decorrelate[0] = ff_flac_decorrelate_indep8_32_sse2;
82 c->decorrelate[1] = ff_flac_decorrelate_ls_32_sse2;
83 c->decorrelate[2] = ff_flac_decorrelate_rs_32_sse2;
84 c->decorrelate[3] = ff_flac_decorrelate_ms_32_sse2;
93 c->decorrelate[0] = ff_flac_decorrelate_indep8_16_avx;
96 c->decorrelate[0] = ff_flac_decorrelate_indep4_32_avx;
98 c->decorrelate[0] = ff_flac_decorrelate_indep6_32_avx;
99 else if (ARCH_X86_64 &&
channels == 8)
100 c->decorrelate[0] = ff_flac_decorrelate_indep8_32_avx;
108 #if CONFIG_FLAC_ENCODER