Expand description
Composable structures to handle writing an image.
Structs§
- Chunk
Writer - Can consume compressed pixel chunks, writing them a file.
Use
sequential_blocks_compressor
orparallel_blocks_compressor
to compress your data, or usecompress_all_blocks_sequential
orcompress_all_blocks_parallel
. Useon_progress
to obtain a new writer that triggers a callback for each block. - OnProgress
Chunk Writer - A new writer that triggers a callback for each block written to the inner writer.
- Parallel
Blocks Compressor - Compress blocks to a chunk writer with multiple threads.
- Sequential
Blocks Compressor - Compress blocks to a chunk writer in this thread.
- Sorted
Blocks Writer - Write blocks that appear in any order and reorder them before writing.
Traits§
- Chunks
Writer - Write chunks to a byte destination.
Then write each chunk with
writer.write_chunk(chunk)
.
Functions§
- write_
chunks_ with - Write an exr file by writing one chunk after another in a closure. In the closure, you are provided a chunk writer, which should be used to write all the chunks. Assumes the your write destination is buffered.