[][src]Function jpegxl_sys::JpegxlDecoderImageOutBufferSize

pub unsafe extern "C" fn JpegxlDecoderImageOutBufferSize(
    dec: *const JpegxlDecoder,
    format: *const JpegxlPixelFormat,
    size: *mut size_t
) -> JpegxlDecoderStatus

Returns the size in bytes the image output pixel buffer requires at least to contain all pixels in the given format. This is the minumum size of the buffer for JpegxlDecoderSetImageOutBuffer. Requires the basic image information is available in the decoder.

@param dec decoder object @param format format of pixelsformat of pixels. @param size output value, buffer size in bytes @return JPEGXL_DEC_SUCCESS on success, JPEGXL_DEC_ERROR on error, such as information not available yet.