[aravis] fake_camera: set AutoGain default to a valid value (Off=1).



commit 2bddbc81e07cdaf83c6bb444b99939d6919415f9
Author: Emmanuel Pacaud <emmanuel gnome org>
Date:   Mon May 9 21:07:55 2011 +0200

    fake_camera: set AutoGain default to a valid value (Off=1).

 src/arvfakecamera.c    |    4 ++--
 src/arvfakecamera.h    |    4 ++--
 src/arvgcenumeration.c |    3 ++-
 3 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/src/arvfakecamera.c b/src/arvfakecamera.c
index 05aadba..3798536 100644
--- a/src/arvfakecamera.c
+++ b/src/arvfakecamera.c
@@ -1,6 +1,6 @@
 /* Aravis - Digital camera library
  *
- * Copyright © 2009-2010 Emmanuel Pacaud
+ * Copyright © 2009-2011 Emmanuel Pacaud
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -456,7 +456,7 @@ arv_fake_camera_new (const char *serial_number)
 					ARV_FAKE_CAMERA_EXPOSURE_TIME_US_DEFAULT);
 
 	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_GAIN_MODE, 1);
 
 	arv_fake_camera_write_register (fake_camera, ARV_GVBS_HEARTBEAT_TIMEOUT_OFFSET, 3000);
 	arv_fake_camera_write_register (fake_camera, ARV_GVBS_TIMESTAMP_TICK_FREQUENCY_HIGH_OFFSET, 0);
diff --git a/src/arvfakecamera.h b/src/arvfakecamera.h
index 20e87ec..3707180 100644
--- a/src/arvfakecamera.h
+++ b/src/arvfakecamera.h
@@ -1,6 +1,6 @@
 /* Aravis - Digital camera library
  *
- * Copyright © 2009-2010 Emmanuel Pacaud
+ * Copyright © 2009-2011 Emmanuel Pacaud
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -32,7 +32,7 @@ typedef void (*ArvFakeCameraFillPattern) (ArvBuffer *buffer, void *fill_pattern_
 					  guint32 exposure_time_us, guint32 gain,
 					  ArvPixelFormat pixel_format);
 
-#define ARV_FAKE_CAMERA_MEMORY_SIZE	0x1000
+#define ARV_FAKE_CAMERA_MEMORY_SIZE	0x10000
 
 /* To keep in sync with arv-fake-camera.xml */
 
diff --git a/src/arvgcenumeration.c b/src/arvgcenumeration.c
index 9a7ae41..00a1424 100644
--- a/src/arvgcenumeration.c
+++ b/src/arvgcenumeration.c
@@ -83,7 +83,8 @@ arv_gc_enumeration_get_string_value (ArvGcEnumeration *enumeration)
 		}
 	}
 
-	arv_warning_genicam ("[GcEnumeration::get_string_value] value = %Ld not found", value);
+	arv_warning_genicam ("[GcEnumeration::get_string_value] value = %Ld not found for node %s",
+			     value, arv_gc_node_get_name (ARV_GC_NODE (enumeration)));
 
 	return NULL;
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]