aboutsummaryrefslogtreecommitdiffhomepage
path: root/libswscale
diff options
context:
space:
mode:
authorGravatar michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-09-11 03:22:39 +0000
committerGravatar michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-09-11 03:22:39 +0000
commit3ea1657e650653c323230af1c862f3dce09d9118 (patch)
tree0004a8b368c74eef7977ebb9636e4dbec9ae55d6 /libswscale
parent9c49671d8be2a481b52512963fb8d4b91a9a6140 (diff)
Do not do unneeded clipping in YSCALE_YUV_2_PACKEDX_C.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27579 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libswscale')
-rw-r--r--libswscale/swscale.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/libswscale/swscale.c b/libswscale/swscale.c
index e2b997ca19..a1b0497f14 100644
--- a/libswscale/swscale.c
+++ b/libswscale/swscale.c
@@ -434,7 +434,7 @@ static inline void yuv2nv12XinC(int16_t *lumFilter, int16_t **lumSrc, int lumFil
}
}
-#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 @@ static inline void yuv2nv12XinC(int16_t *lumFilter, int16_t **lumSrc, int lumFil
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 @@ static inline void yuv2nv12XinC(int16_t *lumFilter, int16_t **lumSrc, int lumFil
}
#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]; \