diff options
author | gennyble <gen@nyble.dev> | 2023-09-12 04:24:46 -0500 |
---|---|---|
committer | gennyble <gen@nyble.dev> | 2023-09-12 04:24:46 -0500 |
commit | 5cb9f9586b97de062e39b6071936abf3ab523e2b (patch) | |
tree | f51f958bb2691167c9c164be270edd80626f8a72 /lri-study | |
parent | 4b0f26eac1ad6de9526687fdf2999eeae2bc67a6 (diff) | |
download | lri-rs-5cb9f9586b97de062e39b6071936abf3ab523e2b.tar.gz lri-rs-5cb9f9586b97de062e39b6071936abf3ab523e2b.zip |
read hdr
Diffstat (limited to 'lri-study')
-rw-r--r-- | lri-study/src/main.rs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lri-study/src/main.rs b/lri-study/src/main.rs index 3e3f225..048083b 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, LriFile, SensorModel}; +use lri_rs::{DataFormat, HdrMode, LriFile, SensorModel}; use owo_colors::OwoColorize; const DATA: &'static str = "/Users/gen/thanks_lak"; @@ -78,6 +78,14 @@ fn gather() -> ! { lri.image_gain.unwrap_or_default() ); + match lri.hdr { + None => print!("{} ", "hdr".dimmed()), + Some(HdrMode::None) => print!("{} ", "hdr".blue()), + Some(HdrMode::Default) => print!("hdr "), + Some(HdrMode::Natural) => print!("{} ", "hdr".bright_green()), + Some(HdrMode::Surreal) => print!("{} ", "hdr".bright_magenta()), + } + match lri.af_achieved { None => print!("{} - ", "af".dimmed()), Some(false) => print!("{} - ", "af".red()), |