Skip to main content

TiffReader

Trait TiffReader 

Source
pub trait TiffReader {
Show 18 methods // Required methods fn file(&self) -> &TiffFile; fn file_mut(&mut self) -> &mut TiffFile; // Provided methods fn chains(&self) -> &Vec<IFD> { ... } fn get_endian(&self) -> Endian { ... } fn wellknown_sub_ifd_tags(&self) -> Vec<u16> { ... } fn root_ifd(&self) -> &IFD { ... } fn get_entry<T: TiffTag>(&self, tag: T) -> Option<&Entry> { ... } fn get_entry_raw<'a, T: TiffTag, R: Read + Seek>( &'a self, tag: T, file: &mut R, ) -> Result<Option<RawEntry<'a>>> { ... } fn has_entry<T: TiffTag>(&self, tag: T) -> bool { ... } fn find_ifds_with_tag<T: TiffTag>(&self, tag: T) -> Vec<&IFD> { ... } fn find_ifds_with_filter<F: Fn(&IFD) -> bool>(&self, filter: F) -> Vec<&IFD> { ... } fn find_ifd_with_new_subfile_type(&self, typ: u32) -> Option<&IFD> { ... } fn find_first_ifd<T: TiffTag>(&self, tag: T) -> Option<&IFD> { ... } fn find_first_ifd_with_tag<T: TiffTag>(&self, tag: T) -> Option<&IFD> { ... } fn get_first_entry(&self, _tag: u16) -> Option<Entry> { ... } fn read_data<R: Read + Seek>( &self, file: &mut R, uncorr_offset: u32, buffer: &mut [u8], ) -> Result<()> { ... } fn parse_ifd<R: Read + Seek>( &self, reader: &mut R, offset: u32, base: u32, corr: i32, endian: Endian, sub_tags: &[u16], ) -> Result<IFD> { ... } fn parse_file<R: Read + Seek>( &mut self, file: &mut R, max_chained: Option<usize>, sub_tags: &[u16], ) -> Result<()> { ... }
}

Required Methods§

Source

fn file(&self) -> &TiffFile

Source

fn file_mut(&mut self) -> &mut TiffFile

Provided Methods§

Source

fn chains(&self) -> &Vec<IFD>

Source

fn get_endian(&self) -> Endian

Source

fn wellknown_sub_ifd_tags(&self) -> Vec<u16>

Returns a list of well-known tags representing SubIFDs.

Source

fn root_ifd(&self) -> &IFD

Source

fn get_entry<T: TiffTag>(&self, tag: T) -> Option<&Entry>

Source

fn get_entry_raw<'a, T: TiffTag, R: Read + Seek>( &'a self, tag: T, file: &mut R, ) -> Result<Option<RawEntry<'a>>>

Source

fn has_entry<T: TiffTag>(&self, tag: T) -> bool

Source

fn find_ifds_with_tag<T: TiffTag>(&self, tag: T) -> Vec<&IFD>

Source

fn find_ifds_with_filter<F: Fn(&IFD) -> bool>(&self, filter: F) -> Vec<&IFD>

Source

fn find_ifd_with_new_subfile_type(&self, typ: u32) -> Option<&IFD>

Source

fn find_first_ifd<T: TiffTag>(&self, tag: T) -> Option<&IFD>

Source

fn find_first_ifd_with_tag<T: TiffTag>(&self, tag: T) -> Option<&IFD>

Source

fn get_first_entry(&self, _tag: u16) -> Option<Entry>

Source

fn read_data<R: Read + Seek>( &self, file: &mut R, uncorr_offset: u32, buffer: &mut [u8], ) -> Result<()>

Source

fn parse_ifd<R: Read + Seek>( &self, reader: &mut R, offset: u32, base: u32, corr: i32, endian: Endian, sub_tags: &[u16], ) -> Result<IFD>

Source

fn parse_file<R: Read + Seek>( &mut self, file: &mut R, max_chained: Option<usize>, sub_tags: &[u16], ) -> Result<()>

Construct a TIFF reader from Read capable objects

corr is a correction value that should be applied to offsets received from file structure.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§