From 65730f227cd79d84ceed3e0e756ab40f44d7cca3 Mon Sep 17 00:00:00 2001 From: deva Date: Tue, 4 Jul 2006 16:31:08 +0000 Subject: Worked on the snapshot YUV 4:2:2 => RGBA conversion. It looks better now, but there are still something wrong with the colors! --- client/mainwindow.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client/mainwindow.cc') diff --git a/client/mainwindow.cc b/client/mainwindow.cc index 88eae63..79d6b7e 100644 --- a/client/mainwindow.cc +++ b/client/mainwindow.cc @@ -192,7 +192,7 @@ void MainWindow::snapshot_clicked() MIaV::control.shoot(); QImage screenshot(720, 576, QImage::Format_RGB32); - decoder->snapshot((char*)screenshot.bits()); + decoder->snapshot(screenshot.bits()); QPixmap *p = new QPixmap(); *p = QPixmap::fromImage(screenshot); -- cgit v1.2.3