Mercurial > libavcodec.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
2056:31bf68b1792b | 2057:4c663228e020 |
---|---|
60 "put_no_rnd_pixels8_xy2_altivec", | 60 "put_no_rnd_pixels8_xy2_altivec", |
61 "put_pixels16_xy2_altivec", | 61 "put_pixels16_xy2_altivec", |
62 "put_no_rnd_pixels16_xy2_altivec", | 62 "put_no_rnd_pixels16_xy2_altivec", |
63 "hadamard8_diff8x8_altivec", | 63 "hadamard8_diff8x8_altivec", |
64 "hadamard8_diff16_altivec", | 64 "hadamard8_diff16_altivec", |
65 "avg_pixels8_xy2_altivec", | |
65 "clear_blocks_dcbz32_ppc", | 66 "clear_blocks_dcbz32_ppc", |
66 "clear_blocks_dcbz128_ppc" | 67 "clear_blocks_dcbz128_ppc" |
67 }; | 68 }; |
68 #include <stdio.h> | 69 #include <stdio.h> |
69 #endif | 70 #endif |
266 #endif /* 0 */ | 267 #endif /* 0 */ |
267 c->put_pixels_tab[0][0] = put_pixels16_altivec; | 268 c->put_pixels_tab[0][0] = put_pixels16_altivec; |
268 /* the two functions do the same thing, so use the same code */ | 269 /* the two functions do the same thing, so use the same code */ |
269 c->put_no_rnd_pixels_tab[0][0] = put_pixels16_altivec; | 270 c->put_no_rnd_pixels_tab[0][0] = put_pixels16_altivec; |
270 c->avg_pixels_tab[0][0] = avg_pixels16_altivec; | 271 c->avg_pixels_tab[0][0] = avg_pixels16_altivec; |
271 // next one disabled as it's untested. | |
272 #if 0 | |
273 c->avg_pixels_tab[1][0] = avg_pixels8_altivec; | 272 c->avg_pixels_tab[1][0] = avg_pixels8_altivec; |
274 #endif /* 0 */ | 273 c->avg_pixels_tab[1][3] = avg_pixels8_xy2_altivec; |
275 c->put_pixels_tab[1][3] = put_pixels8_xy2_altivec; | 274 c->put_pixels_tab[1][3] = put_pixels8_xy2_altivec; |
276 c->put_no_rnd_pixels_tab[1][3] = put_no_rnd_pixels8_xy2_altivec; | 275 c->put_no_rnd_pixels_tab[1][3] = put_no_rnd_pixels8_xy2_altivec; |
277 c->put_pixels_tab[0][3] = put_pixels16_xy2_altivec; | 276 c->put_pixels_tab[0][3] = put_pixels16_xy2_altivec; |
278 c->put_no_rnd_pixels_tab[0][3] = put_no_rnd_pixels16_xy2_altivec; | 277 c->put_no_rnd_pixels_tab[0][3] = put_no_rnd_pixels16_xy2_altivec; |
279 | 278 |