Mercurial > libavcodec.hg
comparison ppc/dsputil_ppc.c @ 3581:49082584828a libavcodec
altivec float optimizations
author | lu_zero |
---|---|
date | Mon, 14 Aug 2006 22:55:11 +0000 |
parents | e542c9978077 |
children | c8c591fe26f8 |
comparison
equal
deleted
inserted
replaced
3580:28574f57a0fc | 3581:49082584828a |
---|---|
34 void dsputil_h264_init_ppc(DSPContext* c, AVCodecContext *avctx); | 34 void dsputil_h264_init_ppc(DSPContext* c, AVCodecContext *avctx); |
35 | 35 |
36 void dsputil_init_altivec(DSPContext* c, AVCodecContext *avctx); | 36 void dsputil_init_altivec(DSPContext* c, AVCodecContext *avctx); |
37 void vc1dsp_init_altivec(DSPContext* c, AVCodecContext *avctx); | 37 void vc1dsp_init_altivec(DSPContext* c, AVCodecContext *avctx); |
38 void snow_init_altivec(DSPContext* c, AVCodecContext *avctx); | 38 void snow_init_altivec(DSPContext* c, AVCodecContext *avctx); |
39 void float_init_altivec(DSPContext* c, AVCodecContext *avctx); | |
39 | 40 |
40 #endif | 41 #endif |
41 | 42 |
42 int mm_flags = 0; | 43 int mm_flags = 0; |
43 | 44 |
268 mm_flags |= MM_ALTIVEC; | 269 mm_flags |= MM_ALTIVEC; |
269 | 270 |
270 dsputil_init_altivec(c, avctx); | 271 dsputil_init_altivec(c, avctx); |
271 snow_init_altivec(c, avctx); | 272 snow_init_altivec(c, avctx); |
272 vc1dsp_init_altivec(c, avctx); | 273 vc1dsp_init_altivec(c, avctx); |
273 | 274 float_init_altivec(c, avctx); |
274 c->gmc1 = gmc1_altivec; | 275 c->gmc1 = gmc1_altivec; |
275 | 276 |
276 #ifdef CONFIG_ENCODERS | 277 #ifdef CONFIG_ENCODERS |
277 if (avctx->dct_algo == FF_DCT_AUTO || | 278 if (avctx->dct_algo == FF_DCT_AUTO || |
278 avctx->dct_algo == FF_DCT_ALTIVEC) | 279 avctx->dct_algo == FF_DCT_ALTIVEC) |