Mercurial > libavcodec.hg
comparison mpegvideo.h @ 1683:043b6d933fc6 libavcodec
CBR improvements
author | michael |
---|---|
date | Fri, 12 Dec 2003 19:26:55 +0000 |
parents | 30746f429df6 |
children | 19e781619e3f |
comparison
equal
deleted
inserted
replaced
1682:7b810155650f | 1683:043b6d933fc6 |
---|---|
91 */ | 91 */ |
92 typedef struct RateControlContext{ | 92 typedef struct RateControlContext{ |
93 FILE *stats_file; | 93 FILE *stats_file; |
94 int num_entries; ///< number of RateControlEntries | 94 int num_entries; ///< number of RateControlEntries |
95 RateControlEntry *entry; | 95 RateControlEntry *entry; |
96 int buffer_index; ///< amount of bits in the video/audio buffer | 96 double buffer_index; ///< amount of bits in the video/audio buffer |
97 Predictor pred[5]; | 97 Predictor pred[5]; |
98 double short_term_qsum; ///< sum of recent qscales | 98 double short_term_qsum; ///< sum of recent qscales |
99 double short_term_qcount; ///< count of recent qscales | 99 double short_term_qcount; ///< count of recent qscales |
100 double pass1_rc_eq_output_sum;///< sum of the output of the rc equation, this is used for normalization | 100 double pass1_rc_eq_output_sum;///< sum of the output of the rc equation, this is used for normalization |
101 double pass1_wanted_bits; ///< bits which should have been outputed by the pass1 code (including complexity init) | 101 double pass1_wanted_bits; ///< bits which should have been outputed by the pass1 code (including complexity init) |