Re: [FFmpeg-devel] [PATCH] avcodec/vvcdec: frame_context_setup, set fc->ref to NULL

2024-02-13 Thread Nuo Mi
On Tue, Feb 13, 2024 at 6:39 PM Frank Plowman wrote: > On 13/02/2024 02:30, Nuo Mi wrote: > > fc->ref points to an old VVCFrame, which cannot be used after > frame_context_setup. > > This prevents crashes in decode_nal_units-->ff_vvc_report_frame_finished. > > &g

Re: [FFmpeg-devel] [PATCH] lavc/vvc: Use pps->{width, height} over sps->{width, height}

2024-02-15 Thread Nuo Mi
On Thu, Feb 15, 2024 at 7:54 PM wrote: > From: Frank Plowman > > The PPS should be used instead of the SPS to get the current picture's > dimensions. Using the SPS can cause issues if the resolution changes > mid-sequence. In particular, it was leading to invalid memory accesses > if the resol

Re: [FFmpeg-devel] [PATCH] lavc/vvc: Fail inter prediction if using IBC

2024-02-17 Thread Nuo Mi
Hi Frank, Thank you for the patch. The IBC is working on my side. I will send out the patch in the following weeks. Could you send me the fuzz file? I want to ensure that it will not cause my patch to crash. On Sat, Feb 17, 2024 at 10:48 PM Frank Plowman wrote: > IBC is not yet implemented. Fai

Re: [FFmpeg-devel] [PATCH 1/4] avcodec/vvc/vvc_ps: Check before access

