summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@gmail.com>2012-07-04 11:04:48 +0200
committerMatthias Vogelgesang <matthias.vogelgesang@gmail.com>2012-07-04 11:04:48 +0200
commit137c5d8b0211582e747b5321aeafe2916ce83319 (patch)
treea57ab4f17b2aceb70abf01496cf4c689e040e80d /src
parent92bf1ddc44d7513fcc7ee70ddae880884f1f6d90 (diff)
downloadlibuca-137c5d8b0211582e747b5321aeafe2916ce83319.tar.gz
libuca-137c5d8b0211582e747b5321aeafe2916ce83319.tar.bz2
libuca-137c5d8b0211582e747b5321aeafe2916ce83319.tar.xz
libuca-137c5d8b0211582e747b5321aeafe2916ce83319.zip
mock: add exposure time
Diffstat (limited to 'src')
-rw-r--r--src/cameras/uca-mock-camera.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/cameras/uca-mock-camera.c b/src/cameras/uca-mock-camera.c
index a8a8d25..fa761b7 100644
--- a/src/cameras/uca-mock-camera.c
+++ b/src/cameras/uca-mock-camera.c
@@ -56,6 +56,7 @@ struct _UcaMockCameraPrivate {
guint height;
gfloat frame_rate;
gfloat max_frame_rate;
+ gdouble exposure_time;
guint8 *dummy_data;
guint current_frame;
@@ -248,6 +249,9 @@ static void uca_mock_camera_set_property(GObject *object, guint property_id, con
UcaMockCameraPrivate *priv = UCA_MOCK_CAMERA_GET_PRIVATE(object);
switch (property_id) {
+ case PROP_EXPOSURE_TIME:
+ priv->exposure_time = g_value_get_double(value);
+ break;
case PROP_FRAMERATE:
priv->frame_rate = g_value_get_float(value);
break;
@@ -284,7 +288,7 @@ static void uca_mock_camera_get_property(GObject *object, guint property_id, GVa
g_value_set_boxed(value, priv->binnings);
break;
case PROP_EXPOSURE_TIME:
- g_value_set_double(value, 0.001);
+ g_value_set_double(value, priv->exposure_time);
break;
case PROP_TRIGGER_MODE:
g_value_set_enum(value, UCA_CAMERA_TRIGGER_AUTO);