pub enum Layout {
Strips {
rows_per_strip: u32,
},
Tiles {
width: u32,
height: u32,
},
}Expand description
Whether the pixels are stored in strips or tiles.
Variants§
Strips
Horizontal bands the full width of the image.
Tiles
A grid of independently compressed rectangles.
This is the layout that makes region random access possible, and therefore the one M5’s exit criterion turns on.
Implementations§
Trait Implementations§
impl Copy for Layout
impl Eq for Layout
impl StructuralPartialEq for Layout
Auto Trait Implementations§
impl Freeze for Layout
impl RefUnwindSafe for Layout
impl Send for Layout
impl Sync for Layout
impl Unpin for Layout
impl UnsafeUnpin for Layout
impl UnwindSafe for Layout
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