summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@gmail.com>2012-07-13 16:11:24 +0200
committerMatthias Vogelgesang <matthias.vogelgesang@gmail.com>2012-07-13 16:11:24 +0200
commitdcfbebb618a1e3a738406793a4da19a36bf0ea18 (patch)
tree903a0fea67862a01576c462972ad0f1535665abf
parent0e538d602504ee2aef7a707bb36f4765b220a654 (diff)
downloaduca-dcfbebb618a1e3a738406793a4da19a36bf0ea18.tar.gz
uca-dcfbebb618a1e3a738406793a4da19a36bf0ea18.tar.bz2
uca-dcfbebb618a1e3a738406793a4da19a36bf0ea18.tar.xz
uca-dcfbebb618a1e3a738406793a4da19a36bf0ea18.zip
Transform bit mode to number of bits
-rw-r--r--src/cameras/uca-ufo-camera.c10
1 files changed, 8 insertions, 2 deletions
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;