|
libvmaf
|
#include <feature_extractor.h>

Data Fields | |
| const char * | name |
| Name of feature extractor. | |
| int(*) | init (struct VmafFeatureExtractor *fex, enum VmafPixelFormat pix_fmt, unsigned bpc, unsigned w, unsigned h) |
| int(*) | extract (struct VmafFeatureExtractor *fex, VmafPicture *ref_pic, VmafPicture *ref_pic_90, VmafPicture *dist_pic, VmafPicture *dist_pic_90, unsigned index, VmafFeatureCollector *feature_collector) |
| int(*) | flush (struct VmafFeatureExtractor *fex, VmafFeatureCollector *feature_collector) |
| int(*) | close (struct VmafFeatureExtractor *fex) |
| const VmafOption * | options |
| Optional initialization options. | |
| void * | priv |
| Custom data. | |
| size_t | priv_size |
| sizeof private data. | |
| uint64_t | flags |
| Feauture extraction flags, binary or'd. | |
| const char ** | provided_features |
| Provided feature list, NULL terminated. | |
| VmafFrameSyncContext * | framesync |
| VmafPicture | prev_ref |
| Previous reference picture (n-1), set by framework. | |
| VmafPicture | prev_prev_ref |
| Reference picture from two frames ago (n-2), set by framework. | |
| int(*) VmafFeatureExtractor::close(struct VmafFeatureExtractor *fex) |
Close callback. Optional, clean up fex->priv buffers here.
| fex | self. |
| int(*) VmafFeatureExtractor::extract(struct VmafFeatureExtractor *fex, VmafPicture *ref_pic, VmafPicture *ref_pic_90, VmafPicture *dist_pic, VmafPicture *dist_pic_90, unsigned index, VmafFeatureCollector *feature_collector) |
Feature extraction callback. Called for every pair of pictures. Unless the VMAF_FEATURE_EXTRACTOR_TEMPORAL flag is set, there is no guarantee that this callback is called in any specific order.
| fex | self. |
| ref_pic | Reference VmafPicture. |
| ref_pic_90 | Reference VmafPicture, translated 90 degrees. |
| dist_pic | Distorted VmafPicture. |
| dist_pic_90 | Distorted VmafPicture, translated 90 degrees. |
| index | Picture index. |
| feature_collector | VmafFeatureCollector used to write out scores. |
| uint64_t VmafFeatureExtractor::flags |
Feauture extraction flags, binary or'd.
| int(*) VmafFeatureExtractor::flush(struct VmafFeatureExtractor *fex, VmafFeatureCollector *feature_collector) |
Buffer flush callback. Optional. Called only when the VMAF_FEATURE_EXTRACTOR_TEMPORAL flag is set.
| fex | self. |
| feature_collector | VmafFeatureCollector used to write out scores. |
| VmafFrameSyncContext* VmafFeatureExtractor::framesync |
| int(*) VmafFeatureExtractor::init(struct VmafFeatureExtractor *fex, enum VmafPixelFormat pix_fmt, unsigned bpc, unsigned w, unsigned h) |
Initialization callback. Optional, preallocate fex->priv buffers here.
| fex | self. |
| pix_fmt | VmafPixelFormat of all subsequent pictures. |
| bpc | Bitdepth of all subsequent pictures. |
| w | Width of all subsequent pictures. |
| h | Height of all subsequent pictures. |
| const char* VmafFeatureExtractor::name |
Name of feature extractor.
| const VmafOption* VmafFeatureExtractor::options |
Optional initialization options.
| VmafPicture VmafFeatureExtractor::prev_prev_ref |
Reference picture from two frames ago (n-2), set by framework.
| VmafPicture VmafFeatureExtractor::prev_ref |
Previous reference picture (n-1), set by framework.
| void* VmafFeatureExtractor::priv |
Custom data.
| size_t VmafFeatureExtractor::priv_size |
sizeof private data.
| const char** VmafFeatureExtractor::provided_features |
Provided feature list, NULL terminated.