summaryrefslogtreecommitdiffstats
path: root/libswscale/x86/rgb2rgb.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-04-15 03:16:14 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-04-15 03:19:52 +0200
commit920dd84bf1f0d64598b86330d6adc983c7efc74f (patch)
tree4b334174a87d5d6ccd26815f53acbf1c73c0c02a /libswscale/x86/rgb2rgb.c
parenta37fd7f9578d2dfbe20a109aae91e5f0a4b58874 (diff)
downloadffmpeg-streaming-920dd84bf1f0d64598b86330d6adc983c7efc74f.zip
ffmpeg-streaming-920dd84bf1f0d64598b86330d6adc983c7efc74f.tar.gz
sws/x86: remove 8bit rgb2yuv coefficient case for rgb24toyv12 special converter
This simplifies the code and improves quality at the expense of a slight slowdown of a rarely used function (no fate test uses it). Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswscale/x86/rgb2rgb.c')
-rw-r--r--libswscale/x86/rgb2rgb.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/libswscale/x86/rgb2rgb.c b/libswscale/x86/rgb2rgb.c
index 1e20176..986afc4 100644
--- a/libswscale/x86/rgb2rgb.c
+++ b/libswscale/x86/rgb2rgb.c
@@ -76,7 +76,6 @@ DECLARE_ASM_CONST(8, uint64_t, mul15_mid) = 0x4200420042004200ULL;
DECLARE_ASM_CONST(8, uint64_t, mul15_hi) = 0x0210021002100210ULL;
DECLARE_ASM_CONST(8, uint64_t, mul16_mid) = 0x2080208020802080ULL;
-#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))
OpenPOWER on IntegriCloud