summaryrefslogtreecommitdiff
path: root/libavcodec/ppc/dsputil_ppc.c
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2006-08-03 05:02:31 +0000
committerKostya Shishkov <kostya.shishkov@gmail.com>2006-08-03 05:02:31 +0000
commit481fb636b100566c0a5ef86caff26baf4347cf9e (patch)
treeb9da48bdaaec28b4040634c302fc758b2f4cc64d /libavcodec/ppc/dsputil_ppc.c
parent2dac4acfc0f2abbe28082cdb5c3ed775a78d2867 (diff)
Some AltiVec optimizations for VC-1
Originally committed as revision 5899 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ppc/dsputil_ppc.c')
-rw-r--r--libavcodec/ppc/dsputil_ppc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/ppc/dsputil_ppc.c b/libavcodec/ppc/dsputil_ppc.c
index 6df16b271d..49807fb9eb 100644
--- a/libavcodec/ppc/dsputil_ppc.c
+++ b/libavcodec/ppc/dsputil_ppc.c
@@ -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)