]> git.sesse.net Git - ffmpeg/commitdiff
swscale: Factorize FAST_BGR2YV12 definition.
authorLuca Barbato <lu_zero@gentoo.org>
Mon, 11 Apr 2011 17:48:13 +0000 (19:48 +0200)
committerDiego Biurrun <diego@biurrun.de>
Wed, 13 Apr 2011 15:24:53 +0000 (17:24 +0200)
It is used only for x86 so it will eventually be moved with that code
into the x86 arch subdirectory.

libswscale/rgb2rgb.c
libswscale/swscale.c
libswscale/swscale_internal.h

index bc0ed631c9ce4a55f64692dc902b83128da8e156..d3763cc5845b33ef7f9e7a4ad8e207fc7e2bf93f 100644 (file)
@@ -30,8 +30,6 @@
 #include "swscale.h"
 #include "swscale_internal.h"
 
-#define FAST_BGR2YV12 // use 7-bit instead of 15-bit coefficients
-
 void (*rgb24tobgr32)(const uint8_t *src, uint8_t *dst, long src_size);
 void (*rgb24tobgr16)(const uint8_t *src, uint8_t *dst, long src_size);
 void (*rgb24tobgr15)(const uint8_t *src, uint8_t *dst, long src_size);
index ed6db720357fa394aeeb1e5534e20667bc793fac..565743a22973707c19560409c0b7ebf7ed4a39a3 100644 (file)
@@ -76,8 +76,6 @@ untested special converters
 //#undef ARCH_X86
 #define DITHER1XBPP
 
-#define FAST_BGR2YV12 // use 7 bit coefficients instead of 15 bit
-
 #define isPacked(x)         (       \
            (x)==PIX_FMT_PAL8        \
         || (x)==PIX_FMT_YUYV422     \
index 631f1e0672f092e962d1616cfb72b9053242adf2..4c6ad2a86032deede9d56c040159c66c26e27332 100644 (file)
@@ -31,6 +31,8 @@
 
 #define STR(s)         AV_TOSTRING(s) //AV_STRINGIFY is too long
 
+#define FAST_BGR2YV12 //use 7-bit instead of 15-bit coefficients
+
 #define MAX_FILTER_SIZE 256
 
 #if ARCH_X86