Mercurial > libavcodec.hg
comparison qtrle.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 |
---|---|
483 } | 483 } |
484 row_ptr += row_inc; | 484 row_ptr += row_inc; |
485 } | 485 } |
486 } | 486 } |
487 | 487 |
488 static int qtrle_decode_init(AVCodecContext *avctx) | 488 static av_cold int qtrle_decode_init(AVCodecContext *avctx) |
489 { | 489 { |
490 QtrleContext *s = avctx->priv_data; | 490 QtrleContext *s = avctx->priv_data; |
491 | 491 |
492 s->avctx = avctx; | 492 s->avctx = avctx; |
493 switch (avctx->bits_per_sample) { | 493 switch (avctx->bits_per_sample) { |
598 | 598 |
599 /* always report that the buffer was completely consumed */ | 599 /* always report that the buffer was completely consumed */ |
600 return buf_size; | 600 return buf_size; |
601 } | 601 } |
602 | 602 |
603 static int qtrle_decode_end(AVCodecContext *avctx) | 603 static av_cold int qtrle_decode_end(AVCodecContext *avctx) |
604 { | 604 { |
605 QtrleContext *s = avctx->priv_data; | 605 QtrleContext *s = avctx->priv_data; |
606 | 606 |
607 if (s->frame.data[0]) | 607 if (s->frame.data[0]) |
608 avctx->release_buffer(avctx, &s->frame); | 608 avctx->release_buffer(avctx, &s->frame); |