INNER CODE UNIT · Rust

fov_limit

gyroflow/gyroflow · src/core/lib.rs:518

                    let fov_limit = 1.0 / (zoom_limit * scaling_factor);
                    if *fov < fov_limit {
                        any_above_limit = true;
                        params.smoothing_fov_limit_per_frame[i] *= (*fov / fov_limit).min(*thresholds.get(iter).unwrap_or(thresholds.last().unwrap()));
                    }
                }
                log::debug!("Max zoom iteration {iter}/{max_zoom_iters}, any above limit: {any_above_limit}");
                if !any_above_limit {
                    if iter == 0 {
                        params.smoothing_fov_limit_per_frame.clear();
                    }
                    break;
                }

                // Smoothing
                {
                    let smoothing = self.smoothing.read();
                    let horizon_lock = smoothing.horizon_lock.clone();

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…