summaryrefslogtreecommitdiff
path: root/src/camera.cc
diff options
context:
space:
mode:
authordeva <deva>2005-05-01 11:25:56 +0000
committerdeva <deva>2005-05-01 11:25:56 +0000
commit90712e97bdc219492235f3ae04f3e707ae10e161 (patch)
tree4278104db2e8cc7cddb5845643a52d7e616c842e /src/camera.cc
parent5d169f85f64166b68fac4bc6949690d561fcb543 (diff)
Added code to read screenshot from frame queue, decode it to rgb and put it into a qimage.
Diffstat (limited to 'src/camera.cc')
-rw-r--r--src/camera.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/camera.cc b/src/camera.cc
index b7dd8f4..6300946 100644
--- a/src/camera.cc
+++ b/src/camera.cc
@@ -27,6 +27,9 @@
*/
/*
* $Log$
+ * Revision 1.9 2005/05/01 11:25:56 deva
+ * Added code to read screenshot from frame queue, decode it to rgb and put it into a qimage.
+ *
* Revision 1.8 2005/05/01 09:56:26 deva
* Added Id and Log tags to all files
*
@@ -174,9 +177,9 @@ void Camera::unfreeze()
else errorstatus->pushError("Camera not initialized.");
}
-void Camera::snapshot()
+void Camera::snapshot(unsigned char *rgb)
{
- if(initialized) encoder->shoot();
+ if(initialized) encoder->shoot(rgb);
else errorstatus->pushError("Camera not initialized.");
}