Add a flag to define if the module should be applyied while playing

This commit is contained in:
jfmcarreira committed 2014-05-18 14:11:42 +01:00
1 parent 0251eee175
commit 27541d67de
5 files changed
+8 -1

No files matched your search

+2
View File
@@ -45,6 +45,7 @@ enum __PlaYUVerModuleTypes
VIDEO_LEVEL_MODULE,
};
#define APPLY_WHILE_PLAYING true
#define MAX_NUMBER_FRAMES 3
enum __PlaYUVerModuleRequirements
@@ -75,6 +76,7 @@ typedef struct __PlaYUVerModuleDefinition
const Char* m_pchModuleTooltip;
UInt m_uiNumberOfFrames;
UInt m_uiModuleRequirements;
Bool m_bApplyWhilePlaying;
} PlaYUVerModuleDefinition;
class SubWindowHandle;
+3 -1
View File
@@ -37,7 +37,9 @@ static PlaYUVerModuleDefinition DisparityCVVarDef =
"StereoVar",
"Measure the disparity between two images using the Stereo Var method (OpenCV)",
MODULE_REQUIRES_TWO_FRAMES,
MODULE_REQUIRES_NEW_WINDOW, };
MODULE_REQUIRES_NEW_WINDOW,
!APPLY_WHILE_PLAYING,
};
DisparityCVVar::DisparityCVVar()
{
+1
View File
@@ -37,6 +37,7 @@ PlaYUVerModuleDefinition FilterFrameDef = {
"Filter Y matrix of YUV frame",
MODULE_REQUIRES_ONE_FRAME,
MODULE_REQUIRES_NOTHING,
APPLY_WHILE_PLAYING,
};
FilterFrame::FilterFrame()
+1
View File
@@ -38,6 +38,7 @@ static PlaYUVerModuleDefinition FrameDifferenceDef =
"Measure the difference between two images (Y plane)",
MODULE_REQUIRES_TWO_FRAMES,
MODULE_REQUIRES_NEW_WINDOW,
APPLY_WHILE_PLAYING,
};
FrameDifference::FrameDifference()
+1
View File
@@ -38,6 +38,7 @@ static PlaYUVerModuleDefinition MeasurePSNRDef =
"Measure the PSNR between two images",
MODULE_REQUIRES_TWO_FRAMES,
MODULE_REQUIRES_NEW_WINDOW,
APPLY_WHILE_PLAYING,
};
MeasurePSNR::MeasurePSNR()