Function libjxl_sys::JxlDecoderSetJPEGBuffer[][src]

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

Sets output buffer for reconstructed JPEG codestream.

The data is owned by the caller and may be used by the decoder until JxlDecoderReleaseJPEGBuffer 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 write to @param size amount of bytes available starting from data @return JXL_DEC_ERROR if input was already set without releasing, JXL_DEC_SUCCESS otherwise