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

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

@param dec decoder object @param data pointer to next bytes to read from @param size amount of bytes available starting from data @return @ref JXL_DEC_ERROR if input was already set without releasing or @ref JxlDecoderCloseInput was already called, @ref JXL_DEC_SUCCESS otherwise.