[debug] remove debug prints

This commit is contained in:
Joose Sainio 2022-06-03 15:03:44 +03:00
parent 0630a98f6c
commit c7a7a4719a
3 changed files with 4 additions and 6 deletions

View file

@ -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 offset = (dir == EDGE_HOR) ? stride : 1;
const int32_t step = (dir == EDGE_HOR) ? 1 : stride; 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) for (uint32_t blk_idx = 0; blk_idx < num_parts; ++blk_idx)
{ {
// CUs on both sides of the edge // CUs on both sides of the edge

View file

@ -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. // 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 (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) 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) 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) 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 + half_cu, depth + 1, work_tree);
} else { } else {
split_cost = INT_MAX; split_cost = INT_MAX;
} }

View file

@ -2244,6 +2244,6 @@ void uvg_search_cu_intra(
search_data[0].pred_cu.mts_last_scan_pos = false; search_data[0].pred_cu.mts_last_scan_pos = false;
search_data[0].pred_cu.violates_mts_coeff_constraint = 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]; *mode_out = search_data[0];
} }