Improve modules code and add a requirements variable

This commit is contained in:
2014-05-13 02:34:31 +01:00
parent 61ad53a23a
commit 945d0334c1
5 changed files with 32 additions and 26 deletions
+4 -3
View File
@@ -35,13 +35,14 @@ static PlaYUVerModuleDefinition MeasurePSNRDef =
FRAME_LEVEL_MODULE,
"Measurements",
"PSNR",
"MEasure the PSNR between two images",
true, };
"Measure the PSNR between two images",
MODULE_REQUIRES_TWOFRAMES | MODULE_REQUIRES_SIDEBAR,
};
MeasurePSNR::MeasurePSNR()
{
m_pcFilteredFrame = NULL;
m_cModuleDef = MeasurePSNRDef;
setModuleDefinition( MeasurePSNRDef );
}
Void MeasurePSNR::create( PlaYUVerFrame* InputFrame )