Re: [FFmpeg-devel] [PATCH] configure: identify loong64 for loongarch.

2025-05-18 Thread yinshiyou-hf
> -原始邮件- > 发件人: 陈昊 > 发送时间:2025-05-14 08:55:14 (星期三) > 收件人: "FFmpeg development discussions and patches" > 主题: Re: [FFmpeg-devel] [PATCH] configure: identify loong64 for loongarch. > > > -原始邮件- > > 发件人: "Shiyou Yin" > > 发送时间:2025-05-13 09:11:34 (星期二) > > 收件人: ffmpeg-devel@ffmpeg.

Re: [FFmpeg-devel] [PATCH] avformat/framecrcenc: List types and checksums for for side data

2025-05-18 Thread Michael Niedermayer
On Sun, May 18, 2025 at 02:25:38PM +0200, Michael Niedermayer wrote: > This allows detecting changes and regressions in side data related code, same > as what > framecrc does for before already for packet data itself. This code is also available as source plugin at: https://github.com/michaelni/F

[FFmpeg-devel] [PATCH 5/7] avfilter/blackdetect_vulkan: add hw accelerated blackdetect filter

2025-05-18 Thread Niklas Haas
From: Niklas Haas Like vf_blackdetect but better, faster, stronger, harder. Signed-off-by: Niklas Haas Sponsored-by: nxtedition --- configure | 1 + doc/filters.texi| 2 +- libavfilter/Makefile| 1 + libavfilter/allfilters.c

[FFmpeg-devel] [PATCH 1/1] avcodec/libhelix-aac: add aac decoding via libhelix.

2025-05-18 Thread wr . raywoo
From: Ray Woo libhelix-aac decoder is a kind of fixed-point HE-AAC decoder developed by RealNetworks, 2005. It behaviours well in embeded platforms where resources are limited. Signed-off-by: Ray Woo --- Changelog| 1 + configure| 6 ++ doc/general_

Re: [FFmpeg-devel] [PATCH] tests/fate/matroska: Add container cropping test

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

Re: [FFmpeg-devel] [PATCH] Makefile: Remove postproc from ALLFFLIBS

2025-05-18 Thread Ramiro Polla
On Mon, May 12, 2025 at 5:43 AM Zhao Zhili wrote: > > From: Zhao Zhili > > Fix > ld: warning: search path 'libpostproc' not found > --- > Makefile | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/Makefile b/Makefile > index e2250f6bc6..17f9d2da4f 100644 > --- a/Makefile

[FFmpeg-devel] [PATCH 4/7] avfilter/vf_blackdetect: add alpha option

2025-05-18 Thread Niklas Haas
From: Niklas Haas Check the alpha plane for (almost) transparent frames, instead of checking the luma channel for almost black frames. Signed-off-by: Niklas Haas Sponsored-by: nxtedition --- doc/filters.texi | 6 + libavfilter/vf_blackdetect.c | 51 +++-

[FFmpeg-devel] [PATCH 1/7] avutil/vulkan: add YUVA pixel formats support

2025-05-18 Thread Niklas Haas
From: Niklas Haas Signed-off-by: Niklas Haas Sponsored-by: nxtedition --- libavutil/hwcontext_vulkan.c | 17 + libavutil/vulkan.c | 15 +-- 2 files changed, 30 insertions(+), 2 deletions(-) diff --git a/libavutil/hwcontext_vulkan.c b/libavutil/hwcontext_vu

[FFmpeg-devel] [PATCH 6/7] avfilter/alphadetect_vulkan: add alpha type detection filter

2025-05-18 Thread Niklas Haas
From: Niklas Haas This determines whether the input has any pixel values exceeding the alpha channel. In this case, we can be sure that the input is not premultiplied. In all other cases, the result in indeterminate. As such, we can only have false negatives, but no false positives. Signed-off-b

[FFmpeg-devel] [PATCH 7/7] avutil/vf_scdet_vulkan: add new filter

