summaryrefslogtreecommitdiff
path: root/libavfilter/vf_vif.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-08-06 17:38:22 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-08-08 17:44:57 +0200
commit465ddcb6009a79654769d36c840591cbcc65da10 (patch)
treea4fd52a4e25cc12e7e02347b20115c4fdd3b1fd0 /libavfilter/vf_vif.c
parent71eb8f8fa9439cc48a29549ec15a0df1d5eed5ca (diff)
downloadffmpeg-465ddcb6009a79654769d36c840591cbcc65da10.tar.gz
avfilter/vf_vif: Make ff_compute_vif2 static
Only used here; the vif.h header can then be removed. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavfilter/vf_vif.c')
-rw-r--r--libavfilter/vf_vif.c19
1 files changed, 8 insertions, 11 deletions
diff --git a/libavfilter/vf_vif.c b/libavfilter/vf_vif.c
index bb949649e4..c21bd40f44 100644
--- a/libavfilter/vf_vif.c
+++ b/libavfilter/vf_vif.c
@@ -35,7 +35,6 @@
#include "drawutils.h"
#include "formats.h"
#include "internal.h"
-#include "vif.h"
#include "video.h"
#define NUM_DATA_BUFS 13
@@ -285,11 +284,11 @@ static int vif_filter1d(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
return 0;
}
-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[NUM_DATA_BUFS], float **temp,
- int gnb_threads)
+static int compute_vif2(AVFilterContext *ctx,
+ const float *ref, const float *main, int w, int h,
+ int ref_stride, int main_stride, float *score,
+ float *const data_buf[NUM_DATA_BUFS], float **temp,
+ int gnb_threads)
{
ThreadData td;
float *ref_scale = data_buf[0];
@@ -450,11 +449,9 @@ static AVFrame *do_vif(AVFilterContext *ctx, AVFrame *main, const AVFrame *ref)
offset_16bit(s, ref, main, s->width);
}
- ff_compute_vif2(ctx,
- s->ref_data, s->main_data, s->width,
- s->height, s->width, s->width,
- score, s->data_buf, s->temp,
- s->nb_threads);
+ compute_vif2(ctx, s->ref_data, s->main_data,
+ s->width, s->height, s->width, s->width,
+ score, s->data_buf, s->temp, s->nb_threads);
set_meta(metadata, "lavfi.vif.scale.0", score[0]);
set_meta(metadata, "lavfi.vif.scale.1", score[1]);