From: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
To: ffmpeg-devel@ffmpeg.org
Cc: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Subject: [FFmpeg-devel] [PATCH 01/13] avfilter: Remove unnecessary emms_c for ff_scene_sad_get_fn
Date: Fri, 1 Sep 2023 00:20:18 +0200
Message-ID: <AS8P250MB0744AF0D34423E0BD48BF2438FE5A@AS8P250MB0744.EURP250.PROD.OUTLOOK.COM> (raw)
ff_scene_sad_get_fn() does not return functions that use
MMX at all.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
libavfilter/f_select.c | 1 -
libavfilter/vf_framerate.c | 1 -
libavfilter/vf_freezedetect.c | 1 -
libavfilter/vf_minterpolate.c | 1 -
libavfilter/vf_scdet.c | 1 -
5 files changed, 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.);
--
2.34.1
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
next reply other threads:[~2023-08-31 22:19 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-31 22:20 Andreas Rheinhardt [this message]
2023-08-31 22:22 ` [FFmpeg-devel] [PATCH 02/13] avfilter/vf_gblur: Remove unnecessary emms_c() Andreas Rheinhardt
2023-08-31 22:22 ` [FFmpeg-devel] [PATCH 03/13] avfilter/vf_colorspace: Remove redundant emms_c() Andreas Rheinhardt
2023-08-31 22:22 ` [FFmpeg-devel] [PATCH 04/13] avfilter/vf_bwdif: Remove obsolete emms_c() Andreas Rheinhardt
2023-08-31 22:22 ` [FFmpeg-devel] [PATCH 05/13] avfilter/afir_template: Remove unnecessary emms_c() Andreas Rheinhardt
2023-08-31 22:22 ` [FFmpeg-devel] [PATCH 06/13] avfilter/af_volume: " Andreas Rheinhardt
2023-08-31 22:22 ` [FFmpeg-devel] [PATCH 07/13] avfilter/af_sofalizer: " Andreas Rheinhardt
2023-08-31 22:22 ` [FFmpeg-devel] [PATCH 08/13] avfilter/af_headphone: " Andreas Rheinhardt
2023-08-31 22:22 ` [FFmpeg-devel] [PATCH 09/13] avfilter/af_amultiply: " Andreas Rheinhardt
2023-08-31 22:22 ` [FFmpeg-devel] [PATCH 10/13] avcodec/pcm: " Andreas Rheinhardt
2023-08-31 22:22 ` [FFmpeg-devel] [PATCH 11/13] tests/checkasm/hevc_*: Avoid using declare_func_emms where possible Andreas Rheinhardt
2023-08-31 22:22 ` [FFmpeg-devel] [PATCH 12/13] tests/checkasm/llvidencdsp: Don't use declare_func_emms Andreas Rheinhardt
2023-08-31 22:22 ` [FFmpeg-devel] [PATCH 13/13] tests/checkasm/sw_scale: Avoid declare_func_emms where possible Andreas Rheinhardt
2023-08-31 22:26 ` [FFmpeg-devel] [PATCH 14/14] avutil/internal: Don't auto-include emms.h Andreas Rheinhardt
2023-09-03 11:42 ` [FFmpeg-devel] [PATCH 01/13] avfilter: Remove unnecessary emms_c for ff_scene_sad_get_fn Andreas Rheinhardt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=AS8P250MB0744AF0D34423E0BD48BF2438FE5A@AS8P250MB0744.EURP250.PROD.OUTLOOK.COM \
--to=andreas.rheinhardt@outlook.com \
--cc=ffmpeg-devel@ffmpeg.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
ffmpegdev@gitmailbox.com
public-inbox-index ffmpegdev
Example config snippet for mirrors.
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git