Struct ChunkWriter
#[must_use]
pub struct ChunkWriter<W> { /* private fields */ }
Can consume compressed pixel chunks, writing them a file.
Use sequential_blocks_compressor or parallel_blocks_compressor to
compress your data, or use compress_all_blocks_sequential or
compress_all_blocks_parallel. Use on_progress to obtain a new writer
that triggers a callback for each block.
Trait Implementations
impl<W> ChunksWriter for ChunkWriter<W>
where
W: Write + Seek,
fn total_chunks_count(&self) -> usizeThe total number of chunks that the complete file will contain.
fn write_chunk(&mut self, index_in_header_increasing_y: usize, chunk: Chunk) -> UnitResultAny more calls will result in an error and have no effect. If writing results in an error, the file and the writer may remain in an invalid state and should not be used further. Errors when the chunk at this index was already written.
impl<W: Debug> Debug for ChunkWriter<W>
fn fmt(&self, f: &mut Formatter<'_>) -> Result