#[non_exhaustive]pub struct VisualFrame {
pub width: u32,
pub height: u32,
pub pixels: FramePixels,
pub index: usize,
pub start: MediaTime,
pub end: Option<MediaTime>,
pub diagnostics: Vec<Diagnostic>,
}Expand description
One frame of a source.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.width: u32Width in pixels.
height: u32Height in pixels.
pixels: FramePixelsThe pixels.
index: usizeWhich of the source’s frames this is.
start: MediaTimeThe first source time it is shown at (i64::MIN ticks for the
first frame, which also answers earlier times).
end: Option<MediaTime>The first source time it is no longer shown at, or None when it is
the last.
diagnostics: Vec<Diagnostic>What producing this frame found that the user should know, such as non-finite samples in one frame of a sequence.
Trait Implementations§
Source§impl Clone for VisualFrame
impl Clone for VisualFrame
Source§impl Debug for VisualFrame
impl Debug for VisualFrame
impl Eq for VisualFrame
Source§impl PartialEq for VisualFrame
impl PartialEq for VisualFrame
impl StructuralPartialEq for VisualFrame
Auto Trait Implementations§
impl Freeze for VisualFrame
impl RefUnwindSafe for VisualFrame
impl Send for VisualFrame
impl Sync for VisualFrame
impl Unpin for VisualFrame
impl UnsafeUnpin for VisualFrame
impl UnwindSafe for VisualFrame
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.