Lines Matching refs:btr

268 			in_out_vrr->max_duration_in_us - in_out_vrr->btr.margin_in_us;  in apply_below_the_range()
271 if ((last_render_time_in_us + in_out_vrr->btr.margin_in_us / 2) < max_render_time_in_us) { in apply_below_the_range()
273 if (in_out_vrr->btr.btr_active) { in apply_below_the_range()
274 in_out_vrr->btr.frame_counter = 0; in apply_below_the_range()
275 in_out_vrr->btr.btr_active = false; in apply_below_the_range()
277 } 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()
279 if (!in_out_vrr->btr.btr_active) { in apply_below_the_range()
280 in_out_vrr->btr.btr_active = true; in apply_below_the_range()
285 if (!in_out_vrr->btr.btr_active) { in apply_below_the_range()
286 in_out_vrr->btr.inserted_duration_in_us = 0; in apply_below_the_range()
287 in_out_vrr->btr.frames_to_insert = 0; in apply_below_the_range()
288 in_out_vrr->btr.frame_counter = 0; in apply_below_the_range()
304 in_out_vrr->btr.mid_point_in_us - 1) / in apply_below_the_range()
305 in_out_vrr->btr.mid_point_in_us; in apply_below_the_range()
311 (in_out_vrr->btr.mid_point_in_us > in apply_below_the_range()
313 (in_out_vrr->btr.mid_point_in_us - frame_time_in_us) : in apply_below_the_range()
314 (frame_time_in_us - in_out_vrr->btr.mid_point_in_us); in apply_below_the_range()
321 in_out_vrr->btr.mid_point_in_us; in apply_below_the_range()
328 (in_out_vrr->btr.mid_point_in_us > in apply_below_the_range()
330 (in_out_vrr->btr.mid_point_in_us - frame_time_in_us) : in apply_below_the_range()
331 (frame_time_in_us - in_out_vrr->btr.mid_point_in_us); in apply_below_the_range()
374 if (in_out_vrr->btr.frames_to_insert != 0 && in apply_below_the_range()
376 if (((last_render_time_in_us / in_out_vrr->btr.frames_to_insert) < in apply_below_the_range()
378 ((last_render_time_in_us / in_out_vrr->btr.frames_to_insert) > in apply_below_the_range()
380 frames_to_insert = in_out_vrr->btr.frames_to_insert; in apply_below_the_range()
400 in_out_vrr->btr.inserted_duration_in_us = in apply_below_the_range()
402 in_out_vrr->btr.frames_to_insert = frames_to_insert; in apply_below_the_range()
403 in_out_vrr->btr.frame_counter = frames_to_insert; in apply_below_the_range()
1068 in_out_vrr->btr.btr_enabled = in_config->btr; in mod_freesync_build_vrr_params()
1071 in_out_vrr->btr.btr_enabled = false; in mod_freesync_build_vrr_params()
1073 in_out_vrr->btr.margin_in_us = in_out_vrr->max_duration_in_us - in mod_freesync_build_vrr_params()
1075 if (in_out_vrr->btr.margin_in_us > BTR_MAX_MARGIN) in mod_freesync_build_vrr_params()
1076 in_out_vrr->btr.margin_in_us = BTR_MAX_MARGIN; in mod_freesync_build_vrr_params()
1079 in_out_vrr->btr.btr_active = false; in mod_freesync_build_vrr_params()
1080 in_out_vrr->btr.inserted_duration_in_us = 0; in mod_freesync_build_vrr_params()
1081 in_out_vrr->btr.frames_to_insert = 0; in mod_freesync_build_vrr_params()
1082 in_out_vrr->btr.frame_counter = 0; in mod_freesync_build_vrr_params()
1086 in_out_vrr->btr.mid_point_in_us = in mod_freesync_build_vrr_params()
1170 if (in_out_vrr->btr.btr_enabled) { in mod_freesync_handle_preflip()
1203 in_out_vrr->btr.btr_active) { in mod_freesync_handle_v_update()
1211 if (in_out_vrr->btr.frames_to_insert == in mod_freesync_handle_v_update()
1212 in_out_vrr->btr.frame_counter) { in mod_freesync_handle_v_update()
1216 in_out_vrr->btr.inserted_duration_in_us); in mod_freesync_handle_v_update()
1221 if (in_out_vrr->btr.frame_counter > 0) in mod_freesync_handle_v_update()
1222 in_out_vrr->btr.frame_counter--; in mod_freesync_handle_v_update()
1225 if (in_out_vrr->btr.frame_counter == 0) { in mod_freesync_handle_v_update()
1267 *lfc_mid_point_in_us = vrr->btr.mid_point_in_us; in mod_freesync_get_settings()
1268 *inserted_frames = vrr->btr.frames_to_insert; in mod_freesync_get_settings()
1269 *inserted_duration_in_us = vrr->btr.inserted_duration_in_us; in mod_freesync_get_settings()