Mercurial > libavcodec.hg
comparison dsputil.h @ 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 | 0a306a267dbf |
children |
comparison
equal
deleted
inserted
replaced
12474:cf54b8e98e7a | 12475:9fef0a8ddd63 |
---|---|
608 * this must be called between any dsp function and float/double code. | 608 * this must be called between any dsp function and float/double code. |
609 * for example sin(); dsp->idct_put(); emms_c(); cos() | 609 * for example sin(); dsp->idct_put(); emms_c(); cos() |
610 */ | 610 */ |
611 #define emms_c() | 611 #define emms_c() |
612 | 612 |
613 /* should be defined by architectures supporting | |
614 one or more MultiMedia extension */ | |
615 int mm_support(void); | |
616 | |
617 void dsputil_init_alpha(DSPContext* c, AVCodecContext *avctx); | 613 void dsputil_init_alpha(DSPContext* c, AVCodecContext *avctx); |
618 void dsputil_init_arm(DSPContext* c, AVCodecContext *avctx); | 614 void dsputil_init_arm(DSPContext* c, AVCodecContext *avctx); |
619 void dsputil_init_bfin(DSPContext* c, AVCodecContext *avctx); | 615 void dsputil_init_bfin(DSPContext* c, AVCodecContext *avctx); |
620 void dsputil_init_mlib(DSPContext* c, AVCodecContext *avctx); | 616 void dsputil_init_mlib(DSPContext* c, AVCodecContext *avctx); |
621 void dsputil_init_mmi(DSPContext* c, AVCodecContext *avctx); | 617 void dsputil_init_mmi(DSPContext* c, AVCodecContext *avctx); |
654 #define STRIDE_ALIGN 16 | 650 #define STRIDE_ALIGN 16 |
655 | 651 |
656 #elif HAVE_MMI | 652 #elif HAVE_MMI |
657 | 653 |
658 #define STRIDE_ALIGN 16 | 654 #define STRIDE_ALIGN 16 |
659 | |
660 #else | |
661 | |
662 #define mm_support() 0 | |
663 | 655 |
664 #endif | 656 #endif |
665 | 657 |
666 #ifndef STRIDE_ALIGN | 658 #ifndef STRIDE_ALIGN |
667 # define STRIDE_ALIGN 8 | 659 # define STRIDE_ALIGN 8 |