pub struct VideoInfo {
pub width: usize,
pub height: usize,
pub fps: f64,
pub frames: Option<usize>,
}Expand description
What ffprobe reports about a video before any of it is decoded.
Raw rgb24 on a pipe carries no framing at all — just a byte stream — so the decoder cannot know
where one frame ends without being told the dimensions first. That is the only reason this exists.
Fields§
§width: usize§height: usize§fps: f64§frames: Option<usize>Frames in the stream, when the container records one. Absent for formats that do not (and for pipes), so it is only ever good enough to drive a progress bar — never to size a buffer.
Implementations§
Trait Implementations§
impl Copy for VideoInfo
impl StructuralPartialEq for VideoInfo
Auto Trait Implementations§
impl Freeze for VideoInfo
impl RefUnwindSafe for VideoInfo
impl Send for VideoInfo
impl Sync for VideoInfo
impl Unpin for VideoInfo
impl UnsafeUnpin for VideoInfo
impl UnwindSafe for VideoInfo
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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