Struct exr::image::Encoding [−][src]
pub struct Encoding {
pub compression: Compression,
pub blocks: Blocks,
pub line_order: LineOrder,
}Expand description
How the pixels are split up and compressed.
Fields
compression: CompressionHow the pixel data of all channels in this layer is compressed. May be Compression::Uncompressed.
See layer.attributes for more attributes.
blocks: BlocksDescribes how the pixels of this layer are divided into smaller blocks. Either splits the image into its scan lines or splits the image into tiles of the specified size. A single block can be loaded without processing all bytes of a file.
line_order: LineOrderIn what order the tiles of this header occur in the file.
Does not change any actual image orientation.
See layer.attributes for more attributes.
Implementations
No compression. Massive space requirements. Fast, because it minimizes data shuffling and reallocation.
Run-length encoding with tiles of 64x64 pixels. This is the recommended default encoding. Almost as fast as uncompressed data, but optimizes single-colored areas such as mattes and masks.
ZIP compression with blocks of 16 lines. Slow, but produces small files without visible artefacts.
PIZ compression with tiles of 256x256 pixels. Small images, not too slow. Might produce visible artefacts in the image.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Encoding
impl UnwindSafe for Encoding
Blanket Implementations
Mutably borrows from an owned value. Read more
Read this value from the supplied reader. Same as ReadEndian::read_from_little_endian().
Read this value from the supplied reader. Same as ReadEndian::read_from_big_endian().
Read this value from the supplied reader. Same as ReadEndian::read_from_native_endian().