Expand description
Composable structures to handle writing an image.
Structs
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.A new writer that triggers a callback
for each block written to the inner writer.
Compress blocks to a chunk writer with multiple threads.
Compress blocks to a chunk writer in this thread.
Write blocks that appear in any order and reorder them before writing.
Traits
Write chunks to a byte destination.
Then write each chunk with
writer.write_chunk(chunk).Functions
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.