pub fn codec_working_bytes(
doc: &DocumentView<'_>,
codec: Codec,
data: &[u8],
dict: &Dict,
) -> Option<u64>Expand description
Predicted peak heap bytes a terminal codec holds while decoding
data, the fully filter-decoded image data, above data itself:
working buffers plus the returned samples.
dict is the image dictionary; its /DecodeParms supply CCITT
geometry and /JBIG2Globals. Returns None where predict_peak
lists, for the codec part.