From 662f31d61d67f25b8c90e352fe5295d431281058 Mon Sep 17 00:00:00 2001 From: Joose Sainio Date: Tue, 6 Sep 2022 09:30:46 +0300 Subject: [PATCH] [isp] Use correct coordinates for depth 4 chroma tu cost calculation --- src/search.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/search.c b/src/search.c index 5dad1b3b..ff426dda 100644 --- a/src/search.c +++ b/src/search.c @@ -688,6 +688,7 @@ static double cu_rd_cost_tr_split_accurate( unsigned chroma_ssd = 0; if(has_chroma) { const vector2d_t lcu_px = { (x_px >> (tree_type != UVG_CHROMA_T)) & ~3, (y_px >> (tree_type != UVG_CHROMA_T)) &~3 }; + uvg_cu_loc_ctor(&loc, lcu_px.x, lcu_px.y, width, height); const int chroma_width = MAX(4, LCU_WIDTH >> (depth + 1)); const int chroma_height = chroma_width; // TODO: height for non-square blocks int8_t scan_order = uvg_get_scan_order(pred_cu->type, pred_cu->intra.mode_chroma, depth);