[FFmpeg-cvslog] r10155 - trunk/libavcodec/snow.h

michael subversion
Tue Aug 21 00:26:50 CEST 2007


Author: michael
Date: Tue Aug 21 00:26:49 2007
New Revision: 10155

Log:
more stupid double subtractions


Modified:
   trunk/libavcodec/snow.h

Modified: trunk/libavcodec/snow.h
==============================================================================
--- trunk/libavcodec/snow.h	(original)
+++ trunk/libavcodec/snow.h	Tue Aug 21 00:26:49 2007
@@ -165,11 +165,11 @@ static av_always_inline void snow_horizo
 
 static av_always_inline void snow_horizontal_compose_liftS_lead_out(int i, DWTELEM * dst, DWTELEM * src, DWTELEM * ref, int width, int w){
         for(; i<w; i++){
-            dst[i] = src[i] - (((-(ref[i] + ref[(i+1)])+W_BO) - 4 * src[i]) >> W_BS);
+            dst[i] = src[i] + ((ref[i] + ref[(i+1)]+W_BO-1 + 4 * src[i]) >> W_BS);
         }
 
         if(width&1){
-            dst[w] = src[w] - (((-2 * ref[w] + W_BO) - 4 * src[w]) >> W_BS);
+            dst[w] = src[w] + ((2 * ref[w] + W_BO-1 + 4 * src[w]) >> W_BS);
         }
 }
 




More information about the ffmpeg-cvslog mailing list