Struct Reader
pub struct Reader<R> { /* private fields */ }
Decode the meta data from a byte source, keeping the source ready for
further reading. Continue decoding the remaining bytes by calling
filtered_chunks or all_chunks.
Implementations
impl<R: Read + Seek> Reader<R>
fn read_from_buffered(read: R, pedantic: bool) -> Result<Self>Start the reading process. Immediately decodes the meta data into an internal field. Access it via
meta_data().const fn meta_data(&self) -> &MetaDataThe decoded exr meta data from the file.
fn headers(&self) -> &[Header]The decoded exr meta data from the file.
fn into_meta_data(self) -> MetaDataObtain the meta data ownership.
fn all_chunks(self, pedantic: bool) -> Result<AllChunksReader<R>>Prepare to read all the chunks from the file. Does not decode the chunks now, but returns a decoder. Reading all chunks reduces seeking the file, but some chunks might be read without being used.
fn filter_chunks(self, pedantic: bool, filter: impl FnMut(&MetaData, TileCoordinates, BlockIndex) -> bool) -> Result<FilteredChunksReader<R>>Prepare to read some the chunks from the file. Does not decode the chunks now, but returns a decoder. Reading only some chunks may seeking the file, potentially skipping many bytes.
Trait Implementations
impl<R: Debug> Debug for Reader<R>
fn fmt(&self, f: &mut Formatter<'_>) -> Result