Lines Matching refs:btr

296 			in_out_vrr->max_duration_in_us - in_out_vrr->btr.margin_in_us;  in apply_below_the_range()
299 if ((last_render_time_in_us + in_out_vrr->btr.margin_in_us / 2) < max_render_time_in_us) { in apply_below_the_range()
301 if (in_out_vrr->btr.btr_active) { in apply_below_the_range()
302 in_out_vrr->btr.frame_counter = 0; in apply_below_the_range()
303 in_out_vrr->btr.btr_active = false; in apply_below_the_range()
305 } else if (last_render_time_in_us > (max_render_time_in_us + in_out_vrr->btr.margin_in_us / 2)) { in apply_below_the_range()
307 if (!in_out_vrr->btr.btr_active) in apply_below_the_range()
308 in_out_vrr->btr.btr_active = true; in apply_below_the_range()
312 if (!in_out_vrr->btr.btr_active) { in apply_below_the_range()
313 in_out_vrr->btr.inserted_duration_in_us = 0; in apply_below_the_range()
314 in_out_vrr->btr.frames_to_insert = 0; in apply_below_the_range()
315 in_out_vrr->btr.frame_counter = 0; in apply_below_the_range()
331 in_out_vrr->btr.mid_point_in_us - 1) / in apply_below_the_range()
332 in_out_vrr->btr.mid_point_in_us; in apply_below_the_range()
338 (in_out_vrr->btr.mid_point_in_us > in apply_below_the_range()
340 (in_out_vrr->btr.mid_point_in_us - frame_time_in_us) : in apply_below_the_range()
341 (frame_time_in_us - in_out_vrr->btr.mid_point_in_us); in apply_below_the_range()
348 in_out_vrr->btr.mid_point_in_us; in apply_below_the_range()
355 (in_out_vrr->btr.mid_point_in_us > in apply_below_the_range()
357 (in_out_vrr->btr.mid_point_in_us - frame_time_in_us) : in apply_below_the_range()
358 (frame_time_in_us - in_out_vrr->btr.mid_point_in_us); in apply_below_the_range()
403 if (in_out_vrr->btr.frames_to_insert != 0 && in apply_below_the_range()
405 if (((last_render_time_in_us / in_out_vrr->btr.frames_to_insert) < in apply_below_the_range()
407 ((last_render_time_in_us / in_out_vrr->btr.frames_to_insert) > in apply_below_the_range()
409 frames_to_insert = in_out_vrr->btr.frames_to_insert; in apply_below_the_range()
430 in_out_vrr->btr.inserted_duration_in_us = in apply_below_the_range()
432 in_out_vrr->btr.frames_to_insert = frames_to_insert; in apply_below_the_range()
433 in_out_vrr->btr.frame_counter = frames_to_insert; in apply_below_the_range()
1055 in_out_vrr->btr.btr_enabled = in_config->btr; in mod_freesync_build_vrr_params()
1058 in_out_vrr->btr.btr_enabled = false; in mod_freesync_build_vrr_params()
1060 in_out_vrr->btr.margin_in_us = in_out_vrr->max_duration_in_us - in mod_freesync_build_vrr_params()
1062 if (in_out_vrr->btr.margin_in_us > BTR_MAX_MARGIN) in mod_freesync_build_vrr_params()
1063 in_out_vrr->btr.margin_in_us = BTR_MAX_MARGIN; in mod_freesync_build_vrr_params()
1066 in_out_vrr->btr.btr_active = false; in mod_freesync_build_vrr_params()
1067 in_out_vrr->btr.inserted_duration_in_us = 0; in mod_freesync_build_vrr_params()
1068 in_out_vrr->btr.frames_to_insert = 0; in mod_freesync_build_vrr_params()
1069 in_out_vrr->btr.frame_counter = 0; in mod_freesync_build_vrr_params()
1073 in_out_vrr->btr.mid_point_in_us = in mod_freesync_build_vrr_params()
1141 if (in_out_vrr->btr.btr_enabled) { in mod_freesync_handle_preflip()
1209 in_out_vrr->btr.btr_active) { in mod_freesync_handle_v_update()
1217 if (in_out_vrr->btr.frames_to_insert == in mod_freesync_handle_v_update()
1218 in_out_vrr->btr.frame_counter) { in mod_freesync_handle_v_update()
1222 in_out_vrr->btr.inserted_duration_in_us); in mod_freesync_handle_v_update()
1227 if (in_out_vrr->btr.frame_counter > 0) in mod_freesync_handle_v_update()
1228 in_out_vrr->btr.frame_counter--; in mod_freesync_handle_v_update()
1231 if (in_out_vrr->btr.frame_counter == 0) { in mod_freesync_handle_v_update()