diff --git a/source/ImageInterface.cpp b/source/ImageInterface.cpp index 2b0d869..7891c30 100644 --- a/source/ImageInterface.cpp +++ b/source/ImageInterface.cpp @@ -120,6 +120,18 @@ bool ImageInterface::saveFile( const QString &fileName ) return true; } +bool ImageInterface::nextVideoFrame() +{ + m_currStream.readFrame(); + if( m_currStream.checkErrors( READING ) ) + { + QMessageBox::warning( this, tr( "plaYUVer" ), tr( "Cannot read %1." ).arg( m_cCurrFileName ) ); + return false; + } + m_cViewArea->setImage( QPixmap::fromImage( m_currStream.getFrameQImage() ) ); + return true; +} + Void ImageInterface::normalSize() { m_dScaleFactor = 1.0; diff --git a/source/ImageInterface.h b/source/ImageInterface.h index ef6ae62..8566d7e 100644 --- a/source/ImageInterface.h +++ b/source/ImageInterface.h @@ -68,6 +68,8 @@ public: bool saveAs(); bool saveFile( const QString &fileName ); + bool nextVideoFrame(); + /** * Show the image at its original size */