diff options
author | Diego Biurrun <diego@biurrun.de> | 2006-11-22 09:20:16 +0000 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2006-11-22 09:20:16 +0000 |
commit | 8cff89be435cf1be10ffdb0674731dce078e89c7 (patch) | |
tree | 3a96f9e1b1b308c7ec2a9bc45e740fc655af795a /libavcodec/ppc | |
parent | 1e25a7e7ebb55516d522a8ab1c4b7938b5060fe5 (diff) | |
download | ffmpeg-streaming-8cff89be435cf1be10ffdb0674731dce078e89c7.zip ffmpeg-streaming-8cff89be435cf1be10ffdb0674731dce078e89c7.tar.gz |
Conditionally compile some of the AltiVec optimizations.
Originally committed as revision 7154 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ppc')
-rw-r--r-- | libavcodec/ppc/dsputil_ppc.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libavcodec/ppc/dsputil_ppc.c b/libavcodec/ppc/dsputil_ppc.c index 95b69f4..9169eae 100644 --- a/libavcodec/ppc/dsputil_ppc.c +++ b/libavcodec/ppc/dsputil_ppc.c @@ -274,14 +274,15 @@ void dsputil_init_ppc(DSPContext* c, AVCodecContext *avctx) } #ifdef HAVE_ALTIVEC - dsputil_h264_init_ppc(c, avctx); + if(ENABLE_H264_DECODER) dsputil_h264_init_ppc(c, avctx); if (has_altivec()) { mm_flags |= MM_ALTIVEC; dsputil_init_altivec(c, avctx); - snow_init_altivec(c, avctx); - vc1dsp_init_altivec(c, avctx); + if(ENABLE_SNOW_DECODER) snow_init_altivec(c, avctx); + if(ENABLE_VC1_DECODER || ENABLE_WMV3_DECODER) + vc1dsp_init_altivec(c, avctx); float_init_altivec(c, avctx); c->gmc1 = gmc1_altivec; |