Reduce the use of C-pointers in CalypFrame and CalypStream

This commit is contained in:
jfmcarreira committed 2021-07-10 16:28:10 +01:00
1 parent be82c6ca89
commit 8ef5b31268
25 files changed
+174 -158

No files matched your search

+3 -3
View File
@@ -479,7 +479,7 @@ int CalypTools::RateReductionOperation()
if( ( frame % m_iRateReductionFactor ) == 0 )
{
log( CLP_LOG_INFO, "Writing", frame );
m_apcOutputStreams[0]->writeFrame( m_apcInputStreams[0]->getCurrFrame() );
m_apcOutputStreams[0]->writeFrame( m_apcInputStreams[0]->getCurrFrameConst() );
}
abEOF = m_apcInputStreams[0]->setNextFrame();
if( !abEOF )
@@ -640,7 +640,7 @@ int CalypTools::ModuleOperation()
if( pcProcessedFrame )
{
m_apcOutputStreams[0]->writeFrame( pcProcessedFrame );
m_apcOutputStreams[0]->writeFrame( *pcProcessedFrame );
}
}
else if( m_pcCurrModuleIf->m_iModuleType == CLP_FRAME_MEASUREMENT_MODULE )
@@ -675,7 +675,7 @@ int CalypTools::ModuleOperation()
pcProcessedFrame = m_pcCurrModuleIf->process( apcFrameList );
if( !pcProcessedFrame )
break;
m_apcOutputStreams[0]->writeFrame( pcProcessedFrame );
m_apcOutputStreams[0]->writeFrame( *pcProcessedFrame );
}
}
}