From 80da15df4d0542a68627f6ff40fc1f8410aa47f8 Mon Sep 17 00:00:00 2001 From: Marko Viitanen Date: Fri, 31 Jan 2014 12:31:51 +0200 Subject: [PATCH] Adjusted cost calculation of CU split Quick testing shows BD-rate change of -14% (LP) and -4% (AI) with 600 frames of BQMall using QP 22,27,32,37. --- src/search.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/search.c b/src/search.c index f28d6e2b..8f2623ab 100644 --- a/src/search.c +++ b/src/search.c @@ -512,7 +512,7 @@ uint32_t search_best_mode(encoder_control *encoder, [x_ctb + y_ctb * (encoder->in.width_in_lcu << MAX_DEPTH)]; uint32_t best_intra_cost = cur_cu->intra[0].cost; uint32_t best_inter_cost = cur_cu->inter.cost; - uint32_t lambda_cost = (4 * g_lambda_cost[encoder->QP]) << 4; //<<5; //TODO: Correct cost calculation + uint32_t lambda_cost = (4 * g_lambda_cost[encoder->QP]); //TODO: Correct cost calculation if (depth < MAX_INTRA_SEARCH_DEPTH && depth < MAX_INTER_SEARCH_DEPTH) { uint32_t cost = lambda_cost;