comparison ppc/dsputil_ppc.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 06abedae2906
children
comparison
equal deleted inserted replaced
12474:cf54b8e98e7a 12475:9fef0a8ddd63
18 * You should have received a copy of the GNU Lesser General Public 18 * You should have received a copy of the GNU Lesser General Public
19 * License along with FFmpeg; if not, write to the Free Software 19 * License along with FFmpeg; if not, write to the Free Software
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 "libavutil/cpu.h"
23 #include "libavcodec/dsputil.h" 24 #include "libavcodec/dsputil.h"
24 #include "dsputil_altivec.h" 25 #include "dsputil_altivec.h"
25 26
26 /* ***** WARNING ***** WARNING ***** WARNING ***** */ 27 /* ***** WARNING ***** WARNING ***** WARNING ***** */
27 /* 28 /*
166 } 167 }
167 168
168 #if HAVE_ALTIVEC 169 #if HAVE_ALTIVEC
169 if(CONFIG_H264_DECODER) dsputil_h264_init_ppc(c, avctx); 170 if(CONFIG_H264_DECODER) dsputil_h264_init_ppc(c, avctx);
170 171
171 if (mm_support() & AV_CPU_FLAG_ALTIVEC) { 172 if (av_get_cpu_flags() & AV_CPU_FLAG_ALTIVEC) {
172 dsputil_init_altivec(c, avctx); 173 dsputil_init_altivec(c, avctx);
173 if(CONFIG_VC1_DECODER) 174 if(CONFIG_VC1_DECODER)
174 vc1dsp_init_altivec(c, avctx); 175 vc1dsp_init_altivec(c, avctx);
175 float_init_altivec(c, avctx); 176 float_init_altivec(c, avctx);
176 int_init_altivec(c, avctx); 177 int_init_altivec(c, avctx);