Function libjxl_sys::JxlDecoderSetInput[][src]

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

Sets input data for JxlDecoderProcessInput. The data is owned by the caller and may be used by the decoder until JxlDecoderReleaseInput is called or the decoder is destroyed or reset so must be kept alive until then. @param dec decoder object @param data pointer to next bytes to read from @param size amount of bytes available starting from data @return JXL_DEC_ERROR if input was already set without releasing, JXL_DEC_SUCCESS otherwise