From bf83e234755ea390c92f05c4b701cf8ee57c2526 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Tue, 7 Jun 2011 15:45:06 +0200 Subject: Hotpixel correction and cam_state -> uca.h --- src/cameras/pco.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/cameras/pco.c') diff --git a/src/cameras/pco.c b/src/cameras/pco.c index c11ba24..e643ab0 100644 --- a/src/cameras/pco.c +++ b/src/cameras/pco.c @@ -90,6 +90,9 @@ static uint32_t uca_pco_set_property(struct uca_camera_priv *cam, enum uca_prope case UCA_PROP_TIMESTAMP_MODE: return pco_set_timestamp_mode(GET_PCO(cam), *((uint16_t *) data)); + case UCA_PROP_HOTPIXEL_CORRECTION: + return pco_set_hotpixel_correction(GET_PCO(cam), *(uint32_t *) data); + default: return err | UCA_ERR_INVALID; } @@ -219,6 +222,14 @@ static uint32_t uca_pco_get_property(struct uca_camera_priv *cam, enum uca_prope } break; + case UCA_PROP_HOTPIXEL_CORRECTION: + { + SC2_Hot_Pixel_Correction_Mode_Response response; + if (pco_read_property(pco, GET_HOT_PIXEL_CORRECTION_MODE, &response, sizeof(response)) == PCO_NOERROR) + uca_set_void(data, uint32_t, response.wMode); + } + break; + default: return UCA_ERR_CAMERA | UCA_ERR_PROP | UCA_ERR_INVALID; } -- cgit v1.2.3