Crate libvmaf_sys

Source
Expand description

This crate is a simple bindgen wrapper library around Netflix’s libvmaf
You’re probably looking for libvmaf-rs

Structs§

VmafConfiguration
VmafContext
VmafFeatureDictionary
VmafModel
VmafModelCollection
VmafModelCollectionScore
VmafModelCollectionScore__bindgen_ty_1
VmafModelCollectionScore__bindgen_ty_1__bindgen_ty_1
VmafModelCollectionScore__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1
VmafModelConfig
VmafPicture
VmafRef

Enums§

VmafLogLevel
VmafModelCollectionScoreType
VmafModelFlags
VmafOutputFormat
VmafPixelFormat
VmafPoolingMethod

Functions§

vmaf_close
Close a VMAF instance and free all associated memory.
vmaf_feature_dictionary_free
vmaf_feature_dictionary_set
vmaf_feature_score_at_index
Fetch feature score at specific index.
vmaf_feature_score_pooled
Pooled feature score for a specific interval.
vmaf_import_feature_score
Import an external feature score. Useful when pre-computed feature scores are available. Also useful in the case where there is no libvmaf feature extractor implementation for a required feature.
vmaf_init
Allocate and open a VMAF instance.
vmaf_model_collection_destroy
vmaf_model_collection_feature_overload
vmaf_model_collection_load
vmaf_model_collection_load_from_path
vmaf_model_destroy
vmaf_model_feature_overload
vmaf_model_load
vmaf_model_load_from_path
vmaf_picture_alloc
vmaf_picture_unref
vmaf_read_pictures
Read a pair of pictures and queue them for eventual feature extraction. This should be called after feature extractors are registered via vmaf_use_features_from_model() and/or vmaf_use_feature(). VmafContext will take ownership of both VmafPictures (ref and dist) and vmaf_picture_unref().
vmaf_score_at_index
Predict VMAF score at specific index.
vmaf_score_at_index_model_collection
Predict VMAF score at specific index, using a model collection.
vmaf_score_pooled
Pooled VMAF score for a specific interval.
vmaf_score_pooled_model_collection
Pooled VMAF score for a specific interval, using a model collection.
vmaf_use_feature
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.
vmaf_use_features_from_model
Register feature extractors required by a specific VmafModel. This may be called multiple times using different models. In this case, the registered feature extractors will form a set, and any features required by multiple models will only be extracted once.
vmaf_use_features_from_model_collection
Register feature extractors required by a specific VmafModelCollection Like vmaf_use_features_from_model(), this function may be called multiple times using different model collections.
vmaf_version
Get libvmaf version.
vmaf_write_output
Write VMAF stats to an output file.