38 #define input_pixel(pos) (isBE(origin) ? AV_RB16(pos) : AV_RL16(pos))
40 #define r ((origin == AV_PIX_FMT_BGR48BE || origin == AV_PIX_FMT_BGR48LE) ? b_r : r_b)
41 #define b ((origin == AV_PIX_FMT_BGR48BE || origin == AV_PIX_FMT_BGR48LE) ? r_b : b_r)
49 for (i = 0; i <
width; i++) {
60 const uint16_t *src1,
const uint16_t *src2,
67 for (i = 0; i <
width; i++) {
79 const uint16_t *src1,
const uint16_t *src2,
86 for (i = 0; i <
width; i++) {
96 #define rgb64funcs(pattern, BE_LE, origin) \
97 static void pattern ## 64 ## BE_LE ## ToY_c(uint8_t *_dst, const uint8_t *_src, const uint8_t *unused0, const uint8_t *unused1,\
98 int width, uint32_t *rgb2yuv) \
100 const uint16_t *src = (const uint16_t *) _src; \
101 uint16_t *dst = (uint16_t *) _dst; \
102 rgb64ToY_c_template(dst, src, width, origin, rgb2yuv); \
105 static void pattern ## 64 ## BE_LE ## ToUV_c(uint8_t *_dstU, uint8_t *_dstV, \
106 const uint8_t *unused0, const uint8_t *_src1, const uint8_t *_src2, \
107 int width, uint32_t *rgb2yuv) \
109 const uint16_t *src1 = (const uint16_t *) _src1, \
110 *src2 = (const uint16_t *) _src2; \
111 uint16_t *dstU = (uint16_t *) _dstU, *dstV = (uint16_t *) _dstV; \
112 rgb64ToUV_c_template(dstU, dstV, src1, src2, width, origin, rgb2yuv); \
115 static void pattern ## 64 ## BE_LE ## ToUV_half_c(uint8_t *_dstU, uint8_t *_dstV, \
116 const uint8_t *unused0, const uint8_t *_src1, const uint8_t *_src2, \
117 int width, uint32_t *rgb2yuv) \
119 const uint16_t *src1 = (const uint16_t *) _src1, \
120 *src2 = (const uint16_t *) _src2; \
121 uint16_t *dstU = (uint16_t *) _dstU, *dstV = (uint16_t *) _dstV; \
122 rgb64ToUV_half_c_template(dstU, dstV, src1, src2, width, origin, rgb2yuv); \
135 for (i = 0; i <
width; i++) {
146 const uint16_t *src1,
147 const uint16_t *src2,
156 for (i = 0; i <
width; i++) {
168 const uint16_t *src1,
169 const uint16_t *src2,
178 for (i = 0; i <
width; i++) {
195 #define rgb48funcs(pattern, BE_LE, origin) \
196 static void pattern ## 48 ## BE_LE ## ToY_c(uint8_t *_dst, \
197 const uint8_t *_src, \
198 const uint8_t *unused0, const uint8_t *unused1,\
202 const uint16_t *src = (const uint16_t *)_src; \
203 uint16_t *dst = (uint16_t *)_dst; \
204 rgb48ToY_c_template(dst, src, width, origin, rgb2yuv); \
207 static void pattern ## 48 ## BE_LE ## ToUV_c(uint8_t *_dstU, \
209 const uint8_t *unused0, \
210 const uint8_t *_src1, \
211 const uint8_t *_src2, \
215 const uint16_t *src1 = (const uint16_t *)_src1, \
216 *src2 = (const uint16_t *)_src2; \
217 uint16_t *dstU = (uint16_t *)_dstU, \
218 *dstV = (uint16_t *)_dstV; \
219 rgb48ToUV_c_template(dstU, dstV, src1, src2, width, origin, rgb2yuv); \
222 static void pattern ## 48 ## BE_LE ## ToUV_half_c(uint8_t *_dstU, \
224 const uint8_t *unused0, \
225 const uint8_t *_src1, \
226 const uint8_t *_src2, \
230 const uint16_t *src1 = (const uint16_t *)_src1, \
231 *src2 = (const uint16_t *)_src2; \
232 uint16_t *dstU = (uint16_t *)_dstU, \
233 *dstV = (uint16_t *)_dstV; \
234 rgb48ToUV_half_c_template(dstU, dstV, src1, src2, width, origin, rgb2yuv); \
242 #define input_pixel(i) ((origin == AV_PIX_FMT_RGBA || \
243 origin == AV_PIX_FMT_BGRA || \
244 origin == AV_PIX_FMT_ARGB || \
245 origin == AV_PIX_FMT_ABGR) \
246 ? AV_RN32A(&src[(i) * 4]) \
247 : (isBE(origin) ? AV_RB16(&src[(i) * 2]) \
248 : AV_RL16(&src[(i) * 2])))
256 int maskr,
int maskg,
258 int gsh,
int bsh,
int S,
261 const int ry = rgb2yuv[
RY_IDX]<<rsh, gy = rgb2yuv[
GY_IDX]<<gsh, by = rgb2yuv[
BY_IDX]<<bsh;
262 const unsigned rnd = (32<<((
S)-1)) + (1<<(S-7));
265 for (i = 0; i <
width; i++) {
267 int b = (px & maskb) >> shb;
268 int g = (px & maskg) >> shg;
269 int r = (px & maskr) >> shr;
271 dst[i] = (ry * r + gy * g + by * b + rnd) >> ((S)-6);
282 int maskr,
int maskg,
284 int gsh,
int bsh,
int S,
287 const int ru = rgb2yuv[
RU_IDX] << rsh, gu = rgb2yuv[
GU_IDX] << gsh, bu = rgb2yuv[
BU_IDX] << bsh,
288 rv = rgb2yuv[
RV_IDX] << rsh, gv = rgb2yuv[
GV_IDX] << gsh, bv = rgb2yuv[
BV_IDX] << bsh;
289 const unsigned rnd = (256
u<<((
S)-1)) + (1<<(S-7));
292 for (i = 0; i <
width; i++) {
294 int b = (px & maskb) >> shb;
295 int g = (px & maskg) >> shg;
296 int r = (px & maskr) >> shr;
298 dstU[i] = (ru * r + gu * g + bu * b + rnd) >> ((S)-6);
299 dstV[i] = (rv * r + gv * g + bv * b + rnd) >> ((S)-6);
310 int maskr,
int maskg,
312 int gsh,
int bsh,
int S,
315 const int ru = rgb2yuv[
RU_IDX] << rsh, gu = rgb2yuv[
GU_IDX] << gsh, bu = rgb2yuv[
BU_IDX] << bsh,
316 rv = rgb2yuv[
RV_IDX] << rsh, gv = rgb2yuv[
GV_IDX] << gsh, bv = rgb2yuv[
BV_IDX] << bsh,
317 maskgx = ~(maskr | maskb);
318 const unsigned rnd = (256
U<<(
S)) + (1<<(S-6));
324 for (i = 0; i <
width; i++) {
327 int b,
r,
g = (px0 & maskgx) + (px1 & maskgx);
328 int rb = px0 + px1 -
g;
330 b = (rb & maskb) >> shb;
336 g = (g & maskg) >> shg;
338 r = (rb & maskr) >> shr;
340 dstU[i] = (ru * r + gu * g + bu * b + (unsigned)rnd) >> ((
S)-6+1);
341 dstV[i] = (rv * r + gv * g + bv * b + (unsigned)rnd) >> ((
S)-6+1);
347 #define rgb16_32_wrapper(fmt, name, shr, shg, shb, shp, maskr, \
348 maskg, maskb, rsh, gsh, bsh, S) \
349 static void name ## ToY_c(uint8_t *dst, const uint8_t *src, const uint8_t *unused1, const uint8_t *unused2, \
350 int width, uint32_t *tab) \
352 rgb16_32ToY_c_template((int16_t*)dst, src, width, fmt, shr, shg, shb, shp, \
353 maskr, maskg, maskb, rsh, gsh, bsh, S, tab); \
356 static void name ## ToUV_c(uint8_t *dstU, uint8_t *dstV, \
357 const uint8_t *unused0, const uint8_t *src, const uint8_t *dummy, \
358 int width, uint32_t *tab) \
360 rgb16_32ToUV_c_template((int16_t*)dstU, (int16_t*)dstV, src, width, fmt, \
361 shr, shg, shb, shp, \
362 maskr, maskg, maskb, rsh, gsh, bsh, S, tab);\
365 static void name ## ToUV_half_c(uint8_t *dstU, uint8_t *dstV, \
366 const uint8_t *unused0, const uint8_t *src, \
367 const uint8_t *dummy, \
368 int width, uint32_t *tab) \
370 rgb16_32ToUV_half_c_template((int16_t*)dstU, (int16_t*)dstV, src, width, fmt, \
371 shr, shg, shb, shp, \
372 maskr, maskg, maskb, \
373 rsh, gsh, bsh, S, tab); \
376 rgb16_32_wrapper(
AV_PIX_FMT_BGR32, bgr32, 16, 0, 0, 0, 0xFF0000, 0xFF00, 0x00FF, 8, 0, 8, RGB2YUV_SHIFT + 8)
377 rgb16_32_wrapper(
AV_PIX_FMT_BGR32_1,
bgr321, 16, 0, 0, 8, 0xFF0000, 0xFF00, 0x00FF, 8, 0, 8, RGB2YUV_SHIFT + 8)
378 rgb16_32_wrapper(
AV_PIX_FMT_RGB32, rgb32, 0, 0, 16, 0, 0x00FF, 0xFF00, 0xFF0000, 8, 0, 8, RGB2YUV_SHIFT + 8)
379 rgb16_32_wrapper(
AV_PIX_FMT_RGB32_1,
rgb321, 0, 0, 16, 8, 0x00FF, 0xFF00, 0xFF0000, 8, 0, 8, RGB2YUV_SHIFT + 8)
380 rgb16_32_wrapper(
AV_PIX_FMT_BGR565LE, bgr16le, 0, 0, 0, 0, 0x001F, 0x07E0, 0xF800, 11, 5, 0, RGB2YUV_SHIFT + 8)
381 rgb16_32_wrapper(
AV_PIX_FMT_BGR555LE,
bgr15le, 0, 0, 0, 0, 0x001F, 0x03E0, 0x7C00, 10, 5, 0, RGB2YUV_SHIFT + 7)
382 rgb16_32_wrapper(
AV_PIX_FMT_BGR444LE, bgr12le, 0, 0, 0, 0, 0x000F, 0x00F0, 0x0F00, 8, 4, 0, RGB2YUV_SHIFT + 4)
383 rgb16_32_wrapper(
AV_PIX_FMT_RGB565LE,
rgb16le, 0, 0, 0, 0, 0xF800, 0x07E0, 0x001F, 0, 5, 11, RGB2YUV_SHIFT + 8)
384 rgb16_32_wrapper(
AV_PIX_FMT_RGB555LE, rgb15le, 0, 0, 0, 0, 0x7C00, 0x03E0, 0x001F, 0, 5, 10, RGB2YUV_SHIFT + 7)
385 rgb16_32_wrapper(
AV_PIX_FMT_RGB444LE,
rgb12le, 0, 0, 0, 0, 0x0F00, 0x00F0, 0x000F, 0, 4, 8, RGB2YUV_SHIFT + 4)
386 rgb16_32_wrapper(
AV_PIX_FMT_BGR565BE, bgr16be, 0, 0, 0, 0, 0x001F, 0x07E0, 0xF800, 11, 5, 0, RGB2YUV_SHIFT + 8)
387 rgb16_32_wrapper(
AV_PIX_FMT_BGR555BE,
bgr15be, 0, 0, 0, 0, 0x001F, 0x03E0, 0x7C00, 10, 5, 0, RGB2YUV_SHIFT + 7)
388 rgb16_32_wrapper(
AV_PIX_FMT_BGR444BE, bgr12be, 0, 0, 0, 0, 0x000F, 0x00F0, 0x0F00, 8, 4, 0, RGB2YUV_SHIFT + 4)
389 rgb16_32_wrapper(
AV_PIX_FMT_RGB565BE,
rgb16be, 0, 0, 0, 0, 0xF800, 0x07E0, 0x001F, 0, 5, 11, RGB2YUV_SHIFT + 8)
390 rgb16_32_wrapper(
AV_PIX_FMT_RGB555BE, rgb15be, 0, 0, 0, 0, 0x7C00, 0x03E0, 0x001F, 0, 5, 10, RGB2YUV_SHIFT + 7)
391 rgb16_32_wrapper(
AV_PIX_FMT_RGB444BE,
rgb12be, 0, 0, 0, 0, 0x0F00, 0x00F0, 0x000F, 0, 4, 8, RGB2YUV_SHIFT + 4)
395 int width, uint32_t *rgb2yuv)
397 uint16_t *dstU = (uint16_t *)_dstU;
398 uint16_t *dstV = (uint16_t *)_dstV;
403 for (i = 0; i <
width; i++) {
404 unsigned int g = gsrc[2*i] + gsrc[2*i+1];
405 unsigned int b = bsrc[2*i] + bsrc[2*i+1];
406 unsigned int r = rsrc[2*i] + rsrc[2*i+1];
416 int16_t *dst = (int16_t *)_dst;
417 const uint16_t *
src = (
const uint16_t *)_src;
419 for (i = 0; i <
width; i++)
420 dst[i] = src[4 * i + 3];
425 int16_t *dst = (int16_t *)_dst;
427 for (i=0; i<
width; i++) {
434 int16_t *dst = (int16_t *)_dst;
436 for (i=0; i<
width; i++) {
437 dst[i]= src[4*i+3]<<6;
443 int16_t *dst = (int16_t *)_dst;
445 for (i=0; i<
width; i++) {
448 dst[i]= (pal[d] >> 24)<<6;
454 int16_t *dst = (int16_t *)_dst;
456 for (i = 0; i <
width; i++) {
459 dst[i] = (pal[d] & 0xFF)<<6;
465 int width, uint32_t *pal)
467 uint16_t *dstU = (uint16_t *)_dstU;
468 int16_t *dstV = (int16_t *)_dstV;
471 for (i = 0; i <
width; i++) {
472 int p = pal[src1[i]];
481 int16_t *dst = (int16_t *)_dst;
483 width = (width + 7) >> 3;
484 for (i = 0; i <
width; i++) {
486 for (j = 0; j < 8; j++)
487 dst[8*i+j]= ((d>>(7-j))&1) * 16383;
491 for (j = 0; j < (width&7); j++)
492 dst[8*i+j]= ((d>>(7-j))&1) * 16383;
498 int16_t *dst = (int16_t *)_dst;
500 width = (width + 7) >> 3;
501 for (i = 0; i <
width; i++) {
503 for (j = 0; j < 8; j++)
504 dst[8*i+j]= ((d>>(7-j))&1) * 16383;
508 for (j = 0; j < (width&7); j++)
509 dst[8*i+j] = ((d>>(7-j))&1) * 16383;
517 for (i = 0; i <
width; i++)
525 for (i = 0; i <
width; i++) {
526 dstU[i] = src1[4 * i + 1];
527 dstV[i] = src1[4 * i + 3];
536 const uint16_t *
src = (
const uint16_t *)_src;
537 uint16_t *dst = (uint16_t *)_dst;
538 for (i = 0; i <
width; i++)
546 const uint16_t *src1 = (
const uint16_t *)_src1,
547 *src2 = (
const uint16_t *)_src2;
548 uint16_t *dstU = (uint16_t *)_dstU, *dstV = (uint16_t *)_dstV;
549 for (i = 0; i <
width; i++) {
561 for (i = 0; i <
width; i++)
562 dst[i] = src[2 * i + 1];
569 for (i = 0; i <
width; i++) {
570 dstU[i] = src1[4 * i + 0];
571 dstV[i] = src1[4 * i + 2];
580 for (i = 0; i <
width; i++) {
581 dst1[i] = src[2 * i + 0];
582 dst2[i] = src[2 * i + 1];
588 int width, uint32_t *unused)
595 int width, uint32_t *unused)
600 #define input_pixel(pos) (isBE(origin) ? AV_RB16(pos) : AV_RL16(pos))
603 int width, uint32_t *rgb2yuv)
605 int16_t *dst = (int16_t *)_dst;
608 for (i = 0; i <
width; i++) {
609 int b = src[i * 3 + 0];
610 int g = src[i * 3 + 1];
611 int r = src[i * 3 + 2];
620 int16_t *dstU = (int16_t *)_dstU;
621 int16_t *dstV = (int16_t *)_dstV;
625 for (i = 0; i <
width; i++) {
626 int b = src1[3 * i + 0];
627 int g = src1[3 * i + 1];
628 int r = src1[3 * i + 2];
639 int16_t *dstU = (int16_t *)_dstU;
640 int16_t *dstV = (int16_t *)_dstV;
644 for (i = 0; i <
width; i++) {
645 int b = src1[6 * i + 0] + src1[6 * i + 3];
646 int g = src1[6 * i + 1] + src1[6 * i + 4];
647 int r = src1[6 * i + 2] + src1[6 * i + 5];
658 int16_t *dst = (int16_t *)_dst;
661 for (i = 0; i <
width; i++) {
662 int r = src[i * 3 + 0];
663 int g = src[i * 3 + 1];
664 int b = src[i * 3 + 2];
673 int16_t *dstU = (int16_t *)_dstU;
674 int16_t *dstV = (int16_t *)_dstV;
679 for (i = 0; i <
width; i++) {
680 int r = src1[3 * i + 0];
681 int g = src1[3 * i + 1];
682 int b = src1[3 * i + 2];
692 int16_t *dstU = (int16_t *)_dstU;
693 int16_t *dstV = (int16_t *)_dstV;
698 for (i = 0; i <
width; i++) {
699 int r = src1[6 * i + 0] + src1[6 * i + 3];
700 int g = src1[6 * i + 1] + src1[6 * i + 4];
701 int b = src1[6 * i + 2] + src1[6 * i + 5];
710 uint16_t *dst = (uint16_t *)_dst;
713 for (i = 0; i <
width; i++) {
724 uint16_t *dst = (uint16_t *)_dst;
726 for (i = 0; i <
width; i++)
727 dst[i] = src[3][i] << 6;
732 uint16_t *dstU = (uint16_t *)_dstU;
733 uint16_t *dstV = (uint16_t *)_dstV;
737 for (i = 0; i <
width; i++) {
748 is_be ? AV_RB16(src) : AV_RL16(src)
753 const uint16_t **
src = (
const uint16_t **)_src;
754 uint16_t *dst = (uint16_t *)_dst;
756 int shift = bpc < 16 ? bpc : 14;
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 int shift = bpc < 16 ? bpc : 14;
777 for (i = 0; i <
width; i++) {
778 int g =
rdpx(src[0] + i);
779 int b =
rdpx(src[1] + i);
780 int r =
rdpx(src[2] + i);
788 #define rgb9plus_planar_funcs_endian(nbits, endian_name, endian) \
789 static void planar_rgb##nbits##endian_name##_to_y(uint8_t *dst, const uint8_t *src[4], \
790 int w, int32_t *rgb2yuv) \
792 planar_rgb16_to_y(dst, src, w, nbits, endian, rgb2yuv); \
794 static void planar_rgb##nbits##endian_name##_to_uv(uint8_t *dstU, uint8_t *dstV, \
795 const uint8_t *src[4], int w, int32_t *rgb2yuv) \
797 planar_rgb16_to_uv(dstU, dstV, src, w, nbits, endian, rgb2yuv); \
800 #define rgb9plus_planar_funcs(nbits) \
801 rgb9plus_planar_funcs_endian(nbits, le, 0) \
802 rgb9plus_planar_funcs_endian(nbits, be, 1)
836 c->readChrPlanar = planar_rgb9le_to_uv;
839 c->readChrPlanar = planar_rgb10le_to_uv;
842 c->readChrPlanar = planar_rgb12le_to_uv;
845 c->readChrPlanar = planar_rgb14le_to_uv;
849 c->readChrPlanar = planar_rgb16le_to_uv;
852 c->readChrPlanar = planar_rgb9be_to_uv;
855 c->readChrPlanar = planar_rgb10be_to_uv;
858 c->readChrPlanar = planar_rgb12be_to_uv;
861 c->readChrPlanar = planar_rgb14be_to_uv;
865 c->readChrPlanar = planar_rgb16be_to_uv;
929 if (c->chrSrcHSubSample) {
932 c->chrToYV12 = rgb64BEToUV_half_c;
935 c->chrToYV12 = rgb64LEToUV_half_c;
938 c->chrToYV12 = rgb48BEToUV_half_c;
941 c->chrToYV12 = rgb48LEToUV_half_c;
944 c->chrToYV12 = bgr48BEToUV_half_c;
947 c->chrToYV12 = bgr48LEToUV_half_c;
950 c->chrToYV12 = bgr32ToUV_half_c;
953 c->chrToYV12 = bgr321ToUV_half_c;
959 c->chrToYV12 = bgr16leToUV_half_c;
962 c->chrToYV12 = bgr16beToUV_half_c;
965 c->chrToYV12 = bgr15leToUV_half_c;
968 c->chrToYV12 = bgr15beToUV_half_c;
975 c->chrToYV12 = bgr12leToUV_half_c;
978 c->chrToYV12 = bgr12beToUV_half_c;
981 c->chrToYV12 = rgb32ToUV_half_c;
984 c->chrToYV12 = rgb321ToUV_half_c;
990 c->chrToYV12 = rgb16leToUV_half_c;
993 c->chrToYV12 = rgb16beToUV_half_c;
996 c->chrToYV12 = rgb15leToUV_half_c;
999 c->chrToYV12 = rgb15beToUV_half_c;
1002 c->chrToYV12 = rgb12leToUV_half_c;
1005 c->chrToYV12 = rgb12beToUV_half_c;
1009 switch (srcFormat) {
1011 c->chrToYV12 = rgb64BEToUV_c;
1014 c->chrToYV12 = rgb64LEToUV_c;
1017 c->chrToYV12 = rgb48BEToUV_c;
1020 c->chrToYV12 = rgb48LEToUV_c;
1023 c->chrToYV12 = bgr48BEToUV_c;
1026 c->chrToYV12 = bgr48LEToUV_c;
1029 c->chrToYV12 = bgr32ToUV_c;
1032 c->chrToYV12 = bgr321ToUV_c;
1038 c->chrToYV12 = bgr16leToUV_c;
1041 c->chrToYV12 = bgr16beToUV_c;
1044 c->chrToYV12 = bgr15leToUV_c;
1047 c->chrToYV12 = bgr15beToUV_c;
1050 c->chrToYV12 = bgr12leToUV_c;
1053 c->chrToYV12 = bgr12beToUV_c;
1056 c->chrToYV12 = rgb32ToUV_c;
1059 c->chrToYV12 = rgb321ToUV_c;
1065 c->chrToYV12 = rgb16leToUV_c;
1068 c->chrToYV12 = rgb16beToUV_c;
1071 c->chrToYV12 = rgb15leToUV_c;
1074 c->chrToYV12 = rgb15beToUV_c;
1077 c->chrToYV12 = rgb12leToUV_c;
1080 c->chrToYV12 = rgb12beToUV_c;
1085 c->lumToYV12 = NULL;
1086 c->alpToYV12 = NULL;
1087 switch (srcFormat) {
1089 c->readLumPlanar = planar_rgb9le_to_y;
1092 c->readLumPlanar = planar_rgb10le_to_y;
1095 c->readLumPlanar = planar_rgb12le_to_y;
1098 c->readLumPlanar = planar_rgb14le_to_y;
1102 c->readLumPlanar = planar_rgb16le_to_y;
1105 c->readLumPlanar = planar_rgb9be_to_y;
1108 c->readLumPlanar = planar_rgb10be_to_y;
1111 c->readLumPlanar = planar_rgb12be_to_y;
1114 c->readLumPlanar = planar_rgb14be_to_y;
1118 c->readLumPlanar = planar_rgb16be_to_y;
1201 c->lumToYV12 = bgr16leToY_c;
1204 c->lumToYV12 = bgr16beToY_c;
1207 c->lumToYV12 = bgr15leToY_c;
1210 c->lumToYV12 = bgr15beToY_c;
1213 c->lumToYV12 = bgr12leToY_c;
1216 c->lumToYV12 = bgr12beToY_c;
1222 c->lumToYV12 = rgb16leToY_c;
1225 c->lumToYV12 = rgb16beToY_c;
1228 c->lumToYV12 = rgb15leToY_c;
1231 c->lumToYV12 = rgb15beToY_c;
1234 c->lumToYV12 = rgb12leToY_c;
1237 c->lumToYV12 = rgb12beToY_c;
1253 c->lumToYV12 = bgr32ToY_c;
1256 c->lumToYV12 = bgr321ToY_c;
1259 c->lumToYV12 = rgb32ToY_c;
1262 c->lumToYV12 = rgb321ToY_c;
1265 c->lumToYV12 = rgb48BEToY_c;
1268 c->lumToYV12 = rgb48LEToY_c;
1271 c->lumToYV12 = bgr48BEToY_c;
1274 c->lumToYV12 = bgr48LEToY_c;
1277 c->lumToYV12 = rgb64BEToY_c;
1280 c->lumToYV12 = rgb64LEToY_c;
1285 if (HAVE_BIGENDIAN == !
isBE(srcFormat))
1288 switch (srcFormat) {