Browse Source

sws: yuv2rgb asm, add memory clobber.

This fixes dithering for rgb555le, it appears gcc had moved the
setup of the variables after the asm or something like that.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.10
Michael Niedermayer 13 years ago
parent
commit
05577aafaa
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libswscale/x86/yuv2rgb_template.c

+ 2
- 0
libswscale/x86/yuv2rgb_template.c View File

@@ -138,6 +138,7 @@
: "+r" (index), "+r" (image) \ : "+r" (index), "+r" (image) \
: "r" (pu - index), "r" (pv - index), "r"(&c->redDither), \ : "r" (pu - index), "r" (pv - index), "r"(&c->redDither), \
"r" (py - 2*index) \ "r" (py - 2*index) \
: "memory" \
); \ ); \
} \ } \


@@ -145,6 +146,7 @@
: "+r" (index), "+r" (image) \ : "+r" (index), "+r" (image) \
: "r" (pu - index), "r" (pv - index), "r"(&c->redDither), \ : "r" (pu - index), "r" (pv - index), "r"(&c->redDither), \
"r" (py - 2*index), "r" (pa - 2*index) \ "r" (py - 2*index), "r" (pa - 2*index) \
: "memory" \
); \ ); \
} \ } \




Loading…
Cancel
Save