[FFmpeg-devel] [PATCH v2 1/2] avfilter/delogo: changed type of parameter 'r' to float

2025-02-07 Thread Jörg Habenicht via ffmpeg-devel
Changed the type of the parameter 'r' from int to float. To be able to flex the area as superellipse from rounded rectangle ('r' > 2.0) to a concave shaped star ('r' < 1.0). Check the input value to be 'r' >= 0.0, else error exit Signed-off-by: Jörg Habenicht --- libavfilter/vf_delogo.c | 21 +++

[FFmpeg-devel] [PATCH v2 0/2] Extend delogo area to a superellipse

2025-02-07 Thread Jörg Habenicht via ffmpeg-devel
Version 2 of the pathset. One test "if (isnan(yf))" was missing. Corrected in this version with help from Michael I extended the ellipse area to a superellipse. The user parameter 'r' has changed to become a float value. Values 0 < r < 1 the area looks like a four edge star. Value r = 1 the area

[FFmpeg-devel] [PATCH v2 2/2] avfilter/delogo: change delogo round area to superellipse area

2025-02-07 Thread Jörg Habenicht via ffmpeg-devel
Changed the delogo area to a definition of a superellipse. See here https://en.wikipedia.org/wiki/Superellipse Changed the meaning of the parameter 'r'. 'r' = 0.0 resolves to a rectangular area. 0 <'r' < 1 resolves to a star with concave sides. 'r' = 1.0 resolves to a rhombus. 1 < 'r' < 2 resolves

[FFmpeg-devel] [PATCH 1/2] avfilter/delogo: changed type of parameter 'r' to float

2025-02-07 Thread Jörg Habenicht via ffmpeg-devel
Changed the type of the parameter 'r' from int to float. To be able to flex the area as superellipse from rounded rectangle ('r' > 2.0) to a concave shaped star ('r' < 1.0). Check the input value to be 'r' >= 0.0, else error exit Signed-off-by: Jörg Habenicht --- libavfilter/vf_delogo.c | 21 +++

[FFmpeg-devel] [PATCH 0/2] Extend delogo area to a superellipse

2025-02-07 Thread Jörg Habenicht via ffmpeg-devel
Dear list, with help from Michael I extended the ellipse area to a superellipse. The user parameter 'r' has changed to become a float value. Values 0 < r < 1 the area looks like a four edge star. Value r = 1 the area get a rhombus. Values 1 < r < 2 the area is a rhombus with concave sides. Value

[FFmpeg-devel] [PATCH 2/2] avfilter/delogo: change delogo round area to superellipse area

2025-02-07 Thread Jörg Habenicht via ffmpeg-devel
Changed the delogo area to a definition of a superellipse. See here https://en.wikipedia.org/wiki/Superellipse Changed the meaning of the parameter 'r'. 'r' = 0.0 resolves to a rectangular area. 0 <'r' < 1 resolves to a star with concave sides. 'r' = 1.0 resolves to a rhombus. 1 < 'r' < 2 resolves

Re: [FFmpeg-devel] [PATCH 1/3] avfilter/delogo: add parameter to switch on circular delogo

2025-02-06 Thread Jörg Habenicht via ffmpeg-devel
Hi Am 06.02.25 um 18:12 schrieb Michael Niedermayer: > Hi Jörg > > On Tue, Feb 04, 2025 at 08:53:58PM +0100, Jörg Habenicht via ffmpeg-devel > wrote: >> Add a parameter (boolean) r to switch the area from >> rectangular (r=0) to circular(r=1) delogo. >> [...] >&

[FFmpeg-devel] [PATCH 1/3] avfilter/delogo: add parameter to switch on circular delogo

2025-02-04 Thread Jörg Habenicht via ffmpeg-devel
Add a parameter (boolean) r to switch the area from rectangular (r=0) to circular(r=1) delogo. Signed-off-by: Jörg Habenicht --- libavfilter/vf_delogo.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libavfilter/vf_delogo.c b/libavfilter/vf_delogo.c index bfbf8e6f4c..

[FFmpeg-devel] [PATCH 3/3] avfilter/delogo: added the circular delogo algorithm

2025-02-04 Thread Jörg Habenicht via ffmpeg-devel
Use the corrected x,y,w,h values with boundaries and clipping to calculate the points inside the ellipse. Signed-off-by: Jörg Habenicht --- libavfilter/vf_delogo.c | 28 ++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/libavfilter/vf_delogo.c b/libavfil

[FFmpeg-devel] [PATCH 0/3] Patch to create a circular delogo area

2025-02-04 Thread Jörg Habenicht via ffmpeg-devel
Dear list, sorry for the previous posting. I noticed the lines got mangled. So here is a new try to get the patches right. Old text: I made a patch for the delogo filter. With this I can create a circular or elliptic zone to apply the delogo algorithm. The borders are defined with x,y,w,h parame

[FFmpeg-devel] [PATCH 2/3] avfilter/delogo: added circular delogo algorithm description

2025-02-04 Thread Jörg Habenicht via ffmpeg-devel
Added a description of the elliptic formed delogo algorithm. Placed it outside the doxygen function comment. Signed-off-by: Jörg Habenicht --- libavfilter/vf_delogo.c | 24 1 file changed, 24 insertions(+) diff --git a/libavfilter/vf_delogo.c b/libavfilter/vf_delogo.c i

[FFmpeg-devel] [PATCH 1/3] avfilter/delogo: add parameter to switch on circular delogo

2025-02-03 Thread Jörg Habenicht via ffmpeg-devel
Add a parameter (boolean) r to switch the area from rectangular (r=0) to circular(r=1) delogo. Signed-off-by: Jörg Habenicht --- libavfilter/vf_delogo.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libavfilter/vf_delogo.c b/libavfilter/vf_delogo.c index bfbf8e6f4c.

[FFmpeg-devel] [PATCH 2/3] avfilter/delogo: added circular delogo algorithm description

2025-02-03 Thread Jörg Habenicht via ffmpeg-devel
Added a description of the elliptic formed delogo algorithm. Placed it outside the doxygen function comment. Signed-off-by: Jörg Habenicht --- libavfilter/vf_delogo.c | 24 1 file changed, 24 insertions(+) diff --git a/libavfilter/vf_delogo.c b/libavfilter/vf_delogo.c

[FFmpeg-devel] [PATCH 3/3] avfilter/delogo: added the circular delogo algorithm

2025-02-03 Thread Jörg Habenicht via ffmpeg-devel
Use the corrected x,y,w,h values with boundaries and clipping to calculate the points inside the ellipse. Signed-off-by: Jörg Habenicht --- libavfilter/vf_delogo.c | 28 ++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/libavfilter/vf_delogo.c b/libavfi

[FFmpeg-devel] [PATCH 0/3] *** SUBJECT HERE ***

2025-02-03 Thread Jörg Habenicht via ffmpeg-devel
Dear list, I made a patch for the delogo filter. With this I can create a circular or elliptic zone to apply the delogo algorithm. The borders are defined with x,y,w,h parameter just like the rectangular area definition. To become circular I added an additional parameter 'r'=0/1 defaulting to '0'