Commit 481fb636 authored by Kostya Shishkov's avatar Kostya Shishkov

Some AltiVec optimizations for VC-1

Originally committed as revision 5899 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 2dac4acf
......@@ -343,7 +343,8 @@ OBJS-$(TARGET_ALTIVEC) += ppc/dsputil_altivec.o \
ppc/gmc_altivec.o \
ppc/fdct_altivec.o \
ppc/dsputil_h264_altivec.o \
ppc/dsputil_snow_altivec.o
ppc/dsputil_snow_altivec.o \
ppc/vc1dsp_altivec.o
CFLAGS += $(CFLAGS-yes)
OBJS += $(OBJS-yes)
......
......@@ -251,6 +251,10 @@ long check_dcbzl_effect(void)
}
#endif
#ifdef HAVE_ALTIVEC
void vc1dsp_init_altivec(DSPContext* c, AVCodecContext *avctx);
#endif
void dsputil_init_ppc(DSPContext* c, AVCodecContext *avctx)
{
// Common optimizations whether Altivec is available or not
......@@ -310,6 +314,7 @@ void dsputil_init_ppc(DSPContext* c, AVCodecContext *avctx)
c->vertical_compose97i = ff_snow_vertical_compose97i_altivec;
c->inner_add_yblock = ff_snow_inner_add_yblock_altivec;
vc1dsp_init_altivec(c, avctx);
#ifdef CONFIG_ENCODERS
if (avctx->dct_algo == FF_DCT_AUTO ||
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