2025-05-18 Thread Niklas Haas
From: Niklas Haas Carbon copy of vf_scdet. Signed-off-by: Niklas Haas Sponsored-by: nxtedition --- configure | 1 + libavfilter/Makefile | 1 + libavfilter/allfilters.c | 1 + libavfilter/vf_scdet_vulkan.c | 412 ++ 4 file

[FFmpeg-devel] [PATCH 2/7] avutil/vulkan: automatically enable shader device address usage bit

2025-05-18 Thread Niklas Haas
From: Niklas Haas We require this internally when using descriptor buffers, so it makes sense to enable it internally, also. --- libavutil/vulkan.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavutil/vulkan.c b/libavutil/vulkan.c index 5f2ac6267d..97c008c809 100644 --- a/libavutil/v

[FFmpeg-devel] [PATCH 3/7] avfilter/vf_gblur_vulkan: omit unnecessary buffer usage flag

2025-05-18 Thread Niklas Haas
From: Niklas Haas Implied internally now when needed. --- libavfilter/vf_gblur_vulkan.c | 1 - 1 file changed, 1 deletion(-) diff --git a/libavfilter/vf_gblur_vulkan.c b/libavfilter/vf_gblur_vulkan.c index 80b66de735..fb676a7fc9 100644 --- a/libavfilter/vf_gblur_vulkan.c +++ b/libavfilter/vf_gb

Re: [FFmpeg-devel] [PATCH 1/7] avcodec/svq3: Factor out decoding extradata

2025-05-18 Thread Andreas Rheinhardt
Andreas Rheinhardt: > Patches attached. > > - Andreas > Will apply this patchset tomorrow unless there is an objection. - Andreas ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe,

Re: [FFmpeg-devel] [PATCH v2] ffmpeg: Don't print graphs if there are no outputs yet

2025-05-18 Thread Mark Thompson
On 17/05/2025 21:04, softworkz . wrote: >> -Original Message- >> From: ffmpeg-devel On Behalf Of Mark >> Thompson >> Sent: Samstag, 17. Mai 2025 22:02 >> To: ffmpeg-devel@ffmpeg.org >> Subject: [FFmpeg-devel] [PATCH v2] ffmpeg: Don't print graphs if there are no >> outputs yet >> >> Avoids

Re: [FFmpeg-devel] [PATCH] avformat/avformat: Remove outdated io_close2 documentation

2025-05-18 Thread Andreas Rheinhardt
Andreas Rheinhardt: > Patch attached. > > - Andreas > Will apply tomorrow unless there are objections. - Andreas ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above,

Re: [FFmpeg-devel] [PATCH] avformat/framecrcenc: List types and checksums for for side data

2025-05-18 Thread James Almer
On 5/18/2025 9:25 AM, Michael Niedermayer wrote: This allows detecting changes and regressions in side data related code, same as what framecrc does for before already for packet data itself. Signed-off-by: Michael Niedermayer --- libavformat/framecrcenc.c | 116 +- tests

Re: [FFmpeg-devel] [PATCH 04/17] tests/checkasm: add checkasm_check_float

2025-05-18 Thread Martin Storsjö
On Sun, 18 May 2025, Niklas Haas wrote: From: Niklas Haas --- tests/checkasm/checkasm.c | 1 + tests/checkasm/checkasm.h | 1 + 2 files changed, 2 insertions(+) diff --git a/tests/checkasm/checkasm.c b/tests/checkasm/checkasm.c index 71d1e5766c..c77216ed57 100644 --- a/tests/checkasm/checkasm.c

[FFmpeg-devel] [PATCH] avutil/refstruct: Remove redundant check

2025-05-18 Thread Andreas Rheinhardt
Patch attached. - Andreas From 8944dfb2dd57d6b7e452f5e2e95f4b9e01d29acb Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Mon, 19 May 2025 03:34:34 +0200 Subject: [PATCH] avutil/refstruct: Remove redundant check We now require C11. Signed-off-by: Andreas Rheinhardt --- libavutil/refstru

