mirror of
https://github.com/vale981/Taevitas
synced 2025-03-06 01:51:38 -05:00
setlcd
This commit is contained in:
parent
2f1f288d79
commit
3507c3dbf7
1 changed files with 5 additions and 2 deletions
|
@ -234,6 +234,7 @@ void MainWindow::frameCaptured( FlyCapture2::Image * image ) {
|
||||||
// TODO: WHY POINTER
|
// TODO: WHY POINTER
|
||||||
image_buffer->append( image );
|
image_buffer->append( image );
|
||||||
ui->buffer->display( image_buffer->length() );
|
ui->buffer->display( image_buffer->length() );
|
||||||
|
if ( image_buffer->length() < 2 )
|
||||||
emit saveFrame( image );
|
emit saveFrame( image );
|
||||||
} else
|
} else
|
||||||
delete image;
|
delete image;
|
||||||
|
@ -371,7 +372,9 @@ void MainWindow::frameSaved( FlyCapture2::Image * image ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
ui->buffer->display( image_buffer->length() );
|
ui->buffer->display( image_buffer->length() );
|
||||||
if ( status == STOPPING && image_buffer->empty() )
|
if ( !image_buffer->empty() )
|
||||||
|
emit saveFrame( image_buffer->top() );
|
||||||
|
else if ( status == STOPPING )
|
||||||
startStopRecording();
|
startStopRecording();
|
||||||
|
|
||||||
m.unlock();
|
m.unlock();
|
||||||
|
|
Loading…
Add table
Reference in a new issue