pub unsafe extern "C-unwind" fn JxlDecoderImageOutBufferSize(
dec: *const JxlDecoder,
format: *const JxlPixelFormat,
size: *mut usize,
) -> JxlDecoderStatusExpand description
Returns the minimum size in bytes of the image output pixel buffer for the
given format. This is the buffer for JxlDecoderSetImageOutBuffer.
Requires that the basic image information is available in the decoder in the
case of coalescing enabled (default). In case coalescing is disabled, this
can only be called after the JxlDecoderStatus::Frame event occurs. In that case,
it will return the size required to store the possibly cropped frame (which
can be larger or smaller than the image dimensions).
§Parameters
dec: decoder objectformat: format of the pixels.size: output value, buffer size in bytes
§Returns
JxlDecoderStatus::Successon success,JxlDecoderStatus::Erroron error, such as information not available yet.