[FFmpeg-soc] [soc]: r1126 - rv40/rv40.c

kostya subversion at mplayerhq.hu
Tue Aug 21 08:20:32 CEST 2007


Author: kostya
Date: Tue Aug 21 08:20:32 2007
New Revision: 1126

Log:
Slightly optimize transform

Modified:
   rv40/rv40.c

Modified: rv40/rv40.c
==============================================================================
--- rv40/rv40.c	(original)
+++ rv40/rv40.c	Tue Aug 21 08:20:32 2007
@@ -269,15 +269,15 @@ static void rv40_intra_inv_transform(DCT
     }
 
     for(i=0; i<4; i++){
-        const int z0= 13*(temp[4*0+i] +    temp[4*2+i]);
-        const int z1= 13*(temp[4*0+i] -    temp[4*2+i]);
+        const int z0= 13*(temp[4*0+i] +    temp[4*2+i]) + 0x200;
+        const int z1= 13*(temp[4*0+i] -    temp[4*2+i]) + 0x200;
         const int z2=  7* temp[4*1+i] - 17*temp[4*3+i];
         const int z3= 17* temp[4*1+i] +  7*temp[4*3+i];
 
-        block[offset+i*8+0]= ((z0 + z3) + 0x200)>>10;
-        block[offset+i*8+1]= ((z1 + z2) + 0x200)>>10;
-        block[offset+i*8+2]= ((z1 - z2) + 0x200)>>10;
-        block[offset+i*8+3]= ((z0 - z3) + 0x200)>>10;
+        block[offset+i*8+0]= (z0 + z3)>>10;
+        block[offset+i*8+1]= (z1 + z2)>>10;
+        block[offset+i*8+2]= (z1 - z2)>>10;
+        block[offset+i*8+3]= (z0 - z3)>>10;
     }
 
 }



More information about the FFmpeg-soc mailing list