Re: [FFmpeg-devel] [PATCH 01/15] avcodec/motionpixels: Avoid av_unused

2025-04-12 Thread Andreas Rheinhardt
Andreas Rheinhardt: > Patches attached. > > - Andreas > Will apply this patchset tonight unless there are objections. - Andreas ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, vis

Re: [FFmpeg-devel] [PATCH] avcodec/decode: Only use ff_progress_frame_get_buffer() with blank input

2025-04-12 Thread Andreas Rheinhardt
Andreas Rheinhardt: > Patch attached. > > - Andreas > Will apply this patch tomorrow unless there are objections. - Andreas ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit l

[FFmpeg-devel] [PATCH 2/3] doc/dict2: Add doc and api change for AVDictionary2

2025-04-12 Thread softworkz
From: softworkz Signed-off-by: softworkz --- doc/APIchanges | 3 +++ doc/dict2.md | 44 2 files changed, 47 insertions(+) create mode 100644 doc/dict2.md diff --git a/doc/APIchanges b/doc/APIchanges index 65bf5a9419..1e0d47083b 100644 --- a/doc/

[FFmpeg-devel] [PATCH 3/3] tests/dict2: Add tests and benchmark for AVDictionary2

2025-04-12 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavutil/tests/dict2.c| 185 + tests/api/Makefile | 1 + tests/api/api-dict2-test.c | 122 +++ tests/fate/api.mak | 15 +++ tools/Makefile | 2 +- tools/dict2_benchmark

[FFmpeg-devel] [PATCH 1/3] avutil/dict2: Add AVDictionary2 with hash-based lookup

2025-04-12 Thread softworkz
From: softworkz see doc/dict2.md Signed-off-by: softworkz --- libavutil/Makefile | 3 + libavutil/dict2.c | 335 libavutil/dict2.h | 167 ++ libavutil/version.h | 2 +- 4 files changed, 506 insertions(+), 1 deletion(-)

[FFmpeg-devel] [PATCH 0/3] avutil/dict2: Add AVDictionary2 with hash-based lookup

2025-04-12 Thread ffmpegagent
This is probably a PREMIERE. This whole patchset has been antirely authored by AI, wich means that I haven't written a single line of code. Still it had required a lot of strong guidance, so it wouldn't have been able to do it alone. Even though it was an experiment, it is still meant to be a seri

Re: [FFmpeg-devel] [PATCH] avcodec/ffv1enc: Use version 3 by default (CRCs by default)

2025-04-12 Thread Michael Niedermayer
On Sun, Dec 08, 2019 at 11:47:16PM +0100, Michael Niedermayer wrote: > Version 3 is since 2013 (FFmpeg 2.1) non experimental so should be widely > supported > > Signed-off-by: Michael Niedermayer > --- > libavcodec/ffv1enc.c | 3 ++- > tests/fate/vcodec.mak | 2 +- > 2 files changed, 3 inserti

Re: [FFmpeg-devel] VP6 Encoder Proposal- Seeking Feedback and Suggestions

2025-04-12 Thread SUBHANGANI JHA
Hi, I'll be elated if you can share the link to the patches. Thanks in advance On Sat, Apr 12, 2025, 06:08 Michael Niedermayer wrote: > Hi > > On Tue, Apr 08, 2025 at 07:05:16PM +0530, SUBHANGANI JHA wrote: > > Hello FFmpeg developers, > > > > I'm a 2025 Gsoc applicant and have submitted a prop

[FFmpeg-devel] [PATCH] avcodec/hevc: Enable d3d11va for yuv422p and yuv422p10

2025-04-12 Thread Zhao Zhili
From: Zhao Zhili --- I don't have hardware which support 4:2:2. Please help test this feature. libavcodec/hevc/hevcdec.c | 4 1 file changed, 4 insertions(+) diff --git a/libavcodec/hevc/hevcdec.c b/libavcodec/hevc/hevcdec.c index da8fdc5935..e5e63f57fe 100644 --- a/libavcodec/hevc/hevcde

Re: [FFmpeg-devel] [RFC] AVDictionary2

2025-04-12 Thread softworkz .
> -Original Message- > From: ffmpeg-devel On Behalf Of > Michael Niedermayer > Sent: Freitag, 11. April 2025 21:06 > To: FFmpeg development discussions and patches > Subject: Re: [FFmpeg-devel] [RFC] AVDictionary2 > > Hi > > On Tue, Apr 08, 2025 at 09:30:16PM +, softworkz . wrote:

