Commit f9360377 authored by kostya's avatar kostya

Some AltiVec optimizations for VC-1


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@5899 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent f789b638
...@@ -343,7 +343,8 @@ OBJS-$(TARGET_ALTIVEC) += ppc/dsputil_altivec.o \ ...@@ -343,7 +343,8 @@ OBJS-$(TARGET_ALTIVEC) += ppc/dsputil_altivec.o \
ppc/gmc_altivec.o \ ppc/gmc_altivec.o \
ppc/fdct_altivec.o \ ppc/fdct_altivec.o \
ppc/dsputil_h264_altivec.o \ ppc/dsputil_h264_altivec.o \
ppc/dsputil_snow_altivec.o ppc/dsputil_snow_altivec.o \
ppc/vc1dsp_altivec.o
CFLAGS += $(CFLAGS-yes) CFLAGS += $(CFLAGS-yes)
OBJS += $(OBJS-yes) OBJS += $(OBJS-yes)
......
...@@ -251,6 +251,10 @@ long check_dcbzl_effect(void) ...@@ -251,6 +251,10 @@ long check_dcbzl_effect(void)
} }
#endif #endif
#ifdef HAVE_ALTIVEC
void vc1dsp_init_altivec(DSPContext* c, AVCodecContext *avctx);
#endif
void dsputil_init_ppc(DSPContext* c, AVCodecContext *avctx) void dsputil_init_ppc(DSPContext* c, AVCodecContext *avctx)
{ {
// Common optimizations whether Altivec is available or not // Common optimizations whether Altivec is available or not
...@@ -310,6 +314,7 @@ void dsputil_init_ppc(DSPContext* c, AVCodecContext *avctx) ...@@ -310,6 +314,7 @@ void dsputil_init_ppc(DSPContext* c, AVCodecContext *avctx)
c->vertical_compose97i = ff_snow_vertical_compose97i_altivec; c->vertical_compose97i = ff_snow_vertical_compose97i_altivec;
c->inner_add_yblock = ff_snow_inner_add_yblock_altivec; c->inner_add_yblock = ff_snow_inner_add_yblock_altivec;
vc1dsp_init_altivec(c, avctx);
#ifdef CONFIG_ENCODERS #ifdef CONFIG_ENCODERS
if (avctx->dct_algo == FF_DCT_AUTO || if (avctx->dct_algo == FF_DCT_AUTO ||
avctx->dct_algo == FF_DCT_ALTIVEC) avctx->dct_algo == FF_DCT_ALTIVEC)
......
This diff is collapsed.
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