Change includes and minor fixes

This commit is contained in:
2021-07-10 12:33:27 +01:00
parent 2a1b0abb2f
commit eaa9987314
16 changed files with 98 additions and 146 deletions
+1 -4
View File
@@ -62,11 +62,10 @@ bool OptimiseDisplay::create( std::vector<CalypFrame*> apcFrameList )
CalypFrame* OptimiseDisplay::process( std::vector<CalypFrame*> apcFrameList )
{
unsigned numValues = 1u << apcFrameList[0]->getBitsPel();
ClpPel* lookUpTable;
std::vector<ClpPel> lookUpTable( numValues, 0 );
const ClpPel* pInput1PelYUV = apcFrameList[0]->getPelBufferYUV()[0][0];
ClpPel* pOutputPelYUV = m_pcOptimisedFrame->getPelBufferYUV()[0][0];
getMem1D( &lookUpTable, numValues );
apcFrameList[0]->calcHistogram();
m_pcOptimisedFrame->reset();
@@ -92,8 +91,6 @@ CalypFrame* OptimiseDisplay::process( std::vector<CalypFrame*> apcFrameList )
}
}
}
freeMem1D( lookUpTable );
return m_pcOptimisedFrame;
}