comparison ppc/mpegvideo_altivec.c @ 12473:06abedae2906 libavcodec

Merge has_altivec() function into mm_support(), remove it and use mm_support() instead. Reduce complexity and simplify pending move to libavutil.
author stefano
date Wed, 08 Sep 2010 10:02:40 +0000
parents 3fc4c625b6f3
children 9fef0a8ddd63
comparison
equal deleted inserted replaced
12472:9c9be94124f8 12473:06abedae2906
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 (!has_altivec()) return; 573 if (!(mm_support() & AV_CPU_FLAG_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;