[FFmpeg-cvslog] r27593 - trunk/libswscale/swscale_template.c

michael subversion
Sat Sep 13 00:29:21 CEST 2008


Author: michael
Date: Sat Sep 13 00:29:21 2008
New Revision: 27593

Log:
Make the horizontal C scaler code clip only against INT16_MAX not 0,
this decreases the difference between C and MMX, its also faster.


Modified:
   trunk/libswscale/swscale_template.c

Modified: trunk/libswscale/swscale_template.c
==============================================================================
--- trunk/libswscale/swscale_template.c	(original)
+++ trunk/libswscale/swscale_template.c	Sat Sep 13 00:29:21 2008
@@ -2330,7 +2330,7 @@ static inline void RENAME(hScale)(int16_
             val += ((int)src[srcPos + j])*filter[filterSize*i + j];
         }
         //filter += hFilterSize;
-        dst[i] = av_clip(val>>7, 0, (1<<15)-1); // the cubic equation does overflow ...
+        dst[i] = FFMIN(val>>7, (1<<15)-1); // the cubic equation does overflow ...
         //dst[i] = val>>7;
     }
 #endif /* HAVE_ALTIVEC */




More information about the ffmpeg-cvslog mailing list