Add frame rate opt into the format dialog! fix related functions

This commit is contained in:
jfmcarreira committed 2014-02-02 17:40:20 +00:00
1 parent bbfabf687f
commit 5dc4008f42
7 files changed
+45 -9

No files matched your search

+3 -2
View File
@@ -124,16 +124,17 @@ Bool InputStream::needFormatDialog( QString filename )
}
}
Void InputStream::init( QString filename, UInt width, UInt height, Int input_format )
Void InputStream::init( QString filename, UInt width, UInt height, Int input_format, UInt frame_rate )
{
m_uiWidth = width;
m_uiHeight = height;
m_uiFrameRate = frame_rate;
m_iFileFormat = YUVFormat;
m_iPixelFormat = input_format;
#ifdef USE_FFMPEG
Bool avStatus = m_cLibAvContext.initAvFormat( filename, m_uiWidth, m_uiHeight, m_iPixelFormat );
Bool avStatus = m_cLibAvContext.initAvFormat( filename, m_uiWidth, m_uiHeight, m_iPixelFormat, m_uiFrameRate );
#endif
if( m_uiWidth <= 0 || m_uiHeight <= 0 )