From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.ffmpeg.org (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id E74144CDD0 for ; Wed, 31 Dec 2025 02:06:58 +0000 (UTC) Authentication-Results: ffbox; dkim=fail (body hash mismatch (got b'sWj7dbb4udys7iYZ9NaiajecLYWxxdQvMbgIJJqksDw=', expected b'1jRe2yhWYikF95BzNMBQNJ/es3qS3KcsRDFRctUm5kM=')) header.d=niedermayer.cc header.a=rsa-sha256 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ffmpeg.org; i=@ffmpeg.org; q=dns/txt; s=mail; t=1767146809; h=date : to : message-id : references : mime-version : in-reply-to : reply-to : subject : list-id : list-archive : list-archive : list-help : list-owner : list-post : list-subscribe : list-unsubscribe : from : cc : content-type : from; bh=bL4VTajYqAEhOwD2vJ3LzInBylj3Rw2ywukVpKikMgY=; b=eNWLFL9FBA9NTtIC2wggPmZia40qDdzLUuHV4OPFOA6i8jM/JHO5cwt/GQnqQzyXklq/g hHv2G6T1Ki/1wkBKOzfJ1FSEpb9qSJAujL/DDxeKX+ryzG+v8EyTy15yU8Q1nwdxqhy3Fzd IoBlsNTdaSTCHF7u3dcgx94ndQuzZXbtYCTwgus5MyfE6I68XPBTNVnXMPj02VbeIpTiqZH JPuLT0KVtMkNmtt9wZplZAwEhWMHSb1D+2auosI/8tmYsh/WI+ysI5QqwbVFdXfm1/JFRpK ebbumwsKaz+LkgcuzxsmlWoSdqHg4BwfikkVY0sLI30MTGnU1PazOsW+LVkA== Received: from [172.20.0.4] (unknown [172.20.0.4]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id A9297690C61; Wed, 31 Dec 2025 04:06:49 +0200 (EET) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=ffmpeg.org; s=arc; t=1767146792; b=JMKsVxr+ls9CNhE0vSUxuLc0v2r2feyx3QXmTaTusf67Jb/K6Yok7lDG/cioNvZoH2tN2 XFYfIQJGYwnR3VkWbY2SsYlALmMPUL3BICT25NnqZ0Chg0lLBe9KM6fEvb7vJ3rkResk+zF PM6vlaDLnVsS/uWSzsNzIlGr3uezmuURoNJhu1tgVMP0nW1/OKC1Get+fsQaPi1fn7u5H4I 8mFC7QIQFzVKuhkFDwg+s/9iX2yh5qHAYSxVZe4zbWx8Q5L+Bd/yx/uhdL68nf1PeWthB6r M6lECklhki58hfPw0S7Qf18bDaqLfZt2S9RvnyTIR55+ZtowOFsXrHpzsLXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=ffmpeg.org; s=arc; t=1767146792; h=from : sender : reply-to : subject : date : message-id : to : cc : mime-version : content-type : content-transfer-encoding : content-id : content-description : resent-date : resent-from : resent-sender : resent-to : resent-cc : resent-message-id : in-reply-to : references : list-id : list-help : list-unsubscribe : list-subscribe : list-post : list-owner : list-archive; bh=sWj7dbb4udys7iYZ9NaiajecLYWxxdQvMbgIJJqksDw=; b=QeVlpiER2w25B45wKHVTaAO9xmw07xOXnfOhUQjSYbOL/ckAimOJuxyLHTta4CMW5WMhz fMZHl1KQ+q7uHwvczTcWmsaI/pDtaTlDdqqmS5ktriQq/EmS3JZlFKJA17vNCQItB1IaRN9 oWDnGEyQNTpd+GzwgTqJUQ9GxIj6Wm7qDE9k6Ije0QCL5zBaLn94xZzT5dMCCBojmBKDNlq LMaoOv32qC7UGMbE4Nb0U1MiH0u8Git12/D1CPzixhlfcYiLa//LRhsKJMDvUQBLDBziTF6 HwZA1EPjhv+10i6xs/vd8IzWtahuaxbzDvHFc79gH6hI5oPH6Rt3zTMLZB/Q== ARC-Authentication-Results: i=1; ffmpeg.org; dkim=pass header.d=niedermayer.cc; arc=none; dmarc=none Authentication-Results: ffmpeg.org; dkim=pass header.d=niedermayer.cc; arc=none (Message is not ARC signed); dmarc=none Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [217.70.183.199]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id 1316B690B21 for ; Wed, 31 Dec 2025 04:06:20 +0200 (EET) Received: by mail.gandi.net (Postfix) with ESMTPSA id 3757C439A3 for ; Wed, 31 Dec 2025 02:06:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1767146779; 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=1jRe2yhWYikF95BzNMBQNJ/es3qS3KcsRDFRctUm5kM=; b=TkFtQzudyEA1Y4DKKsACfWBsB6lLpnQFOfZ7cvjfNzqxD1B8memxLR4KwM79iwzdwMF6pz VrzgNQ4O2SJHfXuLf/nT/9Q++E3l2gBl3RxqCrtabv6XIwKAJNIdw1GnHC6tmMAaouq096 KMknVjraCh8bJIb6IkA4oh9AAju1bSrKr+UHl8qsVZIDkp0dpS4MiSQcwDCsd7Fblvw0HP Ow1cosPY6YjCmO+ZPJJuKlNkVXUVZ+8AyjCgF82OODIkZ0y3HlUn69wDUhOAmlB2FlGKZ+ kV0OHLyBobr1A3VJc3BFxAuad8A+2lyR21+/VFxwN1xfTBvk5DtjPF6XLAHZxA== Date: Wed, 31 Dec 2025 03:06:18 +0100 To: FFmpeg development discussions and patches Message-ID: References: <20251230194223.11867-1-imraja729@gmail.com> MIME-Version: 1.0 In-Reply-To: <20251230194223.11867-1-imraja729@gmail.com> X-GND-Sasl: michael@niedermayer.cc X-GND-Score: -85 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdekudeiiecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfitefpfffkpdcuggftfghnshhusghstghrihgsvgenuceurghilhhouhhtmecufedtudenucesvcftvggtihhpihgvnhhtshculddquddttddmnegfrhhlucfvnfffucdludehmdenucfjughrpeffhffvuffkfhggtggujgesghdtreertddtvdenucfhrhhomhepofhitghhrggvlhcupfhivgguvghrmhgrhigvrhcuoehmihgthhgrvghlsehnihgvuggvrhhmrgihvghrrdgttgeqnecuggftrfgrthhtvghrnhepieegkedtjeduffejhfetgeejtdegteetgfegtdfhjefgvefhteegkeejtddvhfevnecukfhppeeguddrieeirdeiiedrhedtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepgedurdeiiedrieeirdehtddphhgvlhhopehlohgtrghlhhhoshhtpdhmrghilhhfrhhomhepmhhitghhrggvlhesnhhivgguvghrmhgrhigvrhdrtggtpdhqihgupeefjeehjeevgeefleetfedpmhhouggvpehsmhhtphhouhhtpdhnsggprhgtphhtthhopedupdhrtghpthhtohepfhhfmhhpvghgqdguvghvvghlsehffhhmphgvghdrohhrgh X-GND-State: clean Message-ID-Hash: NNVERTQ2HQRT7CPBHZP3HN2C2EFBX6WW X-Message-ID-Hash: NNVERTQ2HQRT7CPBHZP3HN2C2EFBX6WW X-MailFrom: SRS0=4D86=7F=niedermayer.cc=michael@ffmpeg.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; header-match-ffmpeg-devel.ffmpeg.org-0; header-match-ffmpeg-devel.ffmpeg.org-1; header-match-ffmpeg-devel.ffmpeg.org-2; header-match-ffmpeg-devel.ffmpeg.org-3; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list Reply-To: FFmpeg development discussions and patches Subject: [FFmpeg-devel] Re: [PATCH v7] avfilter/vf_blackframe: add slice threading List-Id: FFmpeg development discussions and patches Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Michael Niedermayer via ffmpeg-devel Cc: Michael Niedermayer Content-Type: multipart/mixed; boundary="===============0986923943697168716==" Archived-At: List-Archive: List-Post: --===============0986923943697168716== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="RK+pdsD0MIrwvIgb" Content-Disposition: inline --RK+pdsD0MIrwvIgb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Dec 31, 2025 at 01:10:18AM +0530, Raja Rathour via ffmpeg-devel wro= te: > v7: Squashed all changes into a single clean commit rebased on master. >=20 > Thank you for the guidance on the patch structure and history.=20 > This version is a standalone replacement of the original filter logic and= =20 > incorporates all requested technical improvements: >=20 > - Renamed the results array to 'nb_black_pixels_per_slice' for clarity. > - Removed redundant comments and safety checks. > - Fixed the patchset structure to ensure it applies cleanly as a single u= nit. >=20 > Thank you, > Raja Rathour >=20 > Signed-off-by: Raja Rathour > --- > libavfilter/vf_blackframe.c | 79 ++++++++++++++++++++++++++++++------- > 1 file changed, 65 insertions(+), 14 deletions(-) >=20 > diff --git a/libavfilter/vf_blackframe.c b/libavfilter/vf_blackframe.c > index f0aa53e133..fb531b8a4c 100644 > --- a/libavfilter/vf_blackframe.c > +++ b/libavfilter/vf_blackframe.c > @@ -32,19 +32,29 @@ > =20 > #include "libavutil/internal.h" > #include "libavutil/opt.h" > +#include "libavutil/mem.h" > #include "avfilter.h" > #include "filters.h" > #include "video.h" > =20 > typedef struct BlackFrameContext { > const AVClass *class; > - int bamount; ///< black amount > - int bthresh; ///< black threshold > - unsigned int frame; ///< frame number > - unsigned int nblack; ///< number of black pixels counted so far > - unsigned int last_keyframe; ///< frame number of the last received k= ey-frame > + int bamount; > + int bthresh; > + unsigned int frame; > + unsigned int nblack; > + unsigned int last_keyframe; > } BlackFrameContext; unrelated to threads > =20 > +typedef struct ThreadData { > + const uint8_t *data; > + int linesize; > + int bthresh; > + int width; > + int height; // Added height for cleaner slice math ///< [...] --=20 Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB I do not agree with what you have to say, but I'll defend to the death your right to say it. -- Voltaire --RK+pdsD0MIrwvIgb Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABEKAB0WIQSf8hKLFH72cwut8TNhHseHBAsPqwUCaVSFFgAKCRBhHseHBAsP qxyEAJ9YHophCQfz1wJ0ITi4Ka4WMISMgACgmNF3Ho8ob6GrkEFB874ZsR0GHc4= =BKXv -----END PGP SIGNATURE----- --RK+pdsD0MIrwvIgb-- --===============0986923943697168716== 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 To unsubscribe send an email to ffmpeg-devel-leave@ffmpeg.org --===============0986923943697168716==--