JxlDecoderSetJPEGBuffer

Function JxlDecoderSetJPEGBuffer 

Source
pub unsafe extern "C-unwind" fn JxlDecoderSetJPEGBuffer(
    dec: *mut JxlDecoder,
    data: *mut u8,
    size: usize,
) -> JxlDecoderStatus
Expand description

Sets output buffer for reconstructed JPEG codestream.

The data is owned by the caller and may be used by the decoder until JxlDecoderReleaseJPEGBuffer is called or the decoder is destroyed or reset so must be kept alive until then.

If a JPEG buffer was set before and released with JxlDecoderReleaseJPEGBuffer, bytes that the decoder has already output should not be included, only the remaining bytes output must be set.

§Parameters

  • dec: decoder object
  • data: pointer to next bytes to write to
  • size: amount of bytes available starting from data

§Returns