[−][src]Function exr::image::write_all_lines_to_buffered
#[must_use] pub fn write_all_lines_to_buffered(
write: impl Write + Seek,
meta_data: MetaData,
get_line: impl Sync + Fn(&[Header], LineRefMut) -> UnitResult,
options: WriteOptions<impl OnWriteProgress>
) -> UnitResult
Compresses and writes all lines of an image described by meta_data
and get_line
to the writer.
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.
Does not buffer the writer, you should always pass a BufWriter
.
If pedantic, throws errors for files that may produce errors in other exr readers.
The progress argument may be a closure.