Struct exr::meta::MetaData [−][src]
Contains the complete meta data of an exr image. Defines how the image is split up in the file, the number and type of images and channels, and various other attributes. The usage of custom attributes is encouraged.
Fields
requirements: Requirements
Some flags summarizing the features that must be supported to decode the file.
headers: Headers
One header to describe each layer in this file.
Implementations
impl MetaData
[src]
#[must_use]pub fn read_from_file(path: impl AsRef<Path>, pedantic: bool) -> Result<Self>
[src]
Read the exr meta data from a file.
Use read_from_unbuffered
instead if you do not have a file.
Does not validate the meta data.
#[must_use]pub fn read_from_unbuffered(
unbuffered: impl Read,
pedantic: bool
) -> Result<Self>
[src]
unbuffered: impl Read,
pedantic: bool
) -> Result<Self>
Buffer the reader and then read the exr meta data from it.
Use read_from_buffered
if your reader is an in-memory reader.
Use read_from_file
if you have a file path.
Does not validate the meta data.
#[must_use]pub fn read_from_buffered(buffered: impl Read, pedantic: bool) -> Result<Self>
[src]
Read the exr meta data from a reader.
Use read_from_file
if you have a file path.
Use read_from_unbuffered
if this is not an in-memory reader.
Does not validate the meta data.
pub fn read_offset_tables(
read: &mut PeekRead<impl Read>,
headers: &Headers
) -> Result<OffsetTables>
[src]
read: &mut PeekRead<impl Read>,
headers: &Headers
) -> Result<OffsetTables>
Read one offset table from the reader for each header.
pub fn skip_offset_tables(
read: &mut PeekRead<impl Read>,
headers: &Headers
) -> Result<usize>
[src]
read: &mut PeekRead<impl Read>,
headers: &Headers
) -> Result<usize>
Skip the offset tables by advancing the reader by the required byte count.
pub fn validate(headers: &[Header], pedantic: bool) -> Result<Requirements>
[src]
Validates this meta data. Returns the minimal possible requirements.
Trait Implementations
impl Clone for MetaData
[src]
impl Debug for MetaData
[src]
impl PartialEq<MetaData> for MetaData
[src]
impl StructuralPartialEq for MetaData
[src]
Auto Trait Implementations
impl RefUnwindSafe for MetaData
[src]
impl Send for MetaData
[src]
impl Sync for MetaData
[src]
impl Unpin for MetaData
[src]
impl UnwindSafe for MetaData
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut Tⓘ
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,