Skip to content

support plt and act#288

Closed
nuomi2021 wants to merge 34 commits into
ffvvc:upfrom
nuomi2021:plt
Closed

support plt and act#288
nuomi2021 wants to merge 34 commits into
ffvvc:upfrom
nuomi2021:plt

Conversation

@nuomi2021
Copy link
Copy Markdown
Member

@nuomi2021 nuomi2021 commented Apr 26, 2025

replace #224

@QSXW this is the refined version.
Please review and help upstream it after the SEI patch is merged.

Comment thread libavcodec/vvc/dsp_template.c Outdated

const int size = width * height;
for (int i = 0; i < size; i++) {
const int y0 = av_clip(y[i], min, max);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is an extra space before min.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed and change av_clip to av_clip_intp2

Comment thread libavcodec/vvc/ctu.c
return ret;
}

static TransformUnit* palette_add_tu(VVCLocalContext *lc, const int start, const int end, const VVCTreeType tree_type)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The TransformUnit* need to be TransformUnit *

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We use this style for all functions that return a pointer, such as add_tu. This means the function should return a TransformUnit pointer.

Comment thread libavcodec/vvc/ctu.c
}

static void palette_update_predictor(VVCLocalContext *lc, const bool local_dual_tree, int start, int end,
bool *predictor_reused, const int predictor_size)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use bool?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes. c99 has bool

Comment thread libavcodec/vvc/ctu.c Outdated
Palette *plt = cu->plt + c;
int i = cu->plt[start].size;;

//copy unused predictors to the end of plt
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

better to use // copy unused predictors to the end of plt

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

Comment thread libavcodec/vvc/ctu.c Outdated
const int hs = sps->hshift[c];
const int vs = sps->vshift[c];
uint8_t *u8 = (uint8_t*)tb->coeffs;
uint16_t *u16 = (uint16_t*)tb->coeffs;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(uint16_t*) to `(uint16_t *)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@nuomi2021
Copy link
Copy Markdown
Member Author

@QSXW thank you for the review. All fixed.

Comment thread Changelog Outdated
constrains
- FFV1 parser

- VVC decoder supports all content of SCC (Screen Content Coding):
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added this message to the part of version 7.1... Could you help move it below the version : And the signed off email is wrong, should be outlook.com

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, you can change this before you send it to upstream for review.

cus and others added 24 commits May 16, 2025 20:43
This allows catching IO errors occuring at file close.

Signed-off-by: Marton Balint <cus@passwd.hu>
Signed-off-by: Marton Balint <cus@passwd.hu>
Signed-off-by: Marton Balint <cus@passwd.hu>
…rocess

Signed-off-by: Wu Jianhua <toqsxw@outlook.com>
Signed-off-by: Wu Jianhua <toqsxw@outlook.com>
Signed-off-by: Wu Jianhua <toqsxw@outlook.com>
Signed-off-by: Wu Jianhua <toqsxw@outlook.com>
Signed-off-by: Wu Jianhua <toqsxw@outlook.com>
Signed-off-by: Wu Jianhua <toqsxw@outlook.com>
Signed-off-by: Wu Jianhua <toqsxw@outlook.com>
Signed-off-by: Wu Jianhua <toqsxw@outlook.com>
Signed-off-by: Wu Jianhua <toqsxw@outlook.com>
Signed-off-by: Wu Jianhua <toqsxw@outlook.com>
Signed-off-by: Wu Jianhua <toqsxw@outlook.com>
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_Sony_5.bit
    8b422_J_Sony_5.bit
    8b422_K_Sony_5.bit
    8b422_L_Sony_5.bit
    8b444_A_Kwai_2.bit
    8b444_B_Kwai_2.bit
    PALETTE_A_Alibaba_2.bit
    PALETTE_B_Alibaba_2.bit
    PALETTE_C_Alibaba_2.bit
    PALETTE_D_Alibaba_2.bit
    PALETTE_E_Alibaba_2.bit

Signed-off-by: Wu Jianhua <toqsxw@outlook.com>
Signed-off-by: Wu Jianhua <toqsxw@outlook.com>
Signed-off-by: Wu Jianhua <toqsxw@outlook.com>
See 8.4.3 Derivation process for chroma intra prediction mode

Signed-off-by: Wu Jianhua <toqsxw@outlook.com>
…t cbcr residual functionality

Signed-off-by: Wu Jianhua <toqsxw@outlook.com>
See 8.7.4.6 Residual modification process for blocks using colour space conversion

Signed-off-by: Wu Jianhua <toqsxw@outlook.com>
See 8.7.3 Scaling process for transform coefficients

Signed-off-by: Wu Jianhua <toqsxw@outlook.com>
prepare for adaptive color transform

Signed-off-by: Wu Jianhua <toqsxw@outlook.com>
prepare for adaptive color transform

Signed-off-by: Wu Jianhua <toqsxw@outlook.com>
@nuomi2021
Copy link
Copy Markdown
Member Author

merged as a65d028
Thank you, Jianhua and all

@nuomi2021 nuomi2021 closed this May 17, 2025
@nuomi2021 nuomi2021 mentioned this pull request May 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants