From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id B9F0A4C345 for ; Thu, 6 Feb 2025 17:13:08 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 7E70B68BCB3; Thu, 6 Feb 2025 19:13:06 +0200 (EET) Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [217.70.183.196]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 57D4568B7AB for ; Thu, 6 Feb 2025 19:12:59 +0200 (EET) Received: by mail.gandi.net (Postfix) with ESMTPSA id AAD584441D for ; Thu, 6 Feb 2025 17:12:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1738861978; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=21uZkMHGowBXaF/N/MkRP3B4GiWcVTuRO/6c8f3yiTQ=; b=pz4rBl2/LyxA/pQSlHxIUrf3eszwGAA0yw9PrK3B2r2moaiSlSC0PfD87DletMiv8TvGXe JANvVLfJS8OYSA/+WfVl41l2UxCQbXJ/sQD14/P6T0iyiGxJa6oFdKpqvW91Nh5mr29tHz mPuoAeBaNy/Qwe9AOYgykAFeqYKlCrtfDHQrOpLJ18yxs+ncH6R4dS0KmWQNZ0lzwan7UL UkRfvd2Qa9U/273oVPAwZSWwi+ecBJrhM2Ogel49nOn2jPGzI49X0pKj2K98/WCZ34DxxB PDD+Imh06VQyLLvDEhSChAvlY88YXy9dutvSaNtALy8WGpXI1KKPvuUaZ8StDw== Date: Thu, 6 Feb 2025 18:12:57 +0100 From: Michael Niedermayer To: FFmpeg development discussions and patches Message-ID: <20250206171257.GX4991@pb2> References: <20250204195400.4117-1-j.habenicht@gmx.de> <20250204195400.4117-2-j.habenicht@gmx.de> MIME-Version: 1.0 In-Reply-To: <20250204195400.4117-2-j.habenicht@gmx.de> X-GND-State: clean X-GND-Score: -90 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddvieelhecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfitefpfffkpdcuggftfghnshhusghstghrihgsvgenuceurghilhhouhhtmecufedtudenucesvcftvggtihhpihgvnhhtshculddquddttddmnegfrhhlucfvnfffucdluddtmdenucfjughrpeffhffvuffkfhggtggujgesghdtreertddtudenucfhrhhomhepofhitghhrggvlhcupfhivgguvghrmhgrhigvrhcuoehmihgthhgrvghlsehnihgvuggvrhhmrgihvghrrdgttgeqnecuggftrfgrthhtvghrnhephfeivdfhudevgfdvjeethfethfffjeevueehjeeigffhjefgiedtueefhedttefhnecuffhomhgrihhnpeifihhkihhpvgguihgrrdhorhhgnecukfhppeeguddrieeirdeijedruddufeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeeguddrieeirdeijedruddufedphhgvlhhopehlohgtrghlhhhoshhtpdhmrghilhhfrhhomhepmhhitghhrggvlhesnhhivgguvghrmhgrhigvrhdrtggtpdhnsggprhgtphhtthhopedupdhrtghpthhtohepfhhfmhhpvghgqdguvghvvghlsehffhhmphgvghdrohhrgh X-GND-Sasl: michael@niedermayer.cc Subject: Re: [FFmpeg-devel] [PATCH 1/3] avfilter/delogo: add parameter to switch on circular delogo X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Content-Type: multipart/mixed; boundary="===============4732305347451825227==" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --===============4732305347451825227== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="JQVgSLWF9I9XTcql" Content-Disposition: inline --JQVgSLWF9I9XTcql Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi J=F6rg On Tue, Feb 04, 2025 at 08:53:58PM +0100, J=F6rg Habenicht via ffmpeg-devel= wrote: > Add a parameter (boolean) r to switch the area from > rectangular (r=3D0) to circular(r=3D1) delogo. >=20 > Signed-off-by: J=F6rg Habenicht > --- > libavfilter/vf_delogo.c | 7 ++++--- > 1 file changed, 4 insertions(+), 3 deletions(-) >=20 > diff --git a/libavfilter/vf_delogo.c b/libavfilter/vf_delogo.c > index bfbf8e6f4c..7641c3b483 100644 > --- a/libavfilter/vf_delogo.c > +++ b/libavfilter/vf_delogo.c > @@ -195,7 +195,7 @@ static void apply_delogo(uint8_t *dst, int dst_linesi= ze, >=20 > typedef struct DelogoContext { > const AVClass *class; > - int x, y, w, h, band, show; > + int x, y, w, h, band, show, round; > char *x_expr, *y_expr, *w_expr, *h_expr; > AVExpr *x_pexpr, *y_pexpr, *w_pexpr, *h_pexpr; > double var_values[VAR_VARS_NB]; > @@ -209,6 +209,7 @@ static const AVOption delogo_options[]=3D { > { "y", "set logo y position", OFFSET(y_expr), AV_OPT_TYP= E_STRING, { .str =3D "-1" }, 0, 0, FLAGS }, > { "w", "set logo width", OFFSET(w_expr), AV_OPT_TYP= E_STRING, { .str =3D "-1" }, 0, 0, FLAGS }, > { "h", "set logo height", OFFSET(h_expr), AV_OPT_TYP= E_STRING, { .str =3D "-1" }, 0, 0, FLAGS }, > + { "r", "logo is round/ellipse", OFFSET(round), AV_OPT_TYP= E_BOOL, { .i64 =3D 0 }, 0, 1, FLAGS }, maybe a superellipse would be interresting https://en.wikipedia.org/wiki/Superellipse This would allow intermediates between a rectangle, elipse and rhombus I imagine this could cover more cases of logos either way teh 3 patches should be merged thx [...] --=20 Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB The smallest minority on earth is the individual. Those who deny=20 individual rights cannot claim to be defenders of minorities. - Ayn Rand --JQVgSLWF9I9XTcql Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABEKAB0WIQSf8hKLFH72cwut8TNhHseHBAsPqwUCZ6TtmQAKCRBhHseHBAsP q9IJAJ9ziYjBeoJYYBD0lUo+RHQUnTH7GACfbmh1dx++USyNiIn5Y6TdcQ9MqqE= =Bp5a -----END PGP SIGNATURE----- --JQVgSLWF9I9XTcql-- --===============4732305347451825227== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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". --===============4732305347451825227==--