Log search_cu to threadqueue.log

This commit is contained in:
Laurent Fasnacht 2014-07-07 10:50:05 +02:00
parent f62e571c15
commit 946e3b9651

View file

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