2024-02-19 Thread Nuo Mi
On Tue, Feb 20, 2024 at 7:24 AM Andreas Rheinhardt < andreas.rheinha...@outlook.com> wrote: > Andreas Rheinhardt: > > max_bin_idx can be at most LMCS_MAX_BIN_SIZE - 1 here, > > so pivot[LCMS_MAX_BIN_SIZE + 1] may be accessed, > > but pivot has only LCMS_MAX_BIN_SIZE + 1 elements > > (unless the va

[FFmpeg-devel] [PATCH 00/11] Add Intra Block Copy support to the vvc decoder

2024-02-21 Thread Nuo Mi
*** BLURB HERE *** Nuo Mi (8): avcodec/vvcdec: refact out deblock_bs to reduce duplicate code avcodec/vvcdec: set CuPredMode table for chroma avcodec/vvcdec: deblock_bs, fix intra check for IBC avcodec/vvcdec: cabac, fix non_inter_flag, pred_mode_flag, amvr_shift for IBC avcodec

[FFmpeg-devel] [PATCH 02/11] avcodec/vvcdec: set CuPredMode table for chroma

2024-02-21 Thread Nuo Mi
follow the spec --- libavcodec/vvc/vvc_ctu.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libavcodec/vvc/vvc_ctu.c b/libavcodec/vvc/vvc_ctu.c index 36f98f5f2b..2e48f7bed8 100644 --- a/libavcodec/vvc/vvc_ctu.c +++ b/libavcodec/vvc/vvc_ctu.c @@ -1227,9 +1227,12 @@ stati

[FFmpeg-devel] [PATCH 05/11] avcodec/vvcdec: implement update_hmvp for IBC

2024-02-21 Thread Nuo Mi
From: Wu Jianhua Signed-off-by: Wu Jianhua Signed-off-by: Nuo Mi --- libavcodec/vvc/vvc_ctu.c | 9 +-- libavcodec/vvc/vvc_ctu.h | 3 +++ libavcodec/vvc/vvc_mvs.c | 53 ++-- 3 files changed, 44 insertions(+), 21 deletions(-) diff --git a/libavcodec

[FFmpeg-devel] [PATCH 09/11] avcodec/vvcdec: refact, rename !is_mvp to check_mer

2024-02-21 Thread Nuo Mi
For IBC, we'll utilize the check_available function. However, neither MVP nor merge mode need to check the motion estimation region. Let's rename it to avoid confusion. --- libavcodec/vvc/vvc_mvs.c | 18 +++--- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/libavcodec/v

[FFmpeg-devel] [PATCH 10/11] avcodec/vvcdec: add Intra Block Copy parser

2024-02-21 Thread Nuo Mi
From: Wu Jianhua Co-authored-by: Nuo Mi --- libavcodec/vvc/vvc_ctu.c | 76 +- libavcodec/vvc/vvc_ctu.h | 1 + libavcodec/vvc/vvc_mvs.c | 113 ++- libavcodec/vvc/vvc_mvs.h | 2 + 4 files changed, 177 insertions(+), 15 deletions

[FFmpeg-devel] [PATCH 11/11] avcodec/vvcdec: add Intra Block Copy decoder

2024-02-21 Thread Nuo Mi
LOSSLESS_B_HHI_3.bit Signed-off-by: Wu Jianhua Signed-off-by: Nuo Mi --- libavcodec/vvc/vvc_intra.c | 81 ++ libavcodec/vvc/vvcdec.c| 25 libavcodec/vvc/vvcdec.h| 3 ++ 3 files changed, 109 insertions(+) diff --git a/libavcodec/vvc

[FFmpeg-devel] [PATCH 07/11] avcodec/vvcdec: ff_vvc_set_intra_mvf, refact to support dmvr tab

2024-02-21 Thread Nuo Mi
--- libavcodec/vvc/vvc_ctu.c | 2 +- libavcodec/vvc/vvc_mvs.c | 4 ++-- libavcodec/vvc/vvc_mvs.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libavcodec/vvc/vvc_ctu.c b/libavcodec/vvc/vvc_ctu.c index b78a1417c7..00476c81e4 100644 --- a/libavcodec/vvc/vvc_ctu.c +++ b/libav

[FFmpeg-devel] [PATCH 08/11] avcodec/vvcdec: fix dual tree for skipped transform tree/unit

2024-02-21 Thread Nuo Mi
fix IBC_E_Tencent_1.bit --- libavcodec/vvc/vvc_ctu.c | 24 +++- libavcodec/vvc/vvc_intra.c | 6 -- 2 files changed, 19 insertions(+), 11 deletions(-) diff --git a/libavcodec/vvc/vvc_ctu.c b/libavcodec/vvc/vvc_ctu.c index 00476c81e4..2cf6e82f26 100644 --- a/libavcodec/vv

[FFmpeg-devel] [PATCH 06/11] avcodec/vvcdec: skip inter prediction for IBC blocks

2024-02-21 Thread Nuo Mi
Intra Block Copy relies on reconstructed pixels from the current frame. We skip IBC during the inter prediction stage and handle it during the reconstruction stage. --- libavcodec/vvc/vvc_inter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/vvc/vvc_inter.c b/liba

[FFmpeg-devel] [PATCH 04/11] avcodec/vvcdec: cabac, fix non_inter_flag, pred_mode_flag, amvr_shift for IBC

2024-02-21 Thread Nuo Mi
--- libavcodec/vvc/vvc_cabac.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libavcodec/vvc/vvc_cabac.c b/libavcodec/vvc/vvc_cabac.c index 4342dfc342..5e24a1b677 100644 --- a/libavcodec/vvc/vvc_cabac.c +++ b/libavcodec/vvc/vvc_cabac.c @@ -1196,10 +1196,10 @@ VVCSpl

[FFmpeg-devel] [PATCH 01/11] avcodec/vvcdec: refact out deblock_bs to reduce duplicate code

2024-02-21 Thread Nuo Mi
--- libavcodec/vvc/vvc_filter.c | 176 +++- 1 file changed, 55 insertions(+), 121 deletions(-) diff --git a/libavcodec/vvc/vvc_filter.c b/libavcodec/vvc/vvc_filter.c index 5fa711c9e0..ca541fd997 100644 --- a/libavcodec/vvc/vvc_filter.c +++ b/libavcodec/vvc/vvc_filt

[FFmpeg-devel] [PATCH 03/11] avcodec/vvcdec: deblock_bs, fix intra check for IBC

2024-02-21 Thread Nuo Mi
An Intra Block Copy clip may use different modes for luma and chroma. For example, MODE_IBC for luma and MODE_INTRA for chroma. We have to check luma and chroma CuPredMode (cpm) separately. --- libavcodec/vvc/vvc_filter.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/li

Re: [FFmpeg-devel] [PATCH 2/3] avcodec/x86: disable hevc 12b luma deblock

2024-02-23 Thread Nuo Mi
On Wed, Feb 21, 2024 at 7:10 PM J. Dekker wrote: > Over/underflow in some cases. > > Signed-off-by: J. Dekker > --- > libavcodec/x86/hevcdsp_init.c | 9 + > 1 file changed, 5 insertions(+), 4 deletions(-) > > diff --git a/libavcodec/x86/hevcdsp_init.c b/libavcodec/x86/hevcdsp_init.c > i

Re: [FFmpeg-devel] [PATCH 11/11] avcodec/vvcdec: add Intra Block Copy decoder

2024-02-23 Thread Nuo Mi
On Thu, Feb 22, 2024 at 3:15 PM Nuo Mi wrote: > From: Wu Jianhua > > Introduction at https://ieeexplore.ieee.org/document/9408666 > > passed files: > 10b444_A_Kwai_3.bit > 10b444_B_Kwai_3.bit > CodingToolsSets_D_Tencent_2.bit > IBC_A_Tencent_2.bi

Re: [FFmpeg-devel] [PATCH v1] lavc/vvc_ps: Correct vaule of ALF_NUM_FILTERS_CC

2024-02-23 Thread Nuo Mi
applied, thank you Fei On Fri, Feb 23, 2024 at 2:27 PM wrote: > From: Fei Wang > > Signed-off-by: Fei Wang > --- > libavcodec/vvc/vvc_ps.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/libavcodec/vvc/vvc_ps.h b/libavcodec/vvc/vvc_ps.h > index 5adf3f3453..1164d0eab6

Re: [FFmpeg-devel] [PATCH 11/11] avcodec/vvcdec: add Intra Block Copy decoder

2024-02-24 Thread Nuo Mi
On Fri, Feb 23, 2024 at 9:03 PM Nuo Mi wrote: > > > On Thu, Feb 22, 2024 at 3:15 PM Nuo Mi wrote: > >> From: Wu Jianhua >> >> Introduction at https://ieeexplore.ieee.org/document/9408666 >> >> passed files: >>

Re: [FFmpeg-devel] [PATCH 11/11] avcodec/vvcdec: add Intra Block Copy decoder

2024-02-24 Thread Nuo Mi
On Sat, Feb 24, 2024 at 9:20 PM Ronald S. Bultje wrote: > Hi, > > On Thu, Feb 22, 2024 at 2:15 AM Nuo Mi wrote: > >> +static void ibc_fill_vir_buf(const VVCLocalContext *lc, const CodingUnit >> *cu) >> [..] >> > +av_image_copy_plane(ibc_buf, ibc_s

Re: [FFmpeg-devel] [PATCH] lavc/vvc: Correct sps_num_subpics_minus1 minimum

2024-02-26 Thread Nuo Mi
On Mon, Feb 26, 2024 at 5:20 AM Frank Plowman wrote: > On 25/02/2024 19:50, James Almer wrote: > > On 2/25/2024 2:51 PM, Frank Plowman wrote: > >> The spec says "the value of sps_num_subpics_minus1 shall be in the > >> range of 0 to MaxSlicesPerAu − 1, inclusive." > >> > >> Signed-off-by: Frank P

Re: [FFmpeg-devel] [PATCH] configure: Add missing vvc_decoder->cbs_h266 dependency

2024-03-01 Thread Nuo Mi
pushed, thank you, Andreas. On Fri, Mar 1, 2024 at 7:51 PM Andreas Rheinhardt < andreas.rheinha...@outlook.com> wrote: > Signed-off-by: Andreas Rheinhardt > --- > configure | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/configure b/configure > index 574c9bf5f6..b5b233e

Re: [FFmpeg-devel] [PATCH 1/2] avcodec/vvc/vvcdec: allow vvc_decode_close() on failed open

2024-03-01 Thread Nuo Mi
Pushed the VVC patch. Thank you, Michael. On Wed, Feb 28, 2024 at 6:47 AM Michael Niedermayer wrote: > Fixes: division by 0 > Fixes: > 67008/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_VVC_fuzzer-5873503163187200 > > Found-by: continuous fuzzing process > https://github.com/google/oss-fuzz

[FFmpeg-devel] [PATCH] avcodec/vvcdec: fix boundary strength when IBC involved

2024-03-02 Thread Nuo Mi
The following cases should set bs to 1: If the prediction modes are not the same. If both prediction modes are MODE_IBC, but the motion vector delta is larger than 8 of 1/16 pixels. see 8.8.3.5 How to reproduce it: vvencapp -i sintel_trailer_2k_1080p24.y4m --preset fast --additional "IBC=1" -o s

[FFmpeg-devel] [PATCH] avcodec/vvcdec: check pred flag to fix undefined beavhiours

2024-03-02 Thread Nuo Mi
libavcodec/vvc/vvc_inter.c:823:18: runtime error: signed integer overflow: 1426128896 + 1426128896 cannot be represented in type 'int' SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior libavcodec/vvc/vvc_inter.c:823:18 --- libavcodec/vvc/vvc_inter.c | 15 +-- 1 file changed, 9

[FFmpeg-devel] [PATCH] avcodec/vvcdec: fix undefined behaviours for derive_affine_mvc

2024-03-03 Thread Nuo Mi
libavcodec/vvc/vvc_inter.c:823:18: runtime error: signed integer overflow: 1426128896 + 1426128896 cannot be represented in type 'int' SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior libavcodec/vvc/vvc_inter.c:823:18 Suggested-by: Andreas Rheinhardt --- libavcodec/vvc/vvc_inter.c | 11

Re: [FFmpeg-devel] [PATCH] avcodec/vvcdec: check pred flag to fix undefined beavhiours

2024-03-03 Thread Nuo Mi
On Sun, Mar 3, 2024 at 2:43 PM Andreas Rheinhardt < andreas.rheinha...@outlook.com> wrote: > Nuo Mi: > > libavcodec/vvc/vvc_inter.c:823:18: runtime error: signed integer > overflow: 1426128896 + 1426128896 cannot be represented in type 'int' > > SUMMARY: Und

Re: [FFmpeg-devel] [PATCH] avcodec/x86/vvc/vvcdsp_init: fix linking error when configuring with --disable-ssse3 --disable-optimizations options

2024-03-03 Thread Nuo Mi
Thank you, Jianhua. This patch mixes many things. Could you help split it into smaller, more atomic patches? For example, one for moving code blocks and another for fixing --disable-ssse3. On Fri, Mar 1, 2024 at 1:42 AM wrote: > From: Wu Jianhua > > Signed-off-by: Wu Jianhua > --- > libavcode

Re: [FFmpeg-devel] [PATCH] avcodec/vvcdec: fix undefined behaviours for derive_affine_mvc

2024-03-04 Thread Nuo Mi
On Sun, Mar 3, 2024 at 10:04 PM Nuo Mi wrote: > libavcodec/vvc/vvc_inter.c:823:18: runtime error: signed integer overflow: > 1426128896 + 1426128896 cannot be represented in type 'int' > SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior > libavcodec/vvc/vvc_inter.c:8

Re: [FFmpeg-devel] [PATCH] avcodec/vvcdec: fix boundary strength when IBC involved

2024-03-04 Thread Nuo Mi
On Sat, Mar 2, 2024 at 10:05 PM Nuo Mi wrote: > The following cases should set bs to 1: > If the prediction modes are not the same. > If both prediction modes are MODE_IBC, but the motion vector delta is > larger than 8 of 1/16 pixels. > see 8.8.3.5 > > How to reprod

Re: [FFmpeg-devel] [PATCH v1 1/2] lavc/vvcdec: Add missed chroma sampling factor for crop offset

2024-03-09 Thread Nuo Mi
Thank you, Fei, Do you happen to know why the following clips are still failing? CROP_A_Panasonic_4.bit CROP_B_Panasonic_4.bit https://github.com/ffvvc/tests/tree/main/conformance/failed/v1/CROP On Fri, Mar 8, 2024 at 8:54 AM wrote: > From: Fei Wang > > Signed-off-by: Fei Wang > --- > libav

Re: [FFmpeg-devel] [PATCH v1 2/2] lavc/vvc_ps: Correct NoOutputBeforeRecoveryFlag of IDR

2024-03-09 Thread Nuo Mi
Hi Fei, Thank you fei, Better provide more comments Is there any clip fail for this? On Fri, Mar 8, 2024 at 8:55 AM wrote: > From: Fei Wang > > Signed-off-by: Fei Wang > --- > libavcodec/vvc/vvc_ps.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/libavcodec/vvc/vvc_p

Re: [FFmpeg-devel] FFmpeg 7.0 blocking issues

2024-03-09 Thread Nuo Mi
On Fri, Mar 8, 2024 at 11:41 PM Kieran Kunhya wrote: > On Fri, 8 Mar 2024 at 15:04, Frank Plowman wrote: > > > On 08/03/2024 14:04, James Almer wrote: > > > On 3/8/2024 11:02 AM, Kieran Kunhya wrote: > > >> On Fri, 8 Mar 2024 at 14:00, James Almer wrote: > > >> > > >>> On 3/3/2024 4:35 AM, Jean

Re: [FFmpeg-devel] [PATCH v2 2/2] lavc/vvc_ps: Correct NoOutputBeforeRecoveryFlag of IDR

2024-03-12 Thread Nuo Mi
On Mon, Mar 11, 2024 at 9:58 AM wrote: > From: Fei Wang > > The NoOutputBeforeRecoveryFlag of an IDR frame should be set to 1 as > spec says in 8.1.1. > Pushed. Thank you, Fei. > > Signed-off-by: Fei Wang > --- > libavcodec/vvc/vvc_ps.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [FFmpeg-devel] [PATCH] lavc/vvc: AVERROR_PATCHWELCOME for subpictures

2024-03-12 Thread Nuo Mi
On Tue, Mar 12, 2024 at 5:09 PM Frank Plowman wrote: > On 12/03/2024 03:33, Wang, Fei W wrote: > > On Mon, 2024-03-11 at 21:57 -0300, James Almer wrote: > >> On 3/11/2024 9:49 PM, Michael Niedermayer wrote: > >>> On Mon, Mar 11, 2024 at 06:53:31PM +, Frank Plowman wrote: > VVC's subpictu

Re: [FFmpeg-devel] [PATCH] vvcdec: Mark as experimental

2024-03-16 Thread Nuo Mi
On Fri, Mar 15, 2024 at 11:01 PM Frank Plowman wrote: > On 15/03/2024 10:22, Kieran Kunhya wrote: > > On Thu, 14 Mar 2024, 22:54 Michael Niedermayer, > > wrote: > > > >> On Wed, Feb 07, 2024 at 10:55:18PM +, Kieran Kunhya wrote: > >>> On Wed, 7 Feb 2024 at 22:06, Paul B Mahol wrote: > >>> >

Re: [FFmpeg-devel] [PATCH] vvcdec: Mark as experimental

2024-03-16 Thread Nuo Mi
On Fri, Mar 15, 2024 at 11:05 PM Andreas Rheinhardt < andreas.rheinha...@outlook.com> wrote: > Frank Plowman: > > On 15/03/2024 10:22, Kieran Kunhya wrote: > >> On Thu, 14 Mar 2024, 22:54 Michael Niedermayer, > > >> wrote: > >> > >>> On Wed, Feb 07, 2024 at 10:55:18PM +, Kieran Kunhya wrote:

[FFmpeg-devel] [PATCH 00/14] avcodec/vvcdec: support subpicture

2024-03-18 Thread Nuo Mi
see introductions here: https://dashif.org/docs/VVC%20HLS%20overview%20.pdf Frank Plowman (1): avcodec/vvcdec: support rectangular single-slice subpics Nuo Mi (13): avcodec/vvcdec: NoBackwardPredFlag, only check active pictures avcodec/cbs_h266: fix sh_collocated_from_l0_flag and

[FFmpeg-devel] [PATCH 02/14] avcodec/cbs_h266: fix sh_collocated_from_l0_flag and sh_collocated_ref_idx infer

2024-03-18 Thread Nuo Mi
we have to infer sh_collocated_from_l0_flag and sh_collocated_ref_idx from picture head if pps_rpl_info_in_ph_flag is true --- libavcodec/cbs_h266_syntax_template.c | 32 +-- 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/libavcodec/cbs_h266_syntax_templat

[FFmpeg-devel] [PATCH 03/14] avcodec/vvcdec: support rectangular single-slice subpics

2024-03-18 Thread Nuo Mi
From: Frank Plowman Co-authored-by: Nuo Mi --- libavcodec/cbs_h266_syntax_template.c | 5 +- libavcodec/vvc/vvc_ps.c | 93 +-- 2 files changed, 91 insertions(+), 7 deletions(-) diff --git a/libavcodec/cbs_h266_syntax_template.c b/libavcodec

[FFmpeg-devel] [PATCH 01/14] avcodec/vvcdec: NoBackwardPredFlag, only check active pictures

2024-03-18 Thread Nuo Mi
see "8.3.6 Decoding process for collocated picture and no backward prediction" --- libavcodec/vvc/vvc_mvs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/vvc/vvc_mvs.c b/libavcodec/vvc/vvc_mvs.c index 6398fd3571..cf92202b5b 100644 --- a/libavcodec/vvc/vvc_mvs.c +++

[FFmpeg-devel] [PATCH 04/14] avcodec/vvcdec: derive subpic postion for PPS

2024-03-18 Thread Nuo Mi
--- libavcodec/vvc/vvc_ps.c | 19 +++ libavcodec/vvc/vvc_ps.h | 4 2 files changed, 23 insertions(+) diff --git a/libavcodec/vvc/vvc_ps.c b/libavcodec/vvc/vvc_ps.c index bb13b04a5d..bbd666307f 100644 --- a/libavcodec/vvc/vvc_ps.c +++ b/libavcodec/vvc/vvc_ps.c @@ -511,6 +511,

[FFmpeg-devel] [PATCH 05/14] avcodec/vvcdec: ff_vvc_decode_neighbour, support subpicture

2024-03-18 Thread Nuo Mi
--- libavcodec/vvc/vvc_ctu.c | 4 libavcodec/vvc/vvc_ctu.h | 6 -- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/libavcodec/vvc/vvc_ctu.c b/libavcodec/vvc/vvc_ctu.c index 75b9e73ae3..75d9f07143 100644 --- a/libavcodec/vvc/vvc_ctu.c +++ b/libavcodec/vvc/vvc_ctu.c @@ -2493,

[FFmpeg-devel] [PATCH 14/14] avcodec/vvcdec: inter prediction, support subpicture

2024-03-18 Thread Nuo Mi
passed files: CodingToolsSets_E_Tencent_1.bit SUBPIC_A_HUAWEI_3.bit SUBPIC_B_HUAWEI_3.bit SUBPIC_C_ERICSSON_1.bit SUBPIC_D_ERICSSON_1.bit SUBPIC_E_MediaTek_1.bit passed dvb conformance files (https://dvb.org/specifications/verification-validation/vvc-test-content): VVC

[FFmpeg-devel] [PATCH 07/14] avcodec/vvcdec: refact out deblock_is_boundary

2024-03-18 Thread Nuo Mi
--- libavcodec/vvc/vvc_filter.c | 66 +++-- 1 file changed, 26 insertions(+), 40 deletions(-) diff --git a/libavcodec/vvc/vvc_filter.c b/libavcodec/vvc/vvc_filter.c index 10bd57e078..11972bde41 100644 --- a/libavcodec/vvc/vvc_filter.c +++ b/libavcodec/vvc/vvc_filte

[FFmpeg-devel] [PATCH 08/14] avcodec/vvcdec: deblock, support subpicture

2024-03-18 Thread Nuo Mi
--- libavcodec/vvc/vvc_filter.c | 52 + libavcodec/vvc/vvc_filter.h | 6 +++-- libavcodec/vvc/vvc_thread.c | 4 +-- 3 files changed, 35 insertions(+), 27 deletions(-) diff --git a/libavcodec/vvc/vvc_filter.c b/libavcodec/vvc/vvc_filter.c index 11972bde41..ecb

[FFmpeg-devel] [PATCH 06/14] avcodec/vvcdec: misc, rename x_ctb, y_ctb, ctu_x, ctu_y to rx, ry to avoid misleading

2024-03-18 Thread Nuo Mi
--- libavcodec/vvc/vvc_ctu.c| 8 ++-- libavcodec/vvc/vvc_filter.c | 96 ++--- libavcodec/vvc/vvc_ps.c | 38 +++ 3 files changed, 71 insertions(+), 71 deletions(-) diff --git a/libavcodec/vvc/vvc_ctu.c b/libavcodec/vvc/vvc_ctu.c index 75d9f07143

[FFmpeg-devel] [PATCH 09/14] avcodec/vvcdec: refact, movie the lc->sc assignment to task_run_stage to simplify the code

2024-03-18 Thread Nuo Mi
This change also make the lc->sc assigned for run_sao --- libavcodec/vvc/vvc_thread.c | 66 ++--- 1 file changed, 17 insertions(+), 49 deletions(-) diff --git a/libavcodec/vvc/vvc_thread.c b/libavcodec/vvc/vvc_thread.c index 5d2e8c67b9..8f23b8138b 100644 --- a/liba

[FFmpeg-devel] [PATCH 10/14] avcodec/vvcdec: sao, refact out tile_edge arrays

2024-03-18 Thread Nuo Mi
--- libavcodec/vvc/vvc_filter.c | 36 ++-- 1 file changed, 14 insertions(+), 22 deletions(-) diff --git a/libavcodec/vvc/vvc_filter.c b/libavcodec/vvc/vvc_filter.c index ecb004d245..1a3cd02a9f 100644 --- a/libavcodec/vvc/vvc_filter.c +++ b/libavcodec/vvc/vvc_filter

[FFmpeg-devel] [PATCH 12/14] avcodec/vvcdec: alf, support subpicture

2024-03-18 Thread Nuo Mi
--- libavcodec/vvc/vvc_filter.c | 9 + 1 file changed, 9 insertions(+) diff --git a/libavcodec/vvc/vvc_filter.c b/libavcodec/vvc/vvc_filter.c index 6b4c2050c7..de0816619b 100644 --- a/libavcodec/vvc/vvc_filter.c +++ b/libavcodec/vvc/vvc_filter.c @@ -1199,6 +1199,7 @@ void ff_vvc_alf_copy_

[FFmpeg-devel] [PATCH 11/14] avcodec/vvcdec: sao, support subpicture

2024-03-18 Thread Nuo Mi
--- libavcodec/vvc/vvc_filter.c | 40 + 1 file changed, 27 insertions(+), 13 deletions(-) diff --git a/libavcodec/vvc/vvc_filter.c b/libavcodec/vvc/vvc_filter.c index 1a3cd02a9f..6b4c2050c7 100644 --- a/libavcodec/vvc/vvc_filter.c +++ b/libavcodec/vvc/vvc_filte

[FFmpeg-devel] [PATCH 13/14] avcodec/vvcdec: mvs, support subpicture

2024-03-18 Thread Nuo Mi
--- libavcodec/vvc/vvc_mvs.c | 33 + 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/libavcodec/vvc/vvc_mvs.c b/libavcodec/vvc/vvc_mvs.c index cf92202b5b..37a2d0a228 100644 --- a/libavcodec/vvc/vvc_mvs.c +++ b/libavcodec/vvc/vvc_mvs.c @@ -200,10 +200

Re: [FFmpeg-devel] [PATCH 00/14] avcodec/vvcdec: support subpicture

2024-03-19 Thread Nuo Mi
On Tue, Mar 19, 2024 at 6:18 PM Frank Plowman wrote: > On 18/03/2024 14:16, Nuo Mi wrote: > > see introductions here: > https://dashif.org/docs/VVC%20HLS%20overview%20.pdf > > > > Frank Plowman (1): > > avcodec/vvcdec: support rectangular single-slice subpics >

Re: [FFmpeg-devel] [PATCH] lavc/vvc: Fix check whether QG is in first tile col

2024-03-20 Thread Nuo Mi
On Wed, Mar 20, 2024 at 3:48 AM Frank Plowman wrote: > The second part of this condition is intended to check whether the > current quantisation group is in the first CTU column of the current > tile. The issue is that ctb_to_col_bd gives the x-ordinate of the first > column of the current tile

Re: [FFmpeg-devel] [PATCH 1/2] lavc/vvc_parser: small cleanup for style

2024-03-23 Thread Nuo Mi
On Fri, Mar 22, 2024 at 6:36 PM Jun Zhao wrote: > From: Jun Zhao > > small cleanup for style, redundant semicolons, goto labels, > in FFmpeg, we put goto labels at brace level. > Pushed this patch. Thanks, Jun > Signed-off-by: Jun Zhao > --- > libavcodec/vvc_parser.c | 8 > 1 file c

Re: [FFmpeg-devel] [PATCH 3/4] avcodec/cbs_h266_syntax_template: Check tile_y

2024-03-23 Thread Nuo Mi
On Thu, Mar 21, 2024 at 9:15 AM Michael Niedermayer wrote: > Fixes: out of array access > Fixes: > 67021/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-4883576579489792 > > Found-by: continuous fuzzing process > https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg > Signed-off-by

[FFmpeg-devel] [PATCH 1/8] cbs_h266: fix inference for sh_lmcs_used_flag and sh_explicit_scaling_list_used_flag

2023-08-07 Thread Nuo Mi
if sh_picture_header_in_slice_header_flag is true sh_lmcs_used_flag and sh_explicit_scaling_list_used_flag are infered from ph --- libavcodec/cbs_h266_syntax_template.c | 24 ++-- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/libavcodec/cbs_h266_syntax_templat

[FFmpeg-devel] [PATCH 2/8] cbs_h266: fix inference for sh_alf_enabled_flag

2023-08-07 Thread Nuo Mi
if pps_alf_info_in_ph_flag is true sh_alf_enabled_flag infered from ph --- libavcodec/cbs_h266_syntax_template.c | 81 --- 1 file changed, 47 insertions(+), 34 deletions(-) diff --git a/libavcodec/cbs_h266_syntax_template.c b/libavcodec/cbs_h266_syntax_template.c index 85

[FFmpeg-devel] [PATCH 4/8] cbs_h266: fix slice_height_in_ctus for single slice tile

2023-08-07 Thread Nuo Mi
--- libavcodec/cbs_h266_syntax_template.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/cbs_h266_syntax_template.c b/libavcodec/cbs_h266_syntax_template.c index 7277154c40..43b3346359 100644 --- a/libavcodec/cbs_h266_syntax_template.c +++ b/libavcodec/cbs_h266_syntax_template.c @

[FFmpeg-devel] [PATCH 3/8] cbs_h266: fix inference for xh_deblocking_filter_disabled_flag

2023-08-07 Thread Nuo Mi
if !ph_deblocking_params_present_flag is true, ph_deblocking_filter_disabled_flag infered from pps if !sh_deblocking_params_present_flag is true, sh_deblocking_filter_disabled_flag infered from ph --- libavcodec/cbs_h266_syntax_template.c | 76 ++- 1 file changed, 28 inse

[FFmpeg-devel] [PATCH 5/8] cbs_h266: H266RawSliceHeader, expose NumEntryPoints

2023-08-07 Thread Nuo Mi
--- libavcodec/cbs_h266.h | 3 +++ libavcodec/cbs_h266_syntax_template.c | 17 + 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/libavcodec/cbs_h266.h b/libavcodec/cbs_h266.h index 0196f46bc0..1d80c74feb 100644 --- a/libavcodec/cbs_h266.h +++ b/liba

Re: [FFmpeg-devel] [PATCH 1/8] cbs_h266: fix inference for sh_lmcs_used_flag and sh_explicit_scaling_list_used_flag

2023-08-07 Thread Nuo Mi
On Mon, Aug 7, 2023 at 11:17 PM James Almer wrote: > On 8/7/2023 11:55 AM, Nuo Mi wrote: > > if sh_picture_header_in_slice_header_flag is true > > sh_lmcs_used_flag and sh_explicit_scaling_list_used_flag are infered > from ph > > --- > > libavcodec/c

[FFmpeg-devel] [PATCH 6/8] cbs_h266: H266RawPredWeightTable, expose num_weights_l0 and num_weights_l1

2023-08-07 Thread Nuo Mi
--- libavcodec/cbs_h266.h | 3 ++ libavcodec/cbs_h266_syntax_template.c | 43 +-- 2 files changed, 23 insertions(+), 23 deletions(-) diff --git a/libavcodec/cbs_h266.h b/libavcodec/cbs_h266.h index 1d80c74feb..87a2d02cfd 100644 --- a/libavcodec/cbs_h266.h

[FFmpeg-devel] [PATCH 7/8] cbs_h266: H266RawSliceHeader, expose NumRefIdxActive[]

2023-08-07 Thread Nuo Mi
--- libavcodec/cbs_h266.h | 1 + libavcodec/cbs_h266_syntax_template.c | 41 +-- 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/libavcodec/cbs_h266.h b/libavcodec/cbs_h266.h index 87a2d02cfd..3a6f6d96b5 100644 --- a/libavcodec/cbs_h266.h +

[FFmpeg-devel] [PATCH 8/8] cbs_h266: slice_header, fix inference for pred_weight_table

2023-08-07 Thread Nuo Mi
--- libavcodec/cbs_h266_syntax_template.c | 19 +-- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/libavcodec/cbs_h266_syntax_template.c b/libavcodec/cbs_h266_syntax_template.c index b26d7c1a72..4075897b9a 100644 --- a/libavcodec/cbs_h266_syntax_template.c +++ b/li

[FFmpeg-devel] [PATCH v2 1/8] cbs_h266: fix inference for sh_lmcs_used_flag and sh_explicit_scaling_list_used_flag

2023-08-08 Thread Nuo Mi
if sh_picture_header_in_slice_header_flag is true sh_lmcs_used_flag and sh_explicit_scaling_list_used_flag are infered from ph Failed clips: LMCS: CLM_A_KDDI_2.bit STILL444_A_KDDI_1.bit Scaling: SCALING_B_InterDigital_1.bit SCALING_A_InterDigital_1.bit --- libavcodec/cbs_h266_syntax_template.c |

[FFmpeg-devel] [PATCH v2 3/8] cbs_h266: fix inference for xh_deblocking_filter_disabled_flag

2023-08-08 Thread Nuo Mi
if !ph_deblocking_params_present_flag is true, ph_deblocking_filter_disabled_flag infered from pps if !sh_deblocking_params_present_flag is true, sh_deblocking_filter_disabled_flag infered from ph Failed clips: ENT444MAINTIER_C_Sony_3.bit ENT444HIGHTIER_D_Sony_3.bit --- libavcodec/cbs_h266_synt

[FFmpeg-devel] [PATCH v2 2/8] cbs_h266: fix inference for sh_alf_enabled_flag

2023-08-08 Thread Nuo Mi
if pps_alf_info_in_ph_flag is true sh_alf_enabled_flag infered from ph Failed clip: LTRP_A_ERICSSON_3.bit --- libavcodec/cbs_h266_syntax_template.c | 81 --- 1 file changed, 47 insertions(+), 34 deletions(-) diff --git a/libavcodec/cbs_h266_syntax_template.c b/libavcodec

[FFmpeg-devel] [PATCH v2 4/8] cbs_h266: fix slice_height_in_ctus for single slice tile

2023-08-08 Thread Nuo Mi
Failed clips: TILE_E_Nokia_2.bit TILE_D_Nokia_2.bit LMCS_A_Dolby_3.bit --- libavcodec/cbs_h266_syntax_template.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/cbs_h266_syntax_template.c b/libavcodec/cbs_h266_syntax_template.c index 7277154c40..43b3346359 100644 --- a/libavcodec/c

[FFmpeg-devel] [PATCH v2 5/8] cbs_h266: H266RawSliceHeader, expose NumEntryPoints

2023-08-08 Thread Nuo Mi
--- libavcodec/cbs_h266.h | 3 +++ libavcodec/cbs_h266_syntax_template.c | 17 + 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/libavcodec/cbs_h266.h b/libavcodec/cbs_h266.h index 0196f46bc0..1d80c74feb 100644 --- a/libavcodec/cbs_h266.h +++ b/liba

[FFmpeg-devel] [PATCH v2 6/8] cbs_h266: H266RawPredWeightTable, expose num_weights_l0 and num_weights_l1

2023-08-08 Thread Nuo Mi
--- libavcodec/cbs_h266.h | 3 ++ libavcodec/cbs_h266_syntax_template.c | 43 +-- 2 files changed, 23 insertions(+), 23 deletions(-) diff --git a/libavcodec/cbs_h266.h b/libavcodec/cbs_h266.h index 1d80c74feb..87a2d02cfd 100644 --- a/libavcodec/cbs_h266.h

[FFmpeg-devel] [PATCH v2 7/8] cbs_h266: H266RawSliceHeader, expose NumRefIdxActive[]

2023-08-08 Thread Nuo Mi
--- libavcodec/cbs_h266.h | 1 + libavcodec/cbs_h266_syntax_template.c | 41 +-- 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/libavcodec/cbs_h266.h b/libavcodec/cbs_h266.h index 87a2d02cfd..3a6f6d96b5 100644 --- a/libavcodec/cbs_h266.h +

[FFmpeg-devel] [PATCH v2 8/8] cbs_h266: slice_header, fix inference for pred_weight_table

2023-08-08 Thread Nuo Mi
--- libavcodec/cbs_h266_syntax_template.c | 19 +-- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/libavcodec/cbs_h266_syntax_template.c b/libavcodec/cbs_h266_syntax_template.c index b26d7c1a72..4075897b9a 100644 --- a/libavcodec/cbs_h266_syntax_template.c +++ b/li

[FFmpeg-devel] [PATCH v4] vvcdec: add thread executor

2023-08-15 Thread Nuo Mi
v/null +++ b/libavutil/executor.c @@ -0,0 +1,201 @@ +/* + * Copyright (C) 2023 Nuo Mi + * + * This file is part of FFmpeg. + * + * FFmpeg is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Founda

Re: [FFmpeg-devel] [PATCH v3] vvcdec: add thread executor

2023-08-15 Thread Nuo Mi
On Tue, Aug 15, 2023 at 12:46 AM Michael Niedermayer wrote: > On Wed, Jul 19, 2023 at 09:13:00PM +0800, Nuo Mi wrote: > > The executor design pattern was inroduced by java > > < > https://docs.oracle.com/en/java/javase/20/docs/api/java.base/java/util/concurrent/Executor

Re: [FFmpeg-devel] [PATCH v4] vvcdec: add thread executor

2023-08-22 Thread Nuo Mi
On Thu, Aug 17, 2023 at 12:42 AM Rémi Denis-Courmont wrote: > Le tiistaina 15. elokuuta 2023, 17.50.13 EEST Nuo Mi a écrit : > > The executor design pattern was inroduced by java > > < > https://docs.oracle.com/en/java/javase/20/docs/api/java.base/java/util/conc > > ur

Re: [FFmpeg-devel] [PATCH v4] vvcdec: add thread executor

2023-08-22 Thread Nuo Mi
> > >> +if (pthread_create(&ti->thread, NULL, executor_worker_task, > ti)) > > executor_worker_task() doesn't exist if !HAVE_THREADS, so like i said > above, wrap this for loop. > Not needed since pthread_create is defined to 0 > > ___ ffmpeg-dev

Re: [FFmpeg-devel] [PATCH v4] vvcdec: add thread executor

2023-08-22 Thread Nuo Mi
> > > > > + > > +#if !HAVE_THREADS > > +#define pthread_create(t, a, s, ar) 0 > > +#define pthread_join(t, r) do {} while(0) > > + > > +#define pthread_cond_init(c, a) 0 > > +#define pthread_cond_broadcast(c) do {} while(0) > > +#define pthread_cond_signal(c)

Re: [FFmpeg-devel] [PATCH v4] vvcdec: add thread executor

2023-08-22 Thread Nuo Mi
On Tue, Aug 22, 2023 at 8:23 PM James Almer wrote: > On 8/22/2023 9:03 AM, Nuo Mi wrote: > > On Thu, Aug 17, 2023 at 12:42 AM Rémi Denis-Courmont > > wrote: > > > >> Le tiistaina 15. elokuuta 2023, 17.50.13 EEST Nuo Mi a écrit : > >>> The exe

[FFmpeg-devel] [PATCH v5] vvcdec: add thread executor

2023-08-22 Thread Nuo Mi
&e->tasks; *prev && cb->priority_higher(*prev, t); prev = &(*prev)->next) +/* nothing */; +add_task(prev, t); +} +ff_cond_signal(&e->cond); +ff_mutex_unlock(&e->lock); + +#if !HAVE_THREADS +// We are running in a single-th

Re: [FFmpeg-devel] [PATCH v4] vvcdec: add thread executor

2023-08-22 Thread Nuo Mi
On Tue, Aug 22, 2023 at 8:32 PM James Almer wrote: > > >>> > >> > > "mem.h"->"avutil.h"->"common.h"->""->""->"" > >> > >> Why would bits/pthreadtypes.h be available if there's no pthreads? > >> > > I guess it is related to POSIX. If you check , you will find > > the following code: > > > > /* N

Re: [FFmpeg-devel] [PATCH v4] vvcdec: add thread executor

2023-08-22 Thread Nuo Mi
On Thu, Aug 17, 2023 at 12:36 AM Michael Niedermayer wrote: > On Tue, Aug 15, 2023 at 10:50:13PM +0800, Nuo Mi wrote: > > The executor design pattern was inroduced by java > > < > https://docs.oracle.com/en/java/javase/20/docs/api/java.base/java/util/concurrent/Executor

[FFmpeg-devel] [PATCH v6] vvcdec: add thread executor

2023-08-29 Thread Nuo Mi
->tasks; *prev && cb->priority_higher(*prev, t); prev = &(*prev)->next) +/* nothing */; +add_task(prev, t); +} +ff_cond_signal(&e->cond); +ff_mutex_unlock(&e->lock); + +#if !HAVE_THREADS +// We are running in a single-threaded enviro

