Browse Source

100l (signed vs. unsigend)

Originally committed as revision 3530 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Michael Niedermayer 21 years ago
parent
commit
a5cd3c48fb
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      libavcodec/libpostproc/postprocess_template.c

+ 4
- 2
libavcodec/libpostproc/postprocess_template.c View File

@@ -2707,12 +2707,14 @@ asm volatile(
"paddb %%mm2, %%mm0 \n\t"
"psubusb %%mm3, %%mm4 \n\t"

"pxor %%mm6, %%mm6 \n\t"
"movq %4, %%mm7 \n\t" // QP,..., QP
"paddusb %%mm7, %%mm7 \n\t" // 2QP ... 2QP
"pcmpgtb %%mm4, %%mm7 \n\t" // Diff < 2QP -> FF
"psubusb %%mm4, %%mm7 \n\t" // Diff >=2QP -> 0
"pcmpeqb %%mm6, %%mm7 \n\t" // Diff < 2QP -> 0
"pcmpeqb %%mm6, %%mm7 \n\t" // Diff < 2QP -> 0
"movq %%mm7, %1 \n\t"

"pxor %%mm6, %%mm6 \n\t"
"movq %5, %%mm7 \n\t"
"punpcklbw %%mm7, %%mm7 \n\t"
"punpcklbw %%mm7, %%mm7 \n\t"


Loading…
Cancel
Save