[][src]Struct exr::image::UncompressedBlock

pub struct UncompressedBlock {
    pub index: BlockIndex,
    pub data: ByteVec,
}

Contains a block of pixel data and where that data should be placed in the actual image.

Fields

index: BlockIndex

Location of the data inside the image.

data: ByteVec

Uncompressed pixel values of the whole block. One or more scan lines may be stored together as a scan line block. This byte vector contains all pixel rows, one after another. For each line in the tile, for each channel, the row values are contiguous.

Methods

impl UncompressedBlock[src]

#[must_use] pub fn decompress_chunk(chunk: Chunk, meta_data: &MetaData) -> Result<Self>[src]

Decompress the possibly compressed chunk and returns an UncompressedBlock.

#[must_use] pub fn compress_to_chunk(self, meta_data: &MetaData) -> Result<Chunk>[src]

Consume this block by compressing it, returning a Chunk.

Trait Implementations

impl Clone for UncompressedBlock[src]

impl Debug for UncompressedBlock[src]

impl Eq for UncompressedBlock[src]

impl PartialEq<UncompressedBlock> for UncompressedBlock[src]

impl StructuralEq for UncompressedBlock[src]

impl StructuralPartialEq for UncompressedBlock[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.