applehttp: Do seeking within segments, too
[libav.git] / libswscale / x86 / swscale_mmx.c
CommitLineData
983260b0
RB
1/*
2 * Copyright (C) 2001-2003 Michael Niedermayer <michaelni@gmx.at>
3 *
4 * This file is part of Libav.
5 *
6 * Libav is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * Libav is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with Libav; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 */
20
21#include <inttypes.h>
22#include "config.h"
23#include "libswscale/swscale.h"
24#include "libswscale/swscale_internal.h"
25#include "libavutil/intreadwrite.h"
26#include "libavutil/x86_cpu.h"
27#include "libavutil/cpu.h"
28#include "libavutil/pixdesc.h"
29
378c5ef9
RB
30#define DITHER1XBPP
31
983260b0
RB
32DECLARE_ASM_CONST(8, uint64_t, bF8)= 0xF8F8F8F8F8F8F8F8LL;
33DECLARE_ASM_CONST(8, uint64_t, bFC)= 0xFCFCFCFCFCFCFCFCLL;
34DECLARE_ASM_CONST(8, uint64_t, w10)= 0x0010001000100010LL;
35DECLARE_ASM_CONST(8, uint64_t, w02)= 0x0002000200020002LL;
983260b0
RB
36
37const DECLARE_ALIGNED(8, uint64_t, ff_dither4)[2] = {
38 0x0103010301030103LL,
39 0x0200020002000200LL,};
40
41const DECLARE_ALIGNED(8, uint64_t, ff_dither8)[2] = {
42 0x0602060206020602LL,
43 0x0004000400040004LL,};
44
45DECLARE_ASM_CONST(8, uint64_t, b16Mask)= 0x001F001F001F001FLL;
46DECLARE_ASM_CONST(8, uint64_t, g16Mask)= 0x07E007E007E007E0LL;
47DECLARE_ASM_CONST(8, uint64_t, r16Mask)= 0xF800F800F800F800LL;
48DECLARE_ASM_CONST(8, uint64_t, b15Mask)= 0x001F001F001F001FLL;
49DECLARE_ASM_CONST(8, uint64_t, g15Mask)= 0x03E003E003E003E0LL;
50DECLARE_ASM_CONST(8, uint64_t, r15Mask)= 0x7C007C007C007C00LL;
51
52DECLARE_ALIGNED(8, const uint64_t, ff_M24A) = 0x00FF0000FF0000FFLL;
53DECLARE_ALIGNED(8, const uint64_t, ff_M24B) = 0xFF0000FF0000FF00LL;
54DECLARE_ALIGNED(8, const uint64_t, ff_M24C) = 0x0000FF0000FF0000LL;
55
56#ifdef FAST_BGR2YV12
57DECLARE_ALIGNED(8, const uint64_t, ff_bgr2YCoeff) = 0x000000210041000DULL;
58DECLARE_ALIGNED(8, const uint64_t, ff_bgr2UCoeff) = 0x0000FFEEFFDC0038ULL;
59DECLARE_ALIGNED(8, const uint64_t, ff_bgr2VCoeff) = 0x00000038FFD2FFF8ULL;
60#else
61DECLARE_ALIGNED(8, const uint64_t, ff_bgr2YCoeff) = 0x000020E540830C8BULL;
62DECLARE_ALIGNED(8, const uint64_t, ff_bgr2UCoeff) = 0x0000ED0FDAC23831ULL;
63DECLARE_ALIGNED(8, const uint64_t, ff_bgr2VCoeff) = 0x00003831D0E6F6EAULL;
64#endif /* FAST_BGR2YV12 */
65DECLARE_ALIGNED(8, const uint64_t, ff_bgr2YOffset) = 0x1010101010101010ULL;
66DECLARE_ALIGNED(8, const uint64_t, ff_bgr2UVOffset) = 0x8080808080808080ULL;
67DECLARE_ALIGNED(8, const uint64_t, ff_w1111) = 0x0001000100010001ULL;
68
983260b0
RB
69//MMX versions
70#if HAVE_MMX
71#undef RENAME
72#define COMPILE_TEMPLATE_MMX2 0
73#define RENAME(a) a ## _MMX
74#include "swscale_template.c"
75#endif
76
77//MMX2 versions
78#if HAVE_MMX2
79#undef RENAME
80#undef COMPILE_TEMPLATE_MMX2
81#define COMPILE_TEMPLATE_MMX2 1
82#define RENAME(a) a ## _MMX2
83#include "swscale_template.c"
84#endif
85
86void updateMMXDitherTables(SwsContext *c, int dstY, int lumBufIndex, int chrBufIndex,
87 int lastInLumBuf, int lastInChrBuf)
88{
89 const int dstH= c->dstH;
90 const int flags= c->flags;
91 int16_t **lumPixBuf= c->lumPixBuf;
92 int16_t **chrUPixBuf= c->chrUPixBuf;
983260b0
RB
93 const int vLumBufSize= c->vLumBufSize;
94 const int vChrBufSize= c->vChrBufSize;
95 int16_t *vLumFilterPos= c->vLumFilterPos;
96 int16_t *vChrFilterPos= c->vChrFilterPos;
97 int16_t *vLumFilter= c->vLumFilter;
98 int16_t *vChrFilter= c->vChrFilter;
99 int32_t *lumMmxFilter= c->lumMmxFilter;
100 int32_t *chrMmxFilter= c->chrMmxFilter;
983260b0
RB
101 const int vLumFilterSize= c->vLumFilterSize;
102 const int vChrFilterSize= c->vChrFilterSize;
103 const int chrDstY= dstY>>c->chrDstVSubSample;
104 const int firstLumSrcY= vLumFilterPos[dstY]; //First line needed as input
105 const int firstChrSrcY= vChrFilterPos[chrDstY]; //First line needed as input
106
107 c->blueDither= ff_dither8[dstY&1];
108 if (c->dstFormat == PIX_FMT_RGB555 || c->dstFormat == PIX_FMT_BGR555)
109 c->greenDither= ff_dither8[dstY&1];
110 else
111 c->greenDither= ff_dither4[dstY&1];
112 c->redDither= ff_dither8[(dstY+1)&1];
113 if (dstY < dstH - 2) {
114 const int16_t **lumSrcPtr= (const int16_t **) lumPixBuf + lumBufIndex + firstLumSrcY - lastInLumBuf + vLumBufSize;
115 const int16_t **chrUSrcPtr= (const int16_t **) chrUPixBuf + chrBufIndex + firstChrSrcY - lastInChrBuf + vChrBufSize;
983260b0
RB
116 int i;
117 if (flags & SWS_ACCURATE_RND) {
118 int s= APCK_SIZE / 8;
119 for (i=0; i<vLumFilterSize; i+=2) {
120 *(const void**)&lumMmxFilter[s*i ]= lumSrcPtr[i ];
121 *(const void**)&lumMmxFilter[s*i+APCK_PTR2/4 ]= lumSrcPtr[i+(vLumFilterSize>1)];
122 lumMmxFilter[s*i+APCK_COEF/4 ]=
123 lumMmxFilter[s*i+APCK_COEF/4+1]= vLumFilter[dstY*vLumFilterSize + i ]
124 + (vLumFilterSize>1 ? vLumFilter[dstY*vLumFilterSize + i + 1]<<16 : 0);
983260b0
RB
125 }
126 for (i=0; i<vChrFilterSize; i+=2) {
127 *(const void**)&chrMmxFilter[s*i ]= chrUSrcPtr[i ];
128 *(const void**)&chrMmxFilter[s*i+APCK_PTR2/4 ]= chrUSrcPtr[i+(vChrFilterSize>1)];
129 chrMmxFilter[s*i+APCK_COEF/4 ]=
130 chrMmxFilter[s*i+APCK_COEF/4+1]= vChrFilter[chrDstY*vChrFilterSize + i ]
131 + (vChrFilterSize>1 ? vChrFilter[chrDstY*vChrFilterSize + i + 1]<<16 : 0);
132 }
133 } else {
134 for (i=0; i<vLumFilterSize; i++) {
135 *(const void**)&lumMmxFilter[4*i+0]= lumSrcPtr[i];
136 lumMmxFilter[4*i+2]=
137 lumMmxFilter[4*i+3]=
138 ((uint16_t)vLumFilter[dstY*vLumFilterSize + i])*0x10001;
983260b0
RB
139 }
140 for (i=0; i<vChrFilterSize; i++) {
141 *(const void**)&chrMmxFilter[4*i+0]= chrUSrcPtr[i];
142 chrMmxFilter[4*i+2]=
143 chrMmxFilter[4*i+3]=
144 ((uint16_t)vChrFilter[chrDstY*vChrFilterSize + i])*0x10001;
145 }
146 }
147 }
148}
149
e0c3e073
RB
150#define SCALE_FUNC(filter_n, from_bpc, to_bpc, opt) \
151extern void ff_hscale ## from_bpc ## to ## to_bpc ## _ ## filter_n ## _ ## opt( \
152 SwsContext *c, int16_t *data, \
153 int dstW, const uint8_t *src, \
154 const int16_t *filter, \
373211d8 155 const int16_t *filterPos, int filterSize)
e0c3e073
RB
156
157#define SCALE_FUNCS(filter_n, opt) \
158 SCALE_FUNC(filter_n, 8, 15, opt); \
159 SCALE_FUNC(filter_n, 9, 15, opt); \
160 SCALE_FUNC(filter_n, 10, 15, opt); \
161 SCALE_FUNC(filter_n, 16, 15, opt); \
162 SCALE_FUNC(filter_n, 8, 19, opt); \
163 SCALE_FUNC(filter_n, 9, 19, opt); \
164 SCALE_FUNC(filter_n, 10, 19, opt); \
165 SCALE_FUNC(filter_n, 16, 19, opt)
166
167#define SCALE_FUNCS_MMX(opt) \
168 SCALE_FUNCS(4, opt); \
169 SCALE_FUNCS(8, opt); \
170 SCALE_FUNCS(X, opt)
171
172#define SCALE_FUNCS_SSE(opt) \
173 SCALE_FUNCS(4, opt); \
174 SCALE_FUNCS(8, opt); \
175 SCALE_FUNCS(X4, opt); \
176 SCALE_FUNCS(X8, opt)
177
178#if ARCH_X86_32
179SCALE_FUNCS_MMX(mmx);
180#endif
181SCALE_FUNCS_SSE(sse2);
182SCALE_FUNCS_SSE(ssse3);
183SCALE_FUNCS_SSE(sse4);
184
6cacecdc
RB
185#define VSCALEX_FUNC(size, opt) \
186extern void ff_yuv2planeX_ ## size ## _ ## opt(const int16_t *filter, int filterSize, \
187 const int16_t **src, uint8_t *dest, int dstW, \
188 const uint8_t *dither, int offset)
3c62a714
DB
189#define VSCALEX_FUNCS(opt) \
190 VSCALEX_FUNC(8, opt); \
191 VSCALEX_FUNC(9, opt); \
192 VSCALEX_FUNC(10, opt)
7fbbf952 193
6cacecdc 194#if ARCH_X86_32
3c62a714 195VSCALEX_FUNCS(mmx2);
6cacecdc 196#endif
3c62a714
DB
197VSCALEX_FUNCS(sse2);
198VSCALEX_FUNCS(sse4);
6cacecdc 199VSCALEX_FUNC(16, sse4);
3c62a714 200VSCALEX_FUNCS(avx);
7fbbf952 201
c4356536
RB
202#define VSCALE_FUNC(size, opt) \
203extern void ff_yuv2plane1_ ## size ## _ ## opt(const int16_t *src, uint8_t *dst, int dstW, \
204 const uint8_t *dither, int offset)
205#define VSCALE_FUNCS(opt1, opt2) \
206 VSCALE_FUNC(8, opt1); \
207 VSCALE_FUNC(9, opt2); \
208 VSCALE_FUNC(10, opt2); \
209 VSCALE_FUNC(16, opt1)
210
211#if ARCH_X86_32
212VSCALE_FUNCS(mmx, mmx2);
213#endif
214VSCALE_FUNCS(sse2, sse2);
215VSCALE_FUNC(16, sse4);
216VSCALE_FUNCS(avx, avx);
217
b5d08c27
RB
218#define INPUT_Y_FUNC(fmt, opt) \
219extern void ff_ ## fmt ## ToY_ ## opt(uint8_t *dst, const uint8_t *src, \
220 int w, uint32_t *unused)
2170a0e6
RB
221#define INPUT_UV_FUNC(fmt, opt) \
222extern void ff_ ## fmt ## ToUV_ ## opt(uint8_t *dstU, uint8_t *dstV, \
223 const uint8_t *src, const uint8_t *unused1, \
224 int w, uint32_t *unused2)
225#define INPUT_FUNC(fmt, opt) \
b5d08c27 226 INPUT_Y_FUNC(fmt, opt); \
2170a0e6
RB
227 INPUT_UV_FUNC(fmt, opt)
228#define INPUT_FUNCS(opt) \
229 INPUT_FUNC(uyvy, opt); \
230 INPUT_FUNC(yuyv, opt); \
231 INPUT_UV_FUNC(nv12, opt); \
b5d08c27 232 INPUT_UV_FUNC(nv21, opt); \
de53b906
RB
233 INPUT_FUNC(rgba, opt); \
234 INPUT_FUNC(bgra, opt); \
235 INPUT_FUNC(argb, opt); \
236 INPUT_FUNC(abgr, opt); \
b5d08c27
RB
237 INPUT_FUNC(rgb24, opt); \
238 INPUT_FUNC(bgr24, opt)
2170a0e6
RB
239
240#if ARCH_X86_32
241INPUT_FUNCS(mmx);
242#endif
243INPUT_FUNCS(sse2);
b5d08c27 244INPUT_FUNCS(ssse3);
2170a0e6
RB
245INPUT_FUNCS(avx);
246
983260b0
RB
247void ff_sws_init_swScale_mmx(SwsContext *c)
248{
249 int cpu_flags = av_get_cpu_flags();
250
251 if (cpu_flags & AV_CPU_FLAG_MMX)
252 sws_init_swScale_MMX(c);
97e057ff 253#if HAVE_MMX2
983260b0
RB
254 if (cpu_flags & AV_CPU_FLAG_MMX2)
255 sws_init_swScale_MMX2(c);
97e057ff 256#endif
e0c3e073
RB
257
258#if HAVE_YASM
259#define ASSIGN_SCALE_FUNC2(hscalefn, filtersize, opt1, opt2) do { \
260 if (c->srcBpc == 8) { \
261 hscalefn = c->dstBpc <= 10 ? ff_hscale8to15_ ## filtersize ## _ ## opt2 : \
262 ff_hscale8to19_ ## filtersize ## _ ## opt1; \
263 } else if (c->srcBpc == 9) { \
264 hscalefn = c->dstBpc <= 10 ? ff_hscale9to15_ ## filtersize ## _ ## opt2 : \
265 ff_hscale9to19_ ## filtersize ## _ ## opt1; \
266 } else if (c->srcBpc == 10) { \
267 hscalefn = c->dstBpc <= 10 ? ff_hscale10to15_ ## filtersize ## _ ## opt2 : \
268 ff_hscale10to19_ ## filtersize ## _ ## opt1; \
269 } else /* c->srcBpc == 16 */ { \
270 hscalefn = c->dstBpc <= 10 ? ff_hscale16to15_ ## filtersize ## _ ## opt2 : \
271 ff_hscale16to19_ ## filtersize ## _ ## opt1; \
272 } \
273} while (0)
274#define ASSIGN_MMX_SCALE_FUNC(hscalefn, filtersize, opt1, opt2) \
275 switch (filtersize) { \
276 case 4: ASSIGN_SCALE_FUNC2(hscalefn, 4, opt1, opt2); break; \
277 case 8: ASSIGN_SCALE_FUNC2(hscalefn, 8, opt1, opt2); break; \
278 default: ASSIGN_SCALE_FUNC2(hscalefn, X, opt1, opt2); break; \
279 }
3c62a714 280#define ASSIGN_VSCALEX_FUNC(vscalefn, opt, do_16_case) \
6cacecdc 281switch(c->dstBpc){ \
3c62a714
DB
282 case 16: do_16_case; break; \
283 case 10: if (!isBE(c->dstFormat)) vscalefn = ff_yuv2planeX_10_ ## opt; break; \
284 case 9: if (!isBE(c->dstFormat)) vscalefn = ff_yuv2planeX_9_ ## opt; break; \
285 default: vscalefn = ff_yuv2planeX_8_ ## opt; break; \
6cacecdc 286 }
c4356536
RB
287#define ASSIGN_VSCALE_FUNC(vscalefn, opt1, opt2, opt2chk) \
288 switch(c->dstBpc){ \
289 case 16: if (!isBE(c->dstFormat)) vscalefn = ff_yuv2plane1_16_ ## opt1; break; \
290 case 10: if (!isBE(c->dstFormat) && opt2chk) vscalefn = ff_yuv2plane1_10_ ## opt2; break; \
291 case 9: if (!isBE(c->dstFormat) && opt2chk) vscalefn = ff_yuv2plane1_9_ ## opt2; break; \
292 default: vscalefn = ff_yuv2plane1_8_ ## opt1; break; \
293 }
b5d08c27
RB
294#define case_rgb(x, X, opt) \
295 case PIX_FMT_ ## X: \
296 c->lumToYV12 = ff_ ## x ## ToY_ ## opt; \
297 if (!c->chrSrcHSubSample) \
298 c->chrToYV12 = ff_ ## x ## ToUV_ ## opt; \
299 break
e0c3e073
RB
300#if ARCH_X86_32
301 if (cpu_flags & AV_CPU_FLAG_MMX) {
302 ASSIGN_MMX_SCALE_FUNC(c->hyScale, c->hLumFilterSize, mmx, mmx);
303 ASSIGN_MMX_SCALE_FUNC(c->hcScale, c->hChrFilterSize, mmx, mmx);
c4356536 304 ASSIGN_VSCALE_FUNC(c->yuv2plane1, mmx, mmx2, cpu_flags & AV_CPU_FLAG_MMX2);
2170a0e6
RB
305
306 switch (c->srcFormat) {
307 case PIX_FMT_Y400A:
308 c->lumToYV12 = ff_yuyvToY_mmx;
309 if (c->alpPixBuf)
310 c->alpToYV12 = ff_uyvyToY_mmx;
311 break;
312 case PIX_FMT_YUYV422:
313 c->lumToYV12 = ff_yuyvToY_mmx;
314 c->chrToYV12 = ff_yuyvToUV_mmx;
315 break;
316 case PIX_FMT_UYVY422:
317 c->lumToYV12 = ff_uyvyToY_mmx;
318 c->chrToYV12 = ff_uyvyToUV_mmx;
319 break;
320 case PIX_FMT_NV12:
321 c->chrToYV12 = ff_nv12ToUV_mmx;
322 break;
323 case PIX_FMT_NV21:
324 c->chrToYV12 = ff_nv21ToUV_mmx;
325 break;
b5d08c27
RB
326 case_rgb(rgb24, RGB24, mmx);
327 case_rgb(bgr24, BGR24, mmx);
de53b906
RB
328 case_rgb(bgra, BGRA, mmx);
329 case_rgb(rgba, RGBA, mmx);
330 case_rgb(abgr, ABGR, mmx);
331 case_rgb(argb, ARGB, mmx);
2170a0e6
RB
332 default:
333 break;
334 }
e0c3e073 335 }
52de07e1 336 if (cpu_flags & AV_CPU_FLAG_MMX2) {
3c62a714 337 ASSIGN_VSCALEX_FUNC(c->yuv2planeX, mmx2,);
52de07e1 338 }
e0c3e073
RB
339#endif
340#define ASSIGN_SSE_SCALE_FUNC(hscalefn, filtersize, opt1, opt2) \
341 switch (filtersize) { \
342 case 4: ASSIGN_SCALE_FUNC2(hscalefn, 4, opt1, opt2); break; \
343 case 8: ASSIGN_SCALE_FUNC2(hscalefn, 8, opt1, opt2); break; \
344 default: if (filtersize & 4) ASSIGN_SCALE_FUNC2(hscalefn, X4, opt1, opt2); \
345 else ASSIGN_SCALE_FUNC2(hscalefn, X8, opt1, opt2); \
346 break; \
347 }
348 if (cpu_flags & AV_CPU_FLAG_SSE2) {
349 ASSIGN_SSE_SCALE_FUNC(c->hyScale, c->hLumFilterSize, sse2, sse2);
350 ASSIGN_SSE_SCALE_FUNC(c->hcScale, c->hChrFilterSize, sse2, sse2);
3c62a714 351 ASSIGN_VSCALEX_FUNC(c->yuv2planeX, sse2,);
c4356536 352 ASSIGN_VSCALE_FUNC(c->yuv2plane1, sse2, sse2, 1);
2170a0e6
RB
353
354 switch (c->srcFormat) {
355 case PIX_FMT_Y400A:
356 c->lumToYV12 = ff_yuyvToY_sse2;
357 if (c->alpPixBuf)
358 c->alpToYV12 = ff_uyvyToY_sse2;
359 break;
360 case PIX_FMT_YUYV422:
361 c->lumToYV12 = ff_yuyvToY_sse2;
362 c->chrToYV12 = ff_yuyvToUV_sse2;
363 break;
364 case PIX_FMT_UYVY422:
365 c->lumToYV12 = ff_uyvyToY_sse2;
366 c->chrToYV12 = ff_uyvyToUV_sse2;
367 break;
368 case PIX_FMT_NV12:
369 c->chrToYV12 = ff_nv12ToUV_sse2;
370 break;
371 case PIX_FMT_NV21:
372 c->chrToYV12 = ff_nv21ToUV_sse2;
373 break;
b5d08c27
RB
374 case_rgb(rgb24, RGB24, sse2);
375 case_rgb(bgr24, BGR24, sse2);
de53b906
RB
376 case_rgb(bgra, BGRA, sse2);
377 case_rgb(rgba, RGBA, sse2);
378 case_rgb(abgr, ABGR, sse2);
379 case_rgb(argb, ARGB, sse2);
b5d08c27
RB
380 default:
381 break;
2170a0e6 382 }
e0c3e073
RB
383 }
384 if (cpu_flags & AV_CPU_FLAG_SSSE3) {
385 ASSIGN_SSE_SCALE_FUNC(c->hyScale, c->hLumFilterSize, ssse3, ssse3);
386 ASSIGN_SSE_SCALE_FUNC(c->hcScale, c->hChrFilterSize, ssse3, ssse3);
b5d08c27
RB
387 switch (c->srcFormat) {
388 case_rgb(rgb24, RGB24, ssse3);
389 case_rgb(bgr24, BGR24, ssse3);
390 default:
391 break;
392 }
e0c3e073
RB
393 }
394 if (cpu_flags & AV_CPU_FLAG_SSE4) {
395 /* Xto15 don't need special sse4 functions */
396 ASSIGN_SSE_SCALE_FUNC(c->hyScale, c->hLumFilterSize, sse4, ssse3);
397 ASSIGN_SSE_SCALE_FUNC(c->hcScale, c->hChrFilterSize, sse4, ssse3);
3c62a714 398 ASSIGN_VSCALEX_FUNC(c->yuv2planeX, sse4,
6cacecdc 399 if (!isBE(c->dstFormat)) c->yuv2planeX = ff_yuv2planeX_16_sse4);
c4356536
RB
400 if (c->dstBpc == 16 && !isBE(c->dstFormat))
401 c->yuv2plane1 = ff_yuv2plane1_16_sse4;
7fbbf952
KK
402 }
403
404 if (cpu_flags & AV_CPU_FLAG_AVX) {
3c62a714 405 ASSIGN_VSCALEX_FUNC(c->yuv2planeX, avx,);
c4356536 406 ASSIGN_VSCALE_FUNC(c->yuv2plane1, avx, avx, 1);
2170a0e6
RB
407
408 switch (c->srcFormat) {
409 case PIX_FMT_YUYV422:
410 c->chrToYV12 = ff_yuyvToUV_avx;
411 break;
412 case PIX_FMT_UYVY422:
413 c->chrToYV12 = ff_uyvyToUV_avx;
414 break;
415 case PIX_FMT_NV12:
416 c->chrToYV12 = ff_nv12ToUV_avx;
417 break;
418 case PIX_FMT_NV21:
419 c->chrToYV12 = ff_nv21ToUV_avx;
420 break;
b5d08c27
RB
421 case_rgb(rgb24, RGB24, avx);
422 case_rgb(bgr24, BGR24, avx);
de53b906
RB
423 case_rgb(bgra, BGRA, avx);
424 case_rgb(rgba, RGBA, avx);
425 case_rgb(abgr, ABGR, avx);
426 case_rgb(argb, ARGB, avx);
2170a0e6
RB
427 default:
428 break;
429 }
e0c3e073
RB
430 }
431#endif
983260b0 432}