Improve Modules Interface

Now the modules are created using a factory instead of static allocated.
  The same module can be applied to different sequences.
  Pain in the ass memory free
This commit is contained in:
jfmcarreira committed 2014-12-27 21:52:56 +00:00
1 parent bec150f705
commit 73bf370e6e
18 files changed
+432 -210

No files matched your search

+16 -8
View File
@@ -29,17 +29,25 @@ namespace plaYUVer
static PlaYUVerModuleDefinition AbsoluteFrameDifferenceDef =
{
FRAME_PROCESSING_MODULE,
"Measurements",
"AbsoluteFrameDifference",
"Measure the absolute difference between two images (Y plane), e. g., abs( Y1 - Y2 )",
MODULE_REQUIRES_TWO_FRAMES,
MODULE_REQUIRES_NEW_WINDOW,
APPLY_WHILE_PLAYING,
};
FRAME_PROCESSING_MODULE,
"Measurements",
"AbsoluteFrameDifference",
"Measure the absolute difference between two images (Y plane), e. g., abs( Y1 - Y2 )",
MODULE_REQUIRES_TWO_FRAMES,
MODULE_REQUIRES_NEW_WINDOW,
APPLY_WHILE_PLAYING, };
AbsoluteFrameDifference::AbsoluteFrameDifference()
{
/* Module Definition */
m_iModuleType = FRAME_PROCESSING_MODULE;
m_pchModuleCategory = "Measurements";
m_pchModuleName = "AbsoluteFrameDifference";
m_pchModuleTooltip = "Measure the absolute difference between two images (Y plane), e. g., abs( Y1 - Y2 )";
m_uiModuleRequirements = MODULE_REQUIRES_NEW_WINDOW;
m_uiNumberOfFrames = MODULE_REQUIRES_TWO_FRAMES;
m_bApplyWhilePlaying = APPLY_WHILE_PLAYING;
m_pcFrameDifference = NULL;
setModuleDefinition( AbsoluteFrameDifferenceDef );
}