pub struct VideoProbe {
pub width: u32,
pub height: u32,
pub duration_secs: f64,
pub fps: Option<f64>,
}Expand description
Duration, dimensions and frame rate of a local video file, read from its
container/stream metadata via ffprobe — never by decoding a frame (that
is extract_video_frame’s job, and it decodes exactly one, not the
metadata).
Fields§
§width: u32§height: u32§duration_secs: f64§fps: Option<f64>None when ffprobe reports no parseable frame rate for the stream —
absence is reported as such, never guessed at.
Trait Implementations§
Source§impl Clone for VideoProbe
impl Clone for VideoProbe
Source§fn clone(&self) -> VideoProbe
fn clone(&self) -> VideoProbe
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VideoProbe
impl Debug for VideoProbe
Source§impl PartialEq for VideoProbe
impl PartialEq for VideoProbe
impl StructuralPartialEq for VideoProbe
Auto Trait Implementations§
impl Freeze for VideoProbe
impl RefUnwindSafe for VideoProbe
impl Send for VideoProbe
impl Sync for VideoProbe
impl Unpin for VideoProbe
impl UnsafeUnpin for VideoProbe
impl UnwindSafe for VideoProbe
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