pub unsafe extern "C" fn JxlDecoderImageOutBufferSize(
    dec: *const JxlDecoder,
    format: *const JxlPixelFormat,
    size: *mut usize
) -> JxlDecoderStatus
Expand description

Returns the minimum size in bytes of the image output pixel buffer for the given format. This is the buffer for @ref 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 @ref JXL_DEC_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).

@param dec decoder object @param format format of the pixels. @param size output value, buffer size in bytes @return @ref JXL_DEC_SUCCESS on success, @ref JXL_DEC_ERROR on error, such as information not available yet.