From: Michael Niedermayer via ffmpeg-devel <ffmpeg-devel@ffmpeg.org>
To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org>
Cc: Michael Niedermayer <michael@niedermayer.cc>
Subject: [FFmpeg-devel] Re: [PATCH v7] avfilter/vf_blackframe: add slice threading
Date: Wed, 31 Dec 2025 03:06:18 +0100
Message-ID: <aVSFGlozc6N7szeQ@neo> (raw)
In-Reply-To: <20251230194223.11867-1-imraja729@gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 2152 bytes --]
On Wed, Dec 31, 2025 at 01:10:18AM +0530, Raja Rathour via ffmpeg-devel wrote:
> v7: Squashed all changes into a single clean commit rebased on master.
>
> Thank you for the guidance on the patch structure and history.
> This version is a standalone replacement of the original filter logic and
> incorporates all requested technical improvements:
>
> - 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 unit.
>
> Thank you,
> Raja Rathour
>
> Signed-off-by: Raja Rathour <imraja729@gmail.com>
> ---
> libavfilter/vf_blackframe.c | 79 ++++++++++++++++++++++++++++++-------
> 1 file changed, 65 insertions(+), 14 deletions(-)
>
> 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 @@
>
> #include "libavutil/internal.h"
> #include "libavutil/opt.h"
> +#include "libavutil/mem.h"
> #include "avfilter.h"
> #include "filters.h"
> #include "video.h"
>
> 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 key-frame
> + int bamount;
> + int bthresh;
> + unsigned int frame;
> + unsigned int nblack;
> + unsigned int last_keyframe;
> } BlackFrameContext;
unrelated to threads
>
> +typedef struct ThreadData {
> + const uint8_t *data;
> + int linesize;
> + int bthresh;
> + int width;
> + int height; // Added height for cleaner slice math
///<
[...]
--
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
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]
[-- Attachment #2: Type: text/plain, Size: 163 bytes --]
_______________________________________________
ffmpeg-devel mailing list -- ffmpeg-devel@ffmpeg.org
To unsubscribe send an email to ffmpeg-devel-leave@ffmpeg.org
next prev parent reply other threads:[~2025-12-31 2:06 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-23 16:44 [FFmpeg-devel] [PATCH v4] " Raja Rathour via ffmpeg-devel
2025-12-27 19:53 ` [FFmpeg-devel] " Michael Niedermayer via ffmpeg-devel
2025-12-30 17:31 ` [FFmpeg-devel] [PATCH v5] " Raja Rathour via ffmpeg-devel
2025-12-30 17:53 ` [FFmpeg-devel] [PATCH v6] " Raja Rathour via ffmpeg-devel
2025-12-30 19:06 ` [FFmpeg-devel] " Michael Niedermayer via ffmpeg-devel
2025-12-30 19:40 ` [FFmpeg-devel] [PATCH v7] " Raja Rathour via ffmpeg-devel
2025-12-31 2:06 ` Michael Niedermayer via ffmpeg-devel [this message]
2026-01-01 6:39 ` [FFmpeg-devel] [PATCH v8] " Raja Rathour via ffmpeg-devel
2026-01-04 22:15 ` [FFmpeg-devel] " Marton Balint via ffmpeg-devel
2026-01-07 14:38 ` Raja Rathour via ffmpeg-devel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aVSFGlozc6N7szeQ@neo \
--to=ffmpeg-devel@ffmpeg.org \
--cc=michael@niedermayer.cc \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
ffmpegdev@gitmailbox.com
public-inbox-index ffmpegdev
Example config snippet for mirrors.
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git