Mercurial > libavcodec.hg
comparison ppc/mpegvideo_altivec.c @ 8104:0d108ec85620 libavcodec
Remove duplicated MM_* macros for CPU capabilities from dsputil.h.
Add missing one for FF_MM_ALTIVEC to avcodec.h.
Rename all the occurences of MM_* to the corresponding FF_MM_*.
author | rathann |
---|---|
date | Mon, 03 Nov 2008 18:08:00 +0000 |
parents | 266d4949aa15 |
children | cf4d575b1982 |
comparison
equal
deleted
inserted
replaced
8103:069d7a8e2e75 | 8104:0d108ec85620 |
---|---|
588 extern void idct_put_altivec(uint8_t *dest, int line_size, int16_t *block); | 588 extern void idct_put_altivec(uint8_t *dest, int line_size, int16_t *block); |
589 extern void idct_add_altivec(uint8_t *dest, int line_size, int16_t *block); | 589 extern void idct_add_altivec(uint8_t *dest, int line_size, int16_t *block); |
590 | 590 |
591 void MPV_common_init_altivec(MpegEncContext *s) | 591 void MPV_common_init_altivec(MpegEncContext *s) |
592 { | 592 { |
593 if ((mm_flags & MM_ALTIVEC) == 0) return; | 593 if ((mm_flags & FF_MM_ALTIVEC) == 0) return; |
594 | 594 |
595 if (s->avctx->lowres==0) { | 595 if (s->avctx->lowres==0) { |
596 if ((s->avctx->idct_algo == FF_IDCT_AUTO) || | 596 if ((s->avctx->idct_algo == FF_IDCT_AUTO) || |
597 (s->avctx->idct_algo == FF_IDCT_ALTIVEC)) { | 597 (s->avctx->idct_algo == FF_IDCT_ALTIVEC)) { |
598 s->dsp.idct_put = idct_put_altivec; | 598 s->dsp.idct_put = idct_put_altivec; |