[FFmpeg-devel] [PATCH] configure: correct liboapv feature support

2025-05-18 Thread Gyan Doshi
Only encoding support has been added for liboapv --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index 0609dac4ab..30063e6b34 100755 --- a/configure +++ b/configure @@ -249,7 +249,7 @@ External library support: --enable-liblensfun ena

Re: [FFmpeg-devel] [PATCH] configure: identify loong64 for loongarch.

2025-05-18 Thread Zhao Zhili
> On May 18, 2025, at 15:43, yinshiyou...@loongson.cn wrote: > >> -原始邮件- >> 发件人: 陈昊 mailto:chen...@loongson.cn>> >> 发送时间:2025-05-14 08:55:14 (星期三) >> 收件人: "FFmpeg development discussions and patches" > > >> 主题: Re: [FFmpeg-devel] [PATCH] configure: identif

[FFmpeg-devel] [PATCH 16/17] swscale/format: add new format decode/encode logic

2025-05-18 Thread Niklas Haas
From: Niklas Haas This patch adds format handling code for the new operations. This entails fully decoding a format to standardized RGB, and the inverse. Handling it this way means we can always guarantee that a conversion path exists from A to B without having to explicitly cover logic for each

[FFmpeg-devel] [PATCH 07/17] swscale/optimizer: add high-level ops optimizer

2025-05-18 Thread Niklas Haas
From: Niklas Haas This is responsible for taking a "naive" ops list and optimizing it as much as possible. Also includes a small analyzer that generates component metadata for use by the optimizer. --- libswscale/Makefile| 1 + libswscale/ops.h | 12 + libswscale/ops_optimiz

[FFmpeg-devel] [PATCH 11/17] swscale/ops_chain: add internal abstraction for kernel linking

2025-05-18 Thread Niklas Haas
From: Niklas Haas See doc/swscale-v2.txt for design details. --- libswscale/Makefile| 1 + libswscale/ops_chain.c | 293 + libswscale/ops_chain.h | 109 +++ 3 files changed, 403 insertions(+) create mode 100644 libswscale/ops_chain.c cr

[FFmpeg-devel] [PATCH 08/17] swscale/ops_internal: add internal ops backend API

2025-05-18 Thread Niklas Haas
From: Niklas Haas This adds an internal API for ops backends, which are responsible for compiling op lists into executable functions. --- libswscale/ops.c | 62 ++ libswscale/ops_internal.h | 108 ++ 2 files changed, 170 insertion

[FFmpeg-devel] [PATCH 17/17] swscale/graph: allow experimental use of new format handler

2025-05-18 Thread Niklas Haas
From: Niklas Haas \o/ --- libswscale/graph.c | 84 -- 1 file changed, 82 insertions(+), 2 deletions(-) diff --git a/libswscale/graph.c b/libswscale/graph.c index dc7784aa49..24930e7627 100644 --- a/libswscale/graph.c +++ b/libswscale/graph.c @@ -34,6

[FFmpeg-devel] [PATCH 14/17] swscale/x86: add SIMD backend

2025-05-18 Thread Niklas Haas
From: Niklas Haas This covers most 8-bit and 16-bit ops, and some 32-bit ops. It also covers all floating point operations. While this is not yet 100% coverage, it's good enough for the vast majority of formats out there. Of special note is the packed shuffle fast path, which uses pshufb at vect

[FFmpeg-devel] [PATCH 12/17] swscale/ops_backend: add reference backend basend on C templates

2025-05-18 Thread Niklas Haas
From: Niklas Haas This will serve as a reference for the SIMD backends to come. That said, with auto-vectorization enabled, the performance of this is not atrocious, and can often beat even the old SIMD. In theory, we can dramatically speed it up by using GCC vectors instead of arrays, but the p

