[aravis] fake: initialize and test ExposureTimeAbs feature.
- From: Emmanuel Pacaud <emmanuel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [aravis] fake: initialize and test ExposureTimeAbs feature.
- Date: Fri, 7 May 2010 15:30:53 +0000 (UTC)
commit dbf72eb438f2d8009f8ed7a032767c749904f703
Author: Emmanuel Pacaud <emmanuel gnome org>
Date: Fri May 7 17:11:44 2010 +0200
fake: initialize and test ExposureTimeAbs feature.
src/arvfakecamera.c | 1 +
src/arvfakecamera.h | 1 +
src/tests/fake.c | 2 ++
3 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/arvfakecamera.c b/src/arvfakecamera.c
index 982eba9..ca04bf5 100644
--- a/src/arvfakecamera.c
+++ b/src/arvfakecamera.c
@@ -164,6 +164,7 @@ arv_fake_camera_new (const char *serial_number)
arv_fake_camera_write_register (fake_camera, ARV_FAKE_CAMERA_REGISTER_BINNING_VERTICAL, 1);
arv_fake_camera_write_register (fake_camera, ARV_FAKE_CAMERA_REGISTER_GAIN_RAW, 0);
arv_fake_camera_write_register (fake_camera, ARV_FAKE_CAMERA_REGISTER_GAIN_MODE, 0);
+ arv_fake_camera_write_register (fake_camera, ARV_FAKE_CAMERA_REGISTER_EXPOSURE_TIME_US, 40000);
return fake_camera;
}
diff --git a/src/arvfakecamera.h b/src/arvfakecamera.h
index e7ffe36..eca355f 100644
--- a/src/arvfakecamera.h
+++ b/src/arvfakecamera.h
@@ -39,6 +39,7 @@ G_BEGIN_DECLS
#define ARV_FAKE_CAMERA_REGISTER_BINNING_VERTICAL 0x10c
#define ARV_FAKE_CAMERA_REGISTER_GAIN_RAW 0x110
#define ARV_FAKE_CAMERA_REGISTER_GAIN_MODE 0x114
+#define ARV_FAKE_CAMERA_REGISTER_EXPOSURE_TIME_US 0x120
#define ARV_TYPE_FAKE_CAMERA (arv_fake_camera_get_type ())
#define ARV_FAKE_CAMERA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ARV_TYPE_FAKE_CAMERA, ArvFakeCamera))
diff --git a/src/tests/fake.c b/src/tests/fake.c
index 3c1be84..8ec68be 100644
--- a/src/tests/fake.c
+++ b/src/tests/fake.c
@@ -52,6 +52,8 @@ fake_device_test (void)
g_assert_cmpint (value, ==, 0);
value = arv_gc_enumeration_get_int_value (ARV_GC_ENUMERATION (arv_gc_get_node (genicam, "GainAuto")));
g_assert_cmpint (value, ==, 0);
+ value = arv_gc_float_get_value (ARV_GC_FLOAT (arv_gc_get_node (genicam, "ExposureTimeAbs")));
+ g_assert_cmpfloat (value, ==, 40000.0);
g_object_unref (device);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]