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()
378 if (in_out_vrr->btr.frames_to_insert != 0 && in apply_below_the_range()
380 if (((last_render_time_in_us / in_out_vrr->btr.frames_to_insert) < in apply_below_the_range()
382 ((last_render_time_in_us / in_out_vrr->btr.frames_to_insert) > in apply_below_the_range()
384 frames_to_insert = in_out_vrr->btr.frames_to_insert; in apply_below_the_range()
405 in_out_vrr->btr.inserted_duration_in_us = in apply_below_the_range()
407 in_out_vrr->btr.frames_to_insert = frames_to_insert; in apply_below_the_range()
408 in_out_vrr->btr.frame_counter = frames_to_insert; in apply_below_the_range()
1070 in_out_vrr->btr.btr_enabled = in_config->btr; in mod_freesync_build_vrr_params()
1073 in_out_vrr->btr.btr_enabled = false; in mod_freesync_build_vrr_params()
1075 in_out_vrr->btr.margin_in_us = in_out_vrr->max_duration_in_us - in mod_freesync_build_vrr_params()
1077 if (in_out_vrr->btr.margin_in_us > BTR_MAX_MARGIN) in mod_freesync_build_vrr_params()
1078 in_out_vrr->btr.margin_in_us = BTR_MAX_MARGIN; in mod_freesync_build_vrr_params()
1081 in_out_vrr->btr.btr_active = false; in mod_freesync_build_vrr_params()
1082 in_out_vrr->btr.inserted_duration_in_us = 0; in mod_freesync_build_vrr_params()
1083 in_out_vrr->btr.frames_to_insert = 0; in mod_freesync_build_vrr_params()
1084 in_out_vrr->btr.frame_counter = 0; in mod_freesync_build_vrr_params()
1088 in_out_vrr->btr.mid_point_in_us = in mod_freesync_build_vrr_params()
1154 if (in_out_vrr->btr.btr_enabled) { in mod_freesync_handle_preflip()
1222 in_out_vrr->btr.btr_active) { in mod_freesync_handle_v_update()
1230 if (in_out_vrr->btr.frames_to_insert == in mod_freesync_handle_v_update()
1231 in_out_vrr->btr.frame_counter) { in mod_freesync_handle_v_update()
1235 in_out_vrr->btr.inserted_duration_in_us); in mod_freesync_handle_v_update()
1240 if (in_out_vrr->btr.frame_counter > 0) in mod_freesync_handle_v_update()
1241 in_out_vrr->btr.frame_counter--; in mod_freesync_handle_v_update()
1244 if (in_out_vrr->btr.frame_counter == 0) { in mod_freesync_handle_v_update()
1286 *lfc_mid_point_in_us = vrr->btr.mid_point_in_us; in mod_freesync_get_settings()
1287 *inserted_frames = vrr->btr.frames_to_insert; in mod_freesync_get_settings()
1288 *inserted_duration_in_us = vrr->btr.inserted_duration_in_us; in mod_freesync_get_settings()