#[repr(C)]pub struct RateControlContext {Show 22 fields
pub num_entries: c_int,
pub entry: *mut RateControlEntry,
pub buffer_index: f64,
pub pred: [Predictor; 5],
pub short_term_qsum: f64,
pub short_term_qcount: f64,
pub pass1_rc_eq_output_sum: f64,
pub pass1_wanted_bits: f64,
pub last_qscale: f64,
pub last_qscale_for: [f64; 5],
pub last_mc_mb_var_sum: i64,
pub last_mb_var_sum: i64,
pub i_cplx_sum: [u64; 5],
pub p_cplx_sum: [u64; 5],
pub mv_bits_sum: [u64; 5],
pub qscale_sum: [u64; 5],
pub frame_count: [c_int; 5],
pub last_non_b_pict_type: c_int,
pub non_lavc_opaque: *mut c_void,
pub dry_run_qscale: f32,
pub last_picture_number: c_int,
pub rc_eq_eval: *mut AVExpr,
}
Expand description
rate control context.
Fields§
§num_entries: c_int
< number of RateControlEntries
entry: *mut RateControlEntry
§buffer_index: f64
< amount of bits in the video/audio buffer
pred: [Predictor; 5]
§short_term_qsum: f64
< sum of recent qscales
short_term_qcount: f64
< count of recent qscales
pass1_rc_eq_output_sum: f64
< sum of the output of the rc equation, this is used for normalization
pass1_wanted_bits: f64
< bits which should have been output by the pass1 code (including complexity init)
last_qscale: f64
§last_qscale_for: [f64; 5]
< last qscale for a specific pict type, used for max_diff & ipb factor stuff
last_mc_mb_var_sum: i64
§last_mb_var_sum: i64
§i_cplx_sum: [u64; 5]
§p_cplx_sum: [u64; 5]
§mv_bits_sum: [u64; 5]
§qscale_sum: [u64; 5]
§frame_count: [c_int; 5]
§last_non_b_pict_type: c_int
§non_lavc_opaque: *mut c_void
< context for non lavc rc code (for example xvid)
dry_run_qscale: f32
< for xvid rc
last_picture_number: c_int
< for xvid rc
rc_eq_eval: *mut AVExpr
Trait Implementations§
Source§impl Clone for RateControlContext
impl Clone for RateControlContext
Source§fn clone(&self) -> RateControlContext
fn clone(&self) -> RateControlContext
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for RateControlContext
impl Debug for RateControlContext
impl Copy for RateControlContext
Auto Trait Implementations§
impl Freeze for RateControlContext
impl RefUnwindSafe for RateControlContext
impl !Send for RateControlContext
impl !Sync for RateControlContext
impl Unpin for RateControlContext
impl UnwindSafe for RateControlContext
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more