From 9551b293504f772cbcbd0e67714a30149738118b Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Fri, 29 Jun 2012 09:56:26 +0200 Subject: Fix LU-15: Broken ROI image This fix contains two changes: 1. We check that passed ROI requests are multiples of possible ROI steps as provided by the camera. If this is not the case, the request is ignored and a warning issued. 2. We added two new base properties ROI_WIDTH_MULTIPLIER and ROI_HEIGHT_MULTIPLIER that expose this information to client programs. --- src/uca-camera.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/uca-camera.h') diff --git a/src/uca-camera.h b/src/uca-camera.h index e2887a0..8462b3d 100644 --- a/src/uca-camera.h +++ b/src/uca-camera.h @@ -66,6 +66,8 @@ enum { PROP_ROI_Y, PROP_ROI_WIDTH, PROP_ROI_HEIGHT, + PROP_ROI_WIDTH_MULTIPLIER, + PROP_ROI_HEIGHT_MULTIPLIER, PROP_HAS_STREAMING, PROP_HAS_CAMRAM_RECORDING, -- cgit v1.2.3