OSDN Git Service

The yuv->rgb tables are too small for cliping to be avoidable,
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 12 Sep 2008 21:25:42 +0000 (21:25 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 12 Sep 2008 21:25:42 +0000 (21:25 +0000)
thus revert the respective optimization. The table generator code
has to be rewritten anyway one day by some volunteer because its
not LGPL, fixing the GPL table generator thus seems like wasted time.

Originally committed as revision 27591 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

libswscale/swscale.c

index b0ce120..81cc945 100644 (file)
@@ -540,7 +540,7 @@ static inline void yuv2nv12XinC(int16_t *lumFilter, int16_t **lumSrc, int lumFil
         }
 
 #define YSCALE_YUV_2_RGBX_C(type) \
-    YSCALE_YUV_2_PACKEDX_NOCLIP_C(type)  \
+    YSCALE_YUV_2_PACKEDX_C(type)  /* FIXME fix tables so that cliping is not needed and then use _NOCLIP*/\
     r = (type *)c->table_rV[V];   \
     g = (type *)(c->table_gU[U] + c->table_gV[V]); \
     b = (type *)c->table_bU[U];   \