Add a option to swap frames in modules with two frames (e.g, swap left right frames)
This commit is contained in:
1 parent
150338b9ad
commit
877087ee4e
6 files changed
+90
-38
No files matched your search
@@ -135,6 +135,16 @@ Void SubWindowHandle::disableModule()
|
||||
}
|
||||
}
|
||||
|
||||
Void SubWindowHandle::swapModuleFrames()
|
||||
{
|
||||
if( m_pcCurrentModule )
|
||||
{
|
||||
ModulesHandle::swapModulesWindowsIf( m_pcCurrentModule );
|
||||
refreshFrame();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Void SubWindowHandle::setCurrFrame( PlaYUVerFrame* pcCurrFrame )
|
||||
{
|
||||
m_pcCurrFrame = pcCurrFrame;
|
||||
@@ -143,18 +153,26 @@ Void SubWindowHandle::setCurrFrame( PlaYUVerFrame* pcCurrFrame )
|
||||
|
||||
Void SubWindowHandle::refreshFrame()
|
||||
{
|
||||
Bool bSetFrame = true;
|
||||
Bool bSetFrame = false;
|
||||
if( m_pCurrStream )
|
||||
{
|
||||
m_pcCurrFrame = m_pCurrStream->getCurrFrame();
|
||||
bSetFrame = true;
|
||||
if( m_pcCurrentModule )
|
||||
{
|
||||
bSetFrame = ModulesHandle::applyModuleIf( m_pcCurrentModule, m_bIsPlaying );
|
||||
}
|
||||
if( bSetFrame )
|
||||
{
|
||||
m_cViewArea->setImage( m_pcCurrFrame );
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if( m_pcCurrentModule )
|
||||
{
|
||||
bSetFrame = ModulesHandle::applyModuleIf( m_pcCurrentModule, m_bIsPlaying );
|
||||
}
|
||||
}
|
||||
if( bSetFrame )
|
||||
{
|
||||
m_cViewArea->setImage( m_pcCurrFrame );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user