Mercurial > libavcodec.hg
changeset 4580:55d7ebd2d699 libavcodec
fix chroma mc2 bug, this is based on a patch by (Oleg Metelitsa oleg hitron co kr)
and does slow the mc2 chroma put down, avg interrestingly seems unaffected speedwise on duron
this of course should be rather done in a way which doesnt slow it down but its better a few %
slower but correct then incorrect
author | michael |
---|---|
date | Fri, 23 Feb 2007 14:29:13 +0000 |
parents | 03f7feb14dd3 |
children | b7f44275b2af |
files | i386/dsputil_h264_template_mmx.c |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/i386/dsputil_h264_template_mmx.c Fri Feb 23 10:23:45 2007 +0000 +++ b/i386/dsputil_h264_template_mmx.c Fri Feb 23 14:29:13 2007 +0000 @@ -293,11 +293,14 @@ /* writes garbage to the right of dst. * ok because partitions are processed from left to right. */ H264_CHROMA_OP4((%0), %%mm1, %%mm3) - "movd %%mm1, (%0)\n\t" + "movd %%mm1, %%esi\n\t" + "movw %%si, (%0)\n\t" "add %4, %0\n\t" "sub $1, %2\n\t" "jnz 1b\n\t" - : "+r" (dst), "+r"(src), "+r"(h) : "m" (ff_pw_32), "r"(stride)); + : "+r" (dst), "+r"(src), "+r"(h) + : "m" (ff_pw_32), "r"(stride) + : "%esi"); } #endif