Struct exr::meta::attribute::TileDescription
source · pub struct TileDescription {
pub tile_size: Vec2<usize>,
pub level_mode: LevelMode,
pub rounding_mode: RoundingMode,
}
Expand description
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: LevelMode
Whether to also store smaller versions of the image.
rounding_mode: RoundingMode
Whether to round up or down when calculating Mip/Rip levels.
Implementations§
source§impl TileDescription
impl TileDescription
sourcepub fn write<W: Write>(&self, write: &mut W) -> UnitResult
pub fn write<W: Write>(&self, write: &mut W) -> UnitResult
Without validation, write this instance to the byte stream.
sourcepub fn validate(&self) -> UnitResult
pub fn validate(&self) -> UnitResult
Validate this instance.
Trait Implementations§
source§impl Clone for TileDescription
impl Clone for TileDescription
source§fn clone(&self) -> TileDescription
fn clone(&self) -> TileDescription
Returns a copy 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 TileDescription
impl Debug for TileDescription
source§impl Hash for TileDescription
impl Hash for TileDescription
source§impl PartialEq for TileDescription
impl PartialEq for TileDescription
source§fn eq(&self, other: &TileDescription) -> bool
fn eq(&self, other: &TileDescription) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for TileDescription
impl Eq for TileDescription
impl StructuralPartialEq for TileDescription
Auto Trait Implementations§
impl Freeze for TileDescription
impl RefUnwindSafe for TileDescription
impl Send for TileDescription
impl Sync for TileDescription
impl Unpin for TileDescription
impl UnwindSafe for TileDescription
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