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

2025-05-01 Thread softworkz .
> -Original Message- > From: ffmpeg-devel On Behalf Of Michael > Niedermayer > Sent: Freitag, 2. Mai 2025 02:12 > To: FFmpeg development discussions and patches > Subject: Re: [FFmpeg-devel] [PATCH v8 14/15] fftools/graphprint: Add execution > graph printing > > On Tue, Apr 29, 2025 at

[FFmpeg-devel] [PATCH 2/2] avcodec/apv_parser: use ff_cbs_read_buf()

2025-05-01 Thread James Almer
Removes an unecessary data copying. Signed-off-by: James Almer --- libavcodec/apv_parser.c | 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/libavcodec/apv_parser.c b/libavcodec/apv_parser.c index bd1894146c..25b80285a5 100644 --- a/libavcodec/apv_parser.c +

[FFmpeg-devel] [PATCH 1/2] avcodec/cbs: add ff_cbs_read_buf()

2025-05-01 Thread James Almer
To take a reference from an existing buffer outside of AVPackets. Signed-off-by: James Almer --- libavcodec/cbs.c | 10 +- libavcodec/cbs.h | 11 +++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/libavcodec/cbs.c b/libavcodec/cbs.c index c0f6c62d20..b26e3ea3de 10

[FFmpeg-devel] [PATCH] avformat/apvdec: also look for an au_info PBU during probing

2025-05-01 Thread James Almer
If present, an Access unit information PBU must be the first in an AU. Signed-off-by: James Almer --- libavformat/apvdec.c | 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/libavformat/apvdec.c b/libavformat/apvdec.c index 5d0b11b654..e53c9ed085 100644 --- a

[FFmpeg-devel] [PATCH 1/2] avformat/av1dec: Remove redundant avio_tell()

2025-05-01 Thread Andreas Rheinhardt
Patches attached. - Andreas From c92302e0c9d8ba4bb37cfec2568d0ad9c1f9d4ea Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Thu, 1 May 2025 19:53:24 +0200 Subject: [PATCH 1/2] avformat/av1dec: Remove redundant avio_tell() AV1DemuxContext.temporal_unit_size is zero after reading the header,

[FFmpeg-devel] [PATCH v1 14/23] avcodec/vvc/ctu: read act_enabled_flag for adaptive color transform

2025-05-01 Thread toqsxw
From: Wu Jianhua Signed-off-by: Wu Jianhua --- libavcodec/vvc/ctu.c | 13 + 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/libavcodec/vvc/ctu.c b/libavcodec/vvc/ctu.c index 979a27c6ad..a83c59f27c 100644 --- a/libavcodec/vvc/ctu.c +++ b/libavcodec/vvc/ctu.c @@ -2150,10

[FFmpeg-devel] [PATCH v1 17/23] avcodec/vvc/dsp: add adaptive_color_transform

2025-05-01 Thread toqsxw
From: Wu Jianhua See 8.7.4.6 Residual modification process for blocks using colour space conversion Signed-off-by: Wu Jianhua --- libavcodec/vvc/dsp.h | 2 ++ libavcodec/vvc/dsp_template.c | 20 2 files changed, 22 insertions(+) diff --git a/libavcodec/vvc/dsp.

[FFmpeg-devel] [PATCH v1 01/23] avcodec/vvc/cabac: add 9.3.3.5 k-th order Exp - Golomb binarization process

2025-05-01 Thread toqsxw
From: Wu Jianhua Signed-off-by: Wu Jianhua --- libavcodec/vvc/cabac.c | 21 + 1 file changed, 21 insertions(+) diff --git a/libavcodec/vvc/cabac.c b/libavcodec/vvc/cabac.c index 5510144893..54055ed736 100644 --- a/libavcodec/vvc/cabac.c +++ b/libavcodec/vvc/cabac.c @@ -928,

[FFmpeg-devel] [PATCH 2/3] avcodec/sanm: add a whitelist for known FOBJ sizes

2025-05-01 Thread Manuel Lauss
Change the size detection a bit to recognize common video sizes, as the FOBJ codecs>=37 cannot always be trusted. Signed-off-by: Manuel Lauss --- libavcodec/sanm.c | 34 +++--- 1 file changed, 27 insertions(+), 7 deletions(-) diff --git a/libavcodec/sanm.c b/libavcod

