pub struct MetricsSummary {
pub frame_count: u64,
pub mean_encode_us: f64,
pub peak_encode_us: u64,
pub total_bytes: u64,
pub mean_psnr_db: Option<f64>,
pub min_psnr_db: Option<f64>,
}Expand description
Summary statistics over a collection of frame metrics (legacy).
Fields§
§frame_count: u64Total number of frames.
mean_encode_us: f64Mean encode time per frame in microseconds.
peak_encode_us: u64Peak encode time in microseconds.
total_bytes: u64Total compressed bytes.
mean_psnr_db: Option<f64>Mean PSNR in dB (None if not measured).
min_psnr_db: Option<f64>Minimum PSNR in dB (None if not measured).
Implementations§
Source§impl MetricsSummary
impl MetricsSummary
Sourcepub fn mean_bitrate_bps(&self, fps: f64) -> f64
pub fn mean_bitrate_bps(&self, fps: f64) -> f64
Returns the mean bitrate in bits-per-second given input fps.
Sourcepub fn encode_fps(&self) -> f64
pub fn encode_fps(&self) -> f64
Returns the encode throughput in frames per second.
Trait Implementations§
Source§impl Clone for MetricsSummary
impl Clone for MetricsSummary
Source§fn clone(&self) -> MetricsSummary
fn clone(&self) -> MetricsSummary
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 MetricsSummary
impl RefUnwindSafe for MetricsSummary
impl Send for MetricsSummary
impl Sync for MetricsSummary
impl Unpin for MetricsSummary
impl UnsafeUnpin for MetricsSummary
impl UnwindSafe for MetricsSummary
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> 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