pub struct VariableFrameRateAnalysis {
pub is_variable_frame_rate: bool,
pub mean_frame_duration: f64,
pub frame_duration_stddev: f64,
pub min_frames_per_second: f64,
pub max_frames_per_second: f64,
pub mean_frames_per_second: f64,
pub frames_analyzed: u64,
pub pts_list: Vec<Duration>,
}Expand description
Results of VFR analysis on a video stream.
Fields§
§is_variable_frame_rate: boolWhether the stream appears to be variable frame rate.
This is true when the standard deviation of frame durations exceeds
10% of the mean frame duration.
mean_frame_duration: f64Mean frame duration in seconds.
frame_duration_stddev: f64Standard deviation of frame durations in seconds.
min_frames_per_second: f64Minimum instantaneous FPS observed.
max_frames_per_second: f64Maximum instantaneous FPS observed.
mean_frames_per_second: f64Mean FPS (1 / mean_frame_duration).
frames_analyzed: u64Number of frames analyzed.
pts_list: Vec<Duration>Per-frame PTS values converted to Duration, in decode order.
Trait Implementations§
Source§impl Clone for VariableFrameRateAnalysis
impl Clone for VariableFrameRateAnalysis
Source§fn clone(&self) -> VariableFrameRateAnalysis
fn clone(&self) -> VariableFrameRateAnalysis
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 VariableFrameRateAnalysis
impl RefUnwindSafe for VariableFrameRateAnalysis
impl Send for VariableFrameRateAnalysis
impl Sync for VariableFrameRateAnalysis
impl Unpin for VariableFrameRateAnalysis
impl UnwindSafe for VariableFrameRateAnalysis
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