diff options
author | Zdenek Kabelac <kabi@informatics.muni.cz> | 2002-11-11 10:04:45 +0000 |
---|---|---|
committer | Zdenek Kabelac <kabi@informatics.muni.cz> | 2002-11-11 10:04:45 +0000 |
commit | af19f78f2fe2b969104d4419efd25fdee90a2814 (patch) | |
tree | 2eb293152ccf514d37b27b043f564315a08513f4 /libavcodec/ppc | |
parent | 85bd552606ec60eeda76728734f772a8fde27622 (diff) | |
download | ffmpeg-af19f78f2fe2b969104d4419efd25fdee90a2814.tar.gz |
* using DSPContext - so each codec could use its local (sub)set of CPU extension
* these are untested - users/developers please check
Originally committed as revision 1197 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ppc')
-rw-r--r-- | libavcodec/ppc/dsputil_ppc.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libavcodec/ppc/dsputil_ppc.c b/libavcodec/ppc/dsputil_ppc.c index 28c56ee94a..4be3abb28d 100644 --- a/libavcodec/ppc/dsputil_ppc.c +++ b/libavcodec/ppc/dsputil_ppc.c @@ -23,7 +23,7 @@ #include "dsputil_altivec.h" #endif -void dsputil_init_ppc(void) +void dsputil_init_ppc(DSPContext* c, unsigned mask) { // Common optimisations whether Altivec or not @@ -32,11 +32,11 @@ void dsputil_init_ppc(void) #if HAVE_ALTIVEC if (has_altivec()) { // Altivec specific optimisations - pix_abs16x16 = pix_abs16x16_altivec; - pix_abs8x8 = pix_abs8x8_altivec; - pix_sum = pix_sum_altivec; - diff_pixels = diff_pixels_altivec; - get_pixels = get_pixels_altivec; + c->pix_abs16x16 = pix_abs16x16_altivec; + c->pix_abs8x8 = pix_abs8x8_altivec; + c->pix_sum = pix_sum_altivec; + c->diff_pixels = diff_pixels_altivec; + c->get_pixels = get_pixels_altivec; } else #endif { |