diff options
author | Diego Biurrun <diego@biurrun.de> | 2013-02-01 10:31:59 +0100 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2013-02-05 17:01:05 +0100 |
commit | c9f933b5b62d3054021fcdca8597d1c2fb6bdb2f (patch) | |
tree | c806492fc39c6605545f5e2b216fdfb36ed4840b /libavcodec/arm | |
parent | 25841dfe806a13de526ae09c11149ab1f83555a8 (diff) | |
download | ffmpeg-c9f933b5b62d3054021fcdca8597d1c2fb6bdb2f.tar.gz |
Add av_cold attributes to arch-specific init functions
Diffstat (limited to 'libavcodec/arm')
-rw-r--r-- | libavcodec/arm/dsputil_init_arm.c | 3 | ||||
-rw-r--r-- | libavcodec/arm/dsputil_init_neon.c | 3 | ||||
-rw-r--r-- | libavcodec/arm/fmtconvert_init_arm.c | 3 | ||||
-rw-r--r-- | libavcodec/arm/h264dsp_init_arm.c | 7 | ||||
-rw-r--r-- | libavcodec/arm/h264pred_init_arm.c | 8 | ||||
-rw-r--r-- | libavcodec/arm/h264qpel_init_arm.c | 3 | ||||
-rw-r--r-- | libavcodec/arm/mpegaudiodsp_init_arm.c | 3 | ||||
-rw-r--r-- | libavcodec/arm/mpegvideo_arm.c | 2 | ||||
-rw-r--r-- | libavcodec/arm/mpegvideo_armv5te.c | 3 | ||||
-rw-r--r-- | libavcodec/arm/rv34dsp_init_arm.c | 3 | ||||
-rw-r--r-- | libavcodec/arm/rv40dsp_init_arm.c | 5 | ||||
-rw-r--r-- | libavcodec/arm/videodsp_init_arm.c | 3 | ||||
-rw-r--r-- | libavcodec/arm/videodsp_init_armv5te.c | 3 | ||||
-rw-r--r-- | libavcodec/arm/vorbisdsp_init_arm.c | 2 | ||||
-rw-r--r-- | libavcodec/arm/vp56dsp_init_arm.c | 3 |
15 files changed, 36 insertions, 18 deletions
diff --git a/libavcodec/arm/dsputil_init_arm.c b/libavcodec/arm/dsputil_init_arm.c index 7379761917..5a51d26691 100644 --- a/libavcodec/arm/dsputil_init_arm.c +++ b/libavcodec/arm/dsputil_init_arm.c @@ -19,6 +19,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "libavutil/attributes.h" #include "libavutil/arm/cpu.h" #include "libavcodec/dsputil.h" #include "dsputil_arm.h" @@ -74,7 +75,7 @@ static void simple_idct_arm_add(uint8_t *dest, int line_size, int16_t *block) ff_add_pixels_clamped(block, dest, line_size); } -void ff_dsputil_init_arm(DSPContext* c, AVCodecContext *avctx) +av_cold void ff_dsputil_init_arm(DSPContext *c, AVCodecContext *avctx) { const int high_bit_depth = avctx->bits_per_raw_sample > 8; int cpu_flags = av_get_cpu_flags(); diff --git a/libavcodec/arm/dsputil_init_neon.c b/libavcodec/arm/dsputil_init_neon.c index c73b30ee47..b8d1578e27 100644 --- a/libavcodec/arm/dsputil_init_neon.c +++ b/libavcodec/arm/dsputil_init_neon.c @@ -21,6 +21,7 @@ #include <stdint.h> +#include "libavutil/attributes.h" #include "libavcodec/avcodec.h" #include "libavcodec/dsputil.h" #include "dsputil_arm.h" @@ -83,7 +84,7 @@ int32_t ff_scalarproduct_and_madd_int16_neon(int16_t *v1, const int16_t *v2, void ff_apply_window_int16_neon(int16_t *dst, const int16_t *src, const int16_t *window, unsigned n); -void ff_dsputil_init_neon(DSPContext *c, AVCodecContext *avctx) +av_cold void ff_dsputil_init_neon(DSPContext *c, AVCodecContext *avctx) { const int high_bit_depth = avctx->bits_per_raw_sample > 8; diff --git a/libavcodec/arm/fmtconvert_init_arm.c b/libavcodec/arm/fmtconvert_init_arm.c index 94352636c2..c5f8fbfee3 100644 --- a/libavcodec/arm/fmtconvert_init_arm.c +++ b/libavcodec/arm/fmtconvert_init_arm.c @@ -20,6 +20,7 @@ #include <stdint.h> +#include "libavutil/attributes.h" #include "libavutil/arm/cpu.h" #include "libavcodec/avcodec.h" #include "libavcodec/fmtconvert.h" @@ -32,7 +33,7 @@ void ff_float_to_int16_interleave_neon(int16_t *, const float **, long, int); void ff_float_to_int16_vfp(int16_t *dst, const float *src, long len); -void ff_fmt_convert_init_arm(FmtConvertContext *c, AVCodecContext *avctx) +av_cold void ff_fmt_convert_init_arm(FmtConvertContext *c, AVCodecContext *avctx) { int cpu_flags = av_get_cpu_flags(); diff --git a/libavcodec/arm/h264dsp_init_arm.c b/libavcodec/arm/h264dsp_init_arm.c index 53d862e292..13ae15c1a6 100644 --- a/libavcodec/arm/h264dsp_init_arm.c +++ b/libavcodec/arm/h264dsp_init_arm.c @@ -20,6 +20,7 @@ #include <stdint.h> +#include "libavutil/attributes.h" #include "libavutil/arm/cpu.h" #include "libavcodec/dsputil.h" #include "libavcodec/h264dsp.h" @@ -68,7 +69,8 @@ void ff_h264_idct8_add4_neon(uint8_t *dst, const int *block_offset, int16_t *block, int stride, const uint8_t nnzc[6*8]); -static void ff_h264dsp_init_neon(H264DSPContext *c, const int bit_depth, const int chroma_format_idc) +static av_cold void ff_h264dsp_init_neon(H264DSPContext *c, const int bit_depth, + const int chroma_format_idc) { if (bit_depth == 8) { c->h264_v_loop_filter_luma = ff_h264_v_loop_filter_luma_neon; @@ -96,7 +98,8 @@ static void ff_h264dsp_init_neon(H264DSPContext *c, const int bit_depth, const i } } -void ff_h264dsp_init_arm(H264DSPContext *c, const int bit_depth, const int chroma_format_idc) +av_cold void ff_h264dsp_init_arm(H264DSPContext *c, const int bit_depth, + const int chroma_format_idc) { int cpu_flags = av_get_cpu_flags(); diff --git a/libavcodec/arm/h264pred_init_arm.c b/libavcodec/arm/h264pred_init_arm.c index 0431fc8691..fb4bbdd468 100644 --- a/libavcodec/arm/h264pred_init_arm.c +++ b/libavcodec/arm/h264pred_init_arm.c @@ -20,6 +20,7 @@ #include <stdint.h> +#include "libavutil/attributes.h" #include "libavutil/arm/cpu.h" #include "libavcodec/avcodec.h" #include "libavcodec/h264pred.h" @@ -44,7 +45,9 @@ void ff_pred8x8_0lt_dc_neon(uint8_t *src, ptrdiff_t stride); void ff_pred8x8_l00_dc_neon(uint8_t *src, ptrdiff_t stride); void ff_pred8x8_0l0_dc_neon(uint8_t *src, ptrdiff_t stride); -static void ff_h264_pred_init_neon(H264PredContext *h, int codec_id, const int bit_depth, const int chroma_format_idc) +static av_cold void ff_h264_pred_init_neon(H264PredContext *h, int codec_id, + const int bit_depth, + const int chroma_format_idc) { const int high_depth = bit_depth > 8; @@ -76,7 +79,8 @@ static void ff_h264_pred_init_neon(H264PredContext *h, int codec_id, const int b h->pred16x16[PLANE_PRED8x8 ] = ff_pred16x16_plane_neon; } -void ff_h264_pred_init_arm(H264PredContext *h, int codec_id, int bit_depth, const int chroma_format_idc) +av_cold void ff_h264_pred_init_arm(H264PredContext *h, int codec_id, + int bit_depth, const int chroma_format_idc) { int cpu_flags = av_get_cpu_flags(); diff --git a/libavcodec/arm/h264qpel_init_arm.c b/libavcodec/arm/h264qpel_init_arm.c index 21eb72f165..ebbaa17e35 100644 --- a/libavcodec/arm/h264qpel_init_arm.c +++ b/libavcodec/arm/h264qpel_init_arm.c @@ -22,6 +22,7 @@ #include <stdint.h> #include "config.h" +#include "libavutil/attributes.h" #include "libavutil/arm/cpu.h" #include "libavcodec/h264qpel.h" @@ -93,7 +94,7 @@ void ff_avg_h264_qpel8_mc13_neon(uint8_t *, uint8_t *, int); void ff_avg_h264_qpel8_mc23_neon(uint8_t *, uint8_t *, int); void ff_avg_h264_qpel8_mc33_neon(uint8_t *, uint8_t *, int); -void ff_h264qpel_init_arm(H264QpelContext *c, int bit_depth) +av_cold void ff_h264qpel_init_arm(H264QpelContext *c, int bit_depth) { const int high_bit_depth = bit_depth > 8; int cpu_flags = av_get_cpu_flags(); diff --git a/libavcodec/arm/mpegaudiodsp_init_arm.c b/libavcodec/arm/mpegaudiodsp_init_arm.c index a9804e976c..e73aee6a2b 100644 --- a/libavcodec/arm/mpegaudiodsp_init_arm.c +++ b/libavcodec/arm/mpegaudiodsp_init_arm.c @@ -20,6 +20,7 @@ #include <stdint.h> +#include "libavutil/attributes.h" #include "libavutil/arm/cpu.h" #include "libavcodec/mpegaudiodsp.h" #include "config.h" @@ -27,7 +28,7 @@ void ff_mpadsp_apply_window_fixed_armv6(int32_t *synth_buf, int32_t *window, int *dither, int16_t *out, int incr); -void ff_mpadsp_init_arm(MPADSPContext *s) +av_cold void ff_mpadsp_init_arm(MPADSPContext *s) { int cpu_flags = av_get_cpu_flags(); diff --git a/libavcodec/arm/mpegvideo_arm.c b/libavcodec/arm/mpegvideo_arm.c index a7b9de81be..6fcd1d3cc3 100644 --- a/libavcodec/arm/mpegvideo_arm.c +++ b/libavcodec/arm/mpegvideo_arm.c @@ -39,7 +39,7 @@ void ff_dct_unquantize_h263_inter_neon(MpegEncContext *s, int16_t *block, void ff_dct_unquantize_h263_intra_neon(MpegEncContext *s, int16_t *block, int n, int qscale); -void ff_MPV_common_init_arm(MpegEncContext *s) +av_cold void ff_MPV_common_init_arm(MpegEncContext *s) { int cpu_flags = av_get_cpu_flags(); diff --git a/libavcodec/arm/mpegvideo_armv5te.c b/libavcodec/arm/mpegvideo_armv5te.c index 80d921eeab..d395f09518 100644 --- a/libavcodec/arm/mpegvideo_armv5te.c +++ b/libavcodec/arm/mpegvideo_armv5te.c @@ -19,6 +19,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "libavutil/attributes.h" #include "libavcodec/avcodec.h" #include "libavcodec/dsputil.h" #include "libavcodec/mpegvideo.h" @@ -94,7 +95,7 @@ static void dct_unquantize_h263_inter_armv5te(MpegEncContext *s, ff_dct_unquantize_h263_armv5te(block, qmul, qadd, nCoeffs + 1); } -void ff_MPV_common_init_armv5te(MpegEncContext *s) +av_cold void ff_MPV_common_init_armv5te(MpegEncContext *s) { s->dct_unquantize_h263_intra = dct_unquantize_h263_intra_armv5te; s->dct_unquantize_h263_inter = dct_unquantize_h263_inter_armv5te; diff --git a/libavcodec/arm/rv34dsp_init_arm.c b/libavcodec/arm/rv34dsp_init_arm.c index 2fc6a03d2b..ce86343aa5 100644 --- a/libavcodec/arm/rv34dsp_init_arm.c +++ b/libavcodec/arm/rv34dsp_init_arm.c @@ -20,6 +20,7 @@ #include <stdint.h> +#include "libavutil/attributes.h" #include "libavcodec/avcodec.h" #include "libavcodec/rv34dsp.h" #include "libavutil/arm/cpu.h" @@ -31,7 +32,7 @@ void ff_rv34_inv_transform_noround_dc_neon(int16_t *block); void ff_rv34_idct_add_neon(uint8_t *dst, ptrdiff_t stride, int16_t *block); void ff_rv34_idct_dc_add_neon(uint8_t *dst, ptrdiff_t stride, int dc); -void ff_rv34dsp_init_arm(RV34DSPContext *c, DSPContext* dsp) +av_cold void ff_rv34dsp_init_arm(RV34DSPContext *c, DSPContext *dsp) { int cpu_flags = av_get_cpu_flags(); diff --git a/libavcodec/arm/rv40dsp_init_arm.c b/libavcodec/arm/rv40dsp_init_arm.c index 83f4355a42..aaa1227088 100644 --- a/libavcodec/arm/rv40dsp_init_arm.c +++ b/libavcodec/arm/rv40dsp_init_arm.c @@ -20,6 +20,7 @@ #include <stdint.h> +#include "libavutil/attributes.h" #include "libavcodec/avcodec.h" #include "libavcodec/rv34dsp.h" #include "libavutil/arm/cpu.h" @@ -69,7 +70,7 @@ void ff_rv40_v_weak_loop_filter_neon(uint8_t *src, ptrdiff_t stride, int filter_ int filter_q1, int alpha, int beta, int lim_p0q0, int lim_q1, int lim_p1); -static void ff_rv40dsp_init_neon(RV34DSPContext *c) +static av_cold void ff_rv40dsp_init_neon(RV34DSPContext *c) { c->put_pixels_tab[0][ 1] = ff_put_rv40_qpel16_mc10_neon; c->put_pixels_tab[0][ 3] = ff_put_rv40_qpel16_mc30_neon; @@ -138,7 +139,7 @@ static void ff_rv40dsp_init_neon(RV34DSPContext *c) c->rv40_weak_loop_filter[1] = ff_rv40_v_weak_loop_filter_neon; } -void ff_rv40dsp_init_arm(RV34DSPContext *c, DSPContext* dsp) +av_cold void ff_rv40dsp_init_arm(RV34DSPContext *c, DSPContext *dsp) { int cpu_flags = av_get_cpu_flags(); diff --git a/libavcodec/arm/videodsp_init_arm.c b/libavcodec/arm/videodsp_init_arm.c index 6c97b2ce5e..20c6e4a605 100644 --- a/libavcodec/arm/videodsp_init_arm.c +++ b/libavcodec/arm/videodsp_init_arm.c @@ -18,11 +18,12 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "libavutil/attributes.h" #include "libavutil/arm/cpu.h" #include "libavcodec/videodsp.h" #include "videodsp_arm.h" -void ff_videodsp_init_arm(VideoDSPContext *ctx, int bpc) +av_cold void ff_videodsp_init_arm(VideoDSPContext *ctx, int bpc) { int cpu_flags = av_get_cpu_flags(); if (have_armv5te(cpu_flags)) ff_videodsp_init_armv5te(ctx, bpc); diff --git a/libavcodec/arm/videodsp_init_armv5te.c b/libavcodec/arm/videodsp_init_armv5te.c index 5830f4b8cc..832191f6d2 100644 --- a/libavcodec/arm/videodsp_init_armv5te.c +++ b/libavcodec/arm/videodsp_init_armv5te.c @@ -18,13 +18,14 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "libavutil/attributes.h" #include "libavutil/arm/cpu.h" #include "libavcodec/videodsp.h" #include "videodsp_arm.h" void ff_prefetch_arm(uint8_t *mem, ptrdiff_t stride, int h); -void ff_videodsp_init_armv5te(VideoDSPContext *ctx, int bpc) +av_cold void ff_videodsp_init_armv5te(VideoDSPContext *ctx, int bpc) { ctx->prefetch = ff_prefetch_arm; } diff --git a/libavcodec/arm/vorbisdsp_init_arm.c b/libavcodec/arm/vorbisdsp_init_arm.c index 8c88cc5404..853ba2d865 100644 --- a/libavcodec/arm/vorbisdsp_init_arm.c +++ b/libavcodec/arm/vorbisdsp_init_arm.c @@ -27,7 +27,7 @@ void ff_vorbis_inverse_coupling_neon(float *mag, float *ang, intptr_t blocksize); -void ff_vorbisdsp_init_arm(VorbisDSPContext *c) +av_cold void ff_vorbisdsp_init_arm(VorbisDSPContext *c) { int cpu_flags = av_get_cpu_flags(); diff --git a/libavcodec/arm/vp56dsp_init_arm.c b/libavcodec/arm/vp56dsp_init_arm.c index afa507061a..65e892dafa 100644 --- a/libavcodec/arm/vp56dsp_init_arm.c +++ b/libavcodec/arm/vp56dsp_init_arm.c @@ -20,6 +20,7 @@ #include <stdint.h> +#include "libavutil/attributes.h" #include "libavutil/arm/cpu.h" #include "libavcodec/avcodec.h" #include "libavcodec/vp56dsp.h" @@ -27,7 +28,7 @@ void ff_vp6_edge_filter_hor_neon(uint8_t *yuv, int stride, int t); void ff_vp6_edge_filter_ver_neon(uint8_t *yuv, int stride, int t); -void ff_vp56dsp_init_arm(VP56DSPContext *s, enum AVCodecID codec) +av_cold void ff_vp56dsp_init_arm(VP56DSPContext *s, enum AVCodecID codec) { int cpu_flags = av_get_cpu_flags(); |