Add a flag to define if the module should be applyied while playing
This commit is contained in:
1 parent
0251eee175
commit
27541d67de
5 files changed
+8
-1
No files matched your search
@@ -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;
|
||||
|
||||
@@ -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()
|
||||
{
|
||||
|
||||
@@ -37,6 +37,7 @@ PlaYUVerModuleDefinition FilterFrameDef = {
|
||||
"Filter Y matrix of YUV frame",
|
||||
MODULE_REQUIRES_ONE_FRAME,
|
||||
MODULE_REQUIRES_NOTHING,
|
||||
APPLY_WHILE_PLAYING,
|
||||
};
|
||||
|
||||
FilterFrame::FilterFrame()
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user