From a110c35371a6408450cdbc31d246bf802983405e Mon Sep 17 00:00:00 2001 From: Yigithan Yigit Date: Mon, 29 Jul 2024 23:41:53 +0300 Subject: [PATCH] update docs --- libvmaf/include/libvmaf/libvmaf.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/libvmaf/include/libvmaf/libvmaf.h b/libvmaf/include/libvmaf/libvmaf.h index fcc7918ec..0fdd120b7 100644 --- a/libvmaf/include/libvmaf/libvmaf.h +++ b/libvmaf/include/libvmaf/libvmaf.h @@ -253,12 +253,32 @@ int vmaf_score_at_index_model_collection(VmafContext *vmaf, int vmaf_feature_score_at_index(VmafContext *vmaf, const char *feature_name, double *score, unsigned index); +/** + * Metadata structure. + * + * @param feature_name Name of the feature to fetch. + * + * @param picture_index Picture index. + * + * @param score Score. + * + * @note This structure is used to pass metadata to a callback function. + */ typedef struct VmafMetadata { char *feature_name; unsigned picture_index; double score; } VmafMetadata; +/** + * Metadata configuration. + * + * @param feature_name Name of the feature to fetch. + * + * @param callback Callback to receive metadata. + * + * @param data User data to pass to the callback. + */ typedef struct VmafMetadataConfiguration { char *feature_name; void (*callback)(void *data, VmafMetadata *metadata);