Improve buffering and fix memory leaks
Use a dedicated class to handle frame buffer Fix memory leak in stream handler and frame allocation
This commit is contained in:
12 files changed
+159
-160
No files matched your search
@@ -129,6 +129,7 @@ UInt64 StreamHandlerOpenCV::calculateFrameNumber()
|
||||
|
||||
Bool StreamHandlerOpenCV::seek( UInt64 iFrameNum )
|
||||
{
|
||||
// m_uiCurrFrameFileIdx =
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -147,6 +148,8 @@ Bool StreamHandlerOpenCV::read( PlaYUVerFrame* pcFrame )
|
||||
Mat cvMat = cv::imread( m_cFilename );
|
||||
bRet = pcFrame->fromMat( cvMat );
|
||||
}
|
||||
if( bRet )
|
||||
m_uiCurrFrameFileIdx++;
|
||||
return bRet;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user