Mercurial > libavcodec.hg
comparison ppc/dsputil_ppc.c @ 4227:ef1d382309e5 libavcodec
Conditionally compile some of the AltiVec optimizations.
author | diego |
---|---|
date | Wed, 22 Nov 2006 09:20:16 +0000 |
parents | bbe0bc387a19 |
children | 891590781d9e |
comparison
equal
deleted
inserted
replaced
4226:43ebe9279fa0 | 4227:ef1d382309e5 |
---|---|
272 default: | 272 default: |
273 break; | 273 break; |
274 } | 274 } |
275 | 275 |
276 #ifdef HAVE_ALTIVEC | 276 #ifdef HAVE_ALTIVEC |
277 dsputil_h264_init_ppc(c, avctx); | 277 if(ENABLE_H264_DECODER) dsputil_h264_init_ppc(c, avctx); |
278 | 278 |
279 if (has_altivec()) { | 279 if (has_altivec()) { |
280 mm_flags |= MM_ALTIVEC; | 280 mm_flags |= MM_ALTIVEC; |
281 | 281 |
282 dsputil_init_altivec(c, avctx); | 282 dsputil_init_altivec(c, avctx); |
283 snow_init_altivec(c, avctx); | 283 if(ENABLE_SNOW_DECODER) snow_init_altivec(c, avctx); |
284 vc1dsp_init_altivec(c, avctx); | 284 if(ENABLE_VC1_DECODER || ENABLE_WMV3_DECODER) |
285 vc1dsp_init_altivec(c, avctx); | |
285 float_init_altivec(c, avctx); | 286 float_init_altivec(c, avctx); |
286 c->gmc1 = gmc1_altivec; | 287 c->gmc1 = gmc1_altivec; |
287 | 288 |
288 #ifdef CONFIG_ENCODERS | 289 #ifdef CONFIG_ENCODERS |
289 if (avctx->dct_algo == FF_DCT_AUTO || | 290 if (avctx->dct_algo == FF_DCT_AUTO || |