pub struct MtmdVideoInfo {
pub width: u32,
pub height: u32,
pub fps: f32,
pub n_frames: i32,
}Expand description
Metadata describing an open MtmdVideo stream.
Fields§
§width: u32Frame width in pixels.
height: u32Frame height in pixels.
fps: f32Effective frames-per-second (the fps_target if set, else native fps).
n_frames: i32Estimated total frame count at the effective fps (-1 if unknown).
Trait Implementations§
Source§impl Clone for MtmdVideoInfo
impl Clone for MtmdVideoInfo
Source§fn clone(&self) -> MtmdVideoInfo
fn clone(&self) -> MtmdVideoInfo
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 moreimpl Copy for MtmdVideoInfo
Source§impl Debug for MtmdVideoInfo
impl Debug for MtmdVideoInfo
Source§impl PartialEq for MtmdVideoInfo
impl PartialEq for MtmdVideoInfo
Source§fn eq(&self, other: &MtmdVideoInfo) -> bool
fn eq(&self, other: &MtmdVideoInfo) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MtmdVideoInfo
Auto Trait Implementations§
impl Freeze for MtmdVideoInfo
impl RefUnwindSafe for MtmdVideoInfo
impl Send for MtmdVideoInfo
impl Sync for MtmdVideoInfo
impl Unpin for MtmdVideoInfo
impl UnsafeUnpin for MtmdVideoInfo
impl UnwindSafe for MtmdVideoInfo
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