26 #define PROTO(pre, in, out, cap) void ff ## pre ## in## _to_ ##out## _a_ ##cap(uint8_t **dst, const uint8_t **src, int len);
27 #define PROTO2(pre, out, cap) PROTO(pre, int16, out, cap) PROTO(pre, int32, out, cap) PROTO(pre, float, out, cap)
28 #define PROTO3(pre, cap) PROTO2(pre, int16, cap) PROTO2(pre, int32, cap) PROTO2(pre, float, cap)
29 #define PROTO4(pre) PROTO3(pre, sse) PROTO3(pre, sse2) PROTO3(pre, ssse3) PROTO3(pre, sse4) PROTO3(pre, avx) PROTO3(pre, avx2)
47 #define MULTI_CAPS_FUNC(flag, cap) \
48 if (EXTERNAL_##flag(mm_flags)) {\
49 if( out_fmt == AV_SAMPLE_FMT_S32 && in_fmt == AV_SAMPLE_FMT_S16 || out_fmt == AV_SAMPLE_FMT_S32P && in_fmt == AV_SAMPLE_FMT_S16P)\
50 ac->simd_f = ff_int16_to_int32_a_ ## cap;\
51 if( out_fmt == AV_SAMPLE_FMT_S16 && in_fmt == AV_SAMPLE_FMT_S32 || out_fmt == AV_SAMPLE_FMT_S16P && in_fmt == AV_SAMPLE_FMT_S32P)\
52 ac->simd_f = ff_int32_to_int16_a_ ## cap;\
60 ac->simd_f = ff_pack_6ch_float_to_float_a_sse;
63 ac->simd_f = ff_unpack_6ch_float_to_float_a_sse;
68 ac->simd_f = ff_int32_to_float_a_sse2;
70 ac->simd_f = ff_int16_to_float_a_sse2;
72 ac->simd_f = ff_float_to_int32_a_sse2;
74 ac->simd_f = ff_float_to_int16_a_sse2;
78 ac->simd_f = ff_pack_2ch_int32_to_int32_a_sse2;
80 ac->simd_f = ff_pack_2ch_int16_to_int16_a_sse2;
82 ac->simd_f = ff_pack_2ch_int16_to_int32_a_sse2;
84 ac->simd_f = ff_pack_2ch_int32_to_int16_a_sse2;
87 ac->simd_f = ff_unpack_2ch_int32_to_int32_a_sse2;
89 ac->simd_f = ff_unpack_2ch_int16_to_int16_a_sse2;
91 ac->simd_f = ff_unpack_2ch_int16_to_int32_a_sse2;
93 ac->simd_f = ff_unpack_2ch_int32_to_int16_a_sse2;
96 ac->simd_f = ff_pack_2ch_int32_to_float_a_sse2;
98 ac->simd_f = ff_pack_2ch_float_to_int32_a_sse2;
100 ac->simd_f = ff_pack_2ch_int16_to_float_a_sse2;
102 ac->simd_f = ff_pack_2ch_float_to_int16_a_sse2;
104 ac->simd_f = ff_unpack_2ch_int32_to_float_a_sse2;
106 ac->simd_f = ff_unpack_2ch_float_to_int32_a_sse2;
108 ac->simd_f = ff_unpack_2ch_int16_to_float_a_sse2;
110 ac->simd_f = ff_unpack_2ch_float_to_int16_a_sse2;
114 ac->simd_f = ff_pack_6ch_int32_to_float_a_sse2;
116 ac->simd_f = ff_pack_6ch_float_to_int32_a_sse2;
119 ac->simd_f = ff_unpack_6ch_int32_to_float_a_sse2;
121 ac->simd_f = ff_unpack_6ch_float_to_int32_a_sse2;
125 ac->simd_f = ff_pack_8ch_float_to_float_a_sse2;
127 ac->simd_f = ff_pack_8ch_int32_to_float_a_sse2;
129 ac->simd_f = ff_pack_8ch_float_to_int32_a_sse2;
135 ac->simd_f = ff_unpack_2ch_int16_to_int16_a_ssse3;
137 ac->simd_f = ff_unpack_2ch_int16_to_int32_a_ssse3;
139 ac->simd_f = ff_unpack_2ch_int16_to_float_a_ssse3;
144 ac->simd_f = ff_int32_to_float_a_avx;
149 ac->simd_f = ff_pack_6ch_float_to_float_a_avx;
151 ac->simd_f = ff_pack_6ch_int32_to_float_a_avx;
153 ac->simd_f = ff_pack_6ch_float_to_int32_a_avx;
156 ac->simd_f = ff_unpack_6ch_float_to_float_a_avx;
158 ac->simd_f = ff_unpack_6ch_int32_to_float_a_avx;
160 ac->simd_f = ff_unpack_6ch_float_to_int32_a_avx;
164 ac->simd_f = ff_pack_8ch_float_to_float_a_avx;
166 ac->simd_f = ff_pack_8ch_int32_to_float_a_avx;
168 ac->simd_f = ff_pack_8ch_float_to_int32_a_avx;
173 ac->simd_f = ff_float_to_int32_a_avx2;