From 73264f0bfa7a6a3aaf59dd4bed1e52b0b35b816e Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Mon, 2 Jul 2012 17:08:29 +0200 Subject: Implement ROI multipliers in mock camera --- src/cameras/uca-mock-camera.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') diff --git a/src/cameras/uca-mock-camera.c b/src/cameras/uca-mock-camera.c index 6f3344f..a8a8d25 100644 --- a/src/cameras/uca-mock-camera.c +++ b/src/cameras/uca-mock-camera.c @@ -41,6 +41,8 @@ static const gint mock_overrideables[] = { PROP_ROI_Y, PROP_ROI_WIDTH, PROP_ROI_HEIGHT, + PROP_ROI_HEIGHT_MULTIPLIER, + PROP_ROI_WIDTH_MULTIPLIER, PROP_SENSOR_MAX_FRAME_RATE, PROP_HAS_STREAMING, PROP_HAS_CAMRAM_RECORDING, @@ -299,6 +301,12 @@ static void uca_mock_camera_get_property(GObject *object, guint property_id, GVa case PROP_ROI_HEIGHT: g_value_set_uint(value, priv->height); break; + case PROP_ROI_WIDTH_MULTIPLIER: + g_value_set_uint(value, 1); + break; + case PROP_ROI_HEIGHT_MULTIPLIER: + g_value_set_uint(value, 1); + break; case PROP_SENSOR_MAX_FRAME_RATE: g_value_set_float(value, priv->max_frame_rate); break; -- cgit v1.2.3