mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
Move emms_c() from libavcodec to libavutil.
This commit is contained in:
parent
7ca5338b49
commit
e973557211
@ -630,13 +630,6 @@ static inline int get_penalty_factor(int lambda, int lambda2, int type){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Empty mmx state.
|
|
||||||
* this must be called between any dsp function and float/double code.
|
|
||||||
* for example sin(); dsp->idct_put(); emms_c(); cos()
|
|
||||||
*/
|
|
||||||
#define emms_c()
|
|
||||||
|
|
||||||
void dsputil_init_alpha(DSPContext* c, AVCodecContext *avctx);
|
void dsputil_init_alpha(DSPContext* c, AVCodecContext *avctx);
|
||||||
void dsputil_init_arm(DSPContext* c, AVCodecContext *avctx);
|
void dsputil_init_arm(DSPContext* c, AVCodecContext *avctx);
|
||||||
void dsputil_init_bfin(DSPContext* c, AVCodecContext *avctx);
|
void dsputil_init_bfin(DSPContext* c, AVCodecContext *avctx);
|
||||||
@ -654,18 +647,7 @@ void ff_intrax8dsp_init(DSPContext* c, AVCodecContext *avctx);
|
|||||||
void ff_mlp_init(DSPContext* c, AVCodecContext *avctx);
|
void ff_mlp_init(DSPContext* c, AVCodecContext *avctx);
|
||||||
void ff_mlp_init_x86(DSPContext* c, AVCodecContext *avctx);
|
void ff_mlp_init_x86(DSPContext* c, AVCodecContext *avctx);
|
||||||
|
|
||||||
#if HAVE_MMX
|
#if ARCH_ARM
|
||||||
|
|
||||||
#undef emms_c
|
|
||||||
|
|
||||||
static inline void emms(void)
|
|
||||||
{
|
|
||||||
__asm__ volatile ("emms;":::"memory");
|
|
||||||
}
|
|
||||||
|
|
||||||
#define emms_c() emms()
|
|
||||||
|
|
||||||
#elif ARCH_ARM
|
|
||||||
|
|
||||||
#if HAVE_NEON
|
#if HAVE_NEON
|
||||||
# define STRIDE_ALIGN 16
|
# define STRIDE_ALIGN 16
|
||||||
|
@ -223,4 +223,18 @@
|
|||||||
# define ONLY_IF_THREADS_ENABLED(x) NULL
|
# define ONLY_IF_THREADS_ENABLED(x) NULL
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if HAVE_MMX
|
||||||
|
/**
|
||||||
|
* Empty mmx state.
|
||||||
|
* this must be called between any dsp function and float/double code.
|
||||||
|
* for example sin(); dsp->idct_put(); emms_c(); cos()
|
||||||
|
*/
|
||||||
|
static av_always_inline void emms_c(void)
|
||||||
|
{
|
||||||
|
__asm__ volatile ("emms" ::: "memory");
|
||||||
|
}
|
||||||
|
#else /* HAVE_MMX */
|
||||||
|
#define emms_c()
|
||||||
|
#endif /* HAVE_MMX */
|
||||||
|
|
||||||
#endif /* AVUTIL_INTERNAL_H */
|
#endif /* AVUTIL_INTERNAL_H */
|
||||||
|
Loading…
Reference in New Issue
Block a user