You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
vmaf/mark_abi_c.patch

31 lines
1.1 KiB

From ea25229433f7f8ff087c63db9509156c01a8e291 Mon Sep 17 00:00:00 2001
From: Jan Beich <jbeich@FreeBSD.org>
Date: Sat, 29 Feb 2020 15:12:09 +0000
Subject: [PATCH] libvmaf: mark ABI as C after 82a86e040371
---
libvmaf/include/libvmaf/libvmaf.h | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/libvmaf/include/libvmaf/libvmaf.h b/libvmaf/include/libvmaf/libvmaf.h
index ef32e069..2fbb3599 100644
--- a/libvmaf/include/libvmaf/libvmaf.h
+++ b/libvmaf/include/libvmaf/libvmaf.h
@@ -19,8 +19,16 @@
#ifndef LIBVMAF_H_
#define LIBVMAF_H_
+#ifdef __cplusplus
+extern "C" {
+#endif
+
int compute_vmaf(double* vmaf_score, char* fmt, int width, int height, int (*read_frame)(float *ref_data, float *main_data, float *temp_data, int stride_byte, void *user_data),
void *user_data, char *model_path, char *log_path, char *log_fmt, int disable_clip, int disable_avx, int enable_transform, int phone_model, int do_psnr,
int do_ssim, int do_ms_ssim, char *pool_method, int n_thread, int n_subsample, int enable_conf_interval);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* _LIBVMAF_H */