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
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)