Mercurial > libavcodec.hg
comparison x86/motion_est_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 |
---|---|
425 PIX_SAD(mmx) | 425 PIX_SAD(mmx) |
426 PIX_SAD(mmx2) | 426 PIX_SAD(mmx2) |
427 | 427 |
428 void dsputil_init_pix_mmx(DSPContext* c, AVCodecContext *avctx) | 428 void dsputil_init_pix_mmx(DSPContext* c, AVCodecContext *avctx) |
429 { | 429 { |
430 int mm_flags = mm_support(); | 430 int mm_flags = av_get_cpu_flags(); |
431 | 431 |
432 if (mm_flags & AV_CPU_FLAG_MMX) { | 432 if (mm_flags & AV_CPU_FLAG_MMX) { |
433 c->pix_abs[0][0] = sad16_mmx; | 433 c->pix_abs[0][0] = sad16_mmx; |
434 c->pix_abs[0][1] = sad16_x2_mmx; | 434 c->pix_abs[0][1] = sad16_x2_mmx; |
435 c->pix_abs[0][2] = sad16_y2_mmx; | 435 c->pix_abs[0][2] = sad16_y2_mmx; |