mirror of
https://github.com/bleackstorm/SteamFrame-FPV-Control-Center.git
synced 2026-12-03 07:31:57 +01:00
feat(gpu,dvr,ci): image enhance/SBS/DMA-BUF, DVR .srt + Replay 30s, GPS Home arrow, CI & modular split
This commit is contained in:
1 parent
4aa4fc06e7
commit
b4642ddc95
33 files changed
+8279
-6092
No files matched your search
+54
-1
@@ -216,6 +216,34 @@ pub struct AppConfig {
|
||||
#[arg(long, default_value = "")]
|
||||
pub active_profile: String,
|
||||
|
||||
/// Luminosité image GPU temps réel (-0.5..=0.5)
|
||||
#[arg(long, default_value_t = 0.0, allow_hyphen_values = true)]
|
||||
pub video_brightness: f32,
|
||||
|
||||
/// Contraste image GPU temps réel (0.5..=2.0)
|
||||
#[arg(long, default_value_t = 1.0)]
|
||||
pub video_contrast: f32,
|
||||
|
||||
/// Correction gamma image GPU temps réel (0.5..=2.2)
|
||||
#[arg(long, default_value_t = 1.0)]
|
||||
pub video_gamma: f32,
|
||||
|
||||
/// Netteté adaptative CAS-lite sur GPU (0.0..=1.0)
|
||||
#[arg(long, default_value_t = 0.0)]
|
||||
pub video_sharpness: f32,
|
||||
|
||||
/// Stabilisation horizon 2D sur GPU pilotée par le roulis télémétrie CRSF
|
||||
#[arg(long, default_value_t = false)]
|
||||
pub horizon_stabilization: bool,
|
||||
|
||||
/// Mode Caméra 3D Stéréo Side-by-Side (œil gauche / œil droit séparés en OpenXR)
|
||||
#[arg(long, default_value_t = false)]
|
||||
pub stereo_sbs: bool,
|
||||
|
||||
/// Active la négociation zéro-copie DMA-BUF entre décodeur matériel GStreamer et Vulkan
|
||||
#[arg(long, default_value_t = false)]
|
||||
pub zero_copy_dmabuf: bool,
|
||||
|
||||
/// Chemin du fichier journal d'erreurs et de diagnostic
|
||||
#[arg(long, default_value = "steamframe_fpv.log")]
|
||||
pub log_file: String,
|
||||
@@ -573,7 +601,14 @@ impl AppConfig {
|
||||
battery_crit_cell_v = {:.2}\n\
|
||||
osd_show_video_stats = {}\n\
|
||||
osd_show_gps = {}\n\
|
||||
active_profile = \"{}\"\n",
|
||||
active_profile = \"{}\"\n\n\
|
||||
video_brightness = {:.3}\n\
|
||||
video_contrast = {:.3}\n\
|
||||
video_gamma = {:.3}\n\
|
||||
video_sharpness = {:.3}\n\
|
||||
horizon_stabilization = {}\n\
|
||||
stereo_sbs = {}\n\
|
||||
zero_copy_dmabuf = {}\n",
|
||||
esc(&self.usb_video_mode),
|
||||
esc(&self.uvc_device),
|
||||
esc(&self.usb_bind_ip),
|
||||
@@ -623,6 +658,13 @@ impl AppConfig {
|
||||
self.osd_show_video_stats,
|
||||
self.osd_show_gps,
|
||||
esc(&self.active_profile),
|
||||
self.video_brightness,
|
||||
self.video_contrast,
|
||||
self.video_gamma,
|
||||
self.video_sharpness,
|
||||
self.horizon_stabilization,
|
||||
self.stereo_sbs,
|
||||
self.zero_copy_dmabuf,
|
||||
)
|
||||
}
|
||||
|
||||
@@ -761,6 +803,13 @@ impl AppConfig {
|
||||
load_parse!(osd_show_video_stats);
|
||||
load_parse!(osd_show_gps);
|
||||
load_str!(active_profile);
|
||||
load_parse!(video_brightness);
|
||||
load_parse!(video_contrast);
|
||||
load_parse!(video_gamma);
|
||||
load_parse!(video_sharpness);
|
||||
load_parse!(horizon_stabilization);
|
||||
load_parse!(stereo_sbs);
|
||||
load_parse!(zero_copy_dmabuf);
|
||||
|
||||
// Sécurité bornes numériques
|
||||
self.video_width = self.video_width.clamp(320, 3840);
|
||||
@@ -772,6 +821,10 @@ impl AppConfig {
|
||||
self.battery_cells = self.battery_cells.min(6);
|
||||
self.battery_warn_cell_v = self.battery_warn_cell_v.clamp(3.0, 4.2);
|
||||
self.battery_crit_cell_v = self.battery_crit_cell_v.clamp(2.8, self.battery_warn_cell_v);
|
||||
self.video_brightness = self.video_brightness.clamp(-0.5, 0.5);
|
||||
self.video_contrast = self.video_contrast.clamp(0.5, 2.0);
|
||||
self.video_gamma = self.video_gamma.clamp(0.5, 2.2);
|
||||
self.video_sharpness = self.video_sharpness.clamp(0.0, 1.0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user