[FFmpeg-devel] [PATCH 15/17] tests/checkasm: add checkasm tests for swscale ops

2025-05-18 Thread Niklas Haas
From: Niklas Haas Because of the lack of an external ABI on low-level kernels, we cannot directly test internal functions. Instead, we construct a minimal op chain consisting of a read, the op to be tested, and a write. The bigger complication arises from the fact that the backend may generate a

Re: [FFmpeg-devel] [PATCH] avformat/mpegts: update stream info when PMT ES stream_type changes

2025-05-18 Thread Pavel Koshevoy
pushed in commit 0021484d05f9b0f032fa319399de6e24eea0c04f Thank you, Pavel. On Wed, May 14, 2025 at 4:40 PM Pavel Koshevoy wrote: > If there are no further comments I'll commit and push this some time > during the weekend. > > Pavel. > > > On Fri, May 9, 2025, 6:01 PM Pavel Koshevoy wrote:

[FFmpeg-devel] [PATCH 09/17] swscale/ops: add dispatch layer

2025-05-18 Thread Niklas Haas
From: Niklas Haas This handles the low-level execution of an op list, and integration into the SwsGraph infrastructure. To handle frames with insufficient padding in the stride (or a width smaller than one block size), we use a fallback loop that pads the last column of pixels using `memcpy` into

Re: [FFmpeg-devel] [PATCH v2] ffmpeg: Don't print graphs if there are no outputs yet

2025-05-18 Thread softworkz .
> -Original Message- > From: ffmpeg-devel On Behalf Of Mark > Thompson > Sent: Sonntag, 18. Mai 2025 16:22 > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH v2] ffmpeg: Don't print graphs if there are > no outputs yet > > On 17/05/2025 21:04, softworkz . wrote: > >> ---

[FFmpeg-devel] [PATCH 06/17] swscale/ops: introduce new low level framework

2025-05-18 Thread Niklas Haas
From: Niklas Haas See docs/swscale-v2.txt for an in-depth introduction to the new approach. This commit merely introduces the ops definitions and boilerplate functions. The subsequent commits will flesh out the underlying implementation. --- libswscale/Makefile | 1 + libswscale/ops.c| 53

[FFmpeg-devel] [PATCH 05/17] swscale: add SWS_UNSTABLE flag

2025-05-18 Thread Niklas Haas
From: Niklas Haas Give users and developers a way to opt in to the new format conversion code, and more code from the swscale rewrite in general, even while development is still ongoing. --- doc/APIchanges | 3 +++ doc/scaler.texi | 4 libswscale/options.c | 1 + libswscale/swsca

[FFmpeg-devel] [PATCH 04/17] tests/checkasm: add checkasm_check_float

2025-05-18 Thread Niklas Haas
From: Niklas Haas --- tests/checkasm/checkasm.c | 1 + tests/checkasm/checkasm.h | 1 + 2 files changed, 2 insertions(+) diff --git a/tests/checkasm/checkasm.c b/tests/checkasm/checkasm.c index 71d1e5766c..c77216ed57 100644 --- a/tests/checkasm/checkasm.c +++ b/tests/checkasm/checkasm.c @@ -126

[FFmpeg-devel] [PATCH 03/17] tests/checkasm: increase number of runs in between measurements

2025-05-18 Thread Niklas Haas
From: Niklas Haas Sometimes, when measuring very small functions, rdtsc is not accurate enough to get a reliable measurement. This increases the number of runs inside the inner loop from 4 to 32, which should help a lot. Less important when using the more precise linux-perf API, but still useful.

Re: [FFmpeg-devel] [PATCH] avformat/framecrcenc: List types and checksums for for side data

2025-05-18 Thread Andreas Rheinhardt
Michael Niedermayer: > This allows detecting changes and regressions in side data related code, same > as what > framecrc does for before already for packet data itself. > > Signed-off-by: Michael Niedermayer > --- > libavformat/framecrcenc.c | 116 +- > tests/ref/fate/autoro

