From c7a7a4719ad06bddeb6060da33dda7b8d50a4a61 Mon Sep 17 00:00:00 2001 From: Joose Sainio Date: Fri, 3 Jun 2022 15:03:44 +0300 Subject: [PATCH] [debug] remove debug prints --- src/filter.c | 2 -- src/search.c | 6 +++--- src/search_intra.c | 2 +- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/filter.c b/src/filter.c index 7bd27778..721d153a 100644 --- a/src/filter.c +++ b/src/filter.c @@ -1046,8 +1046,6 @@ static void filter_deblock_edge_chroma(encoder_state_t * const state, const int32_t offset = (dir == EDGE_HOR) ? stride : 1; const int32_t step = (dir == EDGE_HOR) ? 1 : stride; - //printf("%d %d %d %d\n", x << 1, y << 1, num_parts, dir); - for (uint32_t blk_idx = 0; blk_idx < num_parts; ++blk_idx) { // CUs on both sides of the edge diff --git a/src/search.c b/src/search.c index 90919cc4..b181d5fe 100644 --- a/src/search.c +++ b/src/search.c @@ -1194,9 +1194,9 @@ static double search_cu(encoder_state_t * const state, int x, int y, int depth, // the split costs at least as much as not splitting. if (cur_cu->type == CU_NOTSET || cbf || state->encoder_control->cfg.cu_split_termination == UVG_CU_SPLIT_TERMINATION_OFF) { if (split_cost < cost) split_cost += search_cu(state, x, y, depth + 1, work_tree); - if (split_cost < cost || 1) split_cost += search_cu(state, x + half_cu, y, depth + 1, work_tree); - if (split_cost < cost || 1) split_cost += search_cu(state, x, y + half_cu, depth + 1, work_tree); - if (split_cost < cost || 1) split_cost += search_cu(state, x + half_cu, y + half_cu, depth + 1, work_tree); + if (split_cost < cost) split_cost += search_cu(state, x + half_cu, y, depth + 1, work_tree); + if (split_cost < cost) split_cost += search_cu(state, x, y + half_cu, depth + 1, work_tree); + if (split_cost < cost) split_cost += search_cu(state, x + half_cu, y + half_cu, depth + 1, work_tree); } else { split_cost = INT_MAX; } diff --git a/src/search_intra.c b/src/search_intra.c index 0c66b862..19de0c16 100644 --- a/src/search_intra.c +++ b/src/search_intra.c @@ -2244,6 +2244,6 @@ void uvg_search_cu_intra( search_data[0].pred_cu.mts_last_scan_pos = false; search_data[0].pred_cu.violates_mts_coeff_constraint = false; } - printf("%f %d %d %d\n", search_data[0].cost, x_px, y_px, depth); + *mode_out = search_data[0]; }