Lines Matching refs:btr

259 			in_out_vrr->max_duration_in_us - in_out_vrr->btr.margin_in_us;  in apply_below_the_range()
262 if ((last_render_time_in_us + in_out_vrr->btr.margin_in_us / 2) < max_render_time_in_us) { in apply_below_the_range()
264 if (in_out_vrr->btr.btr_active) { in apply_below_the_range()
265 in_out_vrr->btr.frame_counter = 0; in apply_below_the_range()
266 in_out_vrr->btr.btr_active = false; in apply_below_the_range()
268 } 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()
270 if (!in_out_vrr->btr.btr_active) { in apply_below_the_range()
271 in_out_vrr->btr.btr_active = true; in apply_below_the_range()
276 if (!in_out_vrr->btr.btr_active) { in apply_below_the_range()
277 in_out_vrr->btr.inserted_duration_in_us = 0; in apply_below_the_range()
278 in_out_vrr->btr.frames_to_insert = 0; in apply_below_the_range()
279 in_out_vrr->btr.frame_counter = 0; in apply_below_the_range()
295 in_out_vrr->btr.mid_point_in_us - 1) / in apply_below_the_range()
296 in_out_vrr->btr.mid_point_in_us; in apply_below_the_range()
302 (in_out_vrr->btr.mid_point_in_us > in apply_below_the_range()
304 (in_out_vrr->btr.mid_point_in_us - frame_time_in_us) : in apply_below_the_range()
305 (frame_time_in_us - in_out_vrr->btr.mid_point_in_us); in apply_below_the_range()
312 in_out_vrr->btr.mid_point_in_us; in apply_below_the_range()
319 (in_out_vrr->btr.mid_point_in_us > in apply_below_the_range()
321 (in_out_vrr->btr.mid_point_in_us - frame_time_in_us) : in apply_below_the_range()
322 (frame_time_in_us - in_out_vrr->btr.mid_point_in_us); in apply_below_the_range()
365 if (in_out_vrr->btr.frames_to_insert != 0 && in apply_below_the_range()
367 if (((last_render_time_in_us / in_out_vrr->btr.frames_to_insert) < in apply_below_the_range()
369 ((last_render_time_in_us / in_out_vrr->btr.frames_to_insert) > in apply_below_the_range()
371 frames_to_insert = in_out_vrr->btr.frames_to_insert; in apply_below_the_range()
391 in_out_vrr->btr.inserted_duration_in_us = in apply_below_the_range()
393 in_out_vrr->btr.frames_to_insert = frames_to_insert; in apply_below_the_range()
394 in_out_vrr->btr.frame_counter = frames_to_insert; in apply_below_the_range()
1059 in_out_vrr->btr.btr_enabled = in_config->btr; in mod_freesync_build_vrr_params()
1062 in_out_vrr->btr.btr_enabled = false; in mod_freesync_build_vrr_params()
1064 in_out_vrr->btr.margin_in_us = in_out_vrr->max_duration_in_us - in mod_freesync_build_vrr_params()
1066 if (in_out_vrr->btr.margin_in_us > BTR_MAX_MARGIN) in mod_freesync_build_vrr_params()
1067 in_out_vrr->btr.margin_in_us = BTR_MAX_MARGIN; in mod_freesync_build_vrr_params()
1070 in_out_vrr->btr.btr_active = false; in mod_freesync_build_vrr_params()
1071 in_out_vrr->btr.inserted_duration_in_us = 0; in mod_freesync_build_vrr_params()
1072 in_out_vrr->btr.frames_to_insert = 0; in mod_freesync_build_vrr_params()
1073 in_out_vrr->btr.frame_counter = 0; in mod_freesync_build_vrr_params()
1077 in_out_vrr->btr.mid_point_in_us = in mod_freesync_build_vrr_params()
1161 if (in_out_vrr->btr.btr_enabled) { in mod_freesync_handle_preflip()
1194 in_out_vrr->btr.btr_active) { in mod_freesync_handle_v_update()
1202 if (in_out_vrr->btr.frames_to_insert == in mod_freesync_handle_v_update()
1203 in_out_vrr->btr.frame_counter) { in mod_freesync_handle_v_update()
1207 in_out_vrr->btr.inserted_duration_in_us); in mod_freesync_handle_v_update()
1212 if (in_out_vrr->btr.frame_counter > 0) in mod_freesync_handle_v_update()
1213 in_out_vrr->btr.frame_counter--; in mod_freesync_handle_v_update()
1216 if (in_out_vrr->btr.frame_counter == 0) { in mod_freesync_handle_v_update()
1258 *lfc_mid_point_in_us = vrr->btr.mid_point_in_us; in mod_freesync_get_settings()
1259 *inserted_frames = vrr->btr.frames_to_insert; in mod_freesync_get_settings()
1260 *inserted_duration_in_us = vrr->btr.inserted_duration_in_us; in mod_freesync_get_settings()