Expand description
This crate is a simple bindgen wrapper library around Netflix’s libvmaf
You’re probably looking for libvmaf-rs
Structs§
- Vmaf
Configuration - Vmaf
Context - Vmaf
Feature Dictionary - Vmaf
Model - Vmaf
Model Collection - Vmaf
Model Collection Score - Vmaf
Model Collection Score__ bindgen_ ty_ 1 - Vmaf
Model Collection Score__ bindgen_ ty_ 1__ bindgen_ ty_ 1 - Vmaf
Model Collection Score__ bindgen_ ty_ 1__ bindgen_ ty_ 1__ bindgen_ ty_ 1 - Vmaf
Model Config - Vmaf
Picture - VmafRef
Enums§
- Vmaf
LogLevel - Vmaf
Model Collection Score Type - Vmaf
Model Flags - Vmaf
Output Format - Vmaf
Pixel Format - Vmaf
Pooling Method
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/orvmaf_use_feature()
.VmafContext
will take ownership of bothVmafPicture
s (ref
anddist
) andvmaf_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 theVmafFeatureDictionary
(opts_dict
). Usevmaf_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
Likevmaf_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.