Module writer
Composable structures to handle writing an image.
Structs
-
ChunkWriter
Can consume compressed pixel chunks, writing them a file.
Use
sequential_blocks_compressororparallel_blocks_compressorto compress your data, or usecompress_all_blocks_sequentialorcompress_all_blocks_parallel. Useon_progressto obtain a new writer that triggers a callback for each block. - OnProgressChunkWriter A new writer that triggers a callback for each block written to the inner writer.
- ParallelBlocksCompressor Compress blocks to a chunk writer with multiple threads.
- SequentialBlocksCompressor Compress blocks to a chunk writer in this thread.
- SortedBlocksWriter Write blocks that appear in any order and reorder them before writing.
Traits
-
ChunksWriter
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.