libvmaf
Toggle main menu visibility
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
27
extern
"C"
{
28
#endif
29
30
typedef
struct
VmafModel
VmafModel
;
31
32
enum
VmafModelFlags
{
33
VMAF_MODEL_FLAGS_DEFAULT
= 0,
34
VMAF_MODEL_FLAG_DISABLE_CLIP
= (1 << 0),
35
VMAF_MODEL_FLAG_ENABLE_TRANSFORM
= (1 << 1),
36
VMAF_MODEL_FLAG_DISABLE_TRANSFORM
= (1 << 2),
37
};
38
39
typedef
struct
VmafModelConfig
{
40
const
char
*
name
;
41
uint64_t
flags
;
42
}
VmafModelConfig
;
43
44
int
vmaf_model_load
(
VmafModel
**model,
VmafModelConfig
*cfg,
45
const
char
*version);
46
47
int
vmaf_model_load_from_path
(
VmafModel
**model,
VmafModelConfig
*cfg,
48
const
char
*path);
49
50
int
vmaf_model_feature_overload
(
VmafModel
*model,
const
char
*feature_name,
51
VmafFeatureDictionary
*opts_dict);
52
53
void
vmaf_model_destroy
(
VmafModel
*model);
54
55
typedef
struct
VmafModelCollection
VmafModelCollection
;
56
57
enum
VmafModelCollectionScoreType
{
58
VMAF_MODEL_COLLECTION_SCORE_UNKNOWN
= 0,
59
VMAF_MODEL_COLLECTION_SCORE_BOOTSTRAP
,
60
};
61
62
typedef
struct
VmafModelCollectionScore
{
63
enum
VmafModelCollectionScoreType
type
;
64
struct
{
65
double
bagging_score
;
66
double
stddev
;
67
struct
{
68
struct
{
double
lo
,
hi
; }
p95
;
69
}
ci
;
70
}
bootstrap
;
71
}
VmafModelCollectionScore
;
72
73
int
vmaf_model_collection_load
(
VmafModel
**model,
74
VmafModelCollection
**model_collection,
75
VmafModelConfig
*cfg,
76
const
char
*version);
77
78
int
vmaf_model_collection_load_from_path
(
VmafModel
**model,
79
VmafModelCollection
**model_collection,
80
VmafModelConfig
*cfg,
81
const
char
*path);
82
83
int
vmaf_model_collection_feature_overload
(
VmafModel
*model,
84
VmafModelCollection
**model_collection,
85
const
char
*feature_name,
86
VmafFeatureDictionary
*opts_dict);
87
88
void
vmaf_model_collection_destroy
(
VmafModelCollection
*model_collection);
89
90
#ifdef __cplusplus
91
}
92
#endif
93
94
#endif
/* __VMAF_MODEL_H__ */
feature.h
VmafFeatureDictionary
struct VmafFeatureDictionary VmafFeatureDictionary
Definition
feature.h:26
vmaf_model_feature_overload
int vmaf_model_feature_overload(VmafModel *model, const char *feature_name, VmafFeatureDictionary *opts_dict)
vmaf_model_load
int vmaf_model_load(VmafModel **model, VmafModelConfig *cfg, const char *version)
vmaf_model_collection_destroy
void vmaf_model_collection_destroy(VmafModelCollection *model_collection)
vmaf_model_destroy
void vmaf_model_destroy(VmafModel *model)
VmafModelFlags
VmafModelFlags
Definition
model.h:32
VMAF_MODEL_FLAG_DISABLE_CLIP
@ VMAF_MODEL_FLAG_DISABLE_CLIP
Definition
model.h:34
VMAF_MODEL_FLAG_ENABLE_TRANSFORM
@ VMAF_MODEL_FLAG_ENABLE_TRANSFORM
Definition
model.h:35
VMAF_MODEL_FLAGS_DEFAULT
@ VMAF_MODEL_FLAGS_DEFAULT
Definition
model.h:33
VMAF_MODEL_FLAG_DISABLE_TRANSFORM
@ VMAF_MODEL_FLAG_DISABLE_TRANSFORM
Definition
model.h:36
VmafModelCollectionScoreType
VmafModelCollectionScoreType
Definition
model.h:57
VMAF_MODEL_COLLECTION_SCORE_BOOTSTRAP
@ VMAF_MODEL_COLLECTION_SCORE_BOOTSTRAP
Definition
model.h:59
VMAF_MODEL_COLLECTION_SCORE_UNKNOWN
@ VMAF_MODEL_COLLECTION_SCORE_UNKNOWN
Definition
model.h:58
VmafModelCollection
struct VmafModelCollection VmafModelCollection
Definition
model.h:55
VmafModel
struct VmafModel VmafModel
Definition
model.h:30
vmaf_model_collection_load_from_path
int vmaf_model_collection_load_from_path(VmafModel **model, VmafModelCollection **model_collection, VmafModelConfig *cfg, const char *path)
vmaf_model_load_from_path
int vmaf_model_load_from_path(VmafModel **model, VmafModelConfig *cfg, const char *path)
vmaf_model_collection_load
int vmaf_model_collection_load(VmafModel **model, VmafModelCollection **model_collection, VmafModelConfig *cfg, const char *version)
vmaf_model_collection_feature_overload
int vmaf_model_collection_feature_overload(VmafModel *model, VmafModelCollection **model_collection, const char *feature_name, VmafFeatureDictionary *opts_dict)
VmafModelCollectionScore::[struct].bootstrap::[struct].bootstrap.ci::[struct].bootstrap.ci.p95::lo
double lo
VmafModelCollectionScore::[struct].bootstrap::[struct].bootstrap.ci::[struct].bootstrap.ci.p95::hi
double hi
VmafModelCollectionScore::[struct].bootstrap::[struct].bootstrap.ci::p95
struct VmafModelCollectionScore::@120015242123357144052252262132133161201071266045::@260064031130172336111055162261164075261332250043::@352067144022260064121153176017314036043362035071 p95
VmafModelCollectionScore::[struct].bootstrap::stddev
double stddev
VmafModelCollectionScore::[struct].bootstrap::ci
struct VmafModelCollectionScore::@120015242123357144052252262132133161201071266045::@260064031130172336111055162261164075261332250043 ci
VmafModelCollectionScore::[struct].bootstrap::bagging_score
double bagging_score
VmafModelCollectionScore
Definition
model.h:62
VmafModelCollectionScore::type
enum VmafModelCollectionScoreType type
Definition
model.h:63
VmafModelCollectionScore::bootstrap
struct VmafModelCollectionScore::@120015242123357144052252262132133161201071266045 bootstrap
VmafModelConfig
Definition
model.h:39
VmafModelConfig::name
const char * name
Definition
model.h:40
VmafModelConfig::flags
uint64_t flags
Definition
model.h:41
libvmaf
model.h
Generated by
1.18.0