Add a macro to perform basic verification to frame input list of modules

This commit is contained in:
2015-04-06 00:51:27 +01:00
parent de1606e302
commit 155d54d3bd
4 changed files with 16 additions and 2 deletions
+1
View File
@@ -44,6 +44,7 @@ FrameDifference::FrameDifference()
Bool FrameDifference::create( std::vector<PlaYUVerFrame*> apcFrameList )
{
_BASIC_MODULE_API_2_CHECK_
UInt bitsPixel = ( apcFrameList[0]->getBitsPel() + 1 ) & 0x0F;
m_iMaxDiffValue = ( 1 << ( bitsPixel - 1 ) );
m_pcFrameDifference = new PlaYUVerFrame( apcFrameList[0]->getWidth(), apcFrameList[0]->getHeight(), PlaYUVerFrame::GRAY, bitsPixel );