[FFmpeg-cvslog] avfilter/avf_avectorscope: add ultra fast path when slow fading is disabled
Paul B Mahol
git at videolan.org
Sun Sep 19 13:35:36 EEST 2021
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sun Sep 19 12:31:14 2021 +0200| [4f7f046683a107b060ca61237393d1e618d10882] | committer: Paul B Mahol
avfilter/avf_avectorscope: add ultra fast path when slow fading is disabled
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4f7f046683a107b060ca61237393d1e618d10882
---
libavfilter/avf_avectorscope.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/libavfilter/avf_avectorscope.c b/libavfilter/avf_avectorscope.c
index f3001e99a3..81a43a69c4 100644
--- a/libavfilter/avf_avectorscope.c
+++ b/libavfilter/avf_avectorscope.c
@@ -165,6 +165,12 @@ static void fade(AudioVectorScopeContext *s)
const int linesize = s->outpicref->linesize[0];
int i, j;
+ if (s->fade[0] = 255 && s->fade[1] == 255 && s->fade[2] == 255) {
+ for (int i = 0; i < s->outpicref->height; i++)
+ memset(s->outpicref->data[0] + i * s->outpicref->linesize[0], 0, s->outpicref->width * 4);
+ return;
+ }
+
if (s->fade[0] || s->fade[1] || s->fade[2]) {
uint8_t *d = s->outpicref->data[0];
for (i = 0; i < s->h; i++) {
More information about the ffmpeg-cvslog
mailing list