mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-30 20:54:07 +00:00
Log search_cu to threadqueue.log
This commit is contained in:
parent
f62e571c15
commit
946e3b9651
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue