diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-02-06 13:27:24 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-02-06 13:27:24 +0100 |
commit | 6c3888487686a2e6cd505cb60d58106954e3569b (patch) | |
tree | fed5222c8da1b4957ad67cdcbdf878ee7370a07c /libavcodec/x86/dsputil_mmx.c | |
parent | 0ddca7d416cc8b80d9943405d6d0bb39bc2dec06 (diff) | |
parent | 620289a20e022b9c16c10d546ef86cc0bb77cc84 (diff) | |
download | ffmpeg-6c3888487686a2e6cd505cb60d58106954e3569b.tar.gz |
Merge commit '620289a20e022b9c16c10d546ef86cc0bb77cc84'
* commit '620289a20e022b9c16c10d546ef86cc0bb77cc84':
sh4: Fix silly type vs. variable name search and replace typo
configure: Group all hwaccels together in a separate variable
Add av_cold attributes to arch-specific init functions
Conflicts:
configure
libavcodec/arm/mpegvideo_armv5te.c
libavcodec/x86/mlpdsp.c
libavcodec/x86/motion_est.c
libavcodec/x86/mpegvideoenc.c
libavcodec/x86/videodsp_init.c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/x86/dsputil_mmx.c')
-rw-r--r-- | libavcodec/x86/dsputil_mmx.c | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/libavcodec/x86/dsputil_mmx.c b/libavcodec/x86/dsputil_mmx.c index 0db4143d98..75edf4a7fe 100644 --- a/libavcodec/x86/dsputil_mmx.c +++ b/libavcodec/x86/dsputil_mmx.c @@ -22,6 +22,7 @@ * MMX optimization by Nick Kurshev <nickols_k@mail.ru> */ +#include "libavutil/attributes.h" #include "libavutil/cpu.h" #include "libavutil/x86/asm.h" #include "libavcodec/dsputil.h" @@ -1821,7 +1822,8 @@ void ff_vector_clip_int32_sse4 (int32_t *dst, const int32_t *src, c->PFX ## _pixels_tab IDX [3] = PFX ## _pixels ## SIZE ## _xy2_ ## CPU; \ } while (0) -static void dsputil_init_mmx(DSPContext *c, AVCodecContext *avctx, int mm_flags) +static av_cold void dsputil_init_mmx(DSPContext *c, AVCodecContext *avctx, + int mm_flags) { const int high_bit_depth = avctx->bits_per_raw_sample > 8; @@ -1867,8 +1869,8 @@ static void dsputil_init_mmx(DSPContext *c, AVCodecContext *avctx, int mm_flags) } -static void dsputil_init_mmxext(DSPContext *c, AVCodecContext *avctx, - int mm_flags) +static av_cold void dsputil_init_mmxext(DSPContext *c, AVCodecContext *avctx, + int mm_flags) { const int bit_depth = avctx->bits_per_raw_sample; const int high_bit_depth = bit_depth > 8; @@ -1946,8 +1948,8 @@ static void dsputil_init_mmxext(DSPContext *c, AVCodecContext *avctx, #endif /* HAVE_MMXEXT_EXTERNAL */ } -static void dsputil_init_3dnow(DSPContext *c, AVCodecContext *avctx, - int mm_flags) +static av_cold void dsputil_init_3dnow(DSPContext *c, AVCodecContext *avctx, + int mm_flags) { const int high_bit_depth = avctx->bits_per_raw_sample > 8; @@ -1991,7 +1993,8 @@ static void dsputil_init_3dnow(DSPContext *c, AVCodecContext *avctx, #endif /* HAVE_YASM */ } -static void dsputil_init_sse(DSPContext *c, AVCodecContext *avctx, int mm_flags) +static av_cold void dsputil_init_sse(DSPContext *c, AVCodecContext *avctx, + int mm_flags) { const int high_bit_depth = avctx->bits_per_raw_sample > 8; @@ -2014,8 +2017,8 @@ static void dsputil_init_sse(DSPContext *c, AVCodecContext *avctx, int mm_flags) #endif /* HAVE_YASM */ } -static void dsputil_init_sse2(DSPContext *c, AVCodecContext *avctx, - int mm_flags) +static av_cold void dsputil_init_sse2(DSPContext *c, AVCodecContext *avctx, + int mm_flags) { const int bit_depth = avctx->bits_per_raw_sample; const int high_bit_depth = bit_depth > 8; @@ -2062,8 +2065,8 @@ static void dsputil_init_sse2(DSPContext *c, AVCodecContext *avctx, #endif /* HAVE_SSE2_EXTERNAL */ } -static void dsputil_init_ssse3(DSPContext *c, AVCodecContext *avctx, - int mm_flags) +static av_cold void dsputil_init_ssse3(DSPContext *c, AVCodecContext *avctx, + int mm_flags) { #if HAVE_SSSE3_EXTERNAL const int high_bit_depth = avctx->bits_per_raw_sample > 8; @@ -2088,15 +2091,15 @@ static void dsputil_init_ssse3(DSPContext *c, AVCodecContext *avctx, #endif /* HAVE_SSSE3_EXTERNAL */ } -static void dsputil_init_sse4(DSPContext *c, AVCodecContext *avctx, - int mm_flags) +static av_cold void dsputil_init_sse4(DSPContext *c, AVCodecContext *avctx, + int mm_flags) { #if HAVE_SSE4_EXTERNAL c->vector_clip_int32 = ff_vector_clip_int32_sse4; #endif /* HAVE_SSE4_EXTERNAL */ } -static void dsputil_init_avx(DSPContext *c, AVCodecContext *avctx, int mm_flags) +static av_cold void dsputil_init_avx(DSPContext *c, AVCodecContext *avctx, int mm_flags) { #if HAVE_AVX_EXTERNAL const int bit_depth = avctx->bits_per_raw_sample; @@ -2110,7 +2113,7 @@ static void dsputil_init_avx(DSPContext *c, AVCodecContext *avctx, int mm_flags) #endif /* HAVE_AVX_EXTERNAL */ } -void ff_dsputil_init_mmx(DSPContext *c, AVCodecContext *avctx) +av_cold void ff_dsputil_init_mmx(DSPContext *c, AVCodecContext *avctx) { int mm_flags = av_get_cpu_flags(); |