Revision a4e44130

View differences:

libswscale/swscale_internal.h
395 395
        || (x)==PIX_FMT_RGB565LE    \
396 396
        || (x)==PIX_FMT_RGB555BE    \
397 397
        || (x)==PIX_FMT_RGB555LE    \
398
        || (x)==PIX_FMT_RGB444      \
398
        || (x)==PIX_FMT_RGB444BE    \
399
        || (x)==PIX_FMT_RGB444LE    \
399 400
        || (x)==PIX_FMT_RGB8        \
400 401
        || (x)==PIX_FMT_RGB4        \
401 402
        || (x)==PIX_FMT_RGB4_BYTE   \
......
410 411
        || (x)==PIX_FMT_BGR565LE    \
411 412
        || (x)==PIX_FMT_BGR555BE    \
412 413
        || (x)==PIX_FMT_BGR555LE    \
413
        || (x)==PIX_FMT_BGR444      \
414
        || (x)==PIX_FMT_BGR444BE    \
415
        || (x)==PIX_FMT_BGR444LE    \
414 416
        || (x)==PIX_FMT_BGR8        \
415 417
        || (x)==PIX_FMT_BGR4        \
416 418
        || (x)==PIX_FMT_BGR4_BYTE   \
libswscale/yuv2rgb.c
630 630
                        || c->dstFormat==PIX_FMT_RGB565LE
631 631
                        || c->dstFormat==PIX_FMT_RGB555BE
632 632
                        || c->dstFormat==PIX_FMT_RGB555LE
633
                        || c->dstFormat==PIX_FMT_RGB444
633
                        || c->dstFormat==PIX_FMT_RGB444BE
634
                        || c->dstFormat==PIX_FMT_RGB444LE
634 635
                        || c->dstFormat==PIX_FMT_RGB8
635 636
                        || c->dstFormat==PIX_FMT_RGB4
636 637
                        || c->dstFormat==PIX_FMT_RGB4_BYTE
637 638
                        || c->dstFormat==PIX_FMT_MONOBLACK;
638 639
    const int isNotNe =    c->dstFormat==PIX_FMT_NE(RGB565LE,RGB565BE)
639 640
                        || c->dstFormat==PIX_FMT_NE(RGB555LE,RGB555BE)
641
                        || c->dstFormat==PIX_FMT_NE(RGB444LE,RGB444BE)
640 642
                        || c->dstFormat==PIX_FMT_NE(BGR565LE,BGR565BE)
641
                        || c->dstFormat==PIX_FMT_NE(BGR555LE,BGR555BE);
643
                        || c->dstFormat==PIX_FMT_NE(BGR555LE,BGR555BE)
644
                        || c->dstFormat==PIX_FMT_NE(BGR444LE,BGR444BE);
642 645
    const int bpp = c->dstFormatBpp;
643 646
    uint8_t *y_table;
644 647
    uint16_t *y_table16;
......
745 748
            y_table16[i+2048] = (yval >> 4) << bbase;
746 749
            yb += cy;
747 750
        }
751
        if (isNotNe)
752
            for (i = 0; i < 1024*3; i++)
753
                y_table16[i] = bswap_16(y_table16[i]);
748 754
        fill_table(c->table_rV, 2, crv, y_table16 + yoffs);
749 755
        fill_table(c->table_gU, 2, cgu, y_table16 + yoffs + 1024);
750 756
        fill_table(c->table_bU, 2, cbu, y_table16 + yoffs + 2048);

Also available in: Unified diff