diff options
author | Zuxy Meng <zuxy.meng@gmail.com> | 2010-01-13 02:16:00 +0000 |
---|---|---|
committer | Zuxy Meng <zuxy.meng@gmail.com> | 2010-01-13 02:16:00 +0000 |
commit | 0752cd39d27d08cb9530a0450bfa8e54913bfa69 (patch) | |
tree | 0a96d715f883577b1bd1775f09700ac92fa25253 /libavcodec | |
parent | e1e949026ec552b206306da00bf90fc797542fe5 (diff) | |
download | ffmpeg-0752cd39d27d08cb9530a0450bfa8e54913bfa69.tar.gz |
More av_cold for infrequently called functions.
Originally committed as revision 21179 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/cavsdsp.c | 2 | ||||
-rw-r--r-- | libavcodec/dsputil.c | 4 | ||||
-rw-r--r-- | libavcodec/h264dspenc.c | 2 | ||||
-rw-r--r-- | libavcodec/intrax8dsp.c | 2 | ||||
-rw-r--r-- | libavcodec/rv30dsp.c | 2 | ||||
-rw-r--r-- | libavcodec/utils.c | 2 | ||||
-rw-r--r-- | libavcodec/vc1dsp.c | 2 |
7 files changed, 8 insertions, 8 deletions
diff --git a/libavcodec/cavsdsp.c b/libavcodec/cavsdsp.c index 69d3bd2323..4ba08bbd2a 100644 --- a/libavcodec/cavsdsp.c +++ b/libavcodec/cavsdsp.c @@ -515,7 +515,7 @@ void ff_avg_cavs_qpel8_mc00_c(uint8_t *dst, uint8_t *src, int stride); void ff_put_cavs_qpel16_mc00_c(uint8_t *dst, uint8_t *src, int stride); void ff_avg_cavs_qpel16_mc00_c(uint8_t *dst, uint8_t *src, int stride); -void ff_cavsdsp_init(DSPContext* c, AVCodecContext *avctx) { +av_cold void ff_cavsdsp_init(DSPContext* c, AVCodecContext *avctx) { #define dspfunc(PFX, IDX, NUM) \ c->PFX ## _pixels_tab[IDX][ 0] = ff_ ## PFX ## NUM ## _mc00_c; \ c->PFX ## _pixels_tab[IDX][ 1] = ff_ ## PFX ## NUM ## _mc10_c; \ diff --git a/libavcodec/dsputil.c b/libavcodec/dsputil.c index 9160ac308f..a2a313abf6 100644 --- a/libavcodec/dsputil.c +++ b/libavcodec/dsputil.c @@ -4452,7 +4452,7 @@ static void ff_jref_idct1_add(uint8_t *dest, int line_size, DCTELEM *block) static void just_return(void *mem av_unused, int stride av_unused, int h av_unused) { return; } /* init static data */ -void dsputil_static_init(void) +av_cold void dsputil_static_init(void) { int i; @@ -4489,7 +4489,7 @@ int ff_check_alignment(void){ return 0; } -void dsputil_init(DSPContext* c, AVCodecContext *avctx) +av_cold void dsputil_init(DSPContext* c, AVCodecContext *avctx) { int i; diff --git a/libavcodec/h264dspenc.c b/libavcodec/h264dspenc.c index 9dfa01b336..c80e284ba4 100644 --- a/libavcodec/h264dspenc.c +++ b/libavcodec/h264dspenc.c @@ -71,7 +71,7 @@ static void h264_dct_c(DCTELEM block[4][4]) H264_DCT_PART2(3); } -void ff_h264dspenc_init(DSPContext* c, AVCodecContext *avctx) +av_cold void ff_h264dspenc_init(DSPContext* c, AVCodecContext *avctx) { c->h264_dct = h264_dct_c; } diff --git a/libavcodec/intrax8dsp.c b/libavcodec/intrax8dsp.c index 0ed2e39d02..05d6f66fbf 100644 --- a/libavcodec/intrax8dsp.c +++ b/libavcodec/intrax8dsp.c @@ -413,7 +413,7 @@ static void x8_v_loop_filter(uint8_t *src, int stride, int qscale){ x8_loop_filter(src, 1, stride, qscale); } -void ff_intrax8dsp_init(DSPContext* dsp, AVCodecContext *avctx) { +av_cold void ff_intrax8dsp_init(DSPContext* dsp, AVCodecContext *avctx) { dsp->x8_h_loop_filter=x8_h_loop_filter; dsp->x8_v_loop_filter=x8_v_loop_filter; dsp->x8_setup_spatial_compensation=x8_setup_spatial_compensation; diff --git a/libavcodec/rv30dsp.c b/libavcodec/rv30dsp.c index c0509ea650..bf2dc18b8a 100644 --- a/libavcodec/rv30dsp.c +++ b/libavcodec/rv30dsp.c @@ -251,7 +251,7 @@ RV30_MC(put_, 16) RV30_MC(avg_, 8) RV30_MC(avg_, 16) -void ff_rv30dsp_init(DSPContext* c, AVCodecContext *avctx) { +av_cold void ff_rv30dsp_init(DSPContext* c, AVCodecContext *avctx) { c->put_rv30_tpel_pixels_tab[0][ 0] = c->put_h264_qpel_pixels_tab[0][0]; c->put_rv30_tpel_pixels_tab[0][ 1] = put_rv30_tpel16_mc10_c; c->put_rv30_tpel_pixels_tab[0][ 2] = put_rv30_tpel16_mc20_c; diff --git a/libavcodec/utils.c b/libavcodec/utils.c index f583cd284e..0e7dad7e45 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -662,7 +662,7 @@ int avcodec_decode_subtitle2(AVCodecContext *avctx, AVSubtitle *sub, return ret; } -int avcodec_close(AVCodecContext *avctx) +av_cold int avcodec_close(AVCodecContext *avctx) { /* If there is a user-supplied mutex locking routine, call it. */ if (ff_lockmgr_cb) { diff --git a/libavcodec/vc1dsp.c b/libavcodec/vc1dsp.c index 5e79736a50..85896dbdde 100644 --- a/libavcodec/vc1dsp.c +++ b/libavcodec/vc1dsp.c @@ -612,7 +612,7 @@ PUT_VC1_MSPEL(1, 3) PUT_VC1_MSPEL(2, 3) PUT_VC1_MSPEL(3, 3) -void ff_vc1dsp_init(DSPContext* dsp, AVCodecContext *avctx) { +av_cold void ff_vc1dsp_init(DSPContext* dsp, AVCodecContext *avctx) { dsp->vc1_inv_trans_8x8 = vc1_inv_trans_8x8_c; dsp->vc1_inv_trans_4x8 = vc1_inv_trans_4x8_c; dsp->vc1_inv_trans_8x4 = vc1_inv_trans_8x4_c; |