Mercurial > libavcodec.hg
comparison 4xm.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 | c32be43b52b2 |
children | 52925923273f |
comparison
equal
deleted
inserted
replaced
6516:dbb902bb2347 | 6517:48759bfbd073 |
---|---|
233 block[4 + i] = (tmp3 + tmp4)>>6; | 233 block[4 + i] = (tmp3 + tmp4)>>6; |
234 block[3 + i] = (tmp3 - tmp4)>>6; | 234 block[3 + i] = (tmp3 - tmp4)>>6; |
235 } | 235 } |
236 } | 236 } |
237 | 237 |
238 static void init_vlcs(FourXContext *f){ | 238 static av_cold void init_vlcs(FourXContext *f){ |
239 int i; | 239 int i; |
240 | 240 |
241 for(i=0; i<8; i++){ | 241 for(i=0; i<8; i++){ |
242 init_vlc(&block_type_vlc[0][i], BLOCK_TYPE_VLC_BITS, 7, | 242 init_vlc(&block_type_vlc[0][i], BLOCK_TYPE_VLC_BITS, 7, |
243 &block_type_tab[0][i][0][1], 2, 1, | 243 &block_type_tab[0][i][0][1], 2, 1, |
790 dsputil_init(&f->dsp, avctx); | 790 dsputil_init(&f->dsp, avctx); |
791 | 791 |
792 f->avctx= avctx; | 792 f->avctx= avctx; |
793 } | 793 } |
794 | 794 |
795 static int decode_init(AVCodecContext *avctx){ | 795 static av_cold int decode_init(AVCodecContext *avctx){ |
796 FourXContext * const f = avctx->priv_data; | 796 FourXContext * const f = avctx->priv_data; |
797 | 797 |
798 if(avctx->extradata_size != 4 || !avctx->extradata) { | 798 if(avctx->extradata_size != 4 || !avctx->extradata) { |
799 av_log(avctx, AV_LOG_ERROR, "extradata wrong or missing\n"); | 799 av_log(avctx, AV_LOG_ERROR, "extradata wrong or missing\n"); |
800 return 1; | 800 return 1; |
809 | 809 |
810 return 0; | 810 return 0; |
811 } | 811 } |
812 | 812 |
813 | 813 |
814 static int decode_end(AVCodecContext *avctx){ | 814 static av_cold int decode_end(AVCodecContext *avctx){ |
815 FourXContext * const f = avctx->priv_data; | 815 FourXContext * const f = avctx->priv_data; |
816 int i; | 816 int i; |
817 | 817 |
818 av_freep(&f->bitstream_buffer); | 818 av_freep(&f->bitstream_buffer); |
819 f->bitstream_buffer_size=0; | 819 f->bitstream_buffer_size=0; |