[aravis] tests: retrieve one buffer in arv-camera-test.



commit bb923a62dfe169ea85096372a2edc3d3993a5a8c
Author: Emmanuel Pacaud <emmanuel gnome org>
Date:   Mon Mar 5 22:25:49 2012 +0100

    tests: retrieve one buffer in arv-camera-test.

 tests/js/arv-camera-test.js |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/tests/js/arv-camera-test.js b/tests/js/arv-camera-test.js
index 87be757..891b0f1 100644
--- a/tests/js/arv-camera-test.js
+++ b/tests/js/arv-camera-test.js
@@ -42,14 +42,19 @@ camera.set_pixel_format (Aravis.PixelFormat.MONO_8);
 camera.set_frame_rate (10.0);
 
 let [x,y,width,height] = camera.get_region ();
+let payload = camera.get_payload ();
+
+log (payload);
 
 let stream = camera.create_stream (null, null);
 
 for (var i = 0; i < 100; i++)
-	stream.push_buffer (Aravis.Buffer.new (128*128, null));
+	stream.push_buffer (Aravis.Buffer.new (payload, null));
 
 camera.start_acquisition ();
 
-GLib.usleep (1000000);
+let buffer = stream.pop_buffer ();
+
+log (buffer);
 
 camera.stop_acquisition ();



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