39 #define input_pixel(pos) (isBE(origin) ? AV_RB16(pos) : AV_RL16(pos))
41 #define r ((origin == AV_PIX_FMT_BGR48BE || origin == AV_PIX_FMT_BGR48LE) ? b_r : r_b)
42 #define b ((origin == AV_PIX_FMT_BGR48BE || origin == AV_PIX_FMT_BGR48LE) ? r_b : b_r)
50 for (i = 0; i <
width; i++) {
61 const uint16_t *src1,
const uint16_t *src2,
68 for (i = 0; i <
width; i++) {
80 const uint16_t *src1,
const uint16_t *src2,
87 for (i = 0; i <
width; i++) {
97 #define rgb64funcs(pattern, BE_LE, origin) \
98 static void pattern ## 64 ## BE_LE ## ToY_c(uint8_t *_dst, const uint8_t *_src, const uint8_t *unused0, const uint8_t *unused1,\
99 int width, uint32_t *rgb2yuv) \
101 const uint16_t *src = (const uint16_t *) _src; \
102 uint16_t *dst = (uint16_t *) _dst; \
103 rgb64ToY_c_template(dst, src, width, origin, rgb2yuv); \
106 static void pattern ## 64 ## BE_LE ## ToUV_c(uint8_t *_dstU, uint8_t *_dstV, \
107 const uint8_t *unused0, const uint8_t *_src1, const uint8_t *_src2, \
108 int width, uint32_t *rgb2yuv) \
110 const uint16_t *src1 = (const uint16_t *) _src1, \
111 *src2 = (const uint16_t *) _src2; \
112 uint16_t *dstU = (uint16_t *) _dstU, *dstV = (uint16_t *) _dstV; \
113 rgb64ToUV_c_template(dstU, dstV, src1, src2, width, origin, rgb2yuv); \
116 static void pattern ## 64 ## BE_LE ## ToUV_half_c(uint8_t *_dstU, uint8_t *_dstV, \
117 const uint8_t *unused0, const uint8_t *_src1, const uint8_t *_src2, \
118 int width, uint32_t *rgb2yuv) \
120 const uint16_t *src1 = (const uint16_t *) _src1, \
121 *src2 = (const uint16_t *) _src2; \
122 uint16_t *dstU = (uint16_t *) _dstU, *dstV = (uint16_t *) _dstV; \
123 rgb64ToUV_half_c_template(dstU, dstV, src1, src2, width, origin, rgb2yuv); \
136 for (i = 0; i <
width; i++) {
147 const uint16_t *src1,
148 const uint16_t *src2,
157 for (i = 0; i <
width; i++) {
169 const uint16_t *src1,
170 const uint16_t *src2,
179 for (i = 0; i <
width; i++) {
196 #define rgb48funcs(pattern, BE_LE, origin) \
197 static void pattern ## 48 ## BE_LE ## ToY_c(uint8_t *_dst, \
198 const uint8_t *_src, \
199 const uint8_t *unused0, const uint8_t *unused1,\
203 const uint16_t *src = (const uint16_t *)_src; \
204 uint16_t *dst = (uint16_t *)_dst; \
205 rgb48ToY_c_template(dst, src, width, origin, rgb2yuv); \
208 static void pattern ## 48 ## BE_LE ## ToUV_c(uint8_t *_dstU, \
210 const uint8_t *unused0, \
211 const uint8_t *_src1, \
212 const uint8_t *_src2, \
216 const uint16_t *src1 = (const uint16_t *)_src1, \
217 *src2 = (const uint16_t *)_src2; \
218 uint16_t *dstU = (uint16_t *)_dstU, \
219 *dstV = (uint16_t *)_dstV; \
220 rgb48ToUV_c_template(dstU, dstV, src1, src2, width, origin, rgb2yuv); \
223 static void pattern ## 48 ## BE_LE ## ToUV_half_c(uint8_t *_dstU, \
225 const uint8_t *unused0, \
226 const uint8_t *_src1, \
227 const uint8_t *_src2, \
231 const uint16_t *src1 = (const uint16_t *)_src1, \
232 *src2 = (const uint16_t *)_src2; \
233 uint16_t *dstU = (uint16_t *)_dstU, \
234 *dstV = (uint16_t *)_dstV; \
235 rgb48ToUV_half_c_template(dstU, dstV, src1, src2, width, origin, rgb2yuv); \
243 #define input_pixel(i) ((origin == AV_PIX_FMT_RGBA || \
244 origin == AV_PIX_FMT_BGRA || \
245 origin == AV_PIX_FMT_ARGB || \
246 origin == AV_PIX_FMT_ABGR) \
247 ? AV_RN32A(&src[(i) * 4]) \
248 : (isBE(origin) ? AV_RB16(&src[(i) * 2]) \
249 : AV_RL16(&src[(i) * 2])))
257 int maskr,
int maskg,
259 int gsh,
int bsh,
int S,
262 const int ry = rgb2yuv[
RY_IDX]<<rsh, gy = rgb2yuv[
GY_IDX]<<gsh, by = rgb2yuv[
BY_IDX]<<bsh;
263 const unsigned rnd = (32<<((
S)-1)) + (1<<(S-7));
266 for (i = 0; i <
width; i++) {
268 int b = (px & maskb) >> shb;
269 int g = (px & maskg) >> shg;
270 int r = (px & maskr) >> shr;
272 dst[i] = (ry * r + gy * g + by * b + rnd) >> ((S)-6);
283 int maskr,
int maskg,
285 int gsh,
int bsh,
int S,
288 const int ru = rgb2yuv[
RU_IDX] << rsh, gu = rgb2yuv[
GU_IDX] << gsh, bu = rgb2yuv[
BU_IDX] << bsh,
289 rv = rgb2yuv[
RV_IDX] << rsh, gv = rgb2yuv[
GV_IDX] << gsh, bv = rgb2yuv[
BV_IDX] << bsh;
290 const unsigned rnd = (256
u<<((
S)-1)) + (1<<(S-7));
293 for (i = 0; i <
width; i++) {
295 int b = (px & maskb) >> shb;
296 int g = (px & maskg) >> shg;
297 int r = (px & maskr) >> shr;
299 dstU[i] = (ru * r + gu * g + bu * b + rnd) >> ((S)-6);
300 dstV[i] = (rv * r + gv * g + bv * b + rnd) >> ((S)-6);
311 int maskr,
int maskg,
313 int gsh,
int bsh,
int S,
316 const int ru = rgb2yuv[
RU_IDX] << rsh, gu = rgb2yuv[
GU_IDX] << gsh, bu = rgb2yuv[
BU_IDX] << bsh,
317 rv = rgb2yuv[
RV_IDX] << rsh, gv = rgb2yuv[
GV_IDX] << gsh, bv = rgb2yuv[
BV_IDX] << bsh,
318 maskgx = ~(maskr | maskb);
319 const unsigned rnd = (256
U<<(
S)) + (1<<(S-6));
325 for (i = 0; i <
width; i++) {
328 int b,
r,
g = (px0 & maskgx) + (px1 & maskgx);
329 int rb = px0 + px1 -
g;
331 b = (rb & maskb) >> shb;
337 g = (g & maskg) >> shg;
339 r = (rb & maskr) >> shr;
341 dstU[i] = (ru * r + gu * g + bu * b + (unsigned)rnd) >> ((
S)-6+1);
342 dstV[i] = (rv * r + gv * g + bv * b + (unsigned)rnd) >> ((
S)-6+1);
348 #define rgb16_32_wrapper(fmt, name, shr, shg, shb, shp, maskr, \
349 maskg, maskb, rsh, gsh, bsh, S) \
350 static void name ## ToY_c(uint8_t *dst, const uint8_t *src, const uint8_t *unused1, const uint8_t *unused2, \
351 int width, uint32_t *tab) \
353 rgb16_32ToY_c_template((int16_t*)dst, src, width, fmt, shr, shg, shb, shp, \
354 maskr, maskg, maskb, rsh, gsh, bsh, S, tab); \
357 static void name ## ToUV_c(uint8_t *dstU, uint8_t *dstV, \
358 const uint8_t *unused0, const uint8_t *src, const uint8_t *dummy, \
359 int width, uint32_t *tab) \
361 rgb16_32ToUV_c_template((int16_t*)dstU, (int16_t*)dstV, src, width, fmt, \
362 shr, shg, shb, shp, \
363 maskr, maskg, maskb, rsh, gsh, bsh, S, tab);\
366 static void name ## ToUV_half_c(uint8_t *dstU, uint8_t *dstV, \
367 const uint8_t *unused0, const uint8_t *src, \
368 const uint8_t *dummy, \
369 int width, uint32_t *tab) \
371 rgb16_32ToUV_half_c_template((int16_t*)dstU, (int16_t*)dstV, src, width, fmt, \
372 shr, shg, shb, shp, \
373 maskr, maskg, maskb, \
374 rsh, gsh, bsh, S, tab); \
377 rgb16_32_wrapper(
AV_PIX_FMT_BGR32, bgr32, 16, 0, 0, 0, 0xFF0000, 0xFF00, 0x00FF, 8, 0, 8, RGB2YUV_SHIFT + 8)
378 rgb16_32_wrapper(
AV_PIX_FMT_BGR32_1,
bgr321, 16, 0, 0, 8, 0xFF0000, 0xFF00, 0x00FF, 8, 0, 8, RGB2YUV_SHIFT + 8)
379 rgb16_32_wrapper(
AV_PIX_FMT_RGB32, rgb32, 0, 0, 16, 0, 0x00FF, 0xFF00, 0xFF0000, 8, 0, 8, RGB2YUV_SHIFT + 8)
380 rgb16_32_wrapper(
AV_PIX_FMT_RGB32_1,
rgb321, 0, 0, 16, 8, 0x00FF, 0xFF00, 0xFF0000, 8, 0, 8, RGB2YUV_SHIFT + 8)
381 rgb16_32_wrapper(
AV_PIX_FMT_BGR565LE, bgr16le, 0, 0, 0, 0, 0x001F, 0x07E0, 0xF800, 11, 5, 0, RGB2YUV_SHIFT + 8)
382 rgb16_32_wrapper(
AV_PIX_FMT_BGR555LE,
bgr15le, 0, 0, 0, 0, 0x001F, 0x03E0, 0x7C00, 10, 5, 0, RGB2YUV_SHIFT + 7)
383 rgb16_32_wrapper(
AV_PIX_FMT_BGR444LE, bgr12le, 0, 0, 0, 0, 0x000F, 0x00F0, 0x0F00, 8, 4, 0, RGB2YUV_SHIFT + 4)
384 rgb16_32_wrapper(
AV_PIX_FMT_RGB565LE,
rgb16le, 0, 0, 0, 0, 0xF800, 0x07E0, 0x001F, 0, 5, 11, RGB2YUV_SHIFT + 8)
385 rgb16_32_wrapper(
AV_PIX_FMT_RGB555LE, rgb15le, 0, 0, 0, 0, 0x7C00, 0x03E0, 0x001F, 0, 5, 10, RGB2YUV_SHIFT + 7)
386 rgb16_32_wrapper(
AV_PIX_FMT_RGB444LE,
rgb12le, 0, 0, 0, 0, 0x0F00, 0x00F0, 0x000F, 0, 4, 8, RGB2YUV_SHIFT + 4)
387 rgb16_32_wrapper(
AV_PIX_FMT_BGR565BE, bgr16be, 0, 0, 0, 0, 0x001F, 0x07E0, 0xF800, 11, 5, 0, RGB2YUV_SHIFT + 8)
388 rgb16_32_wrapper(
AV_PIX_FMT_BGR555BE,
bgr15be, 0, 0, 0, 0, 0x001F, 0x03E0, 0x7C00, 10, 5, 0, RGB2YUV_SHIFT + 7)
389 rgb16_32_wrapper(
AV_PIX_FMT_BGR444BE, bgr12be, 0, 0, 0, 0, 0x000F, 0x00F0, 0x0F00, 8, 4, 0, RGB2YUV_SHIFT + 4)
390 rgb16_32_wrapper(
AV_PIX_FMT_RGB565BE,
rgb16be, 0, 0, 0, 0, 0xF800, 0x07E0, 0x001F, 0, 5, 11, RGB2YUV_SHIFT + 8)
391 rgb16_32_wrapper(
AV_PIX_FMT_RGB555BE, rgb15be, 0, 0, 0, 0, 0x7C00, 0x03E0, 0x001F, 0, 5, 10, RGB2YUV_SHIFT + 7)
392 rgb16_32_wrapper(
AV_PIX_FMT_RGB444BE,
rgb12be, 0, 0, 0, 0, 0x0F00, 0x00F0, 0x000F, 0, 4, 8, RGB2YUV_SHIFT + 4)
396 int width, uint32_t *rgb2yuv)
398 uint16_t *dstU = (uint16_t *)_dstU;
399 uint16_t *dstV = (uint16_t *)_dstV;
404 for (i = 0; i <
width; i++) {
405 unsigned int g = gsrc[2*i] + gsrc[2*i+1];
406 unsigned int b = bsrc[2*i] + bsrc[2*i+1];
407 unsigned int r = rsrc[2*i] + rsrc[2*i+1];
417 int16_t *dst = (int16_t *)_dst;
418 const uint16_t *
src = (
const uint16_t *)_src;
420 for (i = 0; i <
width; i++)
421 dst[i] = src[4 * i + 3];
426 int16_t *dst = (int16_t *)_dst;
428 for (i=0; i<
width; i++) {
435 int16_t *dst = (int16_t *)_dst;
437 for (i=0; i<
width; i++) {
438 dst[i]= src[4*i+3]<<6;
444 int16_t *dst = (int16_t *)_dst;
446 for (i=0; i<
width; i++) {
449 dst[i]= (pal[d] >> 24)<<6;
455 int16_t *dst = (int16_t *)_dst;
457 for (i = 0; i <
width; i++) {
460 dst[i] = (pal[d] & 0xFF)<<6;
466 int width, uint32_t *pal)
468 uint16_t *dstU = (uint16_t *)_dstU;
469 int16_t *dstV = (int16_t *)_dstV;
472 for (i = 0; i <
width; i++) {
473 int p = pal[src1[i]];
482 int16_t *dst = (int16_t *)_dst;
484 width = (width + 7) >> 3;
485 for (i = 0; i <
width; i++) {
487 for (j = 0; j < 8; j++)
488 dst[8*i+j]= ((d>>(7-j))&1) * 16383;
492 for (j = 0; j < (width&7); j++)
493 dst[8*i+j]= ((d>>(7-j))&1) * 16383;
499 int16_t *dst = (int16_t *)_dst;
501 width = (width + 7) >> 3;
502 for (i = 0; i <
width; i++) {
504 for (j = 0; j < 8; j++)
505 dst[8*i+j]= ((d>>(7-j))&1) * 16383;
509 for (j = 0; j < (width&7); j++)
510 dst[8*i+j] = ((d>>(7-j))&1) * 16383;
518 for (i = 0; i <
width; i++)
526 for (i = 0; i <
width; i++) {
527 dstU[i] = src1[4 * i + 1];
528 dstV[i] = src1[4 * i + 3];
537 const uint16_t *
src = (
const uint16_t *)_src;
538 uint16_t *dst = (uint16_t *)_dst;
539 for (i = 0; i <
width; i++)
547 const uint16_t *src1 = (
const uint16_t *)_src1,
548 *src2 = (
const uint16_t *)_src2;
549 uint16_t *dstU = (uint16_t *)_dstU, *dstV = (uint16_t *)_dstV;
550 for (i = 0; i <
width; i++) {
562 for (i = 0; i <
width; i++)
563 dst[i] = src[2 * i + 1];
570 for (i = 0; i <
width; i++) {
571 dstU[i] = src1[4 * i + 0];
572 dstV[i] = src1[4 * i + 2];
581 for (i = 0; i <
width; i++) {
582 dst1[i] = src[2 * i + 0];
583 dst2[i] = src[2 * i + 1];
589 int width, uint32_t *unused)
596 int width, uint32_t *unused)
601 #define input_pixel(pos) (isBE(origin) ? AV_RB16(pos) : AV_RL16(pos))
604 int width, uint32_t *rgb2yuv)
606 int16_t *dst = (int16_t *)_dst;
609 for (i = 0; i <
width; i++) {
610 int b = src[i * 3 + 0];
611 int g = src[i * 3 + 1];
612 int r = src[i * 3 + 2];
621 int16_t *dstU = (int16_t *)_dstU;
622 int16_t *dstV = (int16_t *)_dstV;
626 for (i = 0; i <
width; i++) {
627 int b = src1[3 * i + 0];
628 int g = src1[3 * i + 1];
629 int r = src1[3 * i + 2];
640 int16_t *dstU = (int16_t *)_dstU;
641 int16_t *dstV = (int16_t *)_dstV;
645 for (i = 0; i <
width; i++) {
646 int b = src1[6 * i + 0] + src1[6 * i + 3];
647 int g = src1[6 * i + 1] + src1[6 * i + 4];
648 int r = src1[6 * i + 2] + src1[6 * i + 5];
659 int16_t *dst = (int16_t *)_dst;
662 for (i = 0; i <
width; i++) {
663 int r = src[i * 3 + 0];
664 int g = src[i * 3 + 1];
665 int b = src[i * 3 + 2];
674 int16_t *dstU = (int16_t *)_dstU;
675 int16_t *dstV = (int16_t *)_dstV;
680 for (i = 0; i <
width; i++) {
681 int r = src1[3 * i + 0];
682 int g = src1[3 * i + 1];
683 int b = src1[3 * i + 2];
693 int16_t *dstU = (int16_t *)_dstU;
694 int16_t *dstV = (int16_t *)_dstV;
699 for (i = 0; i <
width; i++) {
700 int r = src1[6 * i + 0] + src1[6 * i + 3];
701 int g = src1[6 * i + 1] + src1[6 * i + 4];
702 int b = src1[6 * i + 2] + src1[6 * i + 5];
711 uint16_t *dst = (uint16_t *)_dst;
714 for (i = 0; i <
width; i++) {
725 uint16_t *dst = (uint16_t *)_dst;
727 for (i = 0; i <
width; i++)
728 dst[i] = src[3][i] << 6;
733 uint16_t *dstU = (uint16_t *)_dstU;
734 uint16_t *dstV = (uint16_t *)_dstV;
738 for (i = 0; i <
width; i++) {
749 is_be ? AV_RB16(src) : AV_RL16(src)
754 const uint16_t **
src = (
const uint16_t **)_src;
755 uint16_t *dst = (uint16_t *)_dst;
757 for (i = 0; i <
width; i++) {
758 int g =
rdpx(src[0] + i);
759 int b =
rdpx(src[1] + i);
760 int r =
rdpx(src[2] + i);
768 int bpc,
int is_be,
int32_t *rgb2yuv)
771 const uint16_t **
src = (
const uint16_t **)_src;
772 uint16_t *dstU = (uint16_t *)_dstU;
773 uint16_t *dstV = (uint16_t *)_dstV;
776 for (i = 0; i <
width; i++) {
777 int g =
rdpx(src[0] + i);
778 int b =
rdpx(src[1] + i);
779 int r =
rdpx(src[2] + i);
787 #define rgb9plus_planar_funcs_endian(nbits, endian_name, endian) \
788 static void planar_rgb##nbits##endian_name##_to_y(uint8_t *dst, const uint8_t *src[4], \
789 int w, int32_t *rgb2yuv) \
791 planar_rgb16_to_y(dst, src, w, nbits, endian, rgb2yuv); \
793 static void planar_rgb##nbits##endian_name##_to_uv(uint8_t *dstU, uint8_t *dstV, \
794 const uint8_t *src[4], int w, int32_t *rgb2yuv) \
796 planar_rgb16_to_uv(dstU, dstV, src, w, nbits, endian, rgb2yuv); \
799 #define rgb9plus_planar_funcs(nbits) \
800 rgb9plus_planar_funcs_endian(nbits, le, 0) \
801 rgb9plus_planar_funcs_endian(nbits, be, 1)
835 c->readChrPlanar = planar_rgb9le_to_uv;
838 c->readChrPlanar = planar_rgb10le_to_uv;
841 c->readChrPlanar = planar_rgb12le_to_uv;
844 c->readChrPlanar = planar_rgb14le_to_uv;
848 c->readChrPlanar = planar_rgb16le_to_uv;
851 c->readChrPlanar = planar_rgb9be_to_uv;
854 c->readChrPlanar = planar_rgb10be_to_uv;
857 c->readChrPlanar = planar_rgb12be_to_uv;
860 c->readChrPlanar = planar_rgb14be_to_uv;
864 c->readChrPlanar = planar_rgb16be_to_uv;
928 if (c->chrSrcHSubSample) {
931 c->chrToYV12 = rgb64BEToUV_half_c;
934 c->chrToYV12 = rgb64LEToUV_half_c;
937 c->chrToYV12 = rgb48BEToUV_half_c;
940 c->chrToYV12 = rgb48LEToUV_half_c;
943 c->chrToYV12 = bgr48BEToUV_half_c;
946 c->chrToYV12 = bgr48LEToUV_half_c;
949 c->chrToYV12 = bgr32ToUV_half_c;
952 c->chrToYV12 = bgr321ToUV_half_c;
958 c->chrToYV12 = bgr16leToUV_half_c;
961 c->chrToYV12 = bgr16beToUV_half_c;
964 c->chrToYV12 = bgr15leToUV_half_c;
967 c->chrToYV12 = bgr15beToUV_half_c;
974 c->chrToYV12 = bgr12leToUV_half_c;
977 c->chrToYV12 = bgr12beToUV_half_c;
980 c->chrToYV12 = rgb32ToUV_half_c;
983 c->chrToYV12 = rgb321ToUV_half_c;
989 c->chrToYV12 = rgb16leToUV_half_c;
992 c->chrToYV12 = rgb16beToUV_half_c;
995 c->chrToYV12 = rgb15leToUV_half_c;
998 c->chrToYV12 = rgb15beToUV_half_c;
1001 c->chrToYV12 = rgb12leToUV_half_c;
1004 c->chrToYV12 = rgb12beToUV_half_c;
1008 switch (srcFormat) {
1010 c->chrToYV12 = rgb64BEToUV_c;
1013 c->chrToYV12 = rgb64LEToUV_c;
1016 c->chrToYV12 = rgb48BEToUV_c;
1019 c->chrToYV12 = rgb48LEToUV_c;
1022 c->chrToYV12 = bgr48BEToUV_c;
1025 c->chrToYV12 = bgr48LEToUV_c;
1028 c->chrToYV12 = bgr32ToUV_c;
1031 c->chrToYV12 = bgr321ToUV_c;
1037 c->chrToYV12 = bgr16leToUV_c;
1040 c->chrToYV12 = bgr16beToUV_c;
1043 c->chrToYV12 = bgr15leToUV_c;
1046 c->chrToYV12 = bgr15beToUV_c;
1049 c->chrToYV12 = bgr12leToUV_c;
1052 c->chrToYV12 = bgr12beToUV_c;
1055 c->chrToYV12 = rgb32ToUV_c;
1058 c->chrToYV12 = rgb321ToUV_c;
1064 c->chrToYV12 = rgb16leToUV_c;
1067 c->chrToYV12 = rgb16beToUV_c;
1070 c->chrToYV12 = rgb15leToUV_c;
1073 c->chrToYV12 = rgb15beToUV_c;
1076 c->chrToYV12 = rgb12leToUV_c;
1079 c->chrToYV12 = rgb12beToUV_c;
1084 c->lumToYV12 = NULL;
1085 c->alpToYV12 = NULL;
1086 switch (srcFormat) {
1088 c->readLumPlanar = planar_rgb9le_to_y;
1091 c->readLumPlanar = planar_rgb10le_to_y;
1094 c->readLumPlanar = planar_rgb12le_to_y;
1097 c->readLumPlanar = planar_rgb14le_to_y;
1101 c->readLumPlanar = planar_rgb16le_to_y;
1104 c->readLumPlanar = planar_rgb9be_to_y;
1107 c->readLumPlanar = planar_rgb10be_to_y;
1110 c->readLumPlanar = planar_rgb12be_to_y;
1113 c->readLumPlanar = planar_rgb14be_to_y;
1117 c->readLumPlanar = planar_rgb16be_to_y;
1200 c->lumToYV12 = bgr16leToY_c;
1203 c->lumToYV12 = bgr16beToY_c;
1206 c->lumToYV12 = bgr15leToY_c;
1209 c->lumToYV12 = bgr15beToY_c;
1212 c->lumToYV12 = bgr12leToY_c;
1215 c->lumToYV12 = bgr12beToY_c;
1221 c->lumToYV12 = rgb16leToY_c;
1224 c->lumToYV12 = rgb16beToY_c;
1227 c->lumToYV12 = rgb15leToY_c;
1230 c->lumToYV12 = rgb15beToY_c;
1233 c->lumToYV12 = rgb12leToY_c;
1236 c->lumToYV12 = rgb12beToY_c;
1252 c->lumToYV12 = bgr32ToY_c;
1255 c->lumToYV12 = bgr321ToY_c;
1258 c->lumToYV12 = rgb32ToY_c;
1261 c->lumToYV12 = rgb321ToY_c;
1264 c->lumToYV12 = rgb48BEToY_c;
1267 c->lumToYV12 = rgb48LEToY_c;
1270 c->lumToYV12 = bgr48BEToY_c;
1273 c->lumToYV12 = bgr48LEToY_c;
1276 c->lumToYV12 = rgb64BEToY_c;
1279 c->lumToYV12 = rgb64LEToY_c;
1284 if (HAVE_BIGENDIAN == !
isBE(srcFormat))
1287 switch (srcFormat) {