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
impl TileCoordinates
[src]
impl TileCoordinates
[src]pub fn write<W: Write>(&self, write: &mut W) -> UnitResult
[src]
pub fn write<W: Write>(&self, write: &mut W) -> UnitResult
[src]Without validation, write this instance to the byte stream.
pub fn to_data_indices(
&self,
tile_size: Vec2<usize>,
max: Vec2<usize>
) -> Result<IntegerBounds>
[src]
pub fn to_data_indices(
&self,
tile_size: Vec2<usize>,
max: Vec2<usize>
) -> Result<IntegerBounds>
[src]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>
[src]
pub fn to_absolute_indices(
&self,
tile_size: Vec2<usize>,
data_window: IntegerBounds
) -> Result<IntegerBounds>
[src]Absolute coordinates inside the global 2D space of a file, may be negative.
pub fn is_largest_resolution_level(&self) -> bool
[src]
pub fn is_largest_resolution_level(&self) -> bool
[src]Returns if this is the original resolution or a smaller copy.
Trait Implementations
impl Clone for TileCoordinates
[src]
impl Clone for TileCoordinates
[src]fn clone(&self) -> TileCoordinates
[src]
fn clone(&self) -> TileCoordinates
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for TileCoordinates
[src]
impl Debug for TileCoordinates
[src]impl Hash for TileCoordinates
[src]
impl Hash for TileCoordinates
[src]impl PartialEq<TileCoordinates> for TileCoordinates
[src]
impl PartialEq<TileCoordinates> for TileCoordinates
[src]fn eq(&self, other: &TileCoordinates) -> bool
[src]
fn eq(&self, other: &TileCoordinates) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &TileCoordinates) -> bool
[src]
fn ne(&self, other: &TileCoordinates) -> bool
[src]This method tests for !=
.
impl Copy for TileCoordinates
[src]
impl Eq for TileCoordinates
[src]
impl StructuralEq for TileCoordinates
[src]
impl StructuralPartialEq for TileCoordinates
[src]
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
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more