From 491fdb4327a07c9705d59284ac20f13074944a91 Mon Sep 17 00:00:00 2001 From: gennyble Date: Tue, 12 Sep 2023 04:52:03 -0500 Subject: scene mode --- lri-study/src/main.rs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'lri-study') diff --git a/lri-study/src/main.rs b/lri-study/src/main.rs index 048083b..a7368dc 100644 --- a/lri-study/src/main.rs +++ b/lri-study/src/main.rs @@ -4,7 +4,7 @@ use std::{ }; use camino::Utf8PathBuf; -use lri_rs::{DataFormat, HdrMode, LriFile, SensorModel}; +use lri_rs::{DataFormat, HdrMode, LriFile, SceneMode, SensorModel}; use owo_colors::OwoColorize; const DATA: &'static str = "/Users/gen/thanks_lak"; @@ -86,6 +86,15 @@ fn gather() -> ! { Some(HdrMode::Surreal) => print!("{} ", "hdr".bright_magenta()), } + match lri.scene { + None | Some(SceneMode::None) => print!("sc:{} ", "nop".dimmed()), + Some(SceneMode::Portrait) => print!("sc:prt "), + Some(SceneMode::Landscape) => print!("sc:lnd "), + Some(SceneMode::Macro) => print!("sc:mcr "), + Some(SceneMode::Sport) => print!("sc:spt "), + Some(SceneMode::Night) => print!("sc:ni "), + } + match lri.af_achieved { None => print!("{} - ", "af".dimmed()), Some(false) => print!("{} - ", "af".red()), -- cgit 1.4.1-3-g733a5