comparison ppc/mpegvideo_altivec.c @ 12414:3fc4c625b6f3 libavcodec

Remove global mm_flags variable
author mru
date Tue, 24 Aug 2010 17:47:05 +0000
parents 3cd4cd0509cd
children 06abedae2906
comparison
equal deleted inserted replaced
12413:e6e4059ea421 12414:3fc4c625b6f3
568 } 568 }
569 569
570 570
571 void MPV_common_init_altivec(MpegEncContext *s) 571 void MPV_common_init_altivec(MpegEncContext *s)
572 { 572 {
573 if ((mm_flags & FF_MM_ALTIVEC) == 0) return; 573 if (!has_altivec()) return;
574 574
575 if (s->avctx->lowres==0) { 575 if (s->avctx->lowres==0) {
576 if ((s->avctx->idct_algo == FF_IDCT_AUTO) || 576 if ((s->avctx->idct_algo == FF_IDCT_AUTO) ||
577 (s->avctx->idct_algo == FF_IDCT_ALTIVEC)) { 577 (s->avctx->idct_algo == FF_IDCT_ALTIVEC)) {
578 s->dsp.idct_put = idct_put_altivec; 578 s->dsp.idct_put = idct_put_altivec;