Mercurial > libavcodec.hg
comparison huffyuv.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 | 5d82b4e8a7f3 |
children | 6eeb19edcee3 |
comparison
equal
deleted
inserted
replaced
6516:dbb902bb2347 | 6517:48759bfbd073 |
---|---|
476 | 476 |
477 return 0; | 477 return 0; |
478 } | 478 } |
479 | 479 |
480 #ifdef CONFIG_DECODERS | 480 #ifdef CONFIG_DECODERS |
481 static int decode_init(AVCodecContext *avctx) | 481 static av_cold int decode_init(AVCodecContext *avctx) |
482 { | 482 { |
483 HYuvContext *s = avctx->priv_data; | 483 HYuvContext *s = avctx->priv_data; |
484 | 484 |
485 common_init(avctx); | 485 common_init(avctx); |
486 memset(s->vlc, 0, 3*sizeof(VLC)); | 486 memset(s->vlc, 0, 3*sizeof(VLC)); |
597 } | 597 } |
598 | 598 |
599 return index; | 599 return index; |
600 } | 600 } |
601 | 601 |
602 static int encode_init(AVCodecContext *avctx) | 602 static av_cold int encode_init(AVCodecContext *avctx) |
603 { | 603 { |
604 HYuvContext *s = avctx->priv_data; | 604 HYuvContext *s = avctx->priv_data; |
605 int i, j; | 605 int i, j; |
606 | 606 |
607 common_init(avctx); | 607 common_init(avctx); |
1208 } | 1208 } |
1209 return 0; | 1209 return 0; |
1210 } | 1210 } |
1211 | 1211 |
1212 #ifdef CONFIG_DECODERS | 1212 #ifdef CONFIG_DECODERS |
1213 static int decode_end(AVCodecContext *avctx) | 1213 static av_cold int decode_end(AVCodecContext *avctx) |
1214 { | 1214 { |
1215 HYuvContext *s = avctx->priv_data; | 1215 HYuvContext *s = avctx->priv_data; |
1216 int i; | 1216 int i; |
1217 | 1217 |
1218 common_end(s); | 1218 common_end(s); |
1418 s->picture_number++; | 1418 s->picture_number++; |
1419 | 1419 |
1420 return size*4; | 1420 return size*4; |
1421 } | 1421 } |
1422 | 1422 |
1423 static int encode_end(AVCodecContext *avctx) | 1423 static av_cold int encode_end(AVCodecContext *avctx) |
1424 { | 1424 { |
1425 HYuvContext *s = avctx->priv_data; | 1425 HYuvContext *s = avctx->priv_data; |
1426 | 1426 |
1427 common_end(s); | 1427 common_end(s); |
1428 | 1428 |