[FFmpeg-devel] [PATCH v1 14/23] avcodec/vvc/ctu: read act_enabled_flag for adaptive color transform
toqsxw at gmail.com
toqsxw at gmail.com
Thu May 1 17:43:12 EEST 2025
From: Wu Jianhua <toqsxw at outlook.com>
Signed-off-by: Wu Jianhua <toqsxw at outlook.com>
---
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 +2150,9 @@ static int hls_coding_unit(VVCLocalContext *lc, int x0, int y0, int cb_width, in
mode_type = MODE_TYPE_INTRA;
cu->pred_mode = pred_mode_decode(lc, tree_type, mode_type);
- if (cu->pred_mode == MODE_INTRA && sps->r->sps_act_enabled_flag && tree_type == SINGLE_TREE) {
- avpriv_report_missing_feature(fc->log_ctx, "Adaptive Color Transform");
- return AVERROR_PATCHWELCOME;
- }
+ if (cu->pred_mode == MODE_INTRA && sps->r->sps_act_enabled_flag && tree_type == SINGLE_TREE)
+ cu->act_enabled_flag = ff_vvc_cu_act_enabled_flag(lc);
+
if (cu->pred_mode == MODE_INTRA || cu->pred_mode == MODE_PLT)
ret = intra_data(lc);
else if (tree_type != DUAL_TREE_CHROMA) /* MODE_INTER or MODE_IBC */
@@ -2169,10 +2168,8 @@ static int hls_coding_unit(VVCLocalContext *lc, int x0, int y0, int cb_width, in
if (cu->coded_flag) {
sbt_info(lc, sps);
- if (sps->r->sps_act_enabled_flag && cu->pred_mode != MODE_INTRA && tree_type == SINGLE_TREE) {
- avpriv_report_missing_feature(fc->log_ctx, "Adaptive Color Transform");
- return AVERROR_PATCHWELCOME;
- }
+ if (sps->r->sps_act_enabled_flag && cu->pred_mode != MODE_INTRA && tree_type == SINGLE_TREE)
+ cu->act_enabled_flag = ff_vvc_cu_act_enabled_flag(lc);
lc->parse.lfnst_dc_only = 1;
lc->parse.lfnst_zero_out_sig_coeff_flag = 1;
lc->parse.mts_dc_only = 1;
--
2.44.0.windows.1
More information about the ffmpeg-devel
mailing list