summaryrefslogtreecommitdiffstats
path: root/src/cameras/uca-pco-camera.c
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@gmail.com>2012-04-27 10:53:28 +0200
committerMatthias Vogelgesang <matthias.vogelgesang@gmail.com>2012-04-27 12:25:53 +0200
commitd2de03fff50637c218317c046ddd3b913afb8e32 (patch)
treeaa5d8e0197a5e66224cbfa17637ef77ed4da9ddf /src/cameras/uca-pco-camera.c
parent590c5c1522794c2f8d1bc023939aa2ce06caf35a (diff)
downloadlibuca-d2de03fff50637c218317c046ddd3b913afb8e32.tar.gz
libuca-d2de03fff50637c218317c046ddd3b913afb8e32.tar.bz2
libuca-d2de03fff50637c218317c046ddd3b913afb8e32.tar.xz
libuca-d2de03fff50637c218317c046ddd3b913afb8e32.zip
pco: add offset mode
Diffstat (limited to 'src/cameras/uca-pco-camera.c')
-rw-r--r--src/cameras/uca-pco-camera.c21
1 files changed, 20 insertions, 1 deletions
diff --git a/src/cameras/uca-pco-camera.c b/src/cameras/uca-pco-camera.c
index c2458c7..cf57352 100644
--- a/src/cameras/uca-pco-camera.c
+++ b/src/cameras/uca-pco-camera.c
@@ -76,6 +76,7 @@ enum {
PROP_DELAY_TIME,
PROP_HAS_DOUBLE_IMAGE_MODE,
PROP_DOUBLE_IMAGE_MODE,
+ PROP_OFFSET_MODE,
PROP_COOLING_POINT,
N_PROPERTIES
};
@@ -528,6 +529,10 @@ static void uca_pco_camera_set_property(GObject *object, guint property_id, cons
pco_set_double_image_mode(priv->pco, g_value_get_boolean(value));
break;
+ case PROP_OFFSET_MODE:
+ pco_set_offset_mode(priv->pco, g_value_get_boolean(value));
+ break;
+
case PROP_COOLING_POINT:
{
int16_t temperature = (int16_t) g_value_get_int(value);
@@ -664,6 +669,14 @@ static void uca_pco_camera_get_property(GObject *object, guint property_id, GVal
}
break;
+ case PROP_OFFSET_MODE:
+ {
+ bool on;
+ pco_get_offset_mode(priv->pco, &on);
+ g_value_set_boolean(value, on);
+ }
+ break;
+
case PROP_HAS_STREAMING:
g_value_set_boolean(value, TRUE);
break;
@@ -815,10 +828,16 @@ static void uca_pco_camera_class_init(UcaPcoCameraClass *klass)
FALSE, G_PARAM_READABLE);
pco_properties[PROP_DOUBLE_IMAGE_MODE] =
- g_param_spec_boolean("use-double-image-mode",
+ g_param_spec_boolean("double-image-mode",
"Use double image mode",
"Use double image mode",
FALSE, G_PARAM_READWRITE);
+
+ pco_properties[PROP_OFFSET_MODE] =
+ g_param_spec_boolean("offset-mode",
+ "Use offset mode",
+ "Use offset mode",
+ FALSE, G_PARAM_READWRITE);
pco_properties[PROP_DELAY_TIME] =
g_param_spec_double("delay-time",