[FFmpeg-devel] [PATCH 01/17] swscale/format: rename legacy format conversion table

2025-05-18 Thread Niklas Haas
From: Niklas Haas --- libswscale/format.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/libswscale/format.c b/libswscale/format.c index e4c1348b90..b77081dd7a 100644 --- a/libswscale/format.c +++ b/libswscale/format.c @@ -24,14 +24,14 @@ #include "form

[FFmpeg-devel] [PATCH 02/17] swscale/format: add ff_fmt_clear()

2025-05-18 Thread Niklas Haas
From: Niklas Haas Reset an SwsFormat to its fully unset/invalid state. --- libswscale/format.h | 14 ++ 1 file changed, 14 insertions(+) diff --git a/libswscale/format.h b/libswscale/format.h index 3b6d745159..be92038f4f 100644 --- a/libswscale/format.h +++ b/libswscale/format.h @@

[FFmpeg-devel] [PATCH 10/17] swscale/optimizer: add packed shuffle solver

2025-05-18 Thread Niklas Haas
From: Niklas Haas This can turn any compatible sequence of operations into a single packed shuffle, including packed swizzling, grayscale->RGB conversion, endianness swapping, RGB bit depth conversions, rgb24->rgb0 alpha clearing and more. --- libswscale/ops_internal.h | 17 +++ libswscale/

[FFmpeg-devel] [PATCH 13/17] swscale/ops_memcpy: add 'memcpy' backend for plane->plane copies

2025-05-18 Thread Niklas Haas
From: Niklas Haas Provides a generic fast path for any operation list that can be decomposed into a series of memcpy and memset operations. 25% faster than the x86 backend for yuv444p -> yuva444p 33% faster than the x86 backend for gray -> yuvj444p --- libswscale/Makefile | 1 + libswscal

Re: [FFmpeg-devel] [PATCH] avformat/framecrcenc: List types and checksums for for side data

2025-05-18 Thread Michael Niedermayer
Hi On Sun, May 18, 2025 at 04:43:01PM +0200, Andreas Rheinhardt wrote: > Michael Niedermayer: > > This allows detecting changes and regressions in side data related code, > > same as what > > framecrc does for before already for packet data itself. > > > > Signed-off-by: Michael Niedermayer > >

[FFmpeg-devel] [PATCH 3/3] swscale/swscale_unscaled: fix packed16togbra16() for formats with bpc between 9-14 bits

2025-05-18 Thread Ramiro Polla
Currently, packed16togbra16() always sets the alpha value to 0x, without taking the bit depth into consideration. This commit restricts the alpha value to the bit depth. --- libswscale/swscale_unscaled.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libswscale/sw

[FFmpeg-devel] [PATCH 2/3] swscale/swscale_unscaled: fix packed30togbra10() for formats with bpc between 9-14 bits

2025-05-18 Thread Ramiro Polla
Currently, packed30togbra10() always sets the alpha value to 0x, without taking the bit depth into consideration. This commit restricts the alpha value to the bit depth. --- libswscale/swscale_unscaled.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libswscale/swsca

[FFmpeg-devel] [PATCH 1/3] swscale/swscale_unscaled: fix planarCopyWrapper() for yuv444p => yuva444p

2025-05-18 Thread Ramiro Polla
Currently, planarCopyWrapper() assumes that src[3] must be NULL when the source format has no alpha plane. This commit updates the condition for filling the alpha plane based on the number of components available in the source format as well. --- libswscale/swscale_unscaled.c | 2 +- 1 file chang

[FFmpeg-devel] [PATCH] swscale/swscale_unscaled: fix planarRgbToplanarRgbWrapper() for formats with bpc between 9-14 bits

