pub unsafe extern "C" fn JxlDecoderCloseInput(dec: *mut JxlDecoder)
Expand description

Marks the input as finished, indicates that no more @ref JxlDecoderSetInput will be called. This function allows the decoder to determine correctly if it should return success, need more input or error in certain cases. For backwards compatibility with a previous version of the API, using this function is optional when not using the @ref JXL_DEC_BOX event (the decoder is able to determine the end of the image frames without marking the end), but using this function is required when using @ref JXL_DEC_BOX for getting metadata box contents. This function does not replace @ref JxlDecoderReleaseInput, that function should still be called if its return value is needed.

@ref JxlDecoderCloseInput should be called as soon as all known input bytes are set (e.g. at the beginning when not streaming but setting all input at once), before the final @ref JxlDecoderProcessInput calls.

@param dec decoder object