From 946e3b9651544a8cc3238eac9589cc3cfc329f8e Mon Sep 17 00:00:00 2001 From: Laurent Fasnacht Date: Mon, 7 Jul 2014 10:50:05 +0200 Subject: [PATCH] Log search_cu to threadqueue.log --- src/search.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/search.c b/src/search.c index be84e958..69a21ffe 100644 --- a/src/search.c +++ b/src/search.c @@ -1099,6 +1099,10 @@ static int search_cu(encoder_state * const encoder_state, int x, int y, int dept int cost = MAX_INT; cu_info *cur_cu; int x_local = (x&0x3f), y_local = (y&0x3f); +#if _DEBUG + int debug_split = 0; +#endif + PERFORMANCE_MEASURE_START(); // Stop recursion if the CU is completely outside the frame. if (x >= frame->width || y >= frame->height) { @@ -1196,12 +1200,17 @@ static int search_cu(encoder_state * const encoder_state, int x, int y, int dept // Copy split modes to this depth. cost = split_cost; work_tree_copy_up(x, y, depth, work_tree); +#if _DEBUG + debug_split = 1; +#endif } else { // Copy this CU's mode all the way down for use in adjacent CUs mode // search. work_tree_copy_down(x, y, depth, work_tree); } } + + PERFORMANCE_MEASURE_END(encoder_state->encoder_control->threadqueue, "type=search_cu,frame=%d,tile=%d,slice=%d,x=%d,y=%d,depth=%d,split=%d", encoder_state->global->frame, encoder_state->tile->id, encoder_state->slice->id, x, y, depth, debug_split); return cost; }