Fix some problems
Fix problems in the histogram calculation Change handle of frame count in the stream handlers
This commit is contained in:
20 files changed
+92
-149
No files matched your search
@@ -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 =
|
||||
|
||||
Reference in new issue
Block a user