Commit 52a81cd0 authored by Michael Niedermayer's avatar Michael Niedermayer

Fix add_paeth_prediction_mmx for rgb48

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent afd2371d
...@@ -55,8 +55,11 @@ static void add_bytes_l2_mmx(uint8_t *dst, uint8_t *src1, uint8_t *src2, int w) ...@@ -55,8 +55,11 @@ static void add_bytes_l2_mmx(uint8_t *dst, uint8_t *src1, uint8_t *src2, int w)
#define PAETH(cpu, abs3)\ #define PAETH(cpu, abs3)\
static void add_paeth_prediction_##cpu(uint8_t *dst, uint8_t *src, uint8_t *top, int w, int bpp)\ static void add_paeth_prediction_##cpu(uint8_t *dst, uint8_t *src, uint8_t *top, int w, int bpp)\
{\ {\
x86_reg i = -bpp;\ x86_reg i, end;\
x86_reg end = w-3;\ if(bpp>4) add_paeth_prediction_##cpu(dst+bpp/2, src+bpp/2, top+bpp/2, w-bpp/2, -bpp);\
if(bpp<0) bpp=-bpp;\
i= -bpp;\
end = w-3;\
__asm__ volatile(\ __asm__ volatile(\
"pxor %%mm7, %%mm7 \n"\ "pxor %%mm7, %%mm7 \n"\
"movd (%1,%0), %%mm0 \n"\ "movd (%1,%0), %%mm0 \n"\
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment