Struct image::tiff::TIFFDecoder
[-] [+]
[src]
pub struct TIFFDecoder<R> where R: Reader + Seek {
// some fields omitted
}
The representation of a PNG decoder
Currently does not support decoding of interlaced images
Methods
impl<R: Reader + Seek> TIFFDecoder<R>
fn new(r: R) -> ImageResult<TIFFDecoder<R>>
Create a new decoder that decodes from the stream r
fn init(self) -> ImageResult<TIFFDecoder<R>>
Initializes the decoder.
fn next_image(self) -> ImageResult<TIFFDecoder<R>>
Reads in the next image.
If there is no further image in the TIFF file a format error is return.
To determine whether there are more images call TIFFDecoder::more_images
instead.
fn more_images(&self) -> bool
Returns true
if there is at least one more image available.
fn byte_order(&self) -> ByteOrder
Returns the byte_order
fn read_short(&mut self) -> IoResult<u16>
Reads a TIFF short value
fn read_long(&mut self) -> IoResult<u32>
Reads a TIFF long value
fn read_offset(&mut self) -> IoResult<[u8; 4]>
Reads a TIFF IFA offset/value field
fn goto_offset(&mut self, offset: u32) -> IoResult<()>
Moves the cursor to the specified offset