Struct tiff::decoder::Decoder[][src]

pub struct Decoder<R> where
    R: Read + Seek
{ /* fields omitted */ }

The representation of a TIFF decoder

Currently does not support decoding of interlaced images

Methods

impl<R: Read + Seek> Decoder<R>
[src]

Create a new decoder that decodes from the stream r

Initializes the decoder.

Reads in the next image. If there is no further image in the TIFF file a format error is returned. To determine whether there are more images call TIFFDecoder::more_images instead.

Returns true if there is at least one more image available.

Returns the byte_order

Reads a TIFF short value

Reads a TIFF long value

Reads a string

Reads a TIFF IFA offset/value field

Moves the cursor to the specified offset

Tries to retrieve a tag. Return Ok(None) if the tag is not present.

Tries to retrieve a tag and convert it to the desired type.

Tries to retrieve a tag and convert it to the desired type.

Tries to retrieve a tag. Returns an error if the tag is not present

Tries to retrieve a tag and convert it to the desired type.

Tries to retrieve a tag and convert it to the desired type.

Decodes the entire image and return it as a Vector

Trait Implementations

impl<R: Debug> Debug for Decoder<R> where
    R: Read + Seek
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<R> Send for Decoder<R> where
    R: Send

impl<R> Sync for Decoder<R> where
    R: Sync