Mercurial > libavcodec.hg
diff ratecontrol.c @ 2981:33d4fb0df0d3 libavcodec
better f_code guessing in 2nd pass
| author | michael |
|---|---|
| date | Thu, 22 Dec 2005 22:48:09 +0000 |
| parents | e7189a8c22ed |
| children | 0b546eab515d |
line wrap: on
line diff
--- a/ratecontrol.c Thu Dec 22 14:17:54 2005 +0000 +++ b/ratecontrol.c Thu Dec 22 22:48:09 2005 +0000 @@ -607,6 +607,17 @@ s->lambda_table[mb_xy]= intq; } } + +void ff_get_2pass_fcode(MpegEncContext *s){ + RateControlContext *rcc= &s->rc_context; + int picture_number= s->picture_number; + RateControlEntry *rce; + + rce= &rcc->entry[picture_number]; + s->f_code= rce->f_code; + s->b_code= rce->b_code; +} + //FIXME rd or at least approx for dquant float ff_rate_estimate_qscale(MpegEncContext *s, int dry_run)
