[][src]Function exr::image::for_compressed_blocks_in_image

#[must_use]
pub fn for_compressed_blocks_in_image(
    meta_data: &MetaData,
    get_line: impl Sync + Fn(&[Header], LineRefMut) -> UnitResult,
    parallel: bool,
    write_chunk: impl FnMut(usize, Chunk) -> UnitResult
) -> UnitResult

Compress all chunks in the image described by meta_data and get_line. Calls write_chunk for each compressed chunk, while respecting the line_order of the image.

Attention: Currently, using multicore compression with LineOrder::Increasing or LineOrder::Decreasing in any header will allocate large amounts of memory while writing the file. Use unspecified line order for lower memory usage.