mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-27 19:24:06 +00:00
Reduced bit cost when skip mode is selected
This commit is contained in:
parent
b5756821dd
commit
362fc6c5a5
|
@ -883,6 +883,8 @@ static int search_cu(encoder_control *encoder, int x, int y, int depth, lcu_t wo
|
||||||
if(cur_cu->merged && !cur_cu->coeff_top_y[depth] && !cur_cu->coeff_top_u[depth] && !cur_cu->coeff_top_v[depth]) {
|
if(cur_cu->merged && !cur_cu->coeff_top_y[depth] && !cur_cu->coeff_top_u[depth] && !cur_cu->coeff_top_v[depth]) {
|
||||||
cur_cu->merged = 0;
|
cur_cu->merged = 0;
|
||||||
cur_cu->skipped = 1;
|
cur_cu->skipped = 1;
|
||||||
|
// Selecting skip reduces bits needed to code the CU
|
||||||
|
cur_cu->inter.bitcost--;
|
||||||
}
|
}
|
||||||
lcu_set_inter(&work_tree[depth], x, y, depth, cur_cu);
|
lcu_set_inter(&work_tree[depth], x, y, depth, cur_cu);
|
||||||
lcu_set_coeff(&work_tree[depth], x, y, depth, cur_cu);
|
lcu_set_coeff(&work_tree[depth], x, y, depth, cur_cu);
|
||||||
|
|
Loading…
Reference in a new issue