Struct exr::block::writer::SequentialBlocksCompressor
source · pub struct SequentialBlocksCompressor<'w, W> {
meta: &'w MetaData,
chunks_writer: &'w mut W,
}
Expand description
Compress blocks to a chunk writer in this thread.
Fields§
§meta: &'w MetaData
§chunks_writer: &'w mut W
Implementations§
source§impl<'w, W> SequentialBlocksCompressor<'w, W>where
W: 'w + ChunksWriter,
impl<'w, W> SequentialBlocksCompressor<'w, W>where
W: 'w + ChunksWriter,
sourcepub fn inner_chunks_writer(&'w self) -> &'w W
pub fn inner_chunks_writer(&'w self) -> &'w W
This is where the compressed blocks are written to.
sourcepub fn compress_block(
&mut self,
index_in_header_increasing_y: usize,
block: UncompressedBlock,
) -> UnitResult
pub fn compress_block( &mut self, index_in_header_increasing_y: usize, block: UncompressedBlock, ) -> UnitResult
Compress a single block immediately. The index of the block must be in increasing line order.
Trait Implementations§
Auto Trait Implementations§
impl<'w, W> Freeze for SequentialBlocksCompressor<'w, W>
impl<'w, W> RefUnwindSafe for SequentialBlocksCompressor<'w, W>where
W: RefUnwindSafe,
impl<'w, W> Send for SequentialBlocksCompressor<'w, W>where
W: Send,
impl<'w, W> Sync for SequentialBlocksCompressor<'w, W>where
W: Sync,
impl<'w, W> Unpin for SequentialBlocksCompressor<'w, W>
impl<'w, W> !UnwindSafe for SequentialBlocksCompressor<'w, W>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more