Re: [FFmpeg-devel] [PATCH] avfilter: add zoneplate video source filter

2023-05-10 Thread Paul B Mahol
On Wed, May 10, 2023 at 2:50 PM Michael Koch wrote: > Well, I can't see how it looks now, but the sequence white - gray - > white (which is impossible in a sine wave) should no longer be there, > because cos(x) = cos(-x). > This is not caused by sin() but because video is full range yuv but

Re: [FFmpeg-devel] [PATCH] avfilter: add zoneplate video source filter

2023-05-10 Thread Michael Koch
Well, I can't see how it looks now, but the sequence white - gray - white (which is impossible in a sine wave) should no longer be there, because cos(x) = cos(-x). ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org

Re: [FFmpeg-devel] [PATCH] avfilter: add zoneplate video source filter

2023-05-10 Thread Paul B Mahol
On Wed, May 10, 2023 at 2:32 PM Michael Koch wrote: > ffmpeg -f lavfi -i zoneplate=kx2=320:ky2=240,format=gray -frames 1 -y > out.png > > When you draw a line through the center, you have > black - gray - white - gray - white - gray -black > which means the sine wave changes its sign in the

Re: [FFmpeg-devel] [PATCH] avfilter: add zoneplate video source filter

2023-05-10 Thread Michael Koch
ffmpeg -f lavfi -i zoneplate=kx2=320:ky2=240,format=gray -frames 1 -y out.png When you draw a line through the center, you have black - gray - white - gray - white - gray -black which means the sine wave changes its sign in the center. That's why zoneplates are normally calculated with cos()

Re: [FFmpeg-devel] [PATCH] avfilter: add zoneplate video source filter

2023-05-10 Thread Paul B Mahol
On Wed, May 10, 2023 at 1:58 PM Michael Koch wrote: > Isn't it better to use cos() instead of sin()? With sin() there is a > discontinuity in the center. > Where you see discontinuity in the filter output? ___ ffmpeg-devel mailing list

Re: [FFmpeg-devel] [PATCH] avfilter: add zoneplate video source filter

2023-05-10 Thread Michael Koch
Isn't it better to use cos() instead of sin()? With sin() there is a discontinuity in the center. ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email

Re: [FFmpeg-devel] [PATCH] avfilter: add zoneplate video source filter

2023-05-08 Thread Stefano Sabatini
On date Monday 2023-05-08 01:30:34 +0200, Paul B Mahol wrote: > New version, faster and with slice threading and docs. > From 8b9ab6e3401d69f115b5d331fec73fd8c01ea1bd Mon Sep 17 00:00:00 2001 > From: Paul B Mahol > Date: Sat, 6 May 2023 22:52:47 +0200 > Subject: [PATCH] avfilter: add zoneplate

Re: [FFmpeg-devel] [PATCH] avfilter: add zoneplate video source filter

2023-05-07 Thread Paul B Mahol
New version, faster and with slice threading and docs. From 8b9ab6e3401d69f115b5d331fec73fd8c01ea1bd Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Sat, 6 May 2023 22:52:47 +0200 Subject: [PATCH] avfilter: add zoneplate video test source Signed-off-by: Paul B Mahol --- doc/filters.texi

Re: [FFmpeg-devel] [PATCH] avfilter: add zoneplate video source filter

2023-05-07 Thread Stefano Sabatini
On date Sunday 2023-05-07 18:04:37 +0200, Paul B Mahol wrote: > Attached. > From 7b0a8586adc0a142f0b7afcdbdf36ce526f4cd34 Mon Sep 17 00:00:00 2001 > From: Paul B Mahol > Date: Sat, 6 May 2023 22:52:47 +0200 > Subject: [PATCH] avfilter: add zoneplate video test source > > Signed-off-by: Paul B

[FFmpeg-devel] [PATCH] avfilter: add zoneplate video source filter

2023-05-07 Thread Paul B Mahol
Attached. From 7b0a8586adc0a142f0b7afcdbdf36ce526f4cd34 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Sat, 6 May 2023 22:52:47 +0200 Subject: [PATCH] avfilter: add zoneplate video test source Signed-off-by: Paul B Mahol --- libavfilter/Makefile | 1 + libavfilter/allfilters.c |

[FFmpeg-devel] [PATCH] avfilter: add zoneplate video source filter

2016-03-25 Thread Paul B Mahol
Hi, patch attached. From 8429137e301ec15a8b1f3684ce2d9d6533ec95f2 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Fri, 25 Mar 2016 20:40:29 +0100 Subject: [PATCH] avfilter: add zoneplate video source filter Signed-off-by: Paul B Mahol ---