[dual-tree] Fix chroma tree split model context derivation during search

This commit is contained in:
Joose Sainio 2023-02-23 13:41:59 +02:00 committed by Marko Viitanen
parent 707e11dbcf
commit 7a5245c5a4

View file

@ -1765,7 +1765,7 @@ static double search_cu(
left_cu = LCU_GET_CU_AT_PX(lcu, x_local - 1, y_local); left_cu = LCU_GET_CU_AT_PX(lcu, x_local - 1, y_local);
} }
else { else {
left_cu = uvg_cu_array_at_const(state->tile->frame->chroma_cu_array, (x >> 1) - 1, y >> 1); left_cu = uvg_cu_array_at_const(state->tile->frame->chroma_cu_array, x - 1, y);
} }
} }
if (y) { if (y) {
@ -1773,7 +1773,7 @@ static double search_cu(
above_cu = LCU_GET_CU_AT_PX(lcu, x_local, y_local - 1); above_cu = LCU_GET_CU_AT_PX(lcu, x_local, y_local - 1);
} }
else { else {
above_cu = uvg_cu_array_at_const(state->tile->frame->chroma_cu_array, x >> 1, (y >> 1) - 1); above_cu = uvg_cu_array_at_const(state->tile->frame->chroma_cu_array, x, y - 1);
} }
} }
split_tree_t count_tree = split_tree; split_tree_t count_tree = split_tree;