[FFmpeg-cvslog] sws: Remove unneeded YUV cliping from yuv2rgb_X_c_template()

Michael Niedermayer git at videolan.org
Wed Jan 11 22:06:50 CET 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Jan 10 20:18:06 2012 +0100| [bc11580007b454eac090871e30ce04be7d966eb4] | committer: Michael Niedermayer

sws: Remove unneeded YUV cliping from yuv2rgb_X_c_template()

This should slightly improve speed.

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=bc11580007b454eac090871e30ce04be7d966eb4
---

 libswscale/swscale.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)

diff --git a/libswscale/swscale.c b/libswscale/swscale.c
index 74f3c05..d8861d6 100644
--- a/libswscale/swscale.c
+++ b/libswscale/swscale.c
@@ -1133,12 +1133,6 @@ yuv2rgb_X_c_template(SwsContext *c, const int16_t *lumFilter,
         Y2 >>= 19;
         U  >>= 19;
         V  >>= 19;
-        if ((Y1 | Y2 | U | V) & 0x100) {
-            Y1 = av_clip_uint8(Y1);
-            Y2 = av_clip_uint8(Y2);
-            U  = av_clip_uint8(U);
-            V  = av_clip_uint8(V);
-        }
         if (hasAlpha) {
             A1 = 1 << 18;
             A2 = 1 << 18;



More information about the ffmpeg-cvslog mailing list