Function turbojpeg::compressed_buf_len
source · pub fn compressed_buf_len(
width: usize,
height: usize,
subsamp: Subsamp
) -> Result<usize>
Expand description
Compute the maximum size of a compressed image.
This depends on image width
and height
and also on the chrominance subsampling method.
Returns an error on integer overflow. You can just .unwrap()
the result if you don’t care
about this edge case.