git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a5d1cb
)
sws/"rgb2rgb": drop RGB2YUV_SHIFT
author
Michael Niedermayer
<michaelni@gmx.at>
Mon, 15 Apr 2013 00:27:14 +0000
(
02:27
+0200)
committer
Michael Niedermayer
<michaelni@gmx.at>
Mon, 15 Apr 2013 00:27:14 +0000
(
02:27
+0200)
Fixes a warning and increases the precission the coefficients
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libswscale/rgb2rgb.c
patch
|
blob
|
history
diff --git
a/libswscale/rgb2rgb.c
b/libswscale/rgb2rgb.c
index
1233a1d
..
674a7cc
100644
(file)
--- 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))