pub struct TranscodeMetricsCollector { /* private fields */ }Expand description
Collects frame-level metrics during a transcode session (legacy).
Implementations§
Source§impl TranscodeMetricsCollector
impl TranscodeMetricsCollector
Sourcepub fn with_capacity(cap: usize) -> Self
pub fn with_capacity(cap: usize) -> Self
Creates a collector with pre-allocated capacity.
Sourcepub fn record(&mut self, metric: LegacyFrameMetric)
pub fn record(&mut self, metric: LegacyFrameMetric)
Records a frame metric.
Sourcepub fn frame_count(&self) -> usize
pub fn frame_count(&self) -> usize
Returns the number of recorded frame metrics.
Sourcepub fn summarise(&self) -> MetricsSummary
pub fn summarise(&self) -> MetricsSummary
Computes and returns a summary over all recorded metrics.
Sourcepub fn worst_psnr_frame(&self) -> Option<&LegacyFrameMetric>
pub fn worst_psnr_frame(&self) -> Option<&LegacyFrameMetric>
Returns the worst (lowest) PSNR frame, if PSNR data is available.
Sourcepub fn slowest_frame(&self) -> Option<&LegacyFrameMetric>
pub fn slowest_frame(&self) -> Option<&LegacyFrameMetric>
Returns the slowest (highest encode time) frame metric.
Trait Implementations§
Source§impl Debug for TranscodeMetricsCollector
impl Debug for TranscodeMetricsCollector
Source§impl Default for TranscodeMetricsCollector
impl Default for TranscodeMetricsCollector
Source§fn default() -> TranscodeMetricsCollector
fn default() -> TranscodeMetricsCollector
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TranscodeMetricsCollector
impl RefUnwindSafe for TranscodeMetricsCollector
impl Send for TranscodeMetricsCollector
impl Sync for TranscodeMetricsCollector
impl Unpin for TranscodeMetricsCollector
impl UnsafeUnpin for TranscodeMetricsCollector
impl UnwindSafe for TranscodeMetricsCollector
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