pub unsafe extern "C" fn vmaf_init(
vmaf: *mut *mut VmafContext,
cfg: VmafConfiguration,
) -> c_intExpand description
Allocate and open a VMAF instance.
@param vmaf The VMAF instance to open.
To be used in further libvmaf api calls.
$vmaf will be set to the allocated context.
Context should be cleaned up with vmaf_close() when finished.
@param cfg Configuration parameters.
@return 0 on success, or < 0 (a negative errno code) on error.