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: Compression
How the pixel data of all channels in this layer is compressed. May be Compression::Uncompressed
.
See layer.attributes
for more attributes.
blocks: Blocks
Describes 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: LineOrder
In 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
impl Encoding
[src]
impl Encoding
[src]pub const UNCOMPRESSED: Encoding
[src]
pub const UNCOMPRESSED: Encoding
[src]No compression. Massive space requirements. Fast, because it minimizes data shuffling and reallocation.
pub const FAST_LOSSLESS: Encoding
[src]
pub const FAST_LOSSLESS: Encoding
[src]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.
pub const SMALL_LOSSLESS: Encoding
[src]
pub const SMALL_LOSSLESS: Encoding
[src]ZIP compression with blocks of 16 lines. Slow, but produces small files without visible artefacts.
pub const SMALL_FAST_LOSSY: Encoding
[src]
pub const SMALL_FAST_LOSSY: Encoding
[src]PIZ compression with tiles of 256x256 pixels. Small images, not too slow. Might produce visible artefacts in the image.
Trait Implementations
impl Copy for Encoding
[src]
impl StructuralPartialEq for Encoding
[src]
Auto Trait Implementations
impl RefUnwindSafe for Encoding
impl Send for Encoding
impl Sync for Encoding
impl Unpin for Encoding
impl UnwindSafe for Encoding
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<R, P> ReadPrimitive<R> for P where
R: Read + ReadEndian<P>,
P: Default,
[src]
impl<R, P> ReadPrimitive<R> for P where
R: Read + ReadEndian<P>,
P: Default,
[src]fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
[src]
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
[src]Read this value from the supplied reader. Same as ReadEndian::read_from_little_endian()
.
fn read_from_big_endian(read: &mut R) -> Result<Self, Error>
[src]
fn read_from_big_endian(read: &mut R) -> Result<Self, Error>
[src]Read this value from the supplied reader. Same as ReadEndian::read_from_big_endian()
.
fn read_from_native_endian(read: &mut R) -> Result<Self, Error>
[src]
fn read_from_native_endian(read: &mut R) -> Result<Self, Error>
[src]Read this value from the supplied reader. Same as ReadEndian::read_from_native_endian()
.
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more