JxlDecoderProcessInput

Function JxlDecoderProcessInput 

Source
pub unsafe extern "C-unwind" fn JxlDecoderProcessInput(
    dec: *mut JxlDecoder,
) -> JxlDecoderStatus
Expand description

Decodes JPEG XL file using the available bytes. Requires input has been set with JxlDecoderSetInput. After JxlDecoderProcessInput, input can optionally be released with JxlDecoderReleaseInput and then set again to next bytes in the stream. JxlDecoderReleaseInput returns how many bytes are not yet processed, before a next call to JxlDecoderProcessInput all unprocessed bytes must be provided again (the address need not match, but the contents must), and more bytes may be concatenated after the unprocessed bytes.

The returned status indicates whether the decoder needs more input bytes, or more output buffer for a certain type of output data. No matter what the returned status is (other than JxlDecoderStatus::Error), new information, such as JxlDecoderGetBasicInfo, may have become available after this call. When the return value is not JxlDecoderStatus::Error or JxlDecoderStatus::Success, the decoding requires more JxlDecoderProcessInput calls to continue.

§Parameters

  • dec: decoder object

§Returns