pub struct GopAllocationStatus {
pub gop_index: u32,
pub frames_encoded: u32,
pub frames_remaining: u32,
pub bits_used: u64,
pub bits_remaining: u64,
pub target_bits: u64,
pub on_target: bool,
}Expand description
GOP allocation status.
Fields§
§gop_index: u32GOP index.
frames_encoded: u32Frames encoded in this GOP.
frames_remaining: u32Frames remaining in this GOP.
bits_used: u64Bits used so far.
bits_remaining: u64Bits remaining in budget.
target_bits: u64Target bits for this GOP.
on_target: boolWhether allocation is on target.
Implementations§
Source§impl GopAllocationStatus
impl GopAllocationStatus
Sourcepub fn average_bits_per_frame(&self) -> u64
pub fn average_bits_per_frame(&self) -> u64
Get the average bits per frame so far.
Sourcepub fn recommended_bits_per_frame(&self) -> u64
pub fn recommended_bits_per_frame(&self) -> u64
Get recommended bits per remaining frame.
Trait Implementations§
Source§impl Clone for GopAllocationStatus
impl Clone for GopAllocationStatus
Source§fn clone(&self) -> GopAllocationStatus
fn clone(&self) -> GopAllocationStatus
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for GopAllocationStatus
impl RefUnwindSafe for GopAllocationStatus
impl Send for GopAllocationStatus
impl Sync for GopAllocationStatus
impl Unpin for GopAllocationStatus
impl UnsafeUnpin for GopAllocationStatus
impl UnwindSafe for GopAllocationStatus
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more