Expand description
Contains all meta data attributes.
Each layer can have any number of [Attribute
]s, including custom attributes.
Re-exports§
pub use crate::compression::Compression;
Modules§
- block_
type_ strings - The string literals used to represent a
BlockType
in a file. - type_
names - Contains string literals identifying the type of an attribute.
Structs§
- Channel
Description - A single channel in an layer. Does not contain the actual pixel data, but instead merely describes it.
- Channel
List - A List of channels. Channels must be sorted alphabetically.
- Chromaticities
- The color space of the pixels.
- Float
Rect - A rectangular section anywhere in 2D float space.
- Integer
Bounds - A rectangular section anywhere in 2D integer space.
Valid from minimum coordinate (including)
-1,073,741,822
to maximum coordinate (including)1,073,741,822
, the value of (i32::MAX/2 -1
). - KeyCode
- Uniquely identifies a motion picture film frame.
- Preview
- A small
rgba
image ofi8
values that approximates the real exr image. - Text
- A byte array with each byte being a char. This is not UTF an must be constructed from a standard string.
- Tile
Description - Describes how the layer is divided into tiles. Specifies the size of each tile in the image and whether this image contains multiple resolution levels.
- Time
Code - Contains time information for this frame within a sequence.
Also defined methods to compile this information into a
TV60
,TV50
orFilm24
bit sequence, packed intou32
.
Enums§
- Attribute
Value - Contains one of all possible attributes. Includes a variant for custom attributes.
- Block
Type - layer type, specifies block type and deepness.
- Environment
Map - If this attribute is present, it describes how this texture should be projected onto an environment.
- Level
Mode - Whether to also store increasingly smaller versions of the original image.
- Line
Order - In what order the
Block
s of pixel data appear in a file. - Sample
Type - The type of samples in this channel.
Functions§
- byte_
size - Number of bytes this attribute would consume in an exr file.
- invalid_
type 🔒 - read
- Read the attribute without validating. The result may be
Ok
even if this single attribute is invalid. - u8_
from_ 🔒decimal32 - u8_
to_ 🔒decimal32 - validate
- Validate this attribute.
- write
- Without validation, write this attribute to the byte stream.
Type Aliases§
- Data
Window - The integer rectangle describing where an layer is placed on the infinite 2D global space.
- Display
Window - The integer rectangle limiting which part of the infinite 2D global space should be displayed.
- Matrix3x3
- A float matrix with three rows and three columns.
- Matrix4x4
- A float matrix with four rows and four columns.
- Rational
- An integer dividend and divisor, together forming a ratio.
- Text
Bytes - The raw bytes that make up a string in an exr file.
Each
u8
is a single char. - Text
Slice - A byte slice, interpreted as text