Mercurial > libavcodec.hg
diff ppc/dsputil_ppc.c @ 1578:6a4cfc5f9f96 libavcodec
AltiVec optimized fdct patch by (James Klicman <james at klicman dot org>)
author | michael |
---|---|
date | Sun, 26 Oct 2003 10:14:05 +0000 |
parents | 587258262aa5 |
children | dea5b2946999 |
line wrap: on
line diff
--- a/ppc/dsputil_ppc.c Sun Oct 26 09:56:21 2003 +0000 +++ b/ppc/dsputil_ppc.c Sun Oct 26 10:14:05 2003 +0000 @@ -25,6 +25,7 @@ #include "dsputil_altivec.h" #endif +extern void fdct_altivec(int16_t *block); extern void idct_put_altivec(uint8_t *dest, int line_size, int16_t *block); extern void idct_add_altivec(uint8_t *dest, int line_size, int16_t *block); @@ -48,6 +49,7 @@ "fft_calc_altivec", "gmc1_altivec", "dct_unquantize_h263_altivec", + "fdct_altivec", "idct_add_altivec", "idct_put_altivec", "put_pixels16_altivec", @@ -270,6 +272,14 @@ c->gmc1 = gmc1_altivec; +#ifdef CONFIG_ENCODERS + if (avctx->dct_algo == FF_DCT_AUTO || + avctx->dct_algo == FF_DCT_ALTIVEC) + { + c->fdct = fdct_altivec; + } +#endif //CONFIG_ENCODERS + if ((avctx->idct_algo == FF_IDCT_AUTO) || (avctx->idct_algo == FF_IDCT_ALTIVEC)) {