libvmaf
Loading...
Searching...
No Matches
model.h
Go to the documentation of this file.
1
18
19#ifndef __VMAF_MODEL_H__
20#define __VMAF_MODEL_H__
21
22#include <stdint.h>
23
24#include "feature.h"
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
30typedef struct VmafModel VmafModel;
31
38
39typedef struct VmafModelConfig {
40 const char *name;
41 uint64_t flags;
43
45 const char *version);
46
48 const char *path);
49
50int vmaf_model_feature_overload(VmafModel *model, const char *feature_name,
51 VmafFeatureDictionary *opts_dict);
52
54
56
61
64 struct {
65 double bagging_score;
66 double stddev;
67 struct {
68 struct { double lo, hi; } p95;
69 } ci;
72
74 VmafModelCollection **model_collection,
75 VmafModelConfig *cfg,
76 const char *version);
77
79 VmafModelCollection **model_collection,
80 VmafModelConfig *cfg,
81 const char *path);
82
84 VmafModelCollection **model_collection,
85 const char *feature_name,
86 VmafFeatureDictionary *opts_dict);
87
89
90#ifdef __cplusplus
91}
92#endif
93
94#endif /* __VMAF_MODEL_H__ */
struct VmafFeatureDictionary VmafFeatureDictionary
Definition feature.h:26
int vmaf_model_feature_overload(VmafModel *model, const char *feature_name, VmafFeatureDictionary *opts_dict)
int vmaf_model_load(VmafModel **model, VmafModelConfig *cfg, const char *version)
void vmaf_model_collection_destroy(VmafModelCollection *model_collection)
void vmaf_model_destroy(VmafModel *model)
VmafModelFlags
Definition model.h:32
@ VMAF_MODEL_FLAG_DISABLE_CLIP
Definition model.h:34
@ VMAF_MODEL_FLAG_ENABLE_TRANSFORM
Definition model.h:35
@ VMAF_MODEL_FLAGS_DEFAULT
Definition model.h:33
@ VMAF_MODEL_FLAG_DISABLE_TRANSFORM
Definition model.h:36
VmafModelCollectionScoreType
Definition model.h:57
@ VMAF_MODEL_COLLECTION_SCORE_BOOTSTRAP
Definition model.h:59
@ VMAF_MODEL_COLLECTION_SCORE_UNKNOWN
Definition model.h:58
struct VmafModelCollection VmafModelCollection
Definition model.h:55
struct VmafModel VmafModel
Definition model.h:30
int vmaf_model_collection_load_from_path(VmafModel **model, VmafModelCollection **model_collection, VmafModelConfig *cfg, const char *path)
int vmaf_model_load_from_path(VmafModel **model, VmafModelConfig *cfg, const char *path)
int vmaf_model_collection_load(VmafModel **model, VmafModelCollection **model_collection, VmafModelConfig *cfg, const char *version)
int vmaf_model_collection_feature_overload(VmafModel *model, VmafModelCollection **model_collection, const char *feature_name, VmafFeatureDictionary *opts_dict)
struct VmafModelCollectionScore::@120015242123357144052252262132133161201071266045::@260064031130172336111055162261164075261332250043::@352067144022260064121153176017314036043362035071 p95
struct VmafModelCollectionScore::@120015242123357144052252262132133161201071266045::@260064031130172336111055162261164075261332250043 ci
Definition model.h:62
enum VmafModelCollectionScoreType type
Definition model.h:63
struct VmafModelCollectionScore::@120015242123357144052252262132133161201071266045 bootstrap
Definition model.h:39
const char * name
Definition model.h:40
uint64_t flags
Definition model.h:41