pub unsafe extern "C" fn JxlDecoderReleaseInput(
    dec: *mut JxlDecoder
) -> usize
Expand description

Releases input which was provided with @ref JxlDecoderSetInput. Between @ref JxlDecoderProcessInput and @ref JxlDecoderReleaseInput, the user may not alter the data in the buffer. Calling @ref JxlDecoderReleaseInput is required whenever any input is already set and new input needs to be added with @ref JxlDecoderSetInput, but is not required before @ref JxlDecoderDestroy or @ref JxlDecoderReset. Calling @ref JxlDecoderReleaseInput when no input is set is not an error and returns 0.

@param dec decoder object @return The amount of bytes the decoder has not yet processed that are still remaining in the data set by @ref JxlDecoderSetInput, or 0 if no input is set or @ref JxlDecoderReleaseInput was already called. For a next call to @ref JxlDecoderProcessInput, the buffer must start with these unprocessed bytes. This value doesn’t provide information about how many bytes the decoder truly processed internally or how large the original JPEG XL codestream or file are.