summaryrefslogtreecommitdiff
path: root/src/mainwindow.cc
diff options
context:
space:
mode:
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();