Struct tiff::decoder::Decoder [−][src]
Expand description
The representation of a TIFF decoder
Currently does not support decoding of interlaced images
Implementations
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 sshort value
Reads a TIFF slong value
Reads a TIFF float value
Reads a TIFF double 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 unsigned type.
pub fn find_tag_unsigned_vec<T: TryFrom<u64>>(
&mut self,
tag: Tag
) -> TiffResult<Option<Vec<T>>>
pub fn find_tag_unsigned_vec<T: TryFrom<u64>>(
&mut self,
tag: Tag
) -> TiffResult<Option<Vec<T>>>
Tries to retrieve a vector of all a tag’s values and convert them to the desired unsigned type.
Tries to retrieve a tag and convert it to the desired unsigned type. Returns an error if the tag is not present.
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.
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 and convert it to the desired type.
Tries to retrieve a tag and convert it to the desired type.
Tries to retrieve a tag and convert it to a 8bit vector.
Tries to retrieve a tag and convert it to a ascii vector.
Number of strips in image
Read a single strip from the image and return it as a Vector
Decodes the entire image and return it as a Vector