Lines Matching refs:btr
271 in_out_vrr->max_duration_in_us - in_out_vrr->btr.margin_in_us; in apply_below_the_range()
274 if ((last_render_time_in_us + in_out_vrr->btr.margin_in_us / 2) < max_render_time_in_us) { in apply_below_the_range()
276 if (in_out_vrr->btr.btr_active) { in apply_below_the_range()
277 in_out_vrr->btr.frame_counter = 0; in apply_below_the_range()
278 in_out_vrr->btr.btr_active = false; in apply_below_the_range()
280 } 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()
282 if (!in_out_vrr->btr.btr_active) in apply_below_the_range()
283 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()
1067 in_out_vrr->btr.btr_enabled = in_config->btr; in mod_freesync_build_vrr_params()
1070 in_out_vrr->btr.btr_enabled = false; in mod_freesync_build_vrr_params()
1072 in_out_vrr->btr.margin_in_us = in_out_vrr->max_duration_in_us - in mod_freesync_build_vrr_params()
1074 if (in_out_vrr->btr.margin_in_us > BTR_MAX_MARGIN) in mod_freesync_build_vrr_params()
1075 in_out_vrr->btr.margin_in_us = BTR_MAX_MARGIN; in mod_freesync_build_vrr_params()
1078 in_out_vrr->btr.btr_active = false; in mod_freesync_build_vrr_params()
1079 in_out_vrr->btr.inserted_duration_in_us = 0; in mod_freesync_build_vrr_params()
1080 in_out_vrr->btr.frames_to_insert = 0; in mod_freesync_build_vrr_params()
1081 in_out_vrr->btr.frame_counter = 0; in mod_freesync_build_vrr_params()
1085 in_out_vrr->btr.mid_point_in_us = in mod_freesync_build_vrr_params()
1153 if (in_out_vrr->btr.btr_enabled) { in mod_freesync_handle_preflip()
1221 in_out_vrr->btr.btr_active) { in mod_freesync_handle_v_update()
1229 if (in_out_vrr->btr.frames_to_insert == in mod_freesync_handle_v_update()
1230 in_out_vrr->btr.frame_counter) { in mod_freesync_handle_v_update()
1234 in_out_vrr->btr.inserted_duration_in_us); in mod_freesync_handle_v_update()
1239 if (in_out_vrr->btr.frame_counter > 0) in mod_freesync_handle_v_update()
1240 in_out_vrr->btr.frame_counter--; in mod_freesync_handle_v_update()
1243 if (in_out_vrr->btr.frame_counter == 0) { in mod_freesync_handle_v_update()
1285 *lfc_mid_point_in_us = vrr->btr.mid_point_in_us; in mod_freesync_get_settings()
1286 *inserted_frames = vrr->btr.frames_to_insert; in mod_freesync_get_settings()
1287 *inserted_duration_in_us = vrr->btr.inserted_duration_in_us; in mod_freesync_get_settings()