JxlDecoderSetInput

Function JxlDecoderSetInput 

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

Sets input data for JxlDecoderProcessInput. The data is owned by the caller and may be used by the decoder until JxlDecoderReleaseInput is called or the decoder is destroyed or reset, so it must be kept alive until then. Cannot be called if JxlDecoderSetInput was already called and JxlDecoderReleaseInput was not yet called, and cannot be called after JxlDecoderCloseInput indicating the end of input was called.

§Parameters

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

§Returns