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

2025-05-03 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 v9 00/15] Execution Graph Printing

2025-05-03 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 v9 07/15] fftools/textformat: Introduce common header and deduplicate code

2025-05-03 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 v9 02/15] fftools/textformat: Apply quality improvements

2025-05-03 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 v9 06/15] fftools/textformat: Introduce AVTextFormatOptions for avtext_context_open()

2025-05-03 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 v9 03/15] fftools/textformat: Remove unused print_rational() pointer from AVTextFormatter

2025-05-03 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 v9 04/15] fftools/textformat: Rename name param to key for API consistency

2025-05-03 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 v9 05/15] fftools/avtextformat: Re-use BPrint in loop

2025-05-03 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 v9 12/15] fftools/resources: Add resource manager files with build-time compression

2025-05-03 Thread softworkz
From: softworkz Compression requires zlib to be available, otherwise resources will be included uncompressed - in either case via BIN2C. It can also be disabled via ./configure --disable-resource-compression Size figures: graph.css 7752 graph.css.min 6655 (css is always minified)

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

2025-05-03 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 v9 10/15] fftools/ffmpeg_filter: Move some declaration to new header file

2025-05-03 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 v9 11/15] avfilter/avfilter: Add avfilter_link_get_hw_frames_ctx()

2025-05-03 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 v9 08/15] fftools/tf_internal: Use av_default_item_name

2025-05-03 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

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

2025-05-03 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 v9 13/15] fftools/ffmpeg_mux: Make ms_from_ost() inline

2025-05-03 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 v9 15/15] fftools/graphprint: Now, make it a Killer-Feature!

2025-05-03 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

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

2025-05-03 Thread softworkz .
> -Original Message- > From: ffmpeg-devel On Behalf Of softworkz . > Sent: Dienstag, 29. April 2025 01:24 > To: FFmpeg development discussions and patches > Subject: Re: [FFmpeg-devel] [RFC] Shaping the AVTextFormat API Surface > > > > > -Original Message- > > From: ffmpeg-d

[FFmpeg-devel] [PATCH 2/7] x86/hevcdec: sao, refact out h26x macros

2025-05-03 Thread Nuo Mi
From: Shaun Loo This is a part of Google Summer of Code 2023 Co-authored-by: Nuo Mi --- libavcodec/x86/h26x/h2656_sao.asm | 301 libavcodec/x86/h26x/h2656_sao_10bit.asm | 301 libavcodec/x86/hevc/sao.asm | 278 +---

[FFmpeg-devel] [PATCH 1/7] x86/vvcdec: misc, reordered functions in dsp_init for improved readability

2025-05-03 Thread Nuo Mi
--- libavcodec/x86/vvc/dsp_init.c | 48 +-- 1 file changed, 29 insertions(+), 19 deletions(-) diff --git a/libavcodec/x86/vvc/dsp_init.c b/libavcodec/x86/vvc/dsp_init.c index dc833bb0f1..bb68ba0b1e 100644 --- a/libavcodec/x86/vvc/dsp_init.c +++ b/libavcodec/x86/vvc

[FFmpeg-devel] [PATCH v2 2/7] x86/hevcdec: sao, refact out h26x macros

2025-05-03 Thread Nuo Mi
From: Shaun Loo This is a part of Google Summer of Code 2023 Co-authored-by: Nuo Mi --- libavcodec/x86/h26x/h2656_sao.asm | 301 libavcodec/x86/h26x/h2656_sao_10bit.asm | 301 libavcodec/x86/hevc/sao.asm | 278 +---

[FFmpeg-devel] [PATCH v2 4/7] x86/vvcdec: sao, add avx2 support

2025-05-03 Thread Nuo Mi
From: Shaun Loo This is a part of Google Summer of Code 2023 Co-authored-by: Nuo Mi --- libavcodec/x86/h26x/h2656_sao.asm | 8 +-- libavcodec/x86/vvc/Makefile | 2 + libavcodec/x86/vvc/dsp_init.c | 41 +++ libavcodec/x86/vvc/sao.asm| 73 +++ liba

[FFmpeg-devel] [PATCH v2 1/7] x86/vvcdec: misc, reordered functions in dsp_init for improved readability

