Revision f344903c libswscale/swscale_template.c

View differences:

libswscale/swscale_template.c
1883 1883
static inline void RENAME(bgr24ToUV_mmx)(uint8_t *dstU, uint8_t *dstV, const uint8_t *src, long width, enum PixelFormat srcFormat)
1884 1884
{
1885 1885
    __asm__ volatile(
1886
        "movq                    24+%4, %%mm6       \n\t"
1886
        "movq                   24(%4), %%mm6       \n\t"
1887 1887
        "mov                        %3, %%"REG_a"   \n\t"
1888 1888
        "pxor                    %%mm7, %%mm7       \n\t"
1889 1889
        "1:                                         \n\t"
......
1894 1894
        "punpcklbw               %%mm7, %%mm1       \n\t"
1895 1895
        "movq                    %%mm0, %%mm2       \n\t"
1896 1896
        "movq                    %%mm1, %%mm3       \n\t"
1897
        "pmaddwd                    %4, %%mm0       \n\t"
1898
        "pmaddwd                  8+%4, %%mm1       \n\t"
1899
        "pmaddwd                 16+%4, %%mm2       \n\t"
1897
        "pmaddwd                  (%4), %%mm0       \n\t"
1898
        "pmaddwd                 8(%4), %%mm1       \n\t"
1899
        "pmaddwd                16(%4), %%mm2       \n\t"
1900 1900
        "pmaddwd                 %%mm6, %%mm3       \n\t"
1901 1901
        "paddd                   %%mm1, %%mm0       \n\t"
1902 1902
        "paddd                   %%mm3, %%mm2       \n\t"
......
1908 1908
        "punpcklbw               %%mm7, %%mm3       \n\t"
1909 1909
        "movq                    %%mm1, %%mm4       \n\t"
1910 1910
        "movq                    %%mm3, %%mm5       \n\t"
1911
        "pmaddwd                    %4, %%mm1       \n\t"
1912
        "pmaddwd                  8+%4, %%mm3       \n\t"
1913
        "pmaddwd                 16+%4, %%mm4       \n\t"
1911
        "pmaddwd                  (%4), %%mm1       \n\t"
1912
        "pmaddwd                 8(%4), %%mm3       \n\t"
1913
        "pmaddwd                16(%4), %%mm4       \n\t"
1914 1914
        "pmaddwd                 %%mm6, %%mm5       \n\t"
1915 1915
        "paddd                   %%mm3, %%mm1       \n\t"
1916 1916
        "paddd                   %%mm5, %%mm4       \n\t"
......
1933 1933
        "add                        $4, %%"REG_a"   \n\t"
1934 1934
        " js                        1b              \n\t"
1935 1935
    : "+r" (src)
1936
    : "r" (dstU+width), "r" (dstV+width), "g" ((x86_reg)-width), "m"(ff_bgr24toUV[srcFormat == PIX_FMT_RGB24][0])
1936
    : "r" (dstU+width), "r" (dstV+width), "g" ((x86_reg)-width), "r"(ff_bgr24toUV[srcFormat == PIX_FMT_RGB24])
1937 1937
    : "%"REG_a
1938 1938
    );
1939 1939
}

Also available in: Unified diff