[aravis] introspection: minor tweak to the javascript example.
- From: Emmanuel Pacaud <emmanuel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [aravis] introspection: minor tweak to the javascript example.
- Date: Wed, 19 May 2010 20:58:36 +0000 (UTC)
commit 8245996e409c08a8f81778f9116a848c54e1b427
Author: Emmanuel Pacaud <emmanuel gnome org>
Date: Wed May 19 22:58:05 2010 +0200
introspection: minor tweak to the javascript example.
test/arv-camera-test.js | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/test/arv-camera-test.js b/test/arv-camera-test.js
index 756c45e..eb7faf1 100755
--- a/test/arv-camera-test.js
+++ b/test/arv-camera-test.js
@@ -29,15 +29,17 @@ let camera = Aravis.Camera.new ("Fake_1");
camera.set_region (0,0,128,128);
camera.set_pixel_format (Aravis.PixelFormat.MONO_8);
-camera.set_trigger ("Line1");
+camera.set_fixed_frame_rate (10.0);
let [x,y,width,height] = camera.get_region ();
let stream = camera.create_stream (null, null);
-for (var i = 0; i < 10; i++)
+for (var i = 0; i < 100; i++)
stream.push_buffer (Aravis.Buffer.new (128*128, null));
camera.start_acquisition ();
+
GLib.usleep (1000000);
+
camera.stop_acquisition ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]