pub unsafe extern "C-unwind" fn JxlDecoderCloseInput(
dec: *mut JxlDecoder,
)Expand description
Marks the input as finished, indicates that no more 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 JxlDecoderStatus::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 JxlDecoderStatus::Box for getting
metadata box contents. This function does not replace JxlDecoderReleaseInput,
that function should still be called if its return value is needed.
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 JxlDecoderProcessInput calls.
ยงParameters
dec: decoder object