[][src]Function jpegxl_sys::JpegxlDecoderDCOutBufferSize

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

Returns the size in bytes the DC image output pixel buffer requires at least to contain the DC image pixels in the given format. This is the minumum size of the buffer for JpegxlDecoderSetDCOutBuffer. 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.