pub struct FrameStatsCollector { /* private fields */ }Expand description
Collects and aggregates per-frame statistics across a transcode session.
Implementations§
Source§impl FrameStatsCollector
impl FrameStatsCollector
Sourcepub fn frame_count(&self) -> usize
pub fn frame_count(&self) -> usize
Number of recorded frames.
Sourcepub fn i_frame_count(&self) -> usize
pub fn i_frame_count(&self) -> usize
Number of I-frames recorded.
Sourcepub fn p_frame_count(&self) -> usize
pub fn p_frame_count(&self) -> usize
Number of P-frames recorded.
Sourcepub fn b_frame_count(&self) -> usize
pub fn b_frame_count(&self) -> usize
Number of B-frames recorded.
Sourcepub fn avg_bits_per_frame(&self) -> f64
pub fn avg_bits_per_frame(&self) -> f64
Average encoded size in bits across all recorded frames.
Sourcepub fn total_bytes(&self) -> u64
pub fn total_bytes(&self) -> u64
Total encoded bytes across all frames.
Sourcepub fn largest_frame(&self) -> Option<&FrameStat>
pub fn largest_frame(&self) -> Option<&FrameStat>
Largest frame (by size) in the recording.
Trait Implementations§
Source§impl Debug for FrameStatsCollector
impl Debug for FrameStatsCollector
Source§impl Default for FrameStatsCollector
impl Default for FrameStatsCollector
Source§fn default() -> FrameStatsCollector
fn default() -> FrameStatsCollector
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FrameStatsCollector
impl RefUnwindSafe for FrameStatsCollector
impl Send for FrameStatsCollector
impl Sync for FrameStatsCollector
impl Unpin for FrameStatsCollector
impl UnsafeUnpin for FrameStatsCollector
impl UnwindSafe for FrameStatsCollector
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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