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:
jfmcarreira committed 2017-09-22 00:54:46 +01:00
1 parent 58146a6b06
commit 1d07dd6b38
12 files changed
+159 -160

No files matched your search

+3
View File
@@ -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;
}