public class TileDescription extends Object implements Cloneable
A single tiled OpenEXR files may contain multiple versions of the same image, each with a different resolution. Each version is called a level. The number of levels in a file and their resolutions depend on the file's level mode.
Levels are identified by level numbers. A level number is a pair
of integers, (l_x,l_y). Level (0,0)
is
the highest-resolution level, with w
by h
pixels.
Level (l_x,l_y) contains
rf(w / pow(2,l_x))by
rf(w / pow(2,l_y))pixels, where
rf(x)
is a rounding function, either floor(x)
or ceil(x)
, depending on the file's
level size rounding mode (ROUND_DOWN
or ROUND_UP
.)Modifier and Type | Class and Description |
---|---|
static class |
TileDescription.LevelMode
Describes how many versions of the same image a file contains as well
as their resolutions.
|
static class |
TileDescription.RoundingMode
Specifies the level size rounding function.
|
Modifier and Type | Field and Description |
---|---|
TileDescription.LevelMode |
mode
Image file's level mode.
|
TileDescription.RoundingMode |
roundingMode
Image file's level size rounding mode.
|
int |
xSize
Width of each tile in pixels.
|
int |
ySize
Height of each tile in pixels.
|
Constructor and Description |
---|
TileDescription() |
Modifier and Type | Method and Description |
---|---|
TileDescription |
clone()
Creates and returns a copy of this tile description.
|
boolean |
equals(Object obj)
Compares this tile description to the specified object.
|
int |
hashCode()
Returns a hash code for this tile description.
|
public int xSize
public int ySize
public TileDescription.LevelMode mode
public TileDescription.RoundingMode roundingMode
public boolean equals(Object obj)
true
if and only if the argument is not null
, is a
TileDescription
object, and their tile dimensions, level mode
and rounding mode are all equal.public int hashCode()
TileDescription<T>
object is computed as the aggregate of the
tile size, level mode and level size rounding mode.public TileDescription clone()