Mercurial > libavcodec.hg
diff pcm.c @ 6517:48759bfbd073 libavcodec
Apply 'cold' attribute to init/uninit functions in libavcodec
author | zuxy |
---|---|
date | Fri, 21 Mar 2008 03:11:20 +0000 |
parents | dfdff1ca78a7 |
children | 0557f6cc5ed0 |
line wrap: on
line diff
--- a/pcm.c Thu Mar 20 19:36:20 2008 +0000 +++ b/pcm.c Fri Mar 21 03:11:20 2008 +0000 @@ -44,7 +44,7 @@ * alaw2linear() - Convert an A-law value to 16-bit linear PCM * */ -static int alaw2linear(unsigned char a_val) +static av_cold int alaw2linear(unsigned char a_val) { int t; int seg; @@ -59,7 +59,7 @@ return ((a_val & SIGN_BIT) ? t : -t); } -static int ulaw2linear(unsigned char u_val) +static av_cold int ulaw2linear(unsigned char u_val) { int t; @@ -80,7 +80,7 @@ static uint8_t linear_to_alaw[16384]; static uint8_t linear_to_ulaw[16384]; -static void build_xlaw_table(uint8_t *linear_to_xlaw, +static av_cold void build_xlaw_table(uint8_t *linear_to_xlaw, int (*xlaw2linear)(unsigned char), int mask) { @@ -104,7 +104,7 @@ linear_to_xlaw[0] = linear_to_xlaw[1]; } -static int pcm_encode_init(AVCodecContext *avctx) +static av_cold int pcm_encode_init(AVCodecContext *avctx) { avctx->frame_size = 1; switch(avctx->codec->id) { @@ -154,7 +154,7 @@ return 0; } -static int pcm_encode_close(AVCodecContext *avctx) +static av_cold int pcm_encode_close(AVCodecContext *avctx) { av_freep(&avctx->coded_frame); @@ -325,7 +325,7 @@ short table[256]; } PCMDecode; -static int pcm_decode_init(AVCodecContext * avctx) +static av_cold int pcm_decode_init(AVCodecContext * avctx) { PCMDecode *s = avctx->priv_data; int i;