mirror of
https://github.com/vale981/Taevitas
synced 2025-03-05 09:31:42 -05:00
dirty_debug
This commit is contained in:
parent
5e73141c03
commit
c92039ab40
2 changed files with 4 additions and 6 deletions
|
@ -50,7 +50,8 @@ void CameraManager::connectCamera(unsigned int index) {
|
|||
|
||||
// The capture callback is a wrapper to emit the frameCaptured signal.
|
||||
void CameraManager::captureCallback(FlyCapture2::Image* image, const void *camManager) {
|
||||
QMutex mutex;
|
||||
//thread Safe
|
||||
static QMutex mutex;
|
||||
mutex.lock();
|
||||
|
||||
if(camManager) {
|
||||
|
|
|
@ -138,12 +138,10 @@ void MainWindow::displayPreview(FlyCapture2::Image* last_capture) {
|
|||
qDebug() << 1;
|
||||
|
||||
FlyCapture2::Image tmp_i;
|
||||
qDebug() << last_capture->GetCols();
|
||||
|
||||
//FlyCapture2::Error e = last_capture->Convert(FlyCapture2::PixelFormat::PIXEL_FORMAT_RGB16, &tmp_i);
|
||||
FlyCapture2::Error e = last_capture->Convert(FlyCapture2::PixelFormat::PIXEL_FORMAT_RGB16, &tmp_i);
|
||||
|
||||
|
||||
/*qDebug() << 2;
|
||||
qDebug() << 2;
|
||||
QImage tmp(tmp_i.GetData(), last_capture->GetCols(), last_capture->GetRows(), QImage::Format::Format_RGB16);
|
||||
qDebug() << 3;
|
||||
|
||||
|
@ -153,5 +151,4 @@ void MainWindow::displayPreview(FlyCapture2::Image* last_capture) {
|
|||
last_preview.convertFromImage(tmp);
|
||||
|
||||
ui->preview_widget->setPixmap(last_preview);
|
||||
*/
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue