Revision 76f8a96e

View differences:

libswscale/ppc/swscale_template.c
778 778
        c->hcscale_fast = RENAME(hcscale_fast);
779 779
    }
780 780

  
781
    c->chrToYV12 = NULL;
782 781
    switch(srcFormat) {
783 782
        case PIX_FMT_YUYV422  : c->chrToYV12 = RENAME(yuy2ToUV); break;
784 783
        case PIX_FMT_UYVY422  : c->chrToYV12 = RENAME(uyvyToUV); break;
785 784
        case PIX_FMT_NV12     : c->chrToYV12 = RENAME(nv12ToUV); break;
786 785
        case PIX_FMT_NV21     : c->chrToYV12 = RENAME(nv21ToUV); break;
787
        case PIX_FMT_RGB8     :
788
        case PIX_FMT_BGR8     :
789
        case PIX_FMT_PAL8     :
790
        case PIX_FMT_BGR4_BYTE:
791
        case PIX_FMT_RGB4_BYTE: c->chrToYV12 = palToUV; break;
792 786
        case PIX_FMT_YUV420P16BE:
793 787
        case PIX_FMT_YUV422P16BE:
794 788
        case PIX_FMT_YUV444P16BE: c->chrToYV12 = RENAME(BEToUV); break;
......
798 792
    }
799 793
    if (c->chrSrcHSubSample) {
800 794
        switch(srcFormat) {
801
        case PIX_FMT_RGB48BE:
802
        case PIX_FMT_RGB48LE: c->chrToYV12 = rgb48ToUV_half; break;
803
        case PIX_FMT_RGB32  : c->chrToYV12 = bgr32ToUV_half;  break;
804
        case PIX_FMT_RGB32_1: c->chrToYV12 = bgr321ToUV_half; break;
805 795
        case PIX_FMT_BGR24  : c->chrToYV12 = RENAME(bgr24ToUV_half); break;
806
        case PIX_FMT_BGR565 : c->chrToYV12 = bgr16ToUV_half; break;
807
        case PIX_FMT_BGR555 : c->chrToYV12 = bgr15ToUV_half; break;
808
        case PIX_FMT_BGR32  : c->chrToYV12 = rgb32ToUV_half;  break;
809
        case PIX_FMT_BGR32_1: c->chrToYV12 = rgb321ToUV_half; break;
810 796
        case PIX_FMT_RGB24  : c->chrToYV12 = RENAME(rgb24ToUV_half); break;
811
        case PIX_FMT_RGB565 : c->chrToYV12 = rgb16ToUV_half; break;
812
        case PIX_FMT_RGB555 : c->chrToYV12 = rgb15ToUV_half; break;
813 797
        }
814 798
    } else {
815 799
        switch(srcFormat) {
816
        case PIX_FMT_RGB48BE:
817
        case PIX_FMT_RGB48LE: c->chrToYV12 = rgb48ToUV; break;
818
        case PIX_FMT_RGB32  : c->chrToYV12 = bgr32ToUV;  break;
819
        case PIX_FMT_RGB32_1: c->chrToYV12 = bgr321ToUV; break;
820 800
        case PIX_FMT_BGR24  : c->chrToYV12 = RENAME(bgr24ToUV); break;
821
        case PIX_FMT_BGR565 : c->chrToYV12 = bgr16ToUV; break;
822
        case PIX_FMT_BGR555 : c->chrToYV12 = bgr15ToUV; break;
823
        case PIX_FMT_BGR32  : c->chrToYV12 = rgb32ToUV;  break;
824
        case PIX_FMT_BGR32_1: c->chrToYV12 = rgb321ToUV; break;
825 801
        case PIX_FMT_RGB24  : c->chrToYV12 = RENAME(rgb24ToUV); break;
826
        case PIX_FMT_RGB565 : c->chrToYV12 = rgb16ToUV; break;
827
        case PIX_FMT_RGB555 : c->chrToYV12 = rgb15ToUV; break;
828 802
        }
829 803
    }
830 804

  
831
    c->lumToYV12 = NULL;
832
    c->alpToYV12 = NULL;
833 805
    switch (srcFormat) {
834 806
    case PIX_FMT_YUYV422  :
835 807
    case PIX_FMT_YUV420P16BE:
......
843 815
    case PIX_FMT_YUV444P16LE:
844 816
    case PIX_FMT_GRAY16LE : c->lumToYV12 = RENAME(uyvyToY); break;
845 817
    case PIX_FMT_BGR24    : c->lumToYV12 = RENAME(bgr24ToY); break;
846
    case PIX_FMT_BGR565   : c->lumToYV12 = bgr16ToY; break;
847
    case PIX_FMT_BGR555   : c->lumToYV12 = bgr15ToY; break;
848 818
    case PIX_FMT_RGB24    : c->lumToYV12 = RENAME(rgb24ToY); break;
849
    case PIX_FMT_RGB565   : c->lumToYV12 = rgb16ToY; break;
850
    case PIX_FMT_RGB555   : c->lumToYV12 = rgb15ToY; break;
851
    case PIX_FMT_RGB8     :
852
    case PIX_FMT_BGR8     :
853
    case PIX_FMT_PAL8     :
854
    case PIX_FMT_BGR4_BYTE:
855
    case PIX_FMT_RGB4_BYTE: c->lumToYV12 = palToY; break;
856
    case PIX_FMT_MONOBLACK: c->lumToYV12 = monoblack2Y; break;
857
    case PIX_FMT_MONOWHITE: c->lumToYV12 = monowhite2Y; break;
858
    case PIX_FMT_RGB32  : c->lumToYV12 = bgr32ToY;  break;
859
    case PIX_FMT_RGB32_1: c->lumToYV12 = bgr321ToY; break;
860
    case PIX_FMT_BGR32  : c->lumToYV12 = rgb32ToY;  break;
861
    case PIX_FMT_BGR32_1: c->lumToYV12 = rgb321ToY; break;
862
    case PIX_FMT_RGB48BE:
863
    case PIX_FMT_RGB48LE: c->lumToYV12 = rgb48ToY; break;
864 819
    }
865 820
    if (c->alpPixBuf) {
866 821
        switch (srcFormat) {
867
        case PIX_FMT_RGB32  :
868
        case PIX_FMT_RGB32_1:
869
        case PIX_FMT_BGR32  :
870
        case PIX_FMT_BGR32_1: c->alpToYV12 = abgrToA; break;
871 822
        case PIX_FMT_Y400A  : c->alpToYV12 = RENAME(yuy2ToY); break;
872 823
        }
873 824
    }
tests/ref/lavfi/pixdesc_be
27 27
yuv410p             2d9225153c83ee1132397d619d94d1b3
28 28
yuv411p             8b298af3e43348ca1b11eb8a3252ac6c
29 29
yuv420p             eba2f135a08829387e2f698ff72a2939
30
yuv420p10be         7605e266c088d0fcf68c7b27c3ceff5f
31
yuv420p10le         4228ee628c6deec123a13b9784516cc7
30 32
yuv420p16be         16c009a235cd52b74791a895423152a3
31 33
yuv420p16le         2d59c4f1d0314a5a957a7cfc4b6fabcc
34
yuv420p9be          ce880fa07830e5297c22acf6e20555ce
35
yuv420p9le          16543fda8f87d94a6cf857d2e8d4461a
32 36
yuv422p             c9bba4529821d796a6ab09f6a5fd355a
33 37
yuv422p16be         5499502e1c29534a158a1fe60e889f60
34 38
yuv422p16le         e3d61fde6978591596bc36b914386623

Also available in: Unified diff