init format guessing

This commit is contained in:
jfmcarreira committed 2014-03-29 01:26:45 +00:00
1 parent abb3210432
commit a7fb2db9ae
3 files changed
+8 -7

No files matched your search

+4 -6
View File
@@ -117,17 +117,15 @@ QStringList InputStream::supportedWriteFormatsList()
return formats;
}
Bool InputStream::needFormatDialog( QString filename )
Bool InputStream::guessFormat( QString filename, UInt& rWidth, UInt& rHeight, Int& rInputFormat, UInt& rFrameRate )
{
Bool bRet = false;
QString fileExtension = QFileInfo( filename ).completeSuffix();
if( !fileExtension.compare( QString( "yuv" ) ) )
{
return true;
}
else
{
return false;
bRet = true;
}
return bRet;
}
Void InputStream::init( QString filename, UInt width, UInt height, Int input_format, UInt frame_rate )