2025-05-18 Thread Ramiro Polla
Currently, planarRgbToplanarRgbWrapper() always sets the alpha value to 255, without taking the bit depth into consideration. This commit restricts the alpha value to the bit depth. --- libswscale/swscale_unscaled.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/l

Re: [FFmpeg-devel] [PATCH 3/3] swscale/swscale_unscaled: fix packed16togbra16() for formats with bpc between 9-14 bits

2025-05-18 Thread James Almer
On 5/18/2025 5:52 PM, Ramiro Polla wrote: Currently, packed16togbra16() always sets the alpha value to 0x, without taking the bit depth into consideration. This commit restricts the alpha value to the bit depth. packed16togbra16() seems to only be called for BGR48 and BGRA64, both of whic

Re: [FFmpeg-devel] [PATCH 3/3] swscale/swscale_unscaled: fix packed16togbra16() for formats with bpc between 9-14 bits

2025-05-18 Thread James Almer
On 5/18/2025 6:14 PM, James Almer wrote: On 5/18/2025 5:52 PM, Ramiro Polla wrote: Currently, packed16togbra16() always sets the alpha value to 0x, without taking the bit depth into consideration. This commit restricts the alpha value to the bit depth. packed16togbra16() seems to only be

Re: [FFmpeg-devel] [PATCH] avformat/framecrcenc: List types and checksums for for side data

2025-05-18 Thread Michael Niedermayer
On Sun, May 18, 2025 at 11:43:14AM -0300, James Almer wrote: > On 5/18/2025 9:25 AM, Michael Niedermayer wrote: > > This allows detecting changes and regressions in side data related code, > > same as what > > framecrc does for before already for packet data itself. > > > > Signed-off-by: Michael

Re: [FFmpeg-devel] [PATCH 3/3] swscale/swscale_unscaled: fix packed16togbra16() for formats with bpc between 9-14 bits

2025-05-18 Thread Ramiro Polla
On Sun, May 18, 2025 at 11:17 PM James Almer wrote: > On 5/18/2025 6:14 PM, James Almer wrote: > > On 5/18/2025 5:52 PM, Ramiro Polla wrote: > >> Currently, packed16togbra16() always sets the alpha value to 0x, > >> without taking the bit depth into consideration. > >> > >> This commit restric

[FFmpeg-devel] [PATCH] avcodec/rv60dec: Avoid branch when decoding cbp16

2025-05-18 Thread Andreas Rheinhardt
Patch attached. - Andreas From 02724d5792348bea618c049034dc0febf24a46ac Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Sun, 18 May 2025 23:12:03 +0200 Subject: [PATCH] avcodec/rv60dec: Avoid branch when decoding cbp16 Signed-off-by: Andreas Rheinhardt --- libavcodec/rv60dec.c | 11 +++

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

2025-05-18 Thread Frank Plowman
On 29/04/2025 14:24, Nuo Mi wrote: > Hi Frank, > Thank you for the detail. > > On Mon, Apr 28, 2025 at 10:35 PM Frank Plowman > wrote: > >> 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 a

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

2025-05-18 Thread Frank Plowman
In d5dbcc00d889fb17948b025a468b00ddbea9e058, it was hoped that detection of subpicture overlaps could be performed at the tile level, so as to avoid introducing per-CTU checks. Unfortunately since that patch, fuzzing has indicated there are some structures involving pps_subpic_one_or_more_tiles_sli

Re: [FFmpeg-devel] [PATCH] avformat/mpegts: update stream info when PMT ES stream_type changes

2025-05-18 Thread Pavel Koshevoy
On Sun, May 18, 2025 at 9:00 AM Pavel Koshevoy wrote: > pushed in commit 0021484d05f9b0f032fa319399de6e24eea0c04f > > also backported to release/7.1, commit 24de8a98cfb33b10992772ba54f650eb61c96d44 and backported to release/6.1, commit 8723e83699471edff046279e5411ca8e6c1a1ea6 Thank you, Pave