1 /**
2  *
3  *  Copyright 2016-2020 Netflix, Inc.
4  *
5  *     Licensed under the BSD+Patent License (the "License");
6  *     you may not use this file except in compliance with the License.
7  *     You may obtain a copy of the License at
8  *
9  *         https://opensource.org/licenses/BSDplusPatent
10  *
11  *     Unless required by applicable law or agreed to in writing, software
12  *     distributed under the License is distributed on an "AS IS" BASIS,
13  *     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  *     See the License for the specific language governing permissions and
15  *     limitations under the License.
16  *
17  */
18 
19 #ifndef __VMAF_JSON_MODEL_H__
20 #define __VMAF_JSON_MODEL_H__
21 
22 #include "model.h"
23 
24 int vmaf_read_json_model_from_buffer(VmafModel **model, VmafModelConfig *cfg,
25                                      const char *data, const int data_len);
26 
27 int vmaf_read_json_model_collection_from_buffer(VmafModel **model,
28                                          VmafModelCollection **model_collection,
29                                          VmafModelConfig *cfg,
30                                          const char *data, const int data_len);
31 
32 int vmaf_read_json_model_from_path(VmafModel **model, VmafModelConfig *cfg,
33                                    const char *path);
34 
35 int vmaf_read_json_model_collection_from_path(VmafModel **model,
36                                               VmafModelCollection **model_collection,
37                                               VmafModelConfig *cfg,
38                                               const char *path);
39 
40 #endif /* __VMAF_JSON_MODEL_H__ */
41