#[non_exhaustive]pub struct Vp8EncoderStats {
pub frames_encoded: u64,
pub bytes_emitted: u64,
pub keyframes_emitted: u64,
}Expand description
Encoder statistics — emitted by every encode call so downstream
muxers can keep running rate / quality counters.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.frames_encoded: u64Number of frames the encoder has produced so far.
bytes_emitted: u64Total emitted byte count across all frames.
keyframes_emitted: u64Number of key frames emitted so far.
Implementations§
Source§impl Vp8EncoderStats
impl Vp8EncoderStats
Sourcepub fn with_frames_encoded(self, v: u64) -> Self
pub fn with_frames_encoded(self, v: u64) -> Self
Set frames_encoded.
Sourcepub fn with_bytes_emitted(self, v: u64) -> Self
pub fn with_bytes_emitted(self, v: u64) -> Self
Set bytes_emitted.
Sourcepub fn with_keyframes_emitted(self, v: u64) -> Self
pub fn with_keyframes_emitted(self, v: u64) -> Self
Set keyframes_emitted.
Trait Implementations§
Source§impl Clone for Vp8EncoderStats
impl Clone for Vp8EncoderStats
impl Copy for Vp8EncoderStats
Source§impl Debug for Vp8EncoderStats
impl Debug for Vp8EncoderStats
Source§impl Default for Vp8EncoderStats
impl Default for Vp8EncoderStats
impl Eq for Vp8EncoderStats
Source§impl PartialEq for Vp8EncoderStats
impl PartialEq for Vp8EncoderStats
impl StructuralPartialEq for Vp8EncoderStats
Auto Trait Implementations§
impl Forget for Vp8EncoderStats
impl Freeze for Vp8EncoderStats
impl Move for Vp8EncoderStats
impl RefUnwindSafe for Vp8EncoderStats
impl Send for Vp8EncoderStats
impl Sync for Vp8EncoderStats
impl Unpin for Vp8EncoderStats
impl UnsafeUnpin for Vp8EncoderStats
impl UnwindSafe for Vp8EncoderStats
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