Lines Matching refs:btr

270 			in_out_vrr->max_duration_in_us - in_out_vrr->btr.margin_in_us;  in apply_below_the_range()
273 if ((last_render_time_in_us + in_out_vrr->btr.margin_in_us / 2) < max_render_time_in_us) { in apply_below_the_range()
275 if (in_out_vrr->btr.btr_active) { in apply_below_the_range()
276 in_out_vrr->btr.frame_counter = 0; in apply_below_the_range()
277 in_out_vrr->btr.btr_active = false; in apply_below_the_range()
279 } 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()
281 if (!in_out_vrr->btr.btr_active) { in apply_below_the_range()
282 in_out_vrr->btr.btr_active = true; in apply_below_the_range()
287 if (!in_out_vrr->btr.btr_active) { in apply_below_the_range()
288 in_out_vrr->btr.inserted_duration_in_us = 0; in apply_below_the_range()
289 in_out_vrr->btr.frames_to_insert = 0; in apply_below_the_range()
290 in_out_vrr->btr.frame_counter = 0; in apply_below_the_range()
306 in_out_vrr->btr.mid_point_in_us - 1) / in apply_below_the_range()
307 in_out_vrr->btr.mid_point_in_us; in apply_below_the_range()
313 (in_out_vrr->btr.mid_point_in_us > in apply_below_the_range()
315 (in_out_vrr->btr.mid_point_in_us - frame_time_in_us) : in apply_below_the_range()
316 (frame_time_in_us - in_out_vrr->btr.mid_point_in_us); in apply_below_the_range()
323 in_out_vrr->btr.mid_point_in_us; in apply_below_the_range()
330 (in_out_vrr->btr.mid_point_in_us > in apply_below_the_range()
332 (in_out_vrr->btr.mid_point_in_us - frame_time_in_us) : in apply_below_the_range()
333 (frame_time_in_us - in_out_vrr->btr.mid_point_in_us); in apply_below_the_range()
376 if (in_out_vrr->btr.frames_to_insert != 0 && in apply_below_the_range()
378 if (((last_render_time_in_us / in_out_vrr->btr.frames_to_insert) < in apply_below_the_range()
380 ((last_render_time_in_us / in_out_vrr->btr.frames_to_insert) > in apply_below_the_range()
382 frames_to_insert = in_out_vrr->btr.frames_to_insert; in apply_below_the_range()
402 in_out_vrr->btr.inserted_duration_in_us = in apply_below_the_range()
404 in_out_vrr->btr.frames_to_insert = frames_to_insert; in apply_below_the_range()
405 in_out_vrr->btr.frame_counter = frames_to_insert; in apply_below_the_range()
1096 in_out_vrr->btr.btr_enabled = in_config->btr; in mod_freesync_build_vrr_params()
1099 in_out_vrr->btr.btr_enabled = false; in mod_freesync_build_vrr_params()
1101 in_out_vrr->btr.margin_in_us = in_out_vrr->max_duration_in_us - in mod_freesync_build_vrr_params()
1103 if (in_out_vrr->btr.margin_in_us > BTR_MAX_MARGIN) in mod_freesync_build_vrr_params()
1104 in_out_vrr->btr.margin_in_us = BTR_MAX_MARGIN; in mod_freesync_build_vrr_params()
1107 in_out_vrr->btr.btr_active = false; in mod_freesync_build_vrr_params()
1108 in_out_vrr->btr.inserted_duration_in_us = 0; in mod_freesync_build_vrr_params()
1109 in_out_vrr->btr.frames_to_insert = 0; in mod_freesync_build_vrr_params()
1110 in_out_vrr->btr.frame_counter = 0; in mod_freesync_build_vrr_params()
1114 in_out_vrr->btr.mid_point_in_us = in mod_freesync_build_vrr_params()
1198 if (in_out_vrr->btr.btr_enabled) { in mod_freesync_handle_preflip()
1266 in_out_vrr->btr.btr_active) { in mod_freesync_handle_v_update()
1274 if (in_out_vrr->btr.frames_to_insert == in mod_freesync_handle_v_update()
1275 in_out_vrr->btr.frame_counter) { in mod_freesync_handle_v_update()
1279 in_out_vrr->btr.inserted_duration_in_us); in mod_freesync_handle_v_update()
1284 if (in_out_vrr->btr.frame_counter > 0) in mod_freesync_handle_v_update()
1285 in_out_vrr->btr.frame_counter--; in mod_freesync_handle_v_update()
1288 if (in_out_vrr->btr.frame_counter == 0) { in mod_freesync_handle_v_update()
1330 *lfc_mid_point_in_us = vrr->btr.mid_point_in_us; in mod_freesync_get_settings()
1331 *inserted_frames = vrr->btr.frames_to_insert; in mod_freesync_get_settings()
1332 *inserted_duration_in_us = vrr->btr.inserted_duration_in_us; in mod_freesync_get_settings()