Mercurial > libavcodec.hg
diff ppc/dsputil_ppc.c @ 2057:4c663228e020 libavcodec
avg_pixels8_xy2_altivec in AltiVec, enabling avg_pixels8_altivec, hadamard fix by (Romain Dolbeau <dolbeau at irisa dot fr>)
author | michael |
---|---|
date | Sat, 05 Jun 2004 22:29:37 +0000 |
parents | 31bf68b1792b |
children | 4a0ec9031804 |
line wrap: on
line diff
--- a/ppc/dsputil_ppc.c Sat Jun 05 22:26:03 2004 +0000 +++ b/ppc/dsputil_ppc.c Sat Jun 05 22:29:37 2004 +0000 @@ -62,6 +62,7 @@ "put_no_rnd_pixels16_xy2_altivec", "hadamard8_diff8x8_altivec", "hadamard8_diff16_altivec", + "avg_pixels8_xy2_altivec", "clear_blocks_dcbz32_ppc", "clear_blocks_dcbz128_ppc" }; @@ -268,10 +269,8 @@ /* the two functions do the same thing, so use the same code */ c->put_no_rnd_pixels_tab[0][0] = put_pixels16_altivec; c->avg_pixels_tab[0][0] = avg_pixels16_altivec; -// next one disabled as it's untested. -#if 0 c->avg_pixels_tab[1][0] = avg_pixels8_altivec; -#endif /* 0 */ + c->avg_pixels_tab[1][3] = avg_pixels8_xy2_altivec; c->put_pixels_tab[1][3] = put_pixels8_xy2_altivec; c->put_no_rnd_pixels_tab[1][3] = put_no_rnd_pixels8_xy2_altivec; c->put_pixels_tab[0][3] = put_pixels16_xy2_altivec;