Function libdav1d_sys::dav1d_open

source ·
pub unsafe extern "C" fn dav1d_open(
    c_out: *mut *mut Dav1dContext,
    s: *const Dav1dSettings
) -> c_int
Expand description

Allocate and open a decoder instance.

@param c_out The decoder instance to open. *c_out will be set to the allocated context. @param s Input settings context.

@note The context must be freed using dav1d_close() when decoding is finished.

@return 0 on success, or < 0 (a negative DAV1D_ERR code) on error.