comparison rv34.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 493dc59d469a
children 6f13852a9161
comparison
equal deleted inserted replaced
6516:dbb902bb2347 6517:48759bfbd073
97 } 97 }
98 98
99 /** 99 /**
100 * Initialize all tables. 100 * Initialize all tables.
101 */ 101 */
102 static void rv34_init_tables() 102 static av_cold void rv34_init_tables()
103 { 103 {
104 int i, j, k; 104 int i, j, k;
105 105
106 for(i = 0; i < NUM_INTRA_TABLES; i++){ 106 for(i = 0; i < NUM_INTRA_TABLES; i++){
107 for(j = 0; j < 2; j++){ 107 for(j = 0; j < 2; j++){
1161 /** @} */ // recons group end 1161 /** @} */ // recons group end
1162 1162
1163 /** 1163 /**
1164 * Initialize decoder. 1164 * Initialize decoder.
1165 */ 1165 */
1166 int ff_rv34_decode_init(AVCodecContext *avctx) 1166 av_cold int ff_rv34_decode_init(AVCodecContext *avctx)
1167 { 1167 {
1168 RV34DecContext *r = avctx->priv_data; 1168 RV34DecContext *r = avctx->priv_data;
1169 MpegEncContext *s = &r->s; 1169 MpegEncContext *s = &r->s;
1170 1170
1171 MPV_decode_defaults(s); 1171 MPV_decode_defaults(s);
1283 s->current_picture_ptr= NULL; //so we can detect if frame_end wasnt called (find some nicer solution...) 1283 s->current_picture_ptr= NULL; //so we can detect if frame_end wasnt called (find some nicer solution...)
1284 } 1284 }
1285 return buf_size; 1285 return buf_size;
1286 } 1286 }
1287 1287
1288 int ff_rv34_decode_end(AVCodecContext *avctx) 1288 av_cold int ff_rv34_decode_end(AVCodecContext *avctx)
1289 { 1289 {
1290 RV34DecContext *r = avctx->priv_data; 1290 RV34DecContext *r = avctx->priv_data;
1291 1291
1292 MPV_common_end(&r->s); 1292 MPV_common_end(&r->s);
1293 1293