pub struct VideoMetadata {
pub width: u32,
pub height: u32,
pub frame_rate: f32,
pub frame_count: Option<u64>,
}Expand description
Per-stream metadata, as reported by gst-discoverer-1.0.
Fields§
§width: u32Frame width in pixels.
height: u32Frame height in pixels.
frame_rate: f32Reported frame rate (fps).
frame_count: Option<u64>Total frame count if reported. Most container formats don’t carry
this directly; we derive it from duration × frame_rate when both
are available.
Trait Implementations§
Source§impl Clone for VideoMetadata
impl Clone for VideoMetadata
Source§fn clone(&self) -> VideoMetadata
fn clone(&self) -> VideoMetadata
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 moreAuto Trait Implementations§
impl Freeze for VideoMetadata
impl RefUnwindSafe for VideoMetadata
impl Send for VideoMetadata
impl Sync for VideoMetadata
impl Unpin for VideoMetadata
impl UnsafeUnpin for VideoMetadata
impl UnwindSafe for VideoMetadata
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