pub struct InterleavedCodeLayout {
pub width_words: usize,
pub height: usize,
pub stride_words: usize,
pub component_count: usize,
pub component_index: usize,
}Expand description
Geometry and component selection for borrowing one component from an interleaved code plane.
Construct directly with struct literal syntax so all five fields are named at the call site.
Fields§
§width_words: usizeActive row width in storage words across all interleaved components (width_pixels * component_count).
height: usizeActive plane height in rows.
stride_words: usizeRow stride in storage words (>= width_words).
component_count: usizeNumber of interleaved components per element (e.g., 2 for CbCr).
component_index: usizeZero-based component index to extract (0..component_count).
Trait Implementations§
Source§impl Clone for InterleavedCodeLayout
impl Clone for InterleavedCodeLayout
Source§fn clone(&self) -> InterleavedCodeLayout
fn clone(&self) -> InterleavedCodeLayout
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 InterleavedCodeLayout
Source§impl Debug for InterleavedCodeLayout
impl Debug for InterleavedCodeLayout
impl Eq for InterleavedCodeLayout
Source§impl Hash for InterleavedCodeLayout
impl Hash for InterleavedCodeLayout
Source§impl PartialEq for InterleavedCodeLayout
impl PartialEq for InterleavedCodeLayout
impl StructuralPartialEq for InterleavedCodeLayout
Auto Trait Implementations§
impl Freeze for InterleavedCodeLayout
impl RefUnwindSafe for InterleavedCodeLayout
impl Send for InterleavedCodeLayout
impl Sync for InterleavedCodeLayout
impl Unpin for InterleavedCodeLayout
impl UnsafeUnpin for InterleavedCodeLayout
impl UnwindSafe for InterleavedCodeLayout
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