typedefstruct RateControlEntry{ int pict_type; float qscale; int i_count; int f_code; int b_code; int mv_bits; int i_tex_bits; int p_tex_bits; int misc_bits; int header_bits;
uint64_t expected_bits; int new_pict_type; float new_qscale;
int64_t mc_mb_var_sum;
int64_t mb_var_sum;
}RateControlEntry;
/** *ratecontrolcontext.
*/ typedefstruct RateControlContext{ int num_entries; ///< number of RateControlEntries
RateControlEntry *entry; double buffer_index; ///< amount of bits in the video/audio buffer
Predictor pred[5]; double short_term_qsum; ///< sum of recent qscales double short_term_qcount; ///< count of recent qscales double pass1_rc_eq_output_sum;///< sum of the output of the rc equation, this is used for normalization double pass1_wanted_bits; ///< bits which should have been output by the pass1 code (including complexity init) double last_qscale; double last_qscale_for[5]; ///< last qscale for a specific pict type, used for max_diff & ipb factor stuff
int64_t last_mc_mb_var_sum;
int64_t last_mb_var_sum;
uint64_t i_cplx_sum[5];
uint64_t p_cplx_sum[5];
uint64_t mv_bits_sum[5];
uint64_t qscale_sum[5]; int frame_count[5]; int last_non_b_pict_type;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.