2025-05-03 Thread Nuo Mi
--- libavcodec/x86/vvc/dsp_init.c | 48 +-- 1 file changed, 29 insertions(+), 19 deletions(-) diff --git a/libavcodec/x86/vvc/dsp_init.c b/libavcodec/x86/vvc/dsp_init.c index dc833bb0f1..bb68ba0b1e 100644 --- a/libavcodec/x86/vvc/dsp_init.c +++ b/libavcodec/x86/vvc

[FFmpeg-devel] [PATCH v2 3/7] x86/hevcdec: refact, remove duplicate code in HEVC_SAO_{BAND, EDGE}_FILTER

2025-05-03 Thread Nuo Mi
From: Shaun Loo This is a part of Google Summer of Code 2023 Co-authored-by: Nuo Mi --- libavcodec/x86/hevc/sao_10bit.asm | 100 ++ 1 file changed, 48 insertions(+), 52 deletions(-) diff --git a/libavcodec/x86/hevc/sao_10bit.asm b/libavcodec/x86/hevc/sao_10bit.asm

[FFmpeg-devel] [PATCH v2 5/7] checkasm: add vvc_sao

2025-05-03 Thread Nuo Mi
From: Shaun Loo This is a part of Google Summer of Code 2023 AVX2: - vvc_sao.sao_band [OK] - vvc_sao.sao_edge [OK] checkasm: all 54 tests passed vvc_sao_band_8_8_c:157.4 ( 1.00x) vvc_sao_band_8_8_avx2: 30.7 ( 5.12x) vvc_sao_b

Re: [FFmpeg-devel] [PATCH 5/5] checkasm: add vvc_sao

2025-05-03 Thread Nuo Mi
Hi Martin, Great, it works! HEVC is included in v2. Thank you! On Sat, May 3, 2025 at 4:45 AM Martin Storsjö wrote: > On Fri, 2 May 2025, Nuo Mi wrote: > > > On Fri, May 2, 2025 at 3:49 PM Martin Storsjö wrote: > > On Fri, 2 May 2025, Nuo Mi wrote: > > > > > From: Shaun Loo > >

[FFmpeg-devel] [PATCH v2 7/7] checkasm: hevc sao, use checkasm_check_padded

2025-05-03 Thread Nuo Mi
--- tests/checkasm/hevc_sao.c | 45 +-- 1 file changed, 20 insertions(+), 25 deletions(-) diff --git a/tests/checkasm/hevc_sao.c b/tests/checkasm/hevc_sao.c index f597eb5254..37f6ba8c5c 100644 --- a/tests/checkasm/hevc_sao.c +++ b/tests/checkasm/hevc_sao.c @@ -

[FFmpeg-devel] [PATCH v2 6/7] checkasm: hevc sao_edge, benchmarking inside the width loop is meaningless

2025-05-03 Thread Nuo Mi
--- tests/checkasm/hevc_sao.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/checkasm/hevc_sao.c b/tests/checkasm/hevc_sao.c index ad47423f10..f597eb5254 100644 --- a/tests/checkasm/hevc_sao.c +++ b/tests/checkasm/hevc_sao.c @@ -119,21 +119,21 @@ static vo

[FFmpeg-devel] When to add 'Reviewed-by: xxx' in commit messages

2025-05-03 Thread softworkz .
Hello everybody, I have an organizational question that I cannot quite figure out how to do it right: Whether and when to add 'Reviewed-by: xxx' to a commit message? Specific example: The “execution graph printing” patchset: Andreas had reviewed the patchset initially. I addressed the mention

Re: [FFmpeg-devel] [PATCH] hwcontext_vulkan: fix exporting multi-plane DRM modifiers

2025-05-03 Thread Lynne
On 03/05/2025 04:39, Russell Greene wrote: Is this documented anywhere? Should I maybe have a fixed sized stack buffer and fallback to an allocation if it's just a rule of thumb that it'll be less than some known small number. I just somehow doubt this is in the vulkan spec or any sort of guarant

Re: [FFmpeg-devel] [PATCH] hwcontext_vulkan: fix exporting multi-plane DRM modifiers

2025-05-03 Thread Russell Greene
> vkGetPhysicalDeviceToolPropertiesEXT(dev, nb, array) > If pToolProperties is NULL, then the number of tools currently active on > physicalDevice is returned in pToolCount. Otherwise, pToolCount must > point to a variable set by the application to the number of elements in > the pToolProperties ar

