summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVolker Kaiser <volker.kaiser@softwareschneiderei.de>2012-07-26 09:37:22 +0200
committerVolker Kaiser <volker.kaiser@softwareschneiderei.de>2012-07-26 15:36:43 +0200
commit33dd061f219c0490c1e22c391d2b8aca8fc4f5cd (patch)
treedecca628f081ba8814992be8ded70efca72c973e
parent67e3daeb2ad9d9835c4e19a1edd744cba92b83d1 (diff)
downloadlibuca-33dd061f219c0490c1e22c391d2b8aca8fc4f5cd.tar.gz
libuca-33dd061f219c0490c1e22c391d2b8aca8fc4f5cd.tar.bz2
libuca-33dd061f219c0490c1e22c391d2b8aca8fc4f5cd.tar.xz
libuca-33dd061f219c0490c1e22c391d2b8aca8fc4f5cd.zip
SCHNEIDE-346 (exposure time)
-rw-r--r--src/cameras/uca-pylon-camera.c22
1 files changed, 15 insertions, 7 deletions
diff --git a/src/cameras/uca-pylon-camera.c b/src/cameras/uca-pylon-camera.c
index c8fa073..3b37c20 100644
--- a/src/cameras/uca-pylon-camera.c
+++ b/src/cameras/uca-pylon-camera.c
@@ -58,17 +58,11 @@ static gint base_overrideables[] = {
PROP_SENSOR_WIDTH,
PROP_SENSOR_HEIGHT,
PROP_SENSOR_BITDEPTH,
-// PROP_SENSOR_HORIZONTAL_BINNING,
-// PROP_SENSOR_HORIZONTAL_BINNINGS,
-// PROP_SENSOR_VERTICAL_BINNING,
-// PROP_SENSOR_VERTICAL_BINNINGS,
-// PROP_SENSOR_MAX_FRAME_RATE,
+ PROP_EXPOSURE_TIME,
PROP_ROI_X,
PROP_ROI_Y,
PROP_ROI_WIDTH,
PROP_ROI_HEIGHT,
-// PROP_HAS_STREAMING,
-// PROP_HAS_CAMRAM_RECORDING,
0
};
@@ -180,6 +174,12 @@ static void uca_pylon_camera_set_property(GObject *object, guint property_id, co
}
break;
+ case PROP_EXPOSURE_TIME:
+ {
+ pylon_camera_set_exposure_time(g_value_get_double(value), &error);
+ }
+ break;
+
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID(object, property_id, pspec);
return;
@@ -256,6 +256,14 @@ static void uca_pylon_camera_get_property(GObject *object, guint property_id, GV
}
break;
+ case PROP_EXPOSURE_TIME:
+ {
+ gdouble exp_time = 0.0;
+ pylon_camera_get_exposure_time(&exp_time, &error);
+ g_value_set_double(value, exp_time);
+ }
+ break;
+
case PROP_NAME:
{
//char *name = NULL;