aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2023-08-31 20:24:26 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2023-09-04 11:04:45 +0200
commitc59b082e20a1b3acb68c25913996c8781f7a07b2 (patch)
tree46d4e2b8f3ba53fa3c707b7fbf48a0eccc6403a6 /libavfilter
parent8b7a3c6f103c6367743c2ba5e6d958ab346ef2cd (diff)
downloadffmpeg-c59b082e20a1b3acb68c25913996c8781f7a07b2.tar.gz
avfilter: Remove unnecessary emms_c for ff_scene_sad_get_fn
ff_scene_sad_get_fn() does not return functions that use MMX at all. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/f_select.c1
-rw-r--r--libavfilter/vf_framerate.c1
-rw-r--r--libavfilter/vf_freezedetect.c1
-rw-r--r--libavfilter/vf_minterpolate.c1
-rw-r--r--libavfilter/vf_scdet.c1
5 files changed, 0 insertions, 5 deletions
diff --git a/libavfilter/f_select.c b/libavfilter/f_select.c
index 49fcdc31ff..c9e216f51c 100644
--- a/libavfilter/f_select.c
+++ b/libavfilter/f_select.c
@@ -294,7 +294,6 @@ static double get_scene_score(AVFilterContext *ctx, AVFrame *frame)
count += select->width[plane] * select->height[plane];
}
- emms_c();
mafd = (double)sad / count / (1ULL << (select->bitdepth - 8));
diff = fabs(mafd - select->prev_mafd);
ret = av_clipf(FFMIN(mafd, diff) / 100., 0, 1);
diff --git a/libavfilter/vf_framerate.c b/libavfilter/vf_framerate.c
index 6ef5dca27a..6d448be74c 100644
--- a/libavfilter/vf_framerate.c
+++ b/libavfilter/vf_framerate.c
@@ -76,7 +76,6 @@ static double get_scene_score(AVFilterContext *ctx, AVFrame *crnt, AVFrame *next
ff_dlog(ctx, "get_scene_score() process\n");
s->sad(crnt->data[0], crnt->linesize[0], next->data[0], next->linesize[0], crnt->width, crnt->height, &sad);
- emms_c();
mafd = (double)sad * 100.0 / (crnt->width * crnt->height) / (1 << s->bitdepth);
diff = fabs(mafd - s->prev_mafd);
ret = av_clipf(FFMIN(mafd, diff), 0, 100.0);
diff --git a/libavfilter/vf_freezedetect.c b/libavfilter/vf_freezedetect.c
index fb4e59b127..18d392d9ae 100644
--- a/libavfilter/vf_freezedetect.c
+++ b/libavfilter/vf_freezedetect.c
@@ -131,7 +131,6 @@ static int is_frozen(FreezeDetectContext *s, AVFrame *reference, AVFrame *frame)
count += s->width[plane] * s->height[plane];
}
}
- emms_c();
mafd = (double)sad / count / (1ULL << s->bitdepth);
return (mafd <= s->noise);
}
diff --git a/libavfilter/vf_minterpolate.c b/libavfilter/vf_minterpolate.c
index 610ac6b1bb..9920210ece 100644
--- a/libavfilter/vf_minterpolate.c
+++ b/libavfilter/vf_minterpolate.c
@@ -825,7 +825,6 @@ static int detect_scene_change(AVFilterContext *ctx)
double ret = 0, mafd, diff;
uint64_t sad;
mi_ctx->sad(p1, linesize1, p2, linesize2, input->w, input->h, &sad);
- emms_c();
mafd = (double) sad * 100.0 / (input->h * input->w) / (1 << mi_ctx->bitdepth);
diff = fabs(mafd - mi_ctx->prev_mafd);
ret = av_clipf(FFMIN(mafd, diff), 0, 100.0);
diff --git a/libavfilter/vf_scdet.c b/libavfilter/vf_scdet.c
index 6de84a43a0..15399cfebf 100644
--- a/libavfilter/vf_scdet.c
+++ b/libavfilter/vf_scdet.c
@@ -126,7 +126,6 @@ static double get_scene_score(AVFilterContext *ctx, AVFrame *frame)
count += s->width[plane] * s->height[plane];
}
- emms_c();
mafd = (double)sad * 100. / count / (1ULL << s->bitdepth);
diff = fabs(mafd - s->prev_mafd);
ret = av_clipf(FFMIN(mafd, diff), 0, 100.);