Mercurial > libavcodec.hg
comparison rpza.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 | 814c8bd77d91 |
children | 5b3acf9fd50a |
comparison
equal
deleted
inserted
replaced
6516:dbb902bb2347 | 6517:48759bfbd073 |
---|---|
224 return; | 224 return; |
225 } /* Opcode switch */ | 225 } /* Opcode switch */ |
226 } | 226 } |
227 } | 227 } |
228 | 228 |
229 static int rpza_decode_init(AVCodecContext *avctx) | 229 static av_cold int rpza_decode_init(AVCodecContext *avctx) |
230 { | 230 { |
231 RpzaContext *s = avctx->priv_data; | 231 RpzaContext *s = avctx->priv_data; |
232 | 232 |
233 s->avctx = avctx; | 233 s->avctx = avctx; |
234 avctx->pix_fmt = PIX_FMT_RGB555; | 234 avctx->pix_fmt = PIX_FMT_RGB555; |
261 | 261 |
262 /* always report that the buffer was completely consumed */ | 262 /* always report that the buffer was completely consumed */ |
263 return buf_size; | 263 return buf_size; |
264 } | 264 } |
265 | 265 |
266 static int rpza_decode_end(AVCodecContext *avctx) | 266 static av_cold int rpza_decode_end(AVCodecContext *avctx) |
267 { | 267 { |
268 RpzaContext *s = avctx->priv_data; | 268 RpzaContext *s = avctx->priv_data; |
269 | 269 |
270 if (s->frame.data[0]) | 270 if (s->frame.data[0]) |
271 avctx->release_buffer(avctx, &s->frame); | 271 avctx->release_buffer(avctx, &s->frame); |