Re: [FFmpeg-devel] [PATCH] hwcontext_vulkan: fix exporting multi-plane DRM modifiers

2025-05-03 Thread Russell Greene
> > If we're OK with a practical "we don't support drivers with more than > > X modifiers because we doubt it'll ever exist" then that's a valid > > answer as well. > If that's your concern, just fetch all info for all modifiers in the > init function. Works for me. I'm new to ffmpeg devel, I assu

Re: [FFmpeg-devel] [PATCH] hwcontext_vulkan: fix exporting multi-plane DRM modifiers

2025-05-03 Thread Russell Greene
Now realizing that there's not really a way to just query all modifiers, you'd actually need to query all formats for their modifiers... Options as I see it are: 1. in init(), create a table of all (vk_format, modifier) pairs and the `VkDrmFormatModifierPropertiesEXT` information about the pair fo

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

2025-05-03 Thread Romain Beauxis
--- libavformat/oggdec.c | 4 libavformat/oggparseflac.c | 28 -- libavformat/oggparseopus.c | 11 + libavformat/oggparsevorbis.c | 11 +++-- tests/ref/fate/ogg-flac-chained-meta.txt | 2 --

[FFmpeg-devel] [PATCH v3 1/2] libavformat/oggdec.c: Changing the packet() callback API/Return value

2025-05-03 Thread Romain Beauxis
--- libavformat/oggdec.c | 22 ++ libavformat/oggdec.h | 6 ++ 2 files changed, 20 insertions(+), 8 deletions(-) diff --git a/libavformat/oggdec.c b/libavformat/oggdec.c index 5339fdd32c..9baf8040a9 100644 --- a/libavformat/oggdec.c +++ b/libavformat/oggdec.c @@ -605,20 +

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

2025-05-03 Thread Romain Beauxis
These patches remove the ogg header packets from secondary chained ogg streams from the demuxer. To do so, the packet demuxing function is modified to explicitely tell the demuxer when skip header packets Also, the opus packet demuxing function is adapted to properly copy extra data from the new

[FFmpeg-devel] [PATCH 4/6] cbs_apv: Better constrain tile_width/height_in_mbs

2025-05-03 Thread Mark Thompson
The maximum number of tile columns/rows adds an extra constraint on the minimum tile width/height for large frames (over 5120 width or 2560 height). --- libavcodec/apv_decode.c | 2 +- libavcodec/cbs_apv_syntax_template.c | 14 ++ 2 files changed, 11 insertions(+), 5 dele

[FFmpeg-devel] [PATCH 3/6] apv_decode: Improve reporting of decode errors

2025-05-03 Thread Mark Thompson
Halt tile component decoding at the first entropy error (this will be a desync and is not recoverable). If any tile components contain errors then discard the frame unless the output-corrupt flag is set. Also fixes CID 1646764, which is the error case where the tile component is too large for get

[FFmpeg-devel] [PATCH 1/6] cbs_apv: Always restore tracing state on split fragment error

2025-05-03 Thread Mark Thompson
Fixes CID 1646769. --- libavcodec/cbs_apv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/cbs_apv.c b/libavcodec/cbs_apv.c index e7dd04825c..ebf57d3bbb 100644 --- a/libavcodec/cbs_apv.c +++ b/libavcodec/cbs_apv.c @@ -230,14 +230,14 @@ static int cbs_apv_split_f

[FFmpeg-devel] [PATCH 6/6] cbs_apv: Check tile component sizes

2025-05-03 Thread Mark Thompson
It was possible for the buffer pointers for the last tile to go over the end of the unit buffer leading to a read overflow during decode of the macroblock layer. Check all tile component sizes to prevent this case and also catch related tile size mismatch errors earlier. --- libavcodec/cbs_apv_sy

[FFmpeg-devel] [PATCH 5/6] apv_entropy: Improve robustness to bitstream errors

2025-05-03 Thread Mark Thompson
--- libavcodec/apv_entropy.c | 16 1 file changed, 16 insertions(+) diff --git a/libavcodec/apv_entropy.c b/libavcodec/apv_entropy.c index 00e0b4fbdf..a5648c09b4 100644 --- a/libavcodec/apv_entropy.c +++ b/libavcodec/apv_entropy.c @@ -84,6 +84,14 @@ static unsigned int apv_read_v

