Commit 21be03b9 authored by diego's avatar diego

Conditionally compile some of the AltiVec optimizations.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@7154 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 71d8f711
...@@ -388,11 +388,15 @@ OBJS-$(TARGET_ALTIVEC) += ppc/dsputil_altivec.o \ ...@@ -388,11 +388,15 @@ OBJS-$(TARGET_ALTIVEC) += ppc/dsputil_altivec.o \
ppc/fft_altivec.o \ ppc/fft_altivec.o \
ppc/gmc_altivec.o \ ppc/gmc_altivec.o \
ppc/fdct_altivec.o \ ppc/fdct_altivec.o \
ppc/h264_altivec.o \
ppc/snow_altivec.o \
ppc/vc1dsp_altivec.o \
ppc/float_altivec.o \ ppc/float_altivec.o \
ifeq ($(TARGET_ALTIVEC),yes)
OBJS-$(CONFIG_H264_DECODER) += ppc/h264_altivec.o
OBJS-$(CONFIG_SNOW_DECODER) += ppc/snow_altivec.o
OBJS-$(CONFIG_VC1_DECODER) += ppc/vc1dsp_altivec.o
OBJS-$(CONFIG_WMV3_DECODER) += ppc/vc1dsp_altivec.o
endif
OBJS-$(TARGET_ARCH_BFIN) += bfin/dsputil_bfin.o \ OBJS-$(TARGET_ARCH_BFIN) += bfin/dsputil_bfin.o \
CFLAGS += $(CFLAGS-yes) CFLAGS += $(CFLAGS-yes)
......
...@@ -274,14 +274,15 @@ void dsputil_init_ppc(DSPContext* c, AVCodecContext *avctx) ...@@ -274,14 +274,15 @@ void dsputil_init_ppc(DSPContext* c, AVCodecContext *avctx)
} }
#ifdef HAVE_ALTIVEC #ifdef HAVE_ALTIVEC
dsputil_h264_init_ppc(c, avctx); if(ENABLE_H264_DECODER) dsputil_h264_init_ppc(c, avctx);
if (has_altivec()) { if (has_altivec()) {
mm_flags |= MM_ALTIVEC; mm_flags |= MM_ALTIVEC;
dsputil_init_altivec(c, avctx); dsputil_init_altivec(c, avctx);
snow_init_altivec(c, avctx); if(ENABLE_SNOW_DECODER) snow_init_altivec(c, avctx);
vc1dsp_init_altivec(c, avctx); if(ENABLE_VC1_DECODER || ENABLE_WMV3_DECODER)
vc1dsp_init_altivec(c, avctx);
float_init_altivec(c, avctx); float_init_altivec(c, avctx);
c->gmc1 = gmc1_altivec; c->gmc1 = gmc1_altivec;
......
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