[][src]Function jpegxl_sys::JxlDecoderPreviewOutBufferSize

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

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

@param dec decoder object @param format format of 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.