[FFmpeg-devel] [PATCH 3/3] avcodec/sanm: support "StarWars - Making Magic" video

2025-05-01 Thread Manuel Lauss
The title "StarWars - Making Magic" consists of 640x480 codec3 frames, with a 320x240 codec48 video put on top of that at random x/y offsets. To support this, a new default buffer "fbuf", which holds the final image to be presented, is added, since codec37/47/48 need their buffers need to be priva

[FFmpeg-devel] [PATCH 0/3] avcodec/sanm: Fixes for "StarWars - Making Magic"

2025-05-01 Thread Manuel Lauss
This patchset extends the SANM codec handler to support video of the 1996 CD-ROM Title "StarWars - Making Magic". The videos all consist of 640x480 codec3 backgrounds, with 320x240 codec48 videos put on top at random x/y offsets. #1: some video file advertise codec48 compression type 6. The actual

[FFmpeg-devel] [PATCH 1/3] avcodec/sanm: ignore codec48 compression type 6

2025-05-01 Thread Manuel Lauss
Some videos of "StarWars - Making Magic" have this subcompression type: data just consists of the 16 byte codec48 header; the DOS player simply treats it like nothing to do. Signed-off-by: Manuel Lauss --- libavcodec/sanm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/li

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

2025-05-01 Thread Jan Studený via ffmpeg-devel
The comile error is fixed by adding opencl dependency to configure. --- configure | 1 + libavfilter/Makefile | 1 + libavfilter/allfilters.c | 1 + libavfilter/opencl/lut3d.cl | 177 + libavfilter/opencl_source.h | 2 + libavfilter/vf_lut

Re: [FFmpeg-devel] [PATCH v2 1/2] avcodec: add an APV parser

2025-05-01 Thread James Almer
On 4/27/2025 8:39 PM, James Almer wrote: Signed-off-by: James Almer --- Now working if the first AU is not a primary frame. configure | 1 + libavcodec/Makefile | 1 + libavcodec/apv_parser.c | 133 libavcodec/parsers.c|

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

2025-05-01 Thread James Almer
On 4/28/2025 7:02 PM, James Almer wrote: 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/libavfor

[FFmpeg-devel] [PATCH v1 02/23] avcodec/vvc/cabac: add 9.3.3.7 Fixed-length binarization process

2025-05-01 Thread toqsxw
From: Wu Jianhua Signed-off-by: Wu Jianhua --- libavcodec/vvc/cabac.c | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/libavcodec/vvc/cabac.c b/libavcodec/vvc/cabac.c index 54055ed736..9290ecd90f 100644 --- a/libavcodec/vvc/cabac.c +++ b/libavco

[FFmpeg-devel] [PATCH v1 05/23] avcodec/vvc/ctu: refact out ff_vvc_channel_range

2025-05-01 Thread toqsxw
From: Wu Jianhua Signed-off-by: Wu Jianhua --- libavcodec/vvc/ctu.c | 16 libavcodec/vvc/ctu.h | 1 + libavcodec/vvc/intra.c | 8 3 files changed, 17 insertions(+), 8 deletions(-) diff --git a/libavcodec/vvc/ctu.c b/libavcodec/vvc/ctu.c index 080b740cc6..c621b6d

[FFmpeg-devel] [PATCH v1 04/23] avcodec/vvc: add VVC_MAX_NUM_PALETTE_PREDICTOR_SIZE

