Improve module performance
This commit is contained in:
1 parent
57ba3cce02
commit
a8dc1b7986
3 files changed
+7
-2
No files matched your search
@@ -491,7 +491,10 @@ Bool ModulesHandle::applyModuleIf( PlaYUVerAppModuleIf *pcCurrModuleIf, Bool isP
|
||||
pcCurrModuleIf->start();
|
||||
else
|
||||
#endif
|
||||
{
|
||||
pcCurrModuleIf->run();
|
||||
showModuleIf( pcCurrModuleIf );
|
||||
}
|
||||
|
||||
if( pcCurrModuleIf->m_pcDisplaySubWindow || pcCurrModuleIf->m_pcModule->m_iModuleType == FRAME_MEASUREMENT_MODULE )
|
||||
{
|
||||
|
||||
@@ -86,9 +86,11 @@ Void PlaYUVerAppModuleIf::run()
|
||||
return;
|
||||
}
|
||||
m_bIsRunning = false;
|
||||
#ifdef PLAYUVER_THREADED_MODULES
|
||||
EventData *eventData = new EventData( true, this );
|
||||
if( parent() )
|
||||
QCoreApplication::postEvent( parent(), eventData );
|
||||
#endif
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -618,14 +618,14 @@ Void VideoSubWindow::refreshFrameOperation()
|
||||
if( m_pcCurrentDisplayModule )
|
||||
{
|
||||
m_bWindowBusy = true;
|
||||
ModulesHandle::applyModuleIf( m_pcCurrentDisplayModule, m_bIsPlaying );
|
||||
ModulesHandle::applyModuleIf( m_pcCurrentDisplayModule, m_bIsPlaying, !m_bIsPlaying && m_apcCurrentModule.size() );
|
||||
bSetFrame = false;
|
||||
}
|
||||
if( bSetFrame )
|
||||
{
|
||||
m_cViewArea->setImage( m_pcCurrFrame );
|
||||
}
|
||||
for( Int i = 0; i < m_apcCurrentModule.size(); i++ )
|
||||
for( Int i = 0; i < m_apcCurrentModule.size() && !m_bIsPlaying; i++ )
|
||||
{
|
||||
m_bWindowBusy = true;
|
||||
ModulesHandle::applyModuleIf( m_apcCurrentModule.at( i ), m_bIsPlaying );
|
||||
|
||||
Reference in new issue
Block a user