[FFmpeg-devel] [PATCH 17/18] vulkan: add support for expect/assume

2025-04-12 Thread Lynne
This commit adds support for compiler hints. While on AMD these are not used/needed, Nvidia benefits from them, and gives a sizeable 10% speedup on 4k. --- libavcodec/vulkan/ffv1_dec.comp | 16 libavcodec/vulkan/rangecoder.comp | 12 ++-- libavutil/hwcontext_vulkan.c

[FFmpeg-devel] [PATCH 13/18] ffv1/vulkan: redo context count tracking and quant_table_idx management

2025-04-12 Thread Lynne
This commit also makes it possible for the encoder to choose a different quantization table on a per-slice basis, as well as adding this capability to the decoder. Also, this commit fully fixes decoding of context=1 encoded files. --- libavcodec/ffv1_vulkan.h | 2 +- libavcodec/ffv1

[FFmpeg-devel] [PATCH 01/18] hwcontext_vulkan: disable descriptor buffer extension on Intel

2025-04-12 Thread Lynne
Temporary workaround. Will be replaced with a version check once a fix is in the works and a known next version for Mesa with a fix is known. --- libavutil/hwcontext_vulkan.c | 5 + 1 file changed, 5 insertions(+) diff --git a/libavutil/hwcontext_vulkan.c b/libavutil/hwcontext_vulkan.c index

[FFmpeg-devel] [PATCH 18/18] vulkan_ffv1: add cached symbol reader for AMD

2025-04-12 Thread Lynne
Speeds up everything on AMD by 3x. This uses 32 local invocations to load state into cache, as well as to do the RCT faster. --- libavcodec/vulkan/ffv1_dec.comp | 71 - libavcodec/vulkan_ffv1.c| 7 +++- 2 files changed, 50 insertions(+), 28 deletions(-) di

[FFmpeg-devel] [PATCH 16/18] vulkan_ffv1: shortcut +-1 coeffs in symbol reading

2025-04-12 Thread Lynne
Slightly faster, and allows for further optimizations. --- libavcodec/vulkan/ffv1_dec.comp | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libavcodec/vulkan/ffv1_dec.comp b/libavcodec/vulkan/ffv1_dec.comp index 4cc3b9987f..fd9b98023c 100644 --- a/libavcodec/vulkan/ffv1_dec.

[FFmpeg-devel] [PATCH 15/18] vulkan_ffv1: remove need for scratch data during setup

2025-04-12 Thread Lynne
This saves on some VRAM, but mainly allows for a more unified path. --- libavcodec/vulkan/ffv1_dec_setup.comp | 55 ++- libavcodec/vulkan/rangecoder.comp | 17 + libavcodec/vulkan_ffv1.c | 23 +-- 3 files changed, 46 insertions(+), 49 deleti

[FFmpeg-devel] [PATCH 12/18] vulkan_ffv1: cache only 2 lines when decoding RGB

2025-04-12 Thread Lynne
This reduces the intermediate VRAM used for RGB decoding by a factor of 100x for 6k video. This also speeds the decoder up by 16% for 4k RGB24 and 31% for 6k video. This is equivalent to what the software decoder does, but with less pointers. --- libavcodec/vulkan/Makefile | 3 +- liba

[FFmpeg-devel] [PATCH 14/18] vulkan_ffv1: externalize extended lookup check

2025-04-12 Thread Lynne
8% speedup on nvidia on 4k. --- libavcodec/vulkan/ffv1_dec.comp | 3 +-- libavcodec/vulkan_ffv1.c| 6 ++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/libavcodec/vulkan/ffv1_dec.comp b/libavcodec/vulkan/ffv1_dec.comp index a6272d4832..4cc3b9987f 100644 --- a/libavcodec

[FFmpeg-devel] [PATCH 11/18] vulkan_ffv1: fix left-2 sample addressing

2025-04-12 Thread Lynne
Typo. Not enough to fix context=1, but its a start. --- libavcodec/vulkan/ffv1_dec.comp | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/libavcodec/vulkan/ffv1_dec.comp b/libavcodec/vulkan/ffv1_dec.comp index 7d3150ed63..1954c050f8 100644 --- a/libavcodec/vulkan/f

