comparison ppc/dsputil_ppc.c @ 12414:3fc4c625b6f3 libavcodec

Remove global mm_flags variable
author mru
date Tue, 24 Aug 2010 17:47:05 +0000
parents 3cd4cd0509cd
children a5ddb39627fd
comparison
equal deleted inserted replaced
12413:e6e4059ea421 12414:3fc4c625b6f3
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21 */ 21 */
22 22
23 #include "libavcodec/dsputil.h" 23 #include "libavcodec/dsputil.h"
24 #include "dsputil_altivec.h" 24 #include "dsputil_altivec.h"
25
26 int mm_flags = 0;
27 25
28 int mm_support(void) 26 int mm_support(void)
29 { 27 {
30 int result = 0; 28 int result = 0;
31 #if HAVE_ALTIVEC 29 #if HAVE_ALTIVEC
180 178
181 #if HAVE_ALTIVEC 179 #if HAVE_ALTIVEC
182 if(CONFIG_H264_DECODER) dsputil_h264_init_ppc(c, avctx); 180 if(CONFIG_H264_DECODER) dsputil_h264_init_ppc(c, avctx);
183 181
184 if (has_altivec()) { 182 if (has_altivec()) {
185 mm_flags |= FF_MM_ALTIVEC;
186
187 dsputil_init_altivec(c, avctx); 183 dsputil_init_altivec(c, avctx);
188 if(CONFIG_VC1_DECODER) 184 if(CONFIG_VC1_DECODER)
189 vc1dsp_init_altivec(c, avctx); 185 vc1dsp_init_altivec(c, avctx);
190 float_init_altivec(c, avctx); 186 float_init_altivec(c, avctx);
191 int_init_altivec(c, avctx); 187 int_init_altivec(c, avctx);