pub enum TileShape {
Strip {
rows: u32,
},
Square {
size: u32,
},
}Expand description
The shape tiles take through a segment of the graph.
Variants§
Strip
Full-width strips of at most rows rows.
Matches how codecs produce and consume pixels, so a sequential segment moves data with no repacking.
Square
Square tiles of at most size × size pixels.
Used where a spatial op needs a neighbourhood, so that border pixels are recomputed for four edges rather than for the full image width.
Implementations§
Source§impl TileShape
impl TileShape
Sourcepub const DEFAULT_STRIP_ROWS: u32 = 64
pub const DEFAULT_STRIP_ROWS: u32 = 64
The default strip height, in rows.
Sourcepub const DEFAULT_SQUARE_SIZE: u32 = 128
pub const DEFAULT_SQUARE_SIZE: u32 = 128
The default square tile edge, in pixels (ADR-0003).
Trait Implementations§
impl Copy for TileShape
impl Eq for TileShape
impl StructuralPartialEq for TileShape
Auto Trait Implementations§
impl Freeze for TileShape
impl RefUnwindSafe for TileShape
impl Send for TileShape
impl Sync for TileShape
impl Unpin for TileShape
impl UnsafeUnpin for TileShape
impl UnwindSafe for TileShape
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