Re: [FFmpeg-devel] [PATCH v5] vvcdec: add thread executor

2023-08-29 Thread Nuo Mi
On Tue, Aug 29, 2023 at 1:06 AM Michael Niedermayer wrote: > On Tue, Aug 22, 2023 at 09:32:28PM +0800, Nuo Mi wrote: > > The executor design pattern was inroduced by java > > inTroduced > > > > < > https://docs.oracle.com/en/java/javase/20/docs/api/java.base/j

[FFmpeg-devel] [PATCH v3 01/14] vvcdec: add vvc decoder stub

2023-09-02 Thread Nuo Mi
bavcodec/vvc/vvcdec.c new file mode 100644 index 00..8d027af0b9 --- /dev/null +++ b/libavcodec/vvc/vvcdec.c @@ -0,0 +1,84 @@ +/* + * VVC video decoder + * + * Copyright (C) 2021 Nuo Mi + * Copyright (C) 2022 Xu Mu + * + * This file is part of FFmpeg. + * + * FFmpeg is free software; you ca

[FFmpeg-devel] [PATCH v3 05/14] vvcdec: add reference management

2023-09-02 Thread Nuo Mi
\ +vvc/vvc_refs.o diff --git a/libavcodec/vvc/vvc_refs.c b/libavcodec/vvc/vvc_refs.c new file mode 100644 index 00..010f1892ed --- /dev/null +++ b/libavcodec/vvc/vvc_refs.c @@ -0,0 +1,526 @@ +/* + * VVC reference management + * + * Copyright (C) 2023 Nuo Mi + * + * This file is part of FFmpeg

[FFmpeg-devel] [PATCH v3 03/14] vvcdec: add parameter parser for sps, pps, ph, sh

2023-09-02 Thread Nuo Mi
00..c180a401f0 --- /dev/null +++ b/libavcodec/vvc/vvc_ps.c @@ -0,0 +1,1325 @@ +/* + * VVC parameter set parser + * + * Copyright (C) 2023 Nuo Mi + * Copyright (C) 2022 Xu Mu + * + * This file is part of FFmpeg. + * + * FFmpeg is free software; you can redistribute it and/or + * modify it under

[FFmpeg-devel] [PATCH v3 13/14] vvcdec: add CTU thread logical

2023-09-02 Thread Nuo Mi
mode 100644 index 00..9d5201f5c8 --- /dev/null +++ b/libavcodec/vvc/vvc_thread.c @@ -0,0 +1,805 @@ +/* + * VVC thread logic + * + * Copyright (C) 2023 Nuo Mi + * + * This file is part of FFmpeg. + * + * FFmpeg is free software; you can redistribute it and/or + * modify it under the terms of

[FFmpeg-devel] [PATCH v3 04/14] vvcdec: add cabac decoder

2023-09-02 Thread Nuo Mi
/vvc_cabac.c new file mode 100644 index 00..7275f44c4d --- /dev/null +++ b/libavcodec/vvc/vvc_cabac.c @@ -0,0 +1,2484 @@ +/* + * VVC CABAC decoder + * + * Copyright (C) 2021 Nuo Mi + * + * This file is part of FFmpeg. + * + * FFmpeg is free software; you can redistribute it and/or + * modify it under

[FFmpeg-devel] [PATCH v3 06/14] vvcdec: add motion vector decoder

2023-09-02 Thread Nuo Mi
ODEC_VVC_CTU_H diff --git a/libavcodec/vvc/vvc_mvs.c b/libavcodec/vvc/vvc_mvs.c new file mode 100644 index 00..e3ab4e4571 --- /dev/null +++ b/libavcodec/vvc/vvc_mvs.c @@ -0,0 +1,1806 @@ +/* + * VVC motion vector decoder + * + * Copyright (C) 2023 Nuo Mi + * Copyright (C) 2022 Xu Mu + * This fil

[FFmpeg-devel] [PATCH v3 07/14] vvcdec: add inter prediction

2023-09-02 Thread Nuo Mi
(C) 2022 Nuo Mi + * + * This file is part of FFmpeg. + * + * FFmpeg is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any

[FFmpeg-devel] [PATCH v3 09/14] vvcdec: add intra prediction

2023-09-02 Thread Nuo Mi
ls void ff_vvc_set_neighbour_available(VVCLocalContext *lc, int x0, int y0, int w, int h); +void ff_vvc_decode_neighbour(VVCLocalContext *lc, int x_ctb, int y_ctb, int rx, int ry, int rs); +void ff_vvc_ctu_free_cus(CTU *ctu); void ff_vvc_ep_init_stat_coeff(EntryPoint *ep, int bit_depth, int persist

[FFmpeg-devel] [PATCH v3 11/14] vvcdec: add dsp init and inv transform

2023-09-02 Thread Nuo Mi
--git a/libavcodec/vvc/vvcdsp.c b/libavcodec/vvc/vvcdsp.c new file mode 100644 index 00..e00f05c174 --- /dev/null +++ b/libavcodec/vvc/vvcdsp.c @@ -0,0 +1,133 @@ +/* + * VVC DSP + * + * Copyright (C) 2021 Nuo Mi + * + * This file is part of FFmpeg. + * + * FFmpeg is free software; you can

[FFmpeg-devel] [PATCH v3 12/14] vvcdec: add CTU parser

2023-09-02 Thread Nuo Mi
--- libavcodec/vvc/vvc_ctu.c | 2398 +- libavcodec/vvc/vvc_ctu.h | 11 + 2 files changed, 2404 insertions(+), 5 deletions(-) diff --git a/libavcodec/vvc/vvc_ctu.c b/libavcodec/vvc/vvc_ctu.c index d46a522a0d..a212d3a44a 100644 --- a/libavcodec/vvc/vvc_ctu.c ++

[FFmpeg-devel] [PATCH v3 08/14] vvcdec: add inv transform 1d

2023-09-02 Thread Nuo Mi
..e96919f41d --- /dev/null +++ b/libavcodec/vvc/vvc_itx_1d.c @@ -0,0 +1,713 @@ +/* + * VVC 1D transform + * + * Copyright (C) 2023 Nuo Mi + * + * This file is part of FFmpeg. + * + * FFmpeg is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public

[FFmpeg-devel] [PATCH v3 14/14] vvcdec: add full vvc decoder

2023-09-02 Thread Nuo Mi
): Nuo Mi Xu Mu frankplow Shaun Loo --- libavcodec/vvc/vvcdec.c | 1025 ++- 1 file changed, 1024 insertions(+), 1 deletion(-) diff --git a/libavcodec/vvc/vvcdec.c b/libavcodec/vvc/vvcdec.c index 8d027af0b9..c85b7fac8c 100644 --- a/libavcodec

Re: [FFmpeg-devel] [PATCH v3 14/14] vvcdec: add full vvc decoder

2023-09-02 Thread Nuo Mi
On Sun, Sep 3, 2023 at 12:08 AM Nuo Mi wrote: > vvc decoder plug-in to avcodec. > split frames into slices/tiles and send them to vvc_thread for further > decoding > reorder and wait for the frame decoding to be done and output the frame > > Features: > + S

[FFmpeg-devel] [PATCH] cbs_h266: H266RawSliceHeader, expose curr_subpic_idx

2023-09-05 Thread Nuo Mi
--- libavcodec/cbs_h266.h | 1 + libavcodec/cbs_h266_syntax_template.c | 9 - 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/libavcodec/cbs_h266.h b/libavcodec/cbs_h266.h index 3a6f6d96b5..a263e898bf 100644 --- a/libavcodec/cbs_h266.h +++ b/libavcodec/cbs_h2

[FFmpeg-devel] [PATCH v4] vvcdec: add parameter parser for sps, pps, ph, sh

2023-09-05 Thread Nuo Mi
00..3410bda4bb --- /dev/null +++ b/libavcodec/vvc/vvc_ps.c @@ -0,0 +1,1306 @@ +/* + * VVC parameter set parser + * + * Copyright (C) 2023 Nuo Mi + * Copyright (C) 2022 Xu Mu + * + * This file is part of FFmpeg. + * + * FFmpeg is free software; you can redistribute it and/or + * modify it under

<    1   2   3   4   5   6   7   8   9   10   >