Merge branch 'master' into featureSession
Conflicts: app/plaYUVerApp.h
This commit is contained in:
commit
88c9e4ed5f
3 files changed
+14
-11
No files matched your search
@@ -36,10 +36,11 @@ QDataStream& operator<<( QDataStream& out, const PlaYUVerStreamInfoVector& array
|
|||||||
for( Int i = 0; i < array.size(); i++ )
|
for( Int i = 0; i < array.size(); i++ )
|
||||||
{
|
{
|
||||||
d = array.at( i );
|
d = array.at( i );
|
||||||
out << d.m_cFilename << d.m_uiWidth
|
out << d.m_cFilename
|
||||||
<< d.m_uiHeight
|
<< d.m_uiWidth
|
||||||
<< d.m_iPelFormat
|
<< d.m_uiHeight
|
||||||
<< d.m_uiFrameRate;
|
<< d.m_iPelFormat
|
||||||
|
<< d.m_uiFrameRate;
|
||||||
|
|
||||||
}
|
}
|
||||||
return out;
|
return out;
|
||||||
|
|||||||
+8
-6
@@ -155,7 +155,7 @@ Void plaYUVerApp::closeEvent( QCloseEvent *event )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Void plaYUVerApp::loadFile( QString fileName, PlaYUVerStreamInfo* streamInfo )
|
Void plaYUVerApp::loadFile( QString fileName, PlaYUVerStreamInfo* pStreamInfo )
|
||||||
{
|
{
|
||||||
SubWindowHandle *interfaceChild = plaYUVerApp::findSubWindow( mdiArea, fileName );
|
SubWindowHandle *interfaceChild = plaYUVerApp::findSubWindow( mdiArea, fileName );
|
||||||
if( interfaceChild )
|
if( interfaceChild )
|
||||||
@@ -164,18 +164,18 @@ Void plaYUVerApp::loadFile( QString fileName, PlaYUVerStreamInfo* streamInfo )
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
interfaceChild = new SubWindowHandle( this ); //createSubWindow();
|
interfaceChild = new SubWindowHandle( this ); //createSubWindow();
|
||||||
if( !streamInfo )
|
if( !pStreamInfo )
|
||||||
{
|
{
|
||||||
Int idx = findPlaYUVerStreamInfo( m_aRecentFileStreamInfo, fileName );
|
Int idx = findPlaYUVerStreamInfo( m_aRecentFileStreamInfo, fileName );
|
||||||
streamInfo = ( PlaYUVerStreamInfo* )( idx >= 0 ? &m_aRecentFileStreamInfo.at( idx ) : NULL );
|
pStreamInfo = ( PlaYUVerStreamInfo* )( idx >= 0 ? &m_aRecentFileStreamInfo.at( idx ) : NULL );
|
||||||
}
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if( !streamInfo )
|
if( !pStreamInfo )
|
||||||
interfaceChild->loadFile( fileName );
|
interfaceChild->loadFile( fileName );
|
||||||
else
|
else
|
||||||
interfaceChild->loadFile( streamInfo );
|
interfaceChild->loadFile( pStreamInfo );
|
||||||
|
|
||||||
statusBar()->showMessage( tr( "Loading file..." ) );
|
statusBar()->showMessage( tr( "Loading file..." ) );
|
||||||
mdiArea->addSubWindow( interfaceChild );
|
mdiArea->addSubWindow( interfaceChild );
|
||||||
@@ -192,7 +192,9 @@ Void plaYUVerApp::loadFile( QString fileName, PlaYUVerStreamInfo* streamInfo )
|
|||||||
Int idx = findPlaYUVerStreamInfo( m_aRecentFileStreamInfo, fileName );
|
Int idx = findPlaYUVerStreamInfo( m_aRecentFileStreamInfo, fileName );
|
||||||
if( idx >= 0 )
|
if( idx >= 0 )
|
||||||
m_aRecentFileStreamInfo.remove( idx );
|
m_aRecentFileStreamInfo.remove( idx );
|
||||||
m_aRecentFileStreamInfo.prepend( interfaceChild->getStreamInfo() );
|
PlaYUVerStreamInfo streamInfo = interfaceChild->getStreamInfo();
|
||||||
|
qDebug() << streamInfo.m_cFilename;
|
||||||
|
m_aRecentFileStreamInfo.prepend( streamInfo );
|
||||||
while( m_aRecentFileStreamInfo.size() > MAX_RECENT_FILES )
|
while( m_aRecentFileStreamInfo.size() > MAX_RECENT_FILES )
|
||||||
m_aRecentFileStreamInfo.remove( m_aRecentFileStreamInfo.size() - 1 );
|
m_aRecentFileStreamInfo.remove( m_aRecentFileStreamInfo.size() - 1 );
|
||||||
updateRecentFileActions();
|
updateRecentFileActions();
|
||||||
|
|||||||
+1
-1
@@ -53,7 +53,7 @@ Q_OBJECT
|
|||||||
public:
|
public:
|
||||||
plaYUVerApp();
|
plaYUVerApp();
|
||||||
Void parseArgs( Int argc, Char *argv[] );
|
Void parseArgs( Int argc, Char *argv[] );
|
||||||
Void loadFile( QString fileName, PlaYUVerStreamInfo* streamInfo = NULL );
|
Void loadFile( QString fileName, PlaYUVerStreamInfo* pStreamInfo = NULL );
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
Void closeEvent( QCloseEvent *event );
|
Void closeEvent( QCloseEvent *event );
|
||||||
|
|||||||
Reference in new issue
Block a user