Struct TileDescription
pub struct TileDescription { pub tile_size: Vec2<usize>, pub level_mode: LevelMode, pub rounding_mode: RoundingMode }
Describes how the layer is divided into tiles. Specifies the size of each tile in the image and whether this image contains multiple resolution levels.
Fields
tile_size: Vec2<usize>The size of each tile. Stays the same number of pixels across all levels.
level_mode: LevelModeWhether to also store smaller versions of the image.
rounding_mode: RoundingModeWhether to round up or down when calculating Mip/Rip levels.
Implementations
impl TileDescription
const fn byte_size() -> usizeNumber of bytes this would consume in an exr file.
fn write<W: Write>(&self, write: &mut W) -> UnitResultWithout validation, write this instance to the byte stream.
fn read<R: Read>(read: &mut R) -> Result<Self>Read the value without validating.
fn validate(&self) -> UnitResultValidate this instance.
Trait Implementations
impl Clone for TileDescription
fn clone(&self) -> Self
impl Copy for TileDescription
impl Debug for TileDescription
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for TileDescription
impl Hash for TileDescription
fn hash<__H: Hasher>(&self, state: &mut __H)
impl PartialEq for TileDescription
fn eq(&self, other: &Self) -> bool