pub enum LineStrideOrSize {
LineStrideBytes(i32),
DataSizeBytes(i32),
}Expand description
Line stride or data size for video frames.
This enum represents the choice between line stride (for uncompressed formats) and total data size (for compressed or opaque formats). The discriminant is determined by the video format (FourCC).
Variants§
LineStrideBytes(i32)
Line stride in bytes for uncompressed formats. This is the number of bytes per row of video data.
DataSizeBytes(i32)
Total data size in bytes for compressed or opaque formats.
Trait Implementations§
Source§impl Clone for LineStrideOrSize
impl Clone for LineStrideOrSize
Source§fn clone(&self) -> LineStrideOrSize
fn clone(&self) -> LineStrideOrSize
Returns a duplicate of the value. Read more
1.0.0 · 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 LineStrideOrSize
impl Debug for LineStrideOrSize
Source§impl PartialEq for LineStrideOrSize
impl PartialEq for LineStrideOrSize
impl Copy for LineStrideOrSize
impl Eq for LineStrideOrSize
impl StructuralPartialEq for LineStrideOrSize
Auto Trait Implementations§
impl Freeze for LineStrideOrSize
impl RefUnwindSafe for LineStrideOrSize
impl Send for LineStrideOrSize
impl Sync for LineStrideOrSize
impl Unpin for LineStrideOrSize
impl UnsafeUnpin for LineStrideOrSize
impl UnwindSafe for LineStrideOrSize
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