Reduced bit cost when skip mode is selected

This commit is contained in:
Marko Viitanen 2014-03-12 14:13:38 +02:00
parent b5756821dd
commit 362fc6c5a5

View file

@ -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);