[FFmpeg-cvslog] sws/"rgb2rgb": drop RGB2YUV_SHIFT
Michael Niedermayer
git at videolan.org
Mon Apr 15 02:37:35 CEST 2013
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Apr 15 02:27:14 2013 +0200| [8e27c6ebbbab9f09d15b83d873b7d3a1b903ba60] | committer: Michael Niedermayer
sws/"rgb2rgb": drop RGB2YUV_SHIFT
Fixes a warning and increases the precission the coefficients
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8e27c6ebbbab9f09d15b83d873b7d3a1b903ba60
---
libswscale/rgb2rgb.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/libswscale/rgb2rgb.c b/libswscale/rgb2rgb.c
index 1233a1d..674a7cc 100644
--- a/libswscale/rgb2rgb.c
+++ b/libswscale/rgb2rgb.c
@@ -105,7 +105,6 @@ void (*yuyvtoyuv422)(uint8_t *ydst, uint8_t *udst, uint8_t *vdst,
const uint8_t *src, int width, int height,
int lumStride, int chromStride, int srcStride);
-#define RGB2YUV_SHIFT 8
#define BY ((int)( 0.098 * (1 << RGB2YUV_SHIFT) + 0.5))
#define BV ((int)(-0.071 * (1 << RGB2YUV_SHIFT) + 0.5))
#define BU ((int)( 0.439 * (1 << RGB2YUV_SHIFT) + 0.5))
More information about the ffmpeg-cvslog
mailing list