[aravis] arv_camera: fix the minimum value for the ROI offsets.
- From: Emmanuel Pacaud <emmanuel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [aravis] arv_camera: fix the minimum value for the ROI offsets.
- Date: Thu, 6 Jan 2011 09:03:13 +0000 (UTC)
commit 428d4001387db18dacf75f41a6539e80306665b0
Author: Tom Cobb <tom cobb diamond ac uk>
Date: Thu Jan 6 10:01:51 2011 +0100
arv_camera: fix the minimum value for the ROI offsets.
The current code start ROI offsets from 1, but my camera (prosilica GC1020)
starts from 0.
src/arvcamera.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/arvcamera.c b/src/arvcamera.c
index fa1eef1..5c138fd 100644
--- a/src/arvcamera.c
+++ b/src/arvcamera.c
@@ -151,9 +151,9 @@ arv_camera_set_region (ArvCamera *camera, int x, int y, int width, int height)
{
g_return_if_fail (ARV_IS_CAMERA (camera));
- if (x > 0)
+ if (x >= 0)
arv_device_set_integer_feature_value (camera->priv->device, "OffsetX", x);
- if (y > 0)
+ if (y >= 0)
arv_device_set_integer_feature_value (camera->priv->device, "OffsetY", y);
if (width > 0)
arv_device_set_integer_feature_value (camera->priv->device, "Width", width);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]