[aravis] python: pixel format are defines now.
- From: Emmanuel Pacaud <emmanuel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [aravis] python: pixel format are defines now.
- Date: Tue, 1 May 2012 17:54:16 +0000 (UTC)
commit 685afef9866ac026fbb1878851f3f1ad2479459e
Author: Emmanuel Pacaud <emmanuel gnome org>
Date: Tue May 1 19:50:30 2012 +0200
python: pixel format are defines now.
tests/python/arv-camera-test.py | 2 ++
tests/python/arv-enum-test.py | 3 +--
2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/tests/python/arv-camera-test.py b/tests/python/arv-camera-test.py
index ec932e7..e1cdf81 100644
--- a/tests/python/arv-camera-test.py
+++ b/tests/python/arv-camera-test.py
@@ -41,6 +41,7 @@ else:
camera.set_region (0,0,128,128)
camera.set_frame_rate (10.0)
+camera.set_pixel_format (Aravis.PIXEL_FORMAT_MONO_8)
payload = camera.get_payload ()
@@ -51,6 +52,7 @@ print "Camera model :", camera.get_model_name ()
print "Camera id :", camera.get_device_id ()
print "ROI :", width, "x", height, "at", x, ",", y
print "Payload :", payload
+print "Pixel format :", camera.get_pixel_format_as_string ()
stream = camera.create_stream (None, None)
diff --git a/tests/python/arv-enum-test.py b/tests/python/arv-enum-test.py
index 5acd7db..8d1555a 100644
--- a/tests/python/arv-enum-test.py
+++ b/tests/python/arv-enum-test.py
@@ -43,5 +43,4 @@ print Aravis.DomNodeType
print Aravis.GvStreamPacketResend
print Aravis.GvspPacketType
-print Aravis.PixelFormat
-print Aravis.PixelFormat.MONO_8
+print Aravis.PIXEL_FORMAT_MONO_8
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]