[FFmpeg-devel] [PATCH 2/6] apv_decode: Fix memory leak on decode error

2025-05-03 Thread Mark Thompson
--- libavcodec/apv_decode.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libavcodec/apv_decode.c b/libavcodec/apv_decode.c index b1e1db7d64..2a59c9b25d 100644 --- a/libavcodec/apv_decode.c +++ b/libavcodec/apv_decode.c @@ -377,7 +377,7 @@ static int apv_decode_frame(A

Re: [FFmpeg-devel] [PATCH 2/6] apv_decode: Fix memory leak on decode error

2025-05-03 Thread James Almer
On 5/3/2025 2:55 PM, Mark Thompson wrote: --- libavcodec/apv_decode.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libavcodec/apv_decode.c b/libavcodec/apv_decode.c index b1e1db7d64..2a59c9b25d 100644 --- a/libavcodec/apv_decode.c +++ b/libavcodec/apv_decode.c @@

Re: [FFmpeg-devel] [PATCH 3/6] apv_decode: Improve reporting of decode errors

2025-05-03 Thread James Almer
On 5/3/2025 2:55 PM, Mark Thompson wrote: +fail: +av_log(avctx, AV_LOG_VERBOSE, + "Decode error in tile %d component %d.\n", + tile_index, comp_index); +atomic_fetch_add(&apv->tile_errors, 1); atomic_fetch_add_explicit(&apv->tile_errors, 1, memory_order_relaxed); Yo

Re: [FFmpeg-devel] [PATCH] hwcontext_vulkan: fix exporting multi-plane DRM modifiers

2025-05-03 Thread Lynne
On 03/05/2025 17:01, Russell Greene wrote: vkGetPhysicalDeviceToolPropertiesEXT(dev, nb, array) If pToolProperties is NULL, then the number of tools currently active on physicalDevice is returned in pToolCount. Otherwise, pToolCount must point to a variable set by the application to the number of

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

2025-05-03 Thread Michael Niedermayer
Hi On Sat, May 03, 2025 at 08:22:44AM +, softworkz wrote: > 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

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

2025-05-03 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 v10 03/15] fftools/textformat: Remove unused print_rational() pointer from AVTextFormatter

2025-05-03 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 v10 02/15] fftools/textformat: Apply quality improvements

2025-05-03 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 v10 00/15] Execution Graph Printing

2025-05-03 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

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

2025-05-03 Thread softworkz .
> -Original Message- > From: ffmpeg-devel On Behalf Of Michael > Niedermayer > Sent: Sonntag, 4. Mai 2025 01:58 > To: FFmpeg development discussions and patches > Subject: Re: [FFmpeg-devel] [PATCH v9 14/15] fftools/graphprint: Add execution > graph printing > > Hi > > On Sat, May 03

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

2025-05-03 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 v10 10/15] fftools/ffmpeg_filter: Move some declaration to new header file

2025-05-03 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 v10 06/15] fftools/textformat: Introduce AVTextFormatOptions for avtext_context_open()

2025-05-03 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 v10 08/15] fftools/tf_internal: Use av_default_item_name

2025-05-03 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

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

2025-05-03 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 v10 04/15] fftools/textformat: Rename name param to key for API consistency

2025-05-03 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 v10 11/15] avfilter/avfilter: Add avfilter_link_get_hw_frames_ctx()

2025-05-03 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 v10 05/15] fftools/avtextformat: Re-use BPrint in loop

2025-05-03 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 v10 14/15] fftools/graphprint: Add execution graph printing

2025-05-03 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 v10 12/15] fftools/resources: Add resource manager files with build-time compression

2025-05-03 Thread softworkz
From: softworkz Compression requires zlib to be available, otherwise resources will be included uncompressed - in either case via BIN2C. It can also be disabled via ./configure --disable-resource-compression Size figures: graph.css 7752 graph.css.min 6655 (css is always minified)

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

2025-05-03 Thread softworkz
From: softworkz remember this: -sg <= means 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_o

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

2025-05-03 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] avcodec/apv_decode: build the lut table only once

2025-05-03 Thread James Almer
No reason to build the exact same table once per decoding thread. Signed-off-by: James Almer --- libavcodec/apv_decode.c | 18 +- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/libavcodec/apv_decode.c b/libavcodec/apv_decode.c index b1e1db7d64..b1c59fc873 100644 -