Mercurial > libavcodec.hg
comparison ppc/dsputil_ppc.c @ 8104:0d108ec85620 libavcodec
Remove duplicated MM_* macros for CPU capabilities from dsputil.h.
Add missing one for FF_MM_ALTIVEC to avcodec.h.
Rename all the occurences of MM_* to the corresponding FF_MM_*.
author | rathann |
---|---|
date | Mon, 03 Nov 2008 18:08:00 +0000 |
parents | eebc7209c47f |
children | cf4d575b1982 |
comparison
equal
deleted
inserted
replaced
8103:069d7a8e2e75 | 8104:0d108ec85620 |
---|---|
48 int mm_support(void) | 48 int mm_support(void) |
49 { | 49 { |
50 int result = 0; | 50 int result = 0; |
51 #ifdef HAVE_ALTIVEC | 51 #ifdef HAVE_ALTIVEC |
52 if (has_altivec()) { | 52 if (has_altivec()) { |
53 result |= MM_ALTIVEC; | 53 result |= FF_MM_ALTIVEC; |
54 } | 54 } |
55 #endif /* result */ | 55 #endif /* result */ |
56 return result; | 56 return result; |
57 } | 57 } |
58 | 58 |
263 | 263 |
264 #ifdef HAVE_ALTIVEC | 264 #ifdef HAVE_ALTIVEC |
265 if(ENABLE_H264_DECODER) dsputil_h264_init_ppc(c, avctx); | 265 if(ENABLE_H264_DECODER) dsputil_h264_init_ppc(c, avctx); |
266 | 266 |
267 if (has_altivec()) { | 267 if (has_altivec()) { |
268 mm_flags |= MM_ALTIVEC; | 268 mm_flags |= FF_MM_ALTIVEC; |
269 | 269 |
270 dsputil_init_altivec(c, avctx); | 270 dsputil_init_altivec(c, avctx); |
271 if(ENABLE_SNOW_DECODER) snow_init_altivec(c, avctx); | 271 if(ENABLE_SNOW_DECODER) snow_init_altivec(c, avctx); |
272 if(ENABLE_VC1_DECODER || ENABLE_WMV3_DECODER) | 272 if(ENABLE_VC1_DECODER || ENABLE_WMV3_DECODER) |
273 vc1dsp_init_altivec(c, avctx); | 273 vc1dsp_init_altivec(c, avctx); |