summaryrefslogtreecommitdiff
path: root/src/mainwindow.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/mainwindow.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/mainwindow.cc')
-rw-r--r--src/mainwindow.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mainwindow.cc b/src/mainwindow.cc
index 0346ed3..fccee98 100644
--- a/src/mainwindow.cc
+++ b/src/mainwindow.cc
@@ -27,9 +27,11 @@
*/
/*
* $Log$
+ * Revision 1.17 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.16 2005/05/01 09:56:26 deva
* Added Id and Log tags to all files
- *
*/
#include <config.h>
#ifdef USE_GUI
@@ -330,9 +332,11 @@ void MainWindow::rec_clicked()
void MainWindow::shoot_clicked()
{
+ unsigned char pixels[720*576*3];
QImage image;
- camera->snapshot();
+ camera->snapshot(pixels);
+ image.loadFromData(pixels, sizeof(pixels));
checkErrors();
image = img_live->getScreenshot();