[Ffmpeg-cvslog] CVS: ffmpeg/libavcodec/i386 idct_mmx.c,1.5,1.6

Michael Niedermayer CVS michael
Wed Jun 1 03:18:44 CEST 2005


Update of /cvsroot/ffmpeg/ffmpeg/libavcodec/i386
In directory mail:/var2/tmp/cvs-serv10116

Modified Files:
	idct_mmx.c 
Log Message:
add rounding bias before the horizontal idct (765->730 dezicyles on duron)


Index: idct_mmx.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/i386/idct_mmx.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- idct_mmx.c	31 May 2005 22:48:33 -0000	1.5
+++ idct_mmx.c	1 Jun 2005 01:18:41 -0000	1.6
@@ -641,7 +641,6 @@
 
 #define STORE_DIFF_4P( p, t, pw32, z, dst ) \
     asm volatile(\
-        "paddw     "#pw32", "#p" \n\t"\
         "psraw      $6,     "#p" \n\t"\
         "movd       (%0),   "#t" \n\t"\
         "punpcklbw "#z",    "#t" \n\t"\
@@ -665,9 +664,12 @@
         /* mm1=s02+s13  mm2=s02-s13  mm4=d02+d13  mm0=d02-d13 */
         IDCT4_1D( %%mm2, %%mm1, %%mm0, %%mm3, %%mm4, %%mm5 )
 
+        "movq     ff_pw_32, %%mm6 \n\t"
         /* in: 1,4,0,2  out: 1,2,3,0 */
         TRANSPOSE4( %%mm1, %%mm4, %%mm0, %%mm2, %%mm3 )
 
+        "paddw     %%mm6, %%mm1 \n\t"
+
         /* mm2=s02+s13  mm3=s02-s13  mm4=d02+d13  mm1=d02-d13 */
         IDCT4_1D( %%mm3, %%mm2, %%mm1, %%mm0, %%mm4, %%mm5 )
 
@@ -675,7 +677,6 @@
         TRANSPOSE4( %%mm2, %%mm4, %%mm1, %%mm3, %%mm0 )
 
         "pxor %%mm7, %%mm7    \n\t"
-        "movq ff_pw_32, %%mm6 \n\t"
     :: );
 
     STORE_DIFF_4P( %%mm2, %%mm4, %%mm6, %%mm7, &dst[0*stride] );





More information about the ffmpeg-cvslog mailing list