[FFmpeg-devel] [PATCH v v2] libavcodec/riscv:add RVV optimized for idct_32x32_8:

2025-04-28 Thread daichengrong
From: daichengrong riscv/hevcdsp_idct_rvv: Optimize idct_32x32_8 On Banana PI F3: hevc_idct_32x32_8_c:118945.0 ( 1.00x) hevc_idct_32x32_8_rvv_i64: 28503.7 ( 4.17x) Signed-off-by: daichengrong --- libavcodec/riscv/M

[FFmpeg-devel] [PATCH 1/5] avformat/apvdec: Use ffio_read_size()

2025-04-28 Thread Andreas Rheinhardt
Patches attached. - Andreas From de945d797738c78c3435da1cb64201d00256f702 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Sun, 27 Apr 2025 20:14:35 +0200 Subject: [PATCH 1/5] avformat/apvdec: Use ffio_read_size() Fixes potential use of uninitialized data. Signed-off-by: Andreas Rheinhar

Re: [FFmpeg-devel] [PATCH v2] lavc/vvc: Detect subpic overlaps at CTU level

2025-04-28 Thread Nuo Mi
Hi Frank, Thank you for the v2. Could we remove all asserts? Asserts can cause the application to crash at runtime. On Sun, Apr 27, 2025 at 4:48 PM Frank Plowman wrote: > In d5dbcc00d889fb17948b025a468b00ddbea9e058, it was hoped that detection > of subpicture overlaps could be performed at the t

Re: [FFmpeg-devel] [PATCH] avfilter/vf_lut3d_opencl Initial support for OpenCL implementation of vf_lut3d.

2025-04-28 Thread Jan Studený via ffmpeg-devel
Added an OpenCL lut3d video filter implementation for the current lut3d video filter. - This OpenCL implementation currently supports only .cube LUT format and 3 interpolations - nearest,trilinear,tetrahedral (default). - Outputs match CPU version up to floating point errors. Regards, Jan Stud

[FFmpeg-devel] [PATCH] postproc/tests: Add test tools to .gitignore

2025-04-28 Thread Andreas Rheinhardt
Patch attached. - Andreas From d1961c101dfd095c219c4ff56d5f5523574976ce Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Mon, 28 Apr 2025 16:01:13 +0200 Subject: [PATCH] postproc/tests: Add test tools to .gitignore Signed-off-by: Andreas Rheinhardt --- libpostproc/tests/.gitignore | 2 +

[FFmpeg-devel] [PATCH] avformat/av1dec: fix setting AVPacket->pos in Annex-B demuxer

2025-04-28 Thread James Almer
This demuxers reads encapsulation bytes before reading codec data into the output packets, so take such offset into consideration. Signed-off-by: James Almer --- libavformat/av1dec.c | 8 1 file changed, 8 insertions(+) diff --git a/libavformat/av1dec.c b/libavformat/av1dec.c index 8c0

Re: [FFmpeg-devel] [RFC] Shaping the AVTextFormat API Surface

2025-04-28 Thread Stefano Sabatini
On date Sunday 2025-04-27 17:54:21 +, softworkz . wrote: > > > > -Original Message- > > From: ffmpeg-devel On Behalf Of > > Stefano Sabatini > > Sent: Sonntag, 27. April 2025 12:42 > > To: FFmpeg development discussions and patches > de...@ffmpeg.org> > > Subject: Re: [FFmpeg-devel]

Re: [FFmpeg-devel] [RFC] Shaping the AVTextFormat API Surface

2025-04-28 Thread softworkz .
> -Original Message- > From: ffmpeg-devel On Behalf Of Stefano > Sabatini > Sent: Dienstag, 29. April 2025 00:27 > To: FFmpeg development discussions and patches > Subject: Re: [FFmpeg-devel] [RFC] Shaping the AVTextFormat API Surface > > On date Sunday 2025-04-27 17:54:21 +, soft

[FFmpeg-devel] [PATCH v2 1/2] tests: Add stream dump test API util, use it to dump stream data for chained ogg/{vorbis, opus, flac} streams.

2025-04-28 Thread Romain Beauxis
--- tests/Makefile | 4 + tests/api/Makefile | 2 +- tests/api/api-dump-stream-meta-test.c | 182 + tests/fate/ogg-flac.mak| 11 ++ tests/fate/ogg-opus.mak| 11 ++ tests/fate/

[FFmpeg-devel] [PATCH v2 0/2] Remove chained ogg stream header packets from demuxer

