Use recent file list to avoid the input of format when re-opening
This commit is contained in:
1 parent
db2737d9a0
commit
08043ee694
4 files changed
+30
-3
No files matched your search
@@ -67,6 +67,16 @@ QDataStream& operator>>( QDataStream& in, PlaYUVerStreamInfoVector& array )
|
||||
return in;
|
||||
}
|
||||
|
||||
Int findPlaYUVerStreamInfo( PlaYUVerStreamInfoVector array, QString filename )
|
||||
{
|
||||
for( Int i = 0; i < array.size(); i++ )
|
||||
if( array.at( i ).m_cFilename == filename)
|
||||
return i;
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
PlaYUVerStream::PlaYUVerStream()
|
||||
{
|
||||
@@ -246,6 +256,12 @@ Bool PlaYUVerStream::open( QString filename, UInt width, UInt height, Int input_
|
||||
m_cStreamInformationString.append( "] " );
|
||||
m_cStreamInformationString.append( QFileInfo( m_cFilename ).fileName() );
|
||||
|
||||
m_sStreamInfo.m_cFilename = m_cFilename;
|
||||
m_sStreamInfo.m_uiWidth = m_uiWidth;
|
||||
m_sStreamInfo.m_uiHeight = m_uiHeight;
|
||||
m_sStreamInfo.m_iPelFormat = m_iPixelFormat;
|
||||
m_sStreamInfo.m_uiFrameRate = m_uiFrameRate;
|
||||
|
||||
m_iCurrFrameNum = -1;
|
||||
|
||||
m_bInit = true;
|
||||
|
||||
Reference in new issue
Block a user