diff options
author | Matthias Vogelgesang <matthias.vogelgesang@gmail.com> | 2012-07-13 16:11:24 +0200 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@gmail.com> | 2012-07-13 16:11:24 +0200 |
commit | dcfbebb618a1e3a738406793a4da19a36bf0ea18 (patch) | |
tree | 903a0fea67862a01576c462972ad0f1535665abf | |
parent | 0e538d602504ee2aef7a707bb36f4765b220a654 (diff) | |
download | uca-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.c | 10 |
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; |