Mercurial > libavcodec.hg
diff imgresample.c @ 8590:7a463923ecd1 libavcodec
Change semantic of CONFIG_*, HAVE_* and ARCH_*.
They are now always defined to either 0 or 1.
author | aurel |
---|---|
date | Tue, 13 Jan 2009 23:44:16 +0000 |
parents | 7768bdfd4f7b |
children | 04423b2f6e0b |
line wrap: on
line diff
--- a/imgresample.c Tue Jan 13 21:13:45 2009 +0000 +++ b/imgresample.c Tue Jan 13 23:44:16 2009 +0000 @@ -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 @@ } } -#ifdef HAVE_MMX +#if HAVE_MMX #include "x86/mmx.h" @@ -340,7 +340,7 @@ } 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 @@ } /* 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 @@ &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 @@ } } -#ifdef HAVE_MMX +#if HAVE_MMX int mm_flags; #endif @@ -804,7 +804,7 @@ } /* mmx test */ -#ifdef HAVE_MMX +#if HAVE_MMX av_log(NULL, AV_LOG_INFO, "MMX test\n"); fact = 0.72; xsize = (int)(XSIZE * fact);