comparison libxvidff.c @ 12475:9fef0a8ddd63 libavcodec

Move mm_support() from libavcodec to libavutil, make it a public function and rename it to av_get_cpu_flags().
author stefano
date Wed, 08 Sep 2010 15:07:14 +0000
parents cf54b8e98e7a
children
comparison
equal deleted inserted replaced
12474:cf54b8e98e7a 12475:9fef0a8ddd63
29 #define _XOPEN_SOURCE 600 29 #define _XOPEN_SOURCE 600
30 30
31 #include <xvid.h> 31 #include <xvid.h>
32 #include <unistd.h> 32 #include <unistd.h>
33 #include "avcodec.h" 33 #include "avcodec.h"
34 #include "dsputil.h" 34 #include "libavutil/cpu.h"
35 #include "libavutil/intreadwrite.h" 35 #include "libavutil/intreadwrite.h"
36 #include "libxvid_internal.h" 36 #include "libxvid_internal.h"
37 #if !HAVE_MKSTEMP 37 #if !HAVE_MKSTEMP
38 #include <fcntl.h> 38 #include <fcntl.h>
39 #endif 39 #endif
211 xvid_gbl_init.debug = 0; 211 xvid_gbl_init.debug = 0;
212 212
213 #if ARCH_PPC 213 #if ARCH_PPC
214 /* Xvid's PPC support is borked, use libavcodec to detect */ 214 /* Xvid's PPC support is borked, use libavcodec to detect */
215 #if HAVE_ALTIVEC 215 #if HAVE_ALTIVEC
216 if (mm_support() & AV_CPU_FLAG_ALTIVEC) { 216 if (av_get_cpu_flags() & AV_CPU_FLAG_ALTIVEC) {
217 xvid_gbl_init.cpu_flags = XVID_CPU_FORCE | XVID_CPU_ALTIVEC; 217 xvid_gbl_init.cpu_flags = XVID_CPU_FORCE | XVID_CPU_ALTIVEC;
218 } else 218 } else
219 #endif 219 #endif
220 xvid_gbl_init.cpu_flags = XVID_CPU_FORCE; 220 xvid_gbl_init.cpu_flags = XVID_CPU_FORCE;
221 #else 221 #else