vmaf_use_feature

Function vmaf_use_feature 

Source
pub unsafe extern "C" fn vmaf_use_feature(
    vmaf: *mut VmafContext,
    feature_name: *const c_char,
    opts_dict: *mut VmafFeatureDictionary,
) -> c_int
Expand description

Register specific feature extractor. Useful when a specific/additional feature is required, usually one which is not already provided by a model via vmaf_use_features_from_model(). This may be called multiple times. VmafContext will take ownership of the VmafFeatureDictionary (opts_dict). Use vmaf_feature_dictionary_free() only in the case of failure.

@param vmaf The VMAF context allocated with vmaf_init().

@param feature_name Name of feature.

@param opts_dict Feature extractor options set via vmaf_feature_dictionary_set(). If no special options are required this parameter can be set to NULL.

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