From 56ff8b55d5b831ed068439ff60909ffbb2fb568a Mon Sep 17 00:00:00 2001 From: Andy Wortman Date: Sun, 6 Oct 2019 01:26:07 -0700 Subject: write raw data in case it's more useful for postprocessing add a notion of camera properties, write that alongside images automatically fix colors if the image is in fact colors --- src/qhyccd/mod.rs | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'src/qhyccd') diff --git a/src/qhyccd/mod.rs b/src/qhyccd/mod.rs index 12630d6..becb698 100644 --- a/src/qhyccd/mod.rs +++ b/src/qhyccd/mod.rs @@ -20,6 +20,7 @@ use crossbeam_channel::select; use png::HasParameters; use crate::Dimensions; +use crate::Properties; // unsafe impl Send for Camera { } #[derive(Debug)] @@ -222,7 +223,18 @@ pub fn connect(camera_idx: i32) -> Result<(Receiver, Sender Result<(Receiver, Sender, Dimensions), + Data(Vec, Dimensions, Properties), DroppedFrame, Shutdown, UpdatedSettings(Settings), -- cgit v1.1