2025-04-28 Thread Romain Beauxis
These patches remove the ogg header packets from secondary chainged ogg streams from the demuxer. First, a test utility is added to track what is currently happening with chained streams. Then the changes are introduced: the packet demuxing function is used to explicitely tell the demuxer to skip

[FFmpeg-devel] [PATCH v2 2/2] ogg/{vorbis, flac, opus}: Remove header packets from subsequent ogg streams from the demuxer output.

2025-04-28 Thread Romain Beauxis
--- libavformat/oggdec.c | 26 ++-- libavformat/oggdec.h | 6 + libavformat/oggparseflac.c | 28 -- libavformat/oggparseopus.c | 12 ++ libavformat/oggparsevorbis.c

Re: [FFmpeg-devel] [PATCH v7 02/13] fftools/textformat: Apply quality improvements

2025-04-28 Thread Stefano Sabatini
On date Monday 2025-04-28 20:40:37 +, softworkz . wrote: [...] > > > > > /* validate replace string */ > > > > > { > > > > > -const uint8_t *p = tctx->string_validation_replacement; > > > > > -const uint8_t *endp = p + strlen(p); > > > > > +const uint8_t *p = (

Re: [FFmpeg-devel] [PATCH v7 02/13] fftools/textformat: Apply quality improvements

2025-04-28 Thread softworkz .
> -Original Message- > From: Stefano Sabatini > Sent: Montag, 28. April 2025 23:47 > To: softworkz . > Cc: FFmpeg development discussions and patches > Subject: Re: [FFmpeg-devel] [PATCH v7 02/13] fftools/textformat: Apply quality > improvements > > On date Monday 2025-04-28 20:40:37

Re: [FFmpeg-devel] [PATCH] postproc/tests: Add test tools to .gitignore

2025-04-28 Thread Michael Niedermayer
On Mon, Apr 28, 2025 at 04:02:14PM +0200, Andreas Rheinhardt wrote: > Patch attached. > > - Andreas > .gitignore |2 ++ > 1 file changed, 2 insertions(+) > a3523219c532b9afd7011d59964fa5f210b9f2d2 > 0001-postproc-tests-Add-test-tools-to-.gitignore.patch > From d1961c101dfd095c219c4ff56d5f5

[FFmpeg-devel] [PATCH v8 01/15] fftools/textformat: Formatting and whitespace changes

2025-04-28 Thread softworkz
From: softworkz Reviewed-by: Stefano Sabatini Signed-off-by: softworkz --- fftools/textformat/avtextformat.c | 92 +++--- fftools/textformat/avtextformat.h | 20 +++ fftools/textformat/avtextwriters.h | 11 ++-- fftools/textformat/tf_compact.c| 91

[FFmpeg-devel] [PATCH v8 02/15] fftools/textformat: Apply quality improvements

2025-04-28 Thread softworkz
From: softworkz Perform multiple improvements to increase code robustness. In particular: - favor unsigned counters for loops - add missing checks - avoid possible leaks - move variable declarations to inner scopes when feasible - provide explicit type-casting when needed Signed-off-by: softwork

[FFmpeg-devel] [PATCH v8 05/15] fftools/avtextformat: Re-use BPrint in loop

2025-04-28 Thread softworkz
From: softworkz Instead of initializing a new BPrint in each iteration of the loop, re-use the same BPrint struct and just clear it for each iteration. Signed-off-by: softworkz --- fftools/textformat/avtextformat.c | 23 ++- 1 file changed, 14 insertions(+), 9 deletions(-)

[FFmpeg-devel] [PATCH v8 04/15] fftools/textformat: Rename name param to key for API consistency

2025-04-28 Thread softworkz
From: softworkz Signed-off-by: softworkz --- fftools/textformat/avtextformat.c | 14 +++--- fftools/textformat/avtextformat.h | 6 +++--- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/fftools/textformat/avtextformat.c b/fftools/textformat/avtextformat.c index 32cec9

[FFmpeg-devel] [PATCH v8 03/15] fftools/textformat: Remove unused print_rational() pointer from AVTextFormatter

2025-04-28 Thread softworkz
From: softworkz Signed-off-by: softworkz --- fftools/textformat/avtextformat.h | 1 - fftools/textformat/avtextwriters.h | 5 - 2 files changed, 6 deletions(-) diff --git a/fftools/textformat/avtextformat.h b/fftools/textformat/avtextformat.h index 86feb9d09d..c61dca159f 100644 --- a/fft

[FFmpeg-devel] [PATCH v8 14/15] fftools/graphprint: Add execution graph printing

2025-04-28 Thread softworkz
From: softworkz The key benefits are: - Different to other graph printing methods, this is outputting: - all graphs with runtime state (including auto-inserted filters) - each graph with its inputs and outputs - all filters with their in- and output pads - all connections between all

[FFmpeg-devel] [PATCH v8 12/15] fftools/resources: Add resource manager files

2025-04-28 Thread softworkz
From: softworkz Signed-off-by: softworkz --- ffbuild/common.mak | 28 ++- fftools/Makefile | 3 +- fftools/resources/.gitignore | 4 + fftools/resources/Makefile | 27 +++ fftools/resources/graph.css | 353 +++ fftools/resources/gra

[FFmpeg-devel] [PATCH v8 15/15] fftools/graphprint: Now, make it a Killer-Feature!

2025-04-28 Thread softworkz
From: softworkz remember this: -sg <= show-graph Signed-off-by: softworkz --- doc/ffmpeg.texi | 4 + fftools/Makefile | 1 + fftools/ffmpeg.c | 2 +- fftools/ffmpeg.h | 1 + fftools/ffmpeg_filter.c | 2 +- fftools/ffmpeg_opt.c

[FFmpeg-devel] [PATCH v8 11/15] avfilter/avfilter: Add avfilter_link_get_hw_frames_ctx()

2025-04-28 Thread softworkz
From: softworkz Signed-off-by: softworkz --- doc/APIchanges | 3 +++ libavfilter/avfilter.c | 9 + libavfilter/avfilter.h | 12 3 files changed, 24 insertions(+) diff --git a/doc/APIchanges b/doc/APIchanges index 75d66f87f3..d0869561f3 100644 --- a/doc/APIchanges

[FFmpeg-devel] [PATCH v8 13/15] fftools/ffmpeg_mux: Make ms_from_ost() inline

2025-04-28 Thread softworkz
From: softworkz Signed-off-by: softworkz --- fftools/ffmpeg_mux.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fftools/ffmpeg_mux.h b/fftools/ffmpeg_mux.h index f41f2c18fa..4ca8ab73a4 100644 --- a/fftools/ffmpeg_mux.h +++ b/fftools/ffmpeg_mux.h @@ -123,7 +123,7 @@ typedef

[FFmpeg-devel] [PATCH v8 00/15] Execution Graph Printing

2025-04-28 Thread ffmpegagent
Shortest cover letter for my longest-running FFmpeg patchset: * Apply * Build * Add the "-sg" switch to any FFmpeg command line * Press 'q' when you don't want to wait SG = Show Graph Documentation and examples can be found here: https://github.com/softworkz/ffmpeg_output_apis/wiki Versio

[FFmpeg-devel] [PATCH v8 07/15] fftools/textformat: Introduce common header and deduplicate code

2025-04-28 Thread softworkz
From: softworkz Also change writer_printf signature in AVTextWriter to use va_list, so that it can be called by the new function writer_printf() in tf_internal.h. Reviewed-by: Stefano Sabatini Signed-off-by: softworkz --- fftools/textformat/avtextwriters.h | 2 +- fftools/textformat/tf_compa

[FFmpeg-devel] [PATCH v8 10/15] fftools/ffmpeg_filter: Move some declaration to new header file

2025-04-28 Thread softworkz
From: softworkz to allow filtergraph printing to access the information. Signed-off-by: softworkz --- fftools/ffmpeg_filter.c | 190 +--- fftools/ffmpeg_filter.h | 234 2 files changed, 235 insertions(+), 189 deletions(-) cr

[FFmpeg-devel] [PATCH v8 09/15] fftools/textformat: Add flags param to function avtext_print_integer()

2025-04-28 Thread softworkz
From: softworkz Make this function work analog to avtext_print_string() which already has a flags parameter. Signed-off-by: softworkz --- fftools/ffprobe.c | 2 +- fftools/textformat/avtextformat.c | 24 ++-- fftools/textformat/avtextformat.h | 2 +- 3 fil

[FFmpeg-devel] [PATCH v8 06/15] fftools/textformat: Introduce AVTextFormatOptions for avtext_context_open()

2025-04-28 Thread softworkz
From: softworkz This allows future addition of options without changes to the signature of avtext_context_open(). Reviewed-by: Stefano Sabatini Signed-off-by: softworkz --- fftools/ffprobe.c | 13 + fftools/textformat/avtextformat.c | 21 - ffto

[FFmpeg-devel] [PATCH v8 08/15] fftools/tf_internal: Use av_default_item_name

2025-04-28 Thread softworkz
From: softworkz Reviewed-by: Stefano Sabatini Signed-off-by: softworkz --- fftools/textformat/tf_internal.h | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/fftools/textformat/tf_internal.h b/fftools/textformat/tf_internal.h index 362a4cbc38..484886b7a7 100644 --- a/fft

Re: [FFmpeg-devel] [PATCH v5] Mark C globals with small code model

2025-04-28 Thread Pranav Kant via ffmpeg-devel
Ping. On Tue, Apr 15, 2025 at 4:22 PM Pranav Kant wrote: > Hello again. Is there anything else I can do here? > > On Fri, Apr 4, 2025 at 11:40 AM Pranav Kant wrote: > >> Any thoughts on this? >> >> On Thu, Mar 20, 2025 at 5:30 PM Pranav Kant wrote: >> >>> Patch version v5: >>> - Uses two new m

[FFmpeg-devel] [PATCH] avfilter/vf_lut3d_opencl Initial support for OpenCL implementation of vf_lut3d.

2025-04-28 Thread Jan Studený via ffmpeg-devel
--- libavfilter/Makefile | 1 + libavfilter/allfilters.c | 1 + libavfilter/opencl/lut3d.cl | 177 ++ libavfilter/opencl_source.h | 2 + libavfilter/vf_lut3d_opencl.c | 444 ++ 5 files changed, 625 insertions(+) create mode 10064

Re: [FFmpeg-devel] [PATCH] avformat/mov: Fix decoding fragmented MP4 with multiple sample entries and empty stsc

2025-04-28 Thread Dimitry Andric
On 19 Apr 2025, at 16:27, Dimitry Andric wrote: > > On 10 Apr 2025, at 11:03, Dimitry Andric > wrote: >> >> On 3 Apr 2025, at 22:02, Dimitry Andric >> wrote: >>> >>> When decoding fragmented MP4 files that have an empty stsc box, and >>> instead contain sample description indexes in their t

Re: [FFmpeg-devel] [PATCH v2] lavc/vvc: Detect subpic overlaps at CTU level

2025-04-28 Thread Frank Plowman
On 28/04/2025 14:33, Nuo Mi wrote: > Hi Frank, > Thank you for the v2. > Could we remove all asserts? > Asserts can cause the application to crash at runtime. Hi, I think av_assert2s are the right thing to use here. In case it was not clear, these asserts should never be triggered by any bitstre

Re: [FFmpeg-devel] [PATCH] postproc/tests: Add test tools to .gitignore

2025-04-28 Thread Marvin Scholz
On 28 Apr 2025, at 16:02, Andreas Rheinhardt wrote: > Patch attached. > LGTM > - Andreas > ___ > ffmpeg-devel mailing list > ffmpeg-devel@ffmpeg.org > https://ffmpeg.org/mailman/listinfo/ffmpeg-devel > > To unsubscribe, visit link above, or email > ffm

Re: [FFmpeg-devel] [PATCH v7 02/13] fftools/textformat: Apply quality improvements

2025-04-28 Thread Stefano Sabatini
On date Friday 2025-04-25 23:30:57 +, softworkz wrote: > From: softworkz > > Perform multiple improvements to increase code robustness. > In particular: > - favor unsigned counters for loops > - add missing checks > - avoid possible leaks > - move variable declarations to inner scopes when fe

Re: [FFmpeg-devel] [PATCH v7 02/13] fftools/textformat: Apply quality improvements

2025-04-28 Thread softworkz .
> -Original Message- > From: Stefano Sabatini > Sent: Montag, 28. April 2025 22:24 > To: softworkz . > Cc: FFmpeg development discussions and patches > Subject: Re: [FFmpeg-devel] [PATCH v7 02/13] fftools/textformat: Apply quality > improvements > > On date Monday 2025-04-28 20:05:25

Re: [FFmpeg-devel] [PATCH v7 02/13] fftools/textformat: Apply quality improvements

2025-04-28 Thread softworkz .
> -Original Message- > From: Stefano Sabatini > Sent: Montag, 28. April 2025 21:56 > To: FFmpeg development discussions and patches > Cc: softworkz > Subject: Re: [FFmpeg-devel] [PATCH v7 02/13] fftools/textformat: Apply quality > improvements > > On date Friday 2025-04-25 23:30:57 +

Re: [FFmpeg-devel] [PATCH v7 02/13] fftools/textformat: Apply quality improvements

2025-04-28 Thread Stefano Sabatini
On date Monday 2025-04-28 20:05:25 +, softworkz . wrote: > > > > -Original Message- > > From: Stefano Sabatini > > Sent: Montag, 28. April 2025 21:56 > > To: FFmpeg development discussions and patches > > Cc: softworkz > > Subject: Re: [FFmpeg-devel] [PATCH v7 02/13] fftools/textfo