JxlDecoderPreviewOutBufferSize

Function JxlDecoderPreviewOutBufferSize 

Source
pub unsafe extern "C-unwind" 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 JxlDecoderSetPreviewOutBuffer. Requires the preview header information is available in the decoder.

§Parameters

  • dec: decoder object
  • format: format of pixels
  • size: output value, buffer size in bytes

§Returns