Function libjxl_sys::JxlDecoderImageOutBufferSize[][src]

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

Returns the minimum size in bytes of the image output pixel buffer for the given format. This is the buffer for JxlDecoderSetImageOutBuffer. Requires the basic image information is available in the decoder.

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