summaryrefslogtreecommitdiff
path: root/libavcodec/imgresample.c
diff options
context:
space:
mode:
authorAurelien Jacobs <aurel@gnuage.org>2009-01-13 23:44:16 +0000
committerAurelien Jacobs <aurel@gnuage.org>2009-01-13 23:44:16 +0000
commitb250f9c66d3ddd84652d158fb979a5f21e3f2c71 (patch)
treeef84366029d6f8af6ed82e90c5f188bb7dfc844d /libavcodec/imgresample.c
parent959da985b03570cfe7d239c0ba6d550ecb04c460 (diff)
Change semantic of CONFIG_*, HAVE_* and ARCH_*.
They are now always defined to either 0 or 1. Originally committed as revision 16590 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/imgresample.c')
-rw-r--r--libavcodec/imgresample.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/libavcodec/imgresample.c b/libavcodec/imgresample.c
index 6ca810c6b4..6e897258d0 100644
--- a/libavcodec/imgresample.c
+++ b/libavcodec/imgresample.c
@@ -29,7 +29,7 @@
#include "imgconvert.h"
#include "libswscale/swscale.h"
-#ifdef HAVE_ALTIVEC
+#if HAVE_ALTIVEC
#include "ppc/imgresample_altivec.h"
#endif
@@ -153,7 +153,7 @@ static void v_resample(uint8_t *dst, int dst_width, const uint8_t *src,
}
}
-#ifdef HAVE_MMX
+#if HAVE_MMX
#include "x86/mmx.h"
@@ -340,7 +340,7 @@ static void h_resample(uint8_t *dst, int dst_width, const uint8_t *src,
} else {
n = dst_width;
}
-#ifdef HAVE_MMX
+#if HAVE_MMX
if ((mm_flags & FF_MM_MMX) && NB_TAPS == 4)
h_resample_fast4_mmx(dst, n,
src, src_width, src_start, src_incr, filters);
@@ -397,7 +397,7 @@ static void component_resample(ImgReSampleContext *s,
}
/* apply vertical filter */
phase_y = get_phase(src_y);
-#ifdef HAVE_MMX
+#if HAVE_MMX
/* desactivated MMX because loss of precision */
if ((mm_flags & FF_MM_MMX) && NB_TAPS == 4 && 0)
v_resample4_mmx(output, owidth,
@@ -405,7 +405,7 @@ static void component_resample(ImgReSampleContext *s,
&s->v_filters[phase_y][0]);
else
#endif
-#ifdef HAVE_ALTIVEC
+#if HAVE_ALTIVEC
if ((mm_flags & FF_MM_ALTIVEC) && NB_TAPS == 4 && FILTER_BITS <= 6)
v_resample16_altivec(output, owidth,
s->line_buf + (ring_y - NB_TAPS + 1) * owidth,
@@ -732,7 +732,7 @@ static void dump_filter(int16_t *filter)
}
}
-#ifdef HAVE_MMX
+#if HAVE_MMX
int mm_flags;
#endif
@@ -804,7 +804,7 @@ int main(int argc, char **argv)
}
/* mmx test */
-#ifdef HAVE_MMX
+#if HAVE_MMX
av_log(NULL, AV_LOG_INFO, "MMX test\n");
fact = 0.72;
xsize = (int)(XSIZE * fact);