summaryrefslogtreecommitdiff
path: root/media/libaom/src/aom_dsp/vmaf.h
diff options
context:
space:
mode:
Diffstat (limited to 'media/libaom/src/aom_dsp/vmaf.h')
-rw-r--r--media/libaom/src/aom_dsp/vmaf.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/media/libaom/src/aom_dsp/vmaf.h b/media/libaom/src/aom_dsp/vmaf.h
new file mode 100644
index 0000000000..fb8bf4613a
--- /dev/null
+++ b/media/libaom/src/aom_dsp/vmaf.h
@@ -0,0 +1,27 @@
+/*
+ * Copyright (c) 2019, Alliance for Open Media. All rights reserved
+ *
+ * This source code is subject to the terms of the BSD 2 Clause License and
+ * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
+ * was not distributed with this source code in the LICENSE file, you can
+ * obtain it at www.aomedia.org/license/software. If the Alliance for Open
+ * Media Patent License 1.0 was not distributed with this source code in the
+ * PATENTS file, you can obtain it at www.aomedia.org/license/patent.
+ */
+
+#ifndef AOM_AOM_DSP_VMAF_H_
+#define AOM_AOM_DSP_VMAF_H_
+
+#include "aom_scale/yv12config.h"
+
+void aom_calc_vmaf(const char *model_path, const YV12_BUFFER_CONFIG *source,
+ const YV12_BUFFER_CONFIG *distorted, int bit_depth,
+ double *vmaf);
+
+void aom_calc_vmaf_multi_frame(
+ void *user_data, const char *model_path,
+ int (*read_frame)(float *ref_data, float *main_data, float *temp_data,
+ int stride_byte, void *user_data),
+ int frame_width, int frame_height, int bit_depth, double *vmaf);
+
+#endif // AOM_AOM_DSP_VMAF_H_