[aravis] viewer: fix exposure bounds for acA1300 Basler cameras.
- From: Emmanuel Pacaud <emmanuel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [aravis] viewer: fix exposure bounds for acA1300 Basler cameras.
- Date: Wed, 9 Feb 2011 16:50:14 +0000 (UTC)
commit 104aadaf689e89e1e0ee36a910cfe3580b045fa8
Author: Emmanuel Pacaud <emmanuel pacaud lapp in2p3 fr>
Date: Wed Feb 9 17:49:36 2011 +0100
viewer: fix exposure bounds for acA1300 Basler cameras.
src/arvcamera.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/src/arvcamera.c b/src/arvcamera.c
index 8b4a13e..b18ed66 100644
--- a/src/arvcamera.c
+++ b/src/arvcamera.c
@@ -488,6 +488,7 @@ arv_camera_set_exposure_time (ArvCamera *camera, double exposure_time_us)
exposure_time_us);
arv_device_set_integer_feature_value (camera->priv->device, "ExposureTimeRaw", 1);
break;
+ case ARV_CAMERA_SERIES_BASLER_ACE:
default:
arv_device_set_float_feature_value (camera->priv->device, "ExposureTimeAbs", exposure_time_us);
break;
@@ -511,12 +512,21 @@ arv_camera_get_exposure_time (ArvCamera *camera)
void
arv_camera_get_exposure_time_bounds (ArvCamera *camera, double *min, double *max)
{
+ gint64 int_min, int_max;
+
g_return_if_fail (ARV_IS_CAMERA (camera));
switch (camera->priv->series) {
case ARV_CAMERA_SERIES_BASLER_SCOUT:
arv_device_get_float_feature_bounds (camera->priv->device, "ExposureTimeBaseAbs", min, max);
break;
+ case ARV_CAMERA_SERIES_BASLER_ACE:
+ arv_device_get_integer_feature_bounds (camera->priv->device, "ExposureTimeRaw", &int_min, &int_max);
+ if (min != NULL)
+ *min = int_min;
+ if (max != NULL)
+ *max = int_max;
+ break;
default:
arv_device_get_float_feature_bounds (camera->priv->device, "ExposureTimeAbs", min, max);
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]