Struct exr::block::chunk::TileCoordinates [−][src]
Expand description
Indicates the position and resolution level of a TileBlock or DeepTileBlock.
Fields
tile_index: Vec2<usize>Index of the tile, not pixel position.
level_index: Vec2<usize>Index of the Mip/Rip level.
Implementations
Without validation, write this instance to the byte stream.
pub fn to_data_indices(
&self,
tile_size: Vec2<usize>,
max: Vec2<usize>
) -> Result<IntegerBounds>
pub fn to_data_indices(
&self,
tile_size: Vec2<usize>,
max: Vec2<usize>
) -> Result<IntegerBounds>
The indices which can be used to index into the arrays of a data window. These coordinates are only valid inside the corresponding one header. Will start at 0 and always be positive.
pub fn to_absolute_indices(
&self,
tile_size: Vec2<usize>,
data_window: IntegerBounds
) -> Result<IntegerBounds>
pub fn to_absolute_indices(
&self,
tile_size: Vec2<usize>,
data_window: IntegerBounds
) -> Result<IntegerBounds>
Absolute coordinates inside the global 2D space of a file, may be negative.
Returns if this is the original resolution or a smaller copy.
Trait Implementations
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for TileCoordinates
impl Send for TileCoordinates
impl Sync for TileCoordinates
impl Unpin for TileCoordinates
impl UnwindSafe for TileCoordinates
Blanket Implementations
Mutably borrows from an owned value. Read more