1 /* 2 * Copyright (c) 2019, Alliance for Open Media. All rights reserved 3 * 4 * This source code is subject to the terms of the BSD 2 Clause License and 5 * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License 6 * was not distributed with this source code in the LICENSE file, you can 7 * obtain it at www.aomedia.org/license/software. If the Alliance for Open 8 * Media Patent License 1.0 was not distributed with this source code in the 9 * PATENTS file, you can obtain it at www.aomedia.org/license/patent. 10 */ 11 12 #ifndef AOM_AOM_DSP_VMAF_H_ 13 #define AOM_AOM_DSP_VMAF_H_ 14 15 #include "aom_scale/yv12config.h" 16 17 void aom_calc_vmaf(const char *model_path, const YV12_BUFFER_CONFIG *source, 18 const YV12_BUFFER_CONFIG *distorted, int bit_depth, 19 double *vmaf); 20 21 void aom_calc_vmaf_multi_frame( 22 void *user_data, const char *model_path, 23 int (*read_frame)(float *ref_data, float *main_data, float *temp_data, 24 int stride_byte, void *user_data), 25 int frame_width, int frame_height, int bit_depth, double *vmaf); 26 27 #endif // AOM_AOM_DSP_VMAF_H_ 28