Mercurial > libavcodec.hg
comparison ppc/dsputil_ppc.c @ 894:a408778eff87 libavcodec
altivec accelerated v-resample patch by (Brian Foley <bfoley at compsoc dot nuigalway dot ie>)
author | michaelni |
---|---|
date | Tue, 26 Nov 2002 09:21:01 +0000 |
parents | 2cef5c4c0ca6 |
children | fd31916942ef |
comparison
equal
deleted
inserted
replaced
893:6faecb29b3b5 | 894:a408778eff87 |
---|---|
21 | 21 |
22 #ifdef HAVE_ALTIVEC | 22 #ifdef HAVE_ALTIVEC |
23 #include "dsputil_altivec.h" | 23 #include "dsputil_altivec.h" |
24 #endif | 24 #endif |
25 | 25 |
26 int mm_flags = 0; | |
27 | |
26 void dsputil_init_ppc(DSPContext* c, unsigned mask) | 28 void dsputil_init_ppc(DSPContext* c, unsigned mask) |
27 { | 29 { |
28 // Common optimisations whether Altivec or not | 30 // Common optimisations whether Altivec or not |
29 | 31 |
30 // ... pending ... | 32 // ... pending ... |
31 | 33 |
32 #if HAVE_ALTIVEC | 34 #if HAVE_ALTIVEC |
33 if (has_altivec()) { | 35 if (has_altivec()) { |
36 mm_flags |= MM_ALTIVEC; | |
37 | |
34 // Altivec specific optimisations | 38 // Altivec specific optimisations |
35 c->pix_abs16x16_x2 = pix_abs16x16_x2_altivec; | 39 c->pix_abs16x16_x2 = pix_abs16x16_x2_altivec; |
36 c->pix_abs16x16_y2 = pix_abs16x16_y2_altivec; | 40 c->pix_abs16x16_y2 = pix_abs16x16_y2_altivec; |
37 c->pix_abs16x16_xy2 = pix_abs16x16_xy2_altivec; | 41 c->pix_abs16x16_xy2 = pix_abs16x16_xy2_altivec; |
38 c->pix_abs16x16 = pix_abs16x16_altivec; | 42 c->pix_abs16x16 = pix_abs16x16_altivec; |