Struct exr::meta::Requirements
source · pub struct Requirements {
pub file_format_version: u8,
pub is_single_layer_and_tiled: bool,
pub has_long_names: bool,
pub has_deep_data: bool,
pub has_multiple_layers: bool,
}
Expand description
A summary of requirements that must be met to read this exr file.
Used to determine whether this file can be read by a given reader.
It includes the OpenEXR version number. This library aims to support version 2.0
.
Fields§
§file_format_version: u8
This library supports reading version 1 and 2, and writing version 2.
is_single_layer_and_tiled: bool
If true, this image has tiled blocks and contains only a single layer. If false and not deep and not multilayer, this image is a single layer image with scan line blocks.
has_long_names: bool
Whether this file has strings with a length greater than 31. Strings can never be longer than 255.
has_deep_data: bool
This image contains at least one layer with deep data.
has_multiple_layers: bool
Whether this file contains multiple layers.
Implementations§
source§impl Requirements
impl Requirements
sourcepub fn is_multilayer(&self) -> bool
pub fn is_multilayer(&self) -> bool
Is this file declared to contain multiple layers?
sourcepub fn write<W: Write>(self, write: &mut W) -> UnitResult
pub fn write<W: Write>(self, write: &mut W) -> UnitResult
Without validation, write this instance to the byte stream.
sourcepub fn validate(&self) -> UnitResult
pub fn validate(&self) -> UnitResult
Validate this instance.
Trait Implementations§
source§impl Clone for Requirements
impl Clone for Requirements
source§fn clone(&self) -> Requirements
fn clone(&self) -> Requirements
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for Requirements
impl Debug for Requirements
source§impl Hash for Requirements
impl Hash for Requirements
source§impl PartialEq for Requirements
impl PartialEq for Requirements
source§fn eq(&self, other: &Requirements) -> bool
fn eq(&self, other: &Requirements) -> bool
self
and other
values to be equal, and is used
by ==
.