changeset 27547:a917f63f61d3

Do not do unneeded clipping in YSCALE_YUV_2_PACKEDX_C.
author michael
date Thu, 11 Sep 2008 03:22:39 +0000
parents 77ff4ab4ddfc
children 78da4c8b2293
files libswscale/swscale.c
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libswscale/swscale.c	Thu Sep 11 02:36:51 2008 +0000
+++ b/libswscale/swscale.c	Thu Sep 11 03:22:39 2008 +0000
@@ -434,7 +434,7 @@
         }
 }
 
-#define YSCALE_YUV_2_PACKEDX_C(type) \
+#define YSCALE_YUV_2_PACKEDX_NOCLIP_C(type) \
     for (i=0; i<(dstW>>1); i++){\
         int j;\
         int Y1 = 1<<18;\
@@ -458,6 +458,9 @@
         Y2>>=19;\
         U >>=19;\
         V >>=19;\
+
+#define YSCALE_YUV_2_PACKEDX_C(type) \
+        YSCALE_YUV_2_PACKEDX_NOCLIP_C(type)\
         if ((Y1|Y2|U|V)&256)\
         {\
             if (Y1>255)   Y1=255; \
@@ -496,7 +499,7 @@
         }
 
 #define YSCALE_YUV_2_RGBX_C(type) \
-    YSCALE_YUV_2_PACKEDX_C(type)  \
+    YSCALE_YUV_2_PACKEDX_NOCLIP_C(type)  \
     r = (type *)c->table_rV[V];   \
     g = (type *)(c->table_gU[U] + c->table_gV[V]); \
     b = (type *)c->table_bU[U];   \