Commit d885b489 authored by diego's avatar diego

Remove pointless HAVE_ALTIVEC #ifdefs from a file that only contains AltiVec

optimizations and no general PPC optimizations. Instead make the file be
compiled conditional to HAVE_ALTIVEC.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@10637 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent adec3448
...@@ -394,7 +394,6 @@ ASM_OBJS-$(ARCH_ALPHA) += alpha/dsputil_alpha_asm.o \ ...@@ -394,7 +394,6 @@ ASM_OBJS-$(ARCH_ALPHA) += alpha/dsputil_alpha_asm.o \
alpha/motion_est_mvi_asm.o \ alpha/motion_est_mvi_asm.o \
OBJS-$(ARCH_POWERPC) += ppc/dsputil_ppc.o \ OBJS-$(ARCH_POWERPC) += ppc/dsputil_ppc.o \
ppc/mpegvideo_ppc.o \
OBJS-$(HAVE_MMI) += ps2/dsputil_mmi.o \ OBJS-$(HAVE_MMI) += ps2/dsputil_mmi.o \
ps2/idct_mmi.o \ ps2/idct_mmi.o \
...@@ -412,6 +411,7 @@ OBJS-$(HAVE_ALTIVEC) += ppc/dsputil_altivec.o \ ...@@ -412,6 +411,7 @@ OBJS-$(HAVE_ALTIVEC) += ppc/dsputil_altivec.o \
ppc/idct_altivec.o \ ppc/idct_altivec.o \
ppc/int_altivec.o \ ppc/int_altivec.o \
ppc/mpegvideo_altivec.o \ ppc/mpegvideo_altivec.o \
ppc/mpegvideo_ppc.o \
ifeq ($(HAVE_ALTIVEC),yes) ifeq ($(HAVE_ALTIVEC),yes)
OBJS-$(CONFIG_H264_DECODER) += ppc/h264_altivec.o OBJS-$(CONFIG_H264_DECODER) += ppc/h264_altivec.o
......
...@@ -21,10 +21,7 @@ ...@@ -21,10 +21,7 @@
#include "dsputil.h" #include "dsputil.h"
#include "mpegvideo.h" #include "mpegvideo.h"
#include <time.h> #include <time.h>
#ifdef HAVE_ALTIVEC
#include "dsputil_altivec.h" #include "dsputil_altivec.h"
#endif
extern int dct_quantize_altivec(MpegEncContext *s, extern int dct_quantize_altivec(MpegEncContext *s,
DCTELEM *block, int n, DCTELEM *block, int n,
...@@ -38,9 +35,6 @@ extern void idct_add_altivec(uint8_t *dest, int line_size, int16_t *block); ...@@ -38,9 +35,6 @@ extern void idct_add_altivec(uint8_t *dest, int line_size, int16_t *block);
void MPV_common_init_ppc(MpegEncContext *s) void MPV_common_init_ppc(MpegEncContext *s)
{ {
#ifdef HAVE_ALTIVEC
if (has_altivec())
{
if (s->avctx->lowres==0) if (s->avctx->lowres==0)
{ {
if ((s->avctx->idct_algo == FF_IDCT_AUTO) || if ((s->avctx->idct_algo == FF_IDCT_AUTO) ||
...@@ -78,10 +72,5 @@ void MPV_common_init_ppc(MpegEncContext *s) ...@@ -78,10 +72,5 @@ void MPV_common_init_ppc(MpegEncContext *s)
s->dct_unquantize_h263_intra = dct_unquantize_h263_altivec; s->dct_unquantize_h263_intra = dct_unquantize_h263_altivec;
s->dct_unquantize_h263_inter = dct_unquantize_h263_altivec; s->dct_unquantize_h263_inter = dct_unquantize_h263_altivec;
} }
} else
#endif
{
/* Non-AltiVec PPC optimisations here */
}
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment