Add function to display the next frame in ImageInterface

This commit is contained in:
jfmcarreira committed 2014-01-30 01:43:27 +00:00
1 parent eff1e41cea
commit 6de2a3172b
2 files changed
+14

No files matched your search

+12
View File
@@ -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;