Fix some problems

Fix problems in the histogram calculation
Change handle of frame count in the stream handlers
This commit is contained in:
jfmcarreira committed 2017-12-09 02:32:11 +00:00
1 parent fe50d8fa6e
commit 25a4e9765f
20 files changed
+92 -149

No files matched your search

+6 -9
View File
@@ -97,6 +97,12 @@ Bool StreamHandlerOpenCV::openHandler( String strFilename, Bool bInput )
}
m_uiBitsPerPixel = 8;
m_iPixelFormat = PlaYUVerFrame::findPixelFormat( "BGR" );
m_uiTotalNumberFrames = 1;
if( pcVideoCapture )
{
m_uiTotalNumberFrames = 2;
}
}
return true;
@@ -117,15 +123,6 @@ Bool StreamHandlerOpenCV::configureBuffer( PlaYUVerFrame* pcFrame )
return true;
}
UInt64 StreamHandlerOpenCV::calculateFrameNumber()
{
if( pcVideoCapture )
{
return 2;
}
return 1;
}
Bool StreamHandlerOpenCV::seek( UInt64 iFrameNum )
{
// m_uiCurrFrameFileIdx =