mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-30 20:54:07 +00:00
[dual-tree] Fix chroma tree split model context derivation during search
This commit is contained in:
parent
707e11dbcf
commit
7a5245c5a4
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue