Struct exr::block::UncompressedBlock [−][src]
pub struct UncompressedBlock {
pub index: BlockIndex,
pub data: ByteVec,
}Expand description
Contains a block of pixel data and where that data should be placed in the actual image.
Fields
index: BlockIndexLocation of the data inside the image.
data: ByteVecUncompressed 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. Stores all samples of the first channel, then all samples of the second channel, and so on.
Implementations
Decompress the possibly compressed chunk and returns an UncompressedBlock.
Consume this block by compressing it, returning a Chunk.
Iterate all the lines in this block. Each line contains the all samples for one of the channels.
pub fn collect_block_data_from_lines(
channels: &ChannelList,
block_index: BlockIndex,
extract_line: impl FnMut(LineRefMut<'_>)
) -> Vec<u8>ⓘ
pub fn collect_block_data_from_lines(
channels: &ChannelList,
block_index: BlockIndex,
extract_line: impl FnMut(LineRefMut<'_>)
) -> Vec<u8>ⓘ
Create an uncompressed block byte vector by requesting one line of samples after another.
pub fn from_lines(
channels: &ChannelList,
block_index: BlockIndex,
extract_line: impl FnMut(LineRefMut<'_>)
) -> Self
pub fn from_lines(
channels: &ChannelList,
block_index: BlockIndex,
extract_line: impl FnMut(LineRefMut<'_>)
) -> Self
Create an uncompressed block by requesting one line of samples after another.
Trait Implementations
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for UncompressedBlock
impl Send for UncompressedBlock
impl Sync for UncompressedBlock
impl Unpin for UncompressedBlock
impl UnwindSafe for UncompressedBlock
Blanket Implementations
Mutably borrows from an owned value. Read more