2025-05-01 Thread toqsxw
From: Wu Jianhua Signed-off-by: Wu Jianhua --- libavcodec/vvc.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavcodec/vvc.h b/libavcodec/vvc.h index 92639779c1..5490ddb4c8 100644 --- a/libavcodec/vvc.h +++ b/libavcodec/vvc.h @@ -154,6 +154,9 @@ enum { // {sps, ph}_num_{ver, h

[FFmpeg-devel] [PATCH v1 19/23] avcodec/vvc/intra: refact, predict jcbcr to tb->coeffs

2025-05-01 Thread toqsxw
From: Wu Jianhua prepare for adaptive color transform Signed-off-by: Wu Jianhua --- libavcodec/vvc/dsp.h | 1 - libavcodec/vvc/dsp_template.c | 18 - libavcodec/vvc/intra.c| 51 ++- 3 files changed, 20 insertions(+), 50 deletions(-)

[FFmpeg-devel] [PATCH v1 15/23] avcodec/vvc/ctu: fix derive_chroma_intra_pred_mode

2025-05-01 Thread toqsxw
From: Wu Jianhua See 8.4.3 Derivation process for chroma intra prediction mode Signed-off-by: Wu Jianhua --- libavcodec/vvc/ctu.c | 57 +++- 1 file changed, 30 insertions(+), 27 deletions(-) diff --git a/libavcodec/vvc/ctu.c b/libavcodec/vvc/ctu.c index

[FFmpeg-devel] [PATCH v1 16/23] avcodec/vvc/dsp: update the interface of pred_residual_joint for joint cbcr residual functionality

2025-05-01 Thread toqsxw
From: Wu Jianhua Signed-off-by: Wu Jianhua --- libavcodec/vvc/dsp.h | 2 +- libavcodec/vvc/dsp_template.c | 11 --- libavcodec/vvc/intra.c| 2 +- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/libavcodec/vvc/dsp.h b/libavcodec/vvc/dsp.h index fc4c3a679

[FFmpeg-devel] [PATCH v1 12/23] avcodec/vvc/intra: add palette coding decoder

2025-05-01 Thread toqsxw
From: Wu Jianhua Introduction at https://ieeexplore.ieee.org/document/9408666 passed files: 10b422_G_Sony_5.bit 10b422_H_Sony_5.bit 10b422_I_Sony_5.bit 10b422_J_Sony_5.bit 10b422_K_Sony_5.bit 10b422_L_Sony_5.bit 8b422_G_Sony_5.bit 8b422_H_Sony_5.bit 8b422_I_So

[FFmpeg-devel] [PATCH v1 20/23] avcodec/vvc/intra: make lmcs_scale_chroma inplace

2025-05-01 Thread toqsxw
From: Wu Jianhua prepare for adaptive color transform Signed-off-by: Wu Jianhua --- libavcodec/vvc/dsp.h| 2 +- libavcodec/vvc/intra.c | 5 ++--- libavcodec/vvc/intra_template.c | 7 +++ 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/libavcodec/vvc/dsp.

[FFmpeg-devel] [PATCH v1 21/23] avcodec/vvc/intra: refact out lmcs_scale_chroma and add_residual

2025-05-01 Thread toqsxw
From: Wu Jianhua prepare for adaptive color transform Signed-off-by: Wu Jianhua --- libavcodec/vvc/intra.c | 107 - 1 file changed, 63 insertions(+), 44 deletions(-) diff --git a/libavcodec/vvc/intra.c b/libavcodec/vvc/intra.c index b5842a93d1..0ea33e1e

[FFmpeg-devel] [PATCH v1 22/23] avcodec/vvc: add adaptive color transform support

2025-05-01 Thread toqsxw
From: Wu Jianhua passed files: ACT_A_Kwai_3.bit ACT_B_Kwai_3.bit Signed-off-by: Wu Jianhua --- libavcodec/vvc/ctu.c | 2 ++ libavcodec/vvc/intra.c | 13 +++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/libavcodec/vvc/ctu.c b/libavcodec/vvc/ctu.c index e1

[FFmpeg-devel] [PATCH v1 18/23] avcodec/vvc/intra: fix scaling process for transform coefficients

2025-05-01 Thread toqsxw
From: Wu Jianhua See 8.7.3 Scaling process for transform coefficients Signed-off-by: Wu Jianhua --- libavcodec/vvc/intra.c | 22 -- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/libavcodec/vvc/intra.c b/libavcodec/vvc/intra.c index bdcb193077..5f9bbea3d1 10

[FFmpeg-devel] [PATCH v1 23/23] Changelog: VVC supports all content of SCC

2025-05-01 Thread toqsxw
From: Wu Jianhua Signed-off-by: Wu Jianhua --- Changelog | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Changelog b/Changelog index a09dcd82c2..4f47b30038 100644 --- a/Changelog +++ b/Changelog @@ -11,6 +11,8 @@ version : - Enhanced FLV v2: Multitrack audio/video, modern

[FFmpeg-devel] [PATCH v1 03/23] avcodec/vvc/cabac: add palette support

2025-05-01 Thread toqsxw
From: Wu Jianhua Signed-off-by: Wu Jianhua --- libavcodec/vvc/cabac.c | 52 ++ libavcodec/vvc/cabac.h | 9 2 files changed, 61 insertions(+) diff --git a/libavcodec/vvc/cabac.c b/libavcodec/vvc/cabac.c index 9290ecd90f..700b719b7c 100644 --- a/

[FFmpeg-devel] [PATCH v1 10/23] avcodec/vvc/ctu: add palette support

2025-05-01 Thread toqsxw
From: Wu Jianhua Signed-off-by: Wu Jianhua --- libavcodec/vvc/ctu.c| 339 libavcodec/vvc/ctu.h| 11 ++ libavcodec/vvc/dec.c| 3 + libavcodec/vvc/mvs.c| 3 +- libavcodec/vvc/thread.c | 1 + 5 files changed, 327 insertions(+), 30 del

[FFmpeg-devel] [PATCH v1 09/23] avcodec/vvc/intra: add ff_vvc_palette_derive_scale

2025-05-01 Thread toqsxw
From: Wu Jianhua Signed-off-by: Wu Jianhua --- libavcodec/vvc/intra.c | 52 ++ libavcodec/vvc/intra.h | 1 + 2 files changed, 33 insertions(+), 20 deletions(-) diff --git a/libavcodec/vvc/intra.c b/libavcodec/vvc/intra.c index 2e6cb8f09e..2e1703e234 100

[FFmpeg-devel] [PATCH v1 06/23] avcodec/vvc: refact out ep_init and ep_init_wpp

2025-05-01 Thread toqsxw
From: Wu Jianhua Signed-off-by: Wu Jianhua --- libavcodec/vvc/dec.c| 48 ++--- libavcodec/vvc/thread.c | 12 +++ 2 files changed, 39 insertions(+), 21 deletions(-) diff --git a/libavcodec/vvc/dec.c b/libavcodec/vvc/dec.c index f860e116ab..09b0053

[FFmpeg-devel] [PATCH v1 07/23] avcodec/vvc: refact, save pf and ciip_flag in ff_vvc_set_intra_mvf

2025-05-01 Thread toqsxw
From: Wu Jianhua Signed-off-by: Wu Jianhua --- libavcodec/vvc/ctu.c | 4 ++-- libavcodec/vvc/mvs.c | 24 libavcodec/vvc/mvs.h | 2 +- 3 files changed, 23 insertions(+), 7 deletions(-) diff --git a/libavcodec/vvc/ctu.c b/libavcodec/vvc/ctu.c index c621b6d5d6..f77697af

[FFmpeg-devel] [PATCH v1 13/23] avcodec/vvc/cabac: add ff_vvc_cu_act_enabled_flag

2025-05-01 Thread toqsxw
From: Wu Jianhua Signed-off-by: Wu Jianhua --- libavcodec/vvc/cabac.c | 5 + libavcodec/vvc/cabac.h | 1 + 2 files changed, 6 insertions(+) diff --git a/libavcodec/vvc/cabac.c b/libavcodec/vvc/cabac.c index 700b719b7c..6847ce59af 100644 --- a/libavcodec/vvc/cabac.c +++ b/libavcodec/vvc/cab

[FFmpeg-devel] [PATCH v1 11/23] avcodec/vvc/filter: skip deblocking filter for palette

2025-05-01 Thread toqsxw
From: Wu Jianhua Signed-off-by: Wu Jianhua --- libavcodec/vvc/filter.c | 29 ++--- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/libavcodec/vvc/filter.c b/libavcodec/vvc/filter.c index a7f102bc64..e3886d008e 100644 --- a/libavcodec/vvc/filter.c +++ b/li

[FFmpeg-devel] [PATCH v1 08/23] avcodec/vvc/ctu: refact out intra_data

2025-05-01 Thread toqsxw
From: Wu Jianhua Signed-off-by: Wu Jianhua --- libavcodec/vvc/ctu.c | 64 +++- 1 file changed, 40 insertions(+), 24 deletions(-) diff --git a/libavcodec/vvc/ctu.c b/libavcodec/vvc/ctu.c index f77697af08..c5df898f7b 100644 --- a/libavcodec/vvc/ctu.c +++ b

Re: [FFmpeg-devel] [PATCH] postproc/postprocess_template: Fix left shift of negative numbers

2025-05-01 Thread Michael Niedermayer
On Wed, Apr 30, 2025 at 08:36:01PM +0200, Andreas Rheinhardt wrote: > Patch attached. > > - Andreas > postprocess_template.c |4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > 805bee95b493f276f7802afbd7180c0f096ea52a > 0001-postproc-postprocess_template-Fix-left-shift-of-nega.pat

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

2025-05-01 Thread Lynne
On 01/05/2025 07:05, Russell Greene wrote: From: Russell Greene Previously, it was assumed that `drmFormatModifierPlaneCount` was one for all modifiers when exporting, which is not always the case, in particular for AMD GPUs and maybe others. Fetch the number of memory planes and fill the stru

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

2025-05-01 Thread Michael Niedermayer
On Tue, Apr 29, 2025 at 08:33:50PM +, softworkz . wrote: > > > > -Original Message- > > From: ffmpeg-devel On Behalf Of Michael > > Niedermayer > > Sent: Dienstag, 29. April 2025 21:35 > > To: FFmpeg development discussions and patches > > Subject: Re: [FFmpeg-devel] [PATCH v8 14/15

[FFmpeg-devel] [PATCH 7/7] postproc/tests/blocktest: Test several filter combinations

2025-05-01 Thread Michael Niedermayer
Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer --- libpostproc/tests/blocktest.c | 20 +- tests/ref/fate/blocktest | 2100 - 2 files changed, 1815 insertions(+), 305 deletions(-) diff --git a/libpostproc/tests/blocktest.c b/libpostproc

[FFmpeg-devel] [PATCH 6/7] postproc/tests/blocktest: initialize qp array randomly to for testing

2025-05-01 Thread Michael Niedermayer
Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer --- libpostproc/tests/blocktest.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libpostproc/tests/blocktest.c b/libpostproc/tests/blocktest.c index c91ccd8f5be..d40e00495aa 100644 --- a/libpostproc/te

[FFmpeg-devel] [PATCH 4/7] postproc/postprocess_template: fix dering with a 16x16 image

2025-05-01 Thread Michael Niedermayer
Signed-off-by: Michael Niedermayer --- libpostproc/postprocess_template.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libpostproc/postprocess_template.c b/libpostproc/postprocess_template.c index 0531e39477a..3dfe701b5dc 100644 --- a/libpostproc/postprocess_template.c +++

[FFmpeg-devel] [PATCH 3/7] postproc/tests/stripetest: use dimensions

2025-05-01 Thread Michael Niedermayer
Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer --- libpostproc/tests/stripetest.c | 6 +- tests/ref/fate/stripetest | 720 - 2 files changed, 363 insertions(+), 363 deletions(-) diff --git a/libpostproc/tests/stripetest.c b/libpostproc

[FFmpeg-devel] [PATCH 1/7] postproc/tests: Add test for temporal denoise

2025-05-01 Thread Michael Niedermayer
Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer --- libpostproc/Makefile | 1 + libpostproc/tests/temptest.c | 120 + tests/fate/libpostproc.mak | 4 + tests/ref/fate/temptest | 336 +++ 4 files changed, 461 inser

[FFmpeg-devel] [PATCH 5/7] postproc/tests/blocktest: use dimensions

2025-05-01 Thread Michael Niedermayer
Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer --- libpostproc/tests/blocktest.c | 6 +- tests/ref/fate/blocktest | 600 +- 2 files changed, 303 insertions(+), 303 deletions(-) diff --git a/libpostproc/tests/blocktest.c b/libpostproc/t

[FFmpeg-devel] [PATCH 2/7] libpostproc: check minimum size

2025-05-01 Thread Michael Niedermayer
Signed-off-by: Michael Niedermayer --- libpostproc/postprocess.c | 5 + 1 file changed, 5 insertions(+) diff --git a/libpostproc/postprocess.c b/libpostproc/postprocess.c index 0223bab5484..eab22289192 100644 --- a/libpostproc/postprocess.c +++ b/libpostproc/postprocess.c @@ -896,6 +896,11 @