From 90712e97bdc219492235f3ae04f3e707ae10e161 Mon Sep 17 00:00:00 2001 From: deva Date: Sun, 1 May 2005 11:25:56 +0000 Subject: Added code to read screenshot from frame queue, decode it to rgb and put it into a qimage. --- src/camera.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/camera.cc') 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."); } -- cgit v1.2.3