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

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

Blanket Implementations

impl<T> From for T
[src]

Performs the conversion.

impl<T, U> Into for T where
    U: From<T>, 
[src]

Performs the conversion.

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Borrow for T where
    T: ?Sized
[src]

Immutably borrows from an owned value. Read more

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> BorrowMut for T where
    T: ?Sized
[src]

Mutably borrows from an owned value. Read more

impl<T> Any for T where
    T: 'static + ?Sized
[src]

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more