pub struct GridConfig {
pub rows: u8,
pub columns: u8,
pub output_width: u32,
pub output_height: u32,
}Expand description
Grid configuration for tiled/grid-based AVIF images Grid image configuration
For tiled/grid AVIF images, this describes the grid layout. Grid images are composed of multiple AV1 image items (tiles) arranged in a rectangular grid.
§Grid Layout Determination
Grid layout can be specified in two ways:
- Explicit ImageGrid property box - contains rows, columns, and output dimensions
- Calculated from ispe properties - when no ImageGrid box exists, dimensions are calculated by dividing the grid item’s dimensions by a tile’s dimensions
§Output Dimensions
output_widthandoutput_heightmay be 0, indicating the decoder should calculate them from the tile dimensions- When non-zero, they specify the exact output dimensions of the composed image
Fields§
§rows: u8Number of tile rows (1-256)
columns: u8Number of tile columns (1-256)
output_width: u32Output width in pixels (0 = calculate from tiles)
output_height: u32Output height in pixels (0 = calculate from tiles)
Trait Implementations§
Source§impl Clone for GridConfig
impl Clone for GridConfig
Source§fn clone(&self) -> GridConfig
fn clone(&self) -> GridConfig
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 GridConfig
impl Debug for GridConfig
Source§impl PartialEq for GridConfig
impl PartialEq for GridConfig
impl StructuralPartialEq for GridConfig
Auto Trait Implementations§
impl Freeze for GridConfig
impl RefUnwindSafe for GridConfig
impl Send for GridConfig
impl Sync for GridConfig
impl Unpin for GridConfig
impl UnwindSafe for GridConfig
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