From 5cb9f9586b97de062e39b6071936abf3ab523e2b Mon Sep 17 00:00:00 2001 From: gennyble Date: Tue, 12 Sep 2023 04:24:46 -0500 Subject: read hdr --- lri-study/src/main.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'lri-study') 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()), -- cgit 1.4.1-3-g733a5