about summary refs log tree commit diff
path: root/lri-study/src/main.rs
diff options
context:
space:
mode:
authorgennyble <gen@nyble.dev>2023-09-12 04:52:03 -0500
committergennyble <gen@nyble.dev>2023-09-12 04:52:03 -0500
commit491fdb4327a07c9705d59284ac20f13074944a91 (patch)
treea7478fc4b1d740cf141bd0b73aec0b949e020575 /lri-study/src/main.rs
parenta12e1530bb9037d2e391fc7808db9bb784454933 (diff)
downloadlri-rs-491fdb4327a07c9705d59284ac20f13074944a91.tar.gz
lri-rs-491fdb4327a07c9705d59284ac20f13074944a91.zip
scene mode
Diffstat (limited to 'lri-study/src/main.rs')
-rw-r--r--lri-study/src/main.rs11
1 files changed, 10 insertions, 1 deletions
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()),