pub struct Tile { /* private fields */ }Expand description
A TIFF Tile response.
This contains the required information to decode the tile. Decoding is separated from fetching so that sync and async operations can be separated and non-blocking.
This is returned by fetch_tile.
A strip of a stripped tiff is an image-width, rows-per-strip tile.
Implementations§
Source§impl Tile
impl Tile
Sourcepub fn compressed_bytes(&self) -> &Bytes
pub fn compressed_bytes(&self) -> &Bytes
Access the compressed bytes underlying this tile.
Note that Bytes is reference-counted, so it is very cheap to clone if needed.
Sourcepub fn compression_method(&self) -> CompressionMethod
pub fn compression_method(&self) -> CompressionMethod
Access the compression tag representing this tile.
Sourcepub fn photometric_interpretation(&self) -> PhotometricInterpretation
pub fn photometric_interpretation(&self) -> PhotometricInterpretation
Access the photometric interpretation tag representing this tile.
Sourcepub fn jpeg_tables(&self) -> Option<&Bytes>
pub fn jpeg_tables(&self) -> Option<&Bytes>
Access the JPEG Tables, if any, from the IFD producing this tile.
Note that Bytes is reference-counted, so it is very cheap to clone if needed.
Sourcepub fn decode(
self,
decoder_registry: &DecoderRegistry,
) -> AsyncTiffResult<Array>
pub fn decode( self, decoder_registry: &DecoderRegistry, ) -> AsyncTiffResult<Array>
Decode this tile to an Array.
Decoding is separate from data fetching so that sync and async operations do not block the same runtime.