pub trait Decoder:
Debug
+ Send
+ Sync {
// Required method
fn decode_tile(
&self,
buffer: Bytes,
photometric_interpretation: PhotometricInterpretation,
jpeg_tables: Option<&[u8]>,
) -> AsyncTiffResult<Bytes>;
}
Expand description
A trait to decode a TIFF tile.
Required Methods§
Sourcefn decode_tile(
&self,
buffer: Bytes,
photometric_interpretation: PhotometricInterpretation,
jpeg_tables: Option<&[u8]>,
) -> AsyncTiffResult<Bytes>
fn decode_tile( &self, buffer: Bytes, photometric_interpretation: PhotometricInterpretation, jpeg_tables: Option<&[u8]>, ) -> AsyncTiffResult<Bytes>
Decode a TIFF tile.