comparison x86/mpegvideo_mmx.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 a5ddb39627fd
children
comparison
equal deleted inserted replaced
12474:cf54b8e98e7a 12475:9fef0a8ddd63
20 * You should have received a copy of the GNU Lesser General Public 20 * You should have received a copy of the GNU Lesser General Public
21 * License along with FFmpeg; if not, write to the Free Software 21 * License along with FFmpeg; if not, write to the Free Software
22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23 */ 23 */
24 24
25 #include "libavutil/cpu.h"
25 #include "libavutil/x86_cpu.h" 26 #include "libavutil/x86_cpu.h"
26 #include "libavcodec/avcodec.h" 27 #include "libavcodec/avcodec.h"
27 #include "libavcodec/dsputil.h" 28 #include "libavcodec/dsputil.h"
28 #include "libavcodec/mpegvideo.h" 29 #include "libavcodec/mpegvideo.h"
29 #include "dsputil_mmx.h" 30 #include "dsputil_mmx.h"
623 #include "mpegvideo_mmx_template.c" 624 #include "mpegvideo_mmx_template.c"
624 #endif 625 #endif
625 626
626 void MPV_common_init_mmx(MpegEncContext *s) 627 void MPV_common_init_mmx(MpegEncContext *s)
627 { 628 {
628 int mm_flags = mm_support(); 629 int mm_flags = av_get_cpu_flags();
629 630
630 if (mm_flags & AV_CPU_FLAG_MMX) { 631 if (mm_flags & AV_CPU_FLAG_MMX) {
631 const int dct_algo = s->avctx->dct_algo; 632 const int dct_algo = s->avctx->dct_algo;
632 633
633 s->dct_unquantize_h263_intra = dct_unquantize_h263_intra_mmx; 634 s->dct_unquantize_h263_intra = dct_unquantize_h263_intra_mmx;