summaryrefslogtreecommitdiff
path: root/libavfilter/vif.h
diff options
context:
space:
mode:
authorAshish Singh <ashk43712@gmail.com>2017-07-29 14:16:29 +0530
committerPaul B Mahol <onemda@gmail.com>2021-02-16 15:00:50 +0100
commit38aea9b0416f574757a56591b8a6f305cbc659ad (patch)
tree6c9d62ddeb3ce47d6ae05088d4e6e333b1eaeb7b /libavfilter/vif.h
parent8d209eb33c3ae900e913c6645603dfde435c59c1 (diff)
downloadffmpeg-38aea9b0416f574757a56591b8a6f305cbc659ad.tar.gz
avfilter: add vif filter
This is Visual Information Fidelity (VIF) filter and one of the component filters of VMAF. It outputs the average VIF score over all frames. Signed-off-by: Ashish Singh <ashk43712@gmail.com>
Diffstat (limited to 'libavfilter/vif.h')
-rw-r--r--libavfilter/vif.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/libavfilter/vif.h b/libavfilter/vif.h
new file mode 100644
index 0000000000..040c709c6a
--- /dev/null
+++ b/libavfilter/vif.h
@@ -0,0 +1,30 @@
+/*
+ * Copyright (c) 2017 Ronald S. Bultje <rsbultje@gmail.com>
+ * Copyright (c) 2017 Ashish Pratap Singh <ashk43712@gmail.com>
+ *
+ * This file is part of FFmpeg.
+ *
+ * FFmpeg is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * FFmpeg is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with FFmpeg; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#ifndef AVFILTER_VIF_H
+#define AVFILTER_VIF_H
+
+int ff_compute_vif2(AVFilterContext *ctx,
+ const float *ref, const float *main, int w, int h,
+ int ref_stride, int main_stride, float *score,
+ float *data_buf[13], float **temp, int nb_threads);
+
+#endif /* AVFILTER_VIF_H */