From dcfbebb618a1e3a738406793a4da19a36bf0ea18 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Fri, 13 Jul 2012 16:11:24 +0200 Subject: Transform bit mode to number of bits --- src/cameras/uca-ufo-camera.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/cameras') diff --git a/src/cameras/uca-ufo-camera.c b/src/cameras/uca-ufo-camera.c index 6c8872e..105d4bf 100644 --- a/src/cameras/uca-ufo-camera.c +++ b/src/cameras/uca-ufo-camera.c @@ -316,8 +316,14 @@ uca_ufo_camera_get_property(GObject *object, guint property_id, GValue *value, G g_value_set_uint(value, SENSOR_HEIGHT); break; case PROP_SENSOR_BITDEPTH: - g_value_set_uint(value, read_register_value (priv, "bit_mode")); - break; + switch (read_register_value (priv, "bit_mode")) { + case 1: + g_value_set_uint (value, 10); + break; + case 2: + g_value_set_uint (value, 12); + break; + } case PROP_SENSOR_HORIZONTAL_BINNING: g_value_set_uint(value, 1); break; -- cgit v1.2.3