Function libjxl_sys::JxlDecoderPreviewOutBufferSize
source · [−]pub unsafe extern "C" fn JxlDecoderPreviewOutBufferSize(
dec: *const JxlDecoder,
format: *const JxlPixelFormat,
size: *mut usize
) -> JxlDecoderStatus
Expand description
Returns the minimum size in bytes of the preview image output pixel buffer for the given format. This is the buffer for @ref 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 @ref JXL_DEC_SUCCESS on success, @ref JXL_DEC_ERROR on error, such as information not available yet.