From 920dd84bf1f0d64598b86330d6adc983c7efc74f Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 15 Apr 2013 03:16:14 +0200 Subject: 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 --- libswscale/x86/rgb2rgb.c | 1 - libswscale/x86/rgb2rgb_template.c | 8 -------- libswscale/x86/swscale.c | 7 +------ 3 files changed, 1 insertion(+), 15 deletions(-) (limited to 'libswscale/x86') diff --git a/libswscale/x86/rgb2rgb.c b/libswscale/x86/rgb2rgb.c index 1e20176a03..986afc4b3e 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<