comparison svq1enc.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 5b3acf9fd50a
comparison
equal deleted inserted replaced
6516:dbb902bb2347 6517:48759bfbd073
477 s->m.first_slice_line=0; 477 s->m.first_slice_line=0;
478 } 478 }
479 return 0; 479 return 0;
480 } 480 }
481 481
482 static int svq1_encode_init(AVCodecContext *avctx) 482 static av_cold int svq1_encode_init(AVCodecContext *avctx)
483 { 483 {
484 SVQ1Context * const s = avctx->priv_data; 484 SVQ1Context * const s = avctx->priv_data;
485 485
486 dsputil_init(&s->dsp, avctx); 486 dsputil_init(&s->dsp, avctx);
487 avctx->coded_frame= (AVFrame*)&s->picture; 487 avctx->coded_frame= (AVFrame*)&s->picture;
552 flush_put_bits(&s->pb); 552 flush_put_bits(&s->pb);
553 553
554 return (put_bits_count(&s->pb) / 8); 554 return (put_bits_count(&s->pb) / 8);
555 } 555 }
556 556
557 static int svq1_encode_end(AVCodecContext *avctx) 557 static av_cold int svq1_encode_end(AVCodecContext *avctx)
558 { 558 {
559 SVQ1Context * const s = avctx->priv_data; 559 SVQ1Context * const s = avctx->priv_data;
560 int i; 560 int i;
561 561
562 av_log(avctx, AV_LOG_DEBUG, "RD: %f\n", s->rd_total/(double)(avctx->width*avctx->height*avctx->frame_number)); 562 av_log(avctx, AV_LOG_DEBUG, "RD: %f\n", s->rd_total/(double)(avctx->width*avctx->height*avctx->frame_number));