[FFmpeg-devel] [PATCH 10/18] vulkan_ffv1: improve buffer barrier correctness for slice state

2025-04-12 Thread Lynne
This is likely a nanooptimization, but its more correct. --- libavcodec/vulkan_ffv1.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libavcodec/vulkan_ffv1.c b/libavcodec/vulkan_ffv1.c index d90db291aa..e511840a01 100644 --- a/libavcodec/vulkan_ffv1.c +++ b/libavcodec/vul

[FFmpeg-devel] [PATCH 09/18] vulkan_ffv1: fix reset shader dependencies

2025-04-12 Thread Lynne
Without a barrier upfront, the reset shader may read data fields not yet set by the setup shader. --- libavcodec/vulkan_ffv1.c | 36 +--- 1 file changed, 17 insertions(+), 19 deletions(-) diff --git a/libavcodec/vulkan_ffv1.c b/libavcodec/vulkan_ffv1.c index ccff92

[FFmpeg-devel] [PATCH 08/18] vulkan_ffv1: fallback to upload if mapping packet fails, fix fallback

2025-04-12 Thread Lynne
The commit which added support for host mapping accidentally broke the original, upload route. For drivers without host-mapping (very few), fix it. --- libavcodec/vulkan_ffv1.c | 19 +++ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/libavcodec/vulkan_ffv1.c b/libav

[FFmpeg-devel] [PATCH 06/18] vulkan_ffv1: allocate just as much memory for slice state as needed

2025-04-12 Thread Lynne
Rather than always using the maximum allowed slices, just use the number of slices present in this frame. --- libavcodec/vulkan_ffv1.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libavcodec/vulkan_ffv1.c b/libavcodec/vulkan_ffv1.c index b6c9320ec2..9747721f0d 100644

[FFmpeg-devel] [PATCH 04/18] vulkan_ffv1: slightly optimize the range decoder

2025-04-12 Thread Lynne
GPUs have cmovs as standard. --- libavcodec/vulkan/rangecoder.comp | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/libavcodec/vulkan/rangecoder.comp b/libavcodec/vulkan/rangecoder.comp index 4272b2a42f..ba8a6cfd9d 100644 --- a/libavcodec/vulkan/rangecoder.comp +++ b/l

[FFmpeg-devel] [PATCH 05/18] vulkan_ffv1: optimize symbol reader

2025-04-12 Thread Lynne
This was the fastest variant tested. --- libavcodec/vulkan/ffv1_dec.comp | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/libavcodec/vulkan/ffv1_dec.comp b/libavcodec/vulkan/ffv1_dec.comp index f9ffe1cee1..7d3150ed63 100644 --- a/libavcodec/vulkan/ffv1_dec.comp +++

[FFmpeg-devel] [PATCH 07/18] vulkan_ffv1: init overread/corrupt fields

2025-04-12 Thread Lynne
Forgotten. --- libavcodec/vulkan/rangecoder.comp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/vulkan/rangecoder.comp b/libavcodec/vulkan/rangecoder.comp index ba8a6cfd9d..e332bce8a5 100644 --- a/libavcodec/vulkan/rangecoder.comp +++ b/libavcodec/vulkan/rangec

[FFmpeg-devel] [PATCH 02/18] vulkan_ffv1: enable acceleration on Intel

2025-04-12 Thread Lynne
Fixed by previous commit. --- libavcodec/vulkan_ffv1.c | 14 -- 1 file changed, 14 deletions(-) diff --git a/libavcodec/vulkan_ffv1.c b/libavcodec/vulkan_ffv1.c index 17bfc943d4..1156d6749b 100644 --- a/libavcodec/vulkan_ffv1.c +++ b/libavcodec/vulkan_ffv1.c @@ -1142,20 +1142,6 @@ sta

[FFmpeg-devel] [PATCH 03/18] vulkan_ffv1: remove unused define

2025-04-12 Thread Lynne
Leftover debug macro. --- libavcodec/vulkan_ffv1.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/libavcodec/vulkan_ffv1.c b/libavcodec/vulkan_ffv1.c index 1156d6749b..b6c9320ec2 100644 --- a/libavcodec/vulkan_ffv1.c +++ b/libavcodec/vulkan_ffv1.c @@ -41,8 +41,6 @@ const FFVulkanDecodeDescri