[−][src]Struct exr::image::UncompressedBlock
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]
fn clone(&self) -> UncompressedBlock
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for UncompressedBlock
[src]
impl Eq for UncompressedBlock
[src]
impl PartialEq<UncompressedBlock> for UncompressedBlock
[src]
fn eq(&self, other: &UncompressedBlock) -> bool
[src]
fn ne(&self, other: &UncompressedBlock) -> bool
[src]
impl StructuralEq for UncompressedBlock
[src]
impl StructuralPartialEq for UncompressedBlock
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
ⓘImportant traits for &'_ mut Wfn borrow_mut(&mut self) -> &mut T
[src]
ⓘImportant traits for &'_ mut W
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,