dirty_debug

This commit is contained in:
Hiro Protagonist 2017-03-21 18:47:28 +13:00
parent 9f9fb3955d
commit 97fa3fdf7f
2 changed files with 3 additions and 2 deletions

View file

@ -136,6 +136,9 @@ void MainWindow::frame_captured(FlyCapture2::Image* image) {
void MainWindow::displayPreview(FlyCapture2::Image* last_capture) {
// Convert Pixel Format to RGB
FlyCapture2::Image last_image;
QImage last_preview_image;
QPixmap last_preview;
FlyCapture2::Error e = last_capture->Convert(FlyCapture2::PIXEL_FORMAT_RGB, &last_image);
last_preview_image = QImage(last_image.GetData(), last_image.GetCols(), last_image.GetRows(), QImage::Format_RGB888);

View file

@ -24,8 +24,6 @@ private:
Ui::MainWindow *ui;
CameraManager cam_man;
Recorder recorder;
QPixmap last_preview;
QImage last_preview_image;
void displayPreview(FlyCapture2::Image *last_capture);
void disableRecOptions();