libvmaf
Loading...
Searching...
No Matches
model.h File Reference
#include <stdint.h>
#include "feature.h"
Include dependency graph for model.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  VmafModelConfig
struct  VmafModelCollectionScore

Typedefs

typedef struct VmafModel VmafModel
typedef struct VmafModelCollection VmafModelCollection

Enumerations

enum  VmafModelFlags { VMAF_MODEL_FLAGS_DEFAULT = 0 , VMAF_MODEL_FLAG_DISABLE_CLIP = (1 << 0) , VMAF_MODEL_FLAG_ENABLE_TRANSFORM = (1 << 1) , VMAF_MODEL_FLAG_DISABLE_TRANSFORM = (1 << 2) }
enum  VmafModelCollectionScoreType { VMAF_MODEL_COLLECTION_SCORE_UNKNOWN = 0 , VMAF_MODEL_COLLECTION_SCORE_BOOTSTRAP }

Functions

int vmaf_model_load (VmafModel **model, VmafModelConfig *cfg, const char *version)
int vmaf_model_load_from_path (VmafModel **model, VmafModelConfig *cfg, const char *path)
int vmaf_model_feature_overload (VmafModel *model, const char *feature_name, VmafFeatureDictionary *opts_dict)
void vmaf_model_destroy (VmafModel *model)
int vmaf_model_collection_load (VmafModel **model, VmafModelCollection **model_collection, VmafModelConfig *cfg, const char *version)
int vmaf_model_collection_load_from_path (VmafModel **model, VmafModelCollection **model_collection, VmafModelConfig *cfg, const char *path)
int vmaf_model_collection_feature_overload (VmafModel *model, VmafModelCollection **model_collection, const char *feature_name, VmafFeatureDictionary *opts_dict)
void vmaf_model_collection_destroy (VmafModelCollection *model_collection)

Typedef Documentation

◆ VmafModel

typedef struct VmafModel VmafModel

Copyright 2016-2020 Netflix, Inc.

Licensed under the BSD+Patent License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

https://opensource.org/licenses/BSDplusPatent

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

◆ VmafModelCollection

Enumeration Type Documentation

◆ VmafModelCollectionScoreType

Enumerator
VMAF_MODEL_COLLECTION_SCORE_UNKNOWN 
VMAF_MODEL_COLLECTION_SCORE_BOOTSTRAP 

◆ VmafModelFlags

Enumerator
VMAF_MODEL_FLAGS_DEFAULT 
VMAF_MODEL_FLAG_DISABLE_CLIP 
VMAF_MODEL_FLAG_ENABLE_TRANSFORM 
VMAF_MODEL_FLAG_DISABLE_TRANSFORM 

Function Documentation

◆ vmaf_model_collection_destroy()

void vmaf_model_collection_destroy ( VmafModelCollection * model_collection)

◆ vmaf_model_collection_feature_overload()

int vmaf_model_collection_feature_overload ( VmafModel * model,
VmafModelCollection ** model_collection,
const char * feature_name,
VmafFeatureDictionary * opts_dict )

◆ vmaf_model_collection_load()

int vmaf_model_collection_load ( VmafModel ** model,
VmafModelCollection ** model_collection,
VmafModelConfig * cfg,
const char * version )

◆ 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_destroy()

void vmaf_model_destroy ( VmafModel * model)

◆ 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_load_from_path()

int vmaf_model_load_from_path ( VmafModel ** model,
VmafModelConfig * cfg,
const char * path )