summaryrefslogtreecommitdiff
path: root/libswscale
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2011-04-11 19:48:13 +0200
committerDiego Biurrun <diego@biurrun.de>2011-04-13 17:24:53 +0200
commit0e1a5434e2d30d0f57770110c1e358c8eccf9f82 (patch)
treec4351a471bfcaeda48a4ae15962941ff4e32d82c /libswscale
parent2d3267936a40c0a8db6ab76aeb0017e1959ae2fa (diff)
swscale: Factorize FAST_BGR2YV12 definition.
It is used only for x86 so it will eventually be moved with that code into the x86 arch subdirectory.
Diffstat (limited to 'libswscale')
-rw-r--r--libswscale/rgb2rgb.c2
-rw-r--r--libswscale/swscale.c2
-rw-r--r--libswscale/swscale_internal.h2
3 files changed, 2 insertions, 4 deletions
diff --git a/libswscale/rgb2rgb.c b/libswscale/rgb2rgb.c
index bc0ed631c9..d3763cc584 100644
--- a/libswscale/rgb2rgb.c
+++ b/libswscale/rgb2rgb.c
@@ -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);
diff --git a/libswscale/swscale.c b/libswscale/swscale.c
index ed6db72035..565743a229 100644
--- a/libswscale/swscale.c
+++ b/libswscale/swscale.c
@@ -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 \
diff --git a/libswscale/swscale_internal.h b/libswscale/swscale_internal.h
index 631f1e0672..4c6ad2a860 100644
--- a/libswscale/swscale_internal.h
+++ b/libswscale/swscale_internal.h
@@ -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