Update window instead of applying module

This commit is contained in:
2015-11-07 18:15:27 +00:00
parent e9d8d117ea
commit eb4adb1557
4 changed files with 17 additions and 7 deletions
+8
View File
@@ -47,6 +47,14 @@ PlaYUVerAppModuleIf::PlaYUVerAppModuleIf( QObject* parent, QAction* action, PlaY
}
}
Void PlaYUVerAppModuleIf::update()
{
if( m_pcDisplaySubWindow )
{
m_pcDisplaySubWindow->refreshFrame();
}
}
Bool PlaYUVerAppModuleIf::apply( Bool isPlaying, Bool disableThreads )
{
Bool bRet = false;
+1
View File
@@ -111,6 +111,7 @@ public:
return m_pcModule->m_uiModuleRequirements;
}
Void update();
Bool apply( Bool isPlaying = false, Bool disableThreads = false );
Void show();
Void destroy();
+7 -6
View File
@@ -598,13 +598,11 @@ Void VideoSubWindow::setFillWindow( Bool bFlag )
{
m_pcVideoInfo->setBusyWindow( bFlag );
}
Void VideoSubWindow::setCurrFrame( PlaYUVerFrame* pcCurrFrame )
{
// if( m_pcCurrFrame )
{
m_pcCurrFrame = pcCurrFrame;
m_cViewArea->setImage( m_pcCurrFrame );
}
m_pcCurrFrame = pcCurrFrame;
m_cViewArea->setImage( m_pcCurrFrame );
}
Void VideoSubWindow::refreshFrameOperation()
@@ -625,7 +623,10 @@ Void VideoSubWindow::refreshFrameOperation()
{
m_cViewArea->setImage( m_pcCurrFrame );
}
ModulesHandle::applyModuleIf( m_apcCurrentModule, m_bIsPlaying );
for( Int i = 0; i < m_apcCurrentModule.size() && !m_bIsPlaying; i++ )
{
m_apcCurrentModule.at( i )->update();
}
}
Void VideoSubWindow::refreshFrame( Bool bThreaded )
+1 -1
View File
@@ -103,7 +103,6 @@ private:
QFuture<Void> m_cRefreshResult;
QFuture<Void> m_cReadResult;
Void refreshFrame( Bool bThreaded = false );
Void refreshFrameOperation();
static Bool guessFormat( QString filename, UInt& rWidth, UInt& rHeight, Int& rInputFormat, UInt& rFrameRate );
@@ -132,6 +131,7 @@ public:
Bool save( QString filename );
Void refreshSubWindow();
Void refreshFrame( Bool bThreaded = false );
Bool play();
Void pause();