lesavka: stabilize preview probes and bump semver
This commit is contained in:
parent
e8670a1c58
commit
d4cc469173
@ -4,7 +4,7 @@ path = "src/main.rs"
|
|||||||
|
|
||||||
[package]
|
[package]
|
||||||
name = "lesavka_client"
|
name = "lesavka_client"
|
||||||
version = "0.6.0"
|
version = "0.7.0"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
|||||||
@ -216,6 +216,16 @@ fn refresh_eye_feed_controls(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(not(coverage))]
|
||||||
|
fn eye_caps_changed(state: &LauncherState, caps: &crate::handshake::PeerCaps) -> bool {
|
||||||
|
let next_width = caps.eye_width.unwrap_or(state.preview_source.width);
|
||||||
|
let next_height = caps.eye_height.unwrap_or(state.preview_source.height);
|
||||||
|
let next_fps = caps.eye_fps.unwrap_or(state.preview_source.fps);
|
||||||
|
state.preview_source.width != next_width
|
||||||
|
|| state.preview_source.height != next_height
|
||||||
|
|| state.preview_source.fps != next_fps
|
||||||
|
}
|
||||||
|
|
||||||
#[cfg(not(coverage))]
|
#[cfg(not(coverage))]
|
||||||
fn record_diagnostics_sample(
|
fn record_diagnostics_sample(
|
||||||
widgets: &super::ui_components::LauncherWidgets,
|
widgets: &super::ui_components::LauncherWidgets,
|
||||||
@ -1589,6 +1599,7 @@ pub fn run_gui_launcher(server_addr: String) -> Result<()> {
|
|||||||
CapsMessage::Refresh(probe_result) => {
|
CapsMessage::Refresh(probe_result) => {
|
||||||
diagnostics_network.borrow_mut().record(&probe_result);
|
diagnostics_network.borrow_mut().record(&probe_result);
|
||||||
let caps = probe_result.caps;
|
let caps = probe_result.caps;
|
||||||
|
let rebind_preview = eye_caps_changed(&state.borrow(), &caps);
|
||||||
{
|
{
|
||||||
let mut state = state.borrow_mut();
|
let mut state = state.borrow_mut();
|
||||||
if probe_result.reachable {
|
if probe_result.reachable {
|
||||||
@ -1602,14 +1613,16 @@ pub fn run_gui_launcher(server_addr: String) -> Result<()> {
|
|||||||
(caps.eye_width, caps.eye_height)
|
(caps.eye_width, caps.eye_height)
|
||||||
{
|
{
|
||||||
let fps = caps.eye_fps.unwrap_or(30);
|
let fps = caps.eye_fps.unwrap_or(30);
|
||||||
{
|
{
|
||||||
let mut state = state.borrow_mut();
|
let mut state = state.borrow_mut();
|
||||||
state.set_preview_source_profile(width, height, fps);
|
state.set_preview_source_profile(width, height, fps);
|
||||||
}
|
}
|
||||||
if let Some(preview) = preview.as_ref() {
|
if rebind_preview && let Some(preview) = preview.as_ref() {
|
||||||
for monitor_id in 0..2 {
|
for monitor_id in 0..2 {
|
||||||
let capture = state.borrow().capture_size_choice(monitor_id);
|
let capture =
|
||||||
let breakout = state.borrow().breakout_size_choice(monitor_id);
|
state.borrow().capture_size_choice(monitor_id);
|
||||||
|
let breakout =
|
||||||
|
state.borrow().breakout_size_choice(monitor_id);
|
||||||
preview.set_capture_profile(
|
preview.set_capture_profile(
|
||||||
monitor_id,
|
monitor_id,
|
||||||
capture.width,
|
capture.width,
|
||||||
|
|||||||
@ -2,7 +2,9 @@
|
|||||||
|
|
||||||
#![forbid(unsafe_code)]
|
#![forbid(unsafe_code)]
|
||||||
|
|
||||||
pub const VERSION: &str = concat!(env!("CARGO_PKG_VERSION"), "+", env!("LESAVKA_GIT_SHA"));
|
pub const VERSION: &str = env!("CARGO_PKG_VERSION");
|
||||||
|
pub const BUILD_ID: &str = env!("LESAVKA_GIT_SHA");
|
||||||
|
pub const FULL_VERSION: &str = concat!(env!("CARGO_PKG_VERSION"), "+", env!("LESAVKA_GIT_SHA"));
|
||||||
|
|
||||||
pub mod app;
|
pub mod app;
|
||||||
mod app_support;
|
mod app_support;
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "lesavka_common"
|
name = "lesavka_common"
|
||||||
version = "0.6.0"
|
version = "0.7.0"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
build = "build.rs"
|
build = "build.rs"
|
||||||
|
|
||||||
|
|||||||
@ -17,6 +17,6 @@ mod tests {
|
|||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn banner_includes_version() {
|
fn banner_includes_version() {
|
||||||
assert_eq!(banner("0.6.0"), "lesavka-common CLI (v0.6.0)");
|
assert_eq!(banner("0.7.0"), "lesavka-common CLI (v0.7.0)");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -10,7 +10,7 @@ bench = false
|
|||||||
|
|
||||||
[package]
|
[package]
|
||||||
name = "lesavka_server"
|
name = "lesavka_server"
|
||||||
version = "0.6.0"
|
version = "0.7.0"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
autobins = false
|
autobins = false
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,8 @@
|
|||||||
// server/src/lib.rs
|
// server/src/lib.rs
|
||||||
|
|
||||||
pub const VERSION: &str = concat!(env!("CARGO_PKG_VERSION"), "+", env!("LESAVKA_GIT_SHA"));
|
pub const VERSION: &str = env!("CARGO_PKG_VERSION");
|
||||||
|
pub const BUILD_ID: &str = env!("LESAVKA_GIT_SHA");
|
||||||
|
pub const FULL_VERSION: &str = concat!(env!("CARGO_PKG_VERSION"), "+", env!("LESAVKA_GIT_SHA"));
|
||||||
|
|
||||||
pub mod audio;
|
pub mod audio;
|
||||||
pub mod camera;
|
pub mod camera;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user