Add feature to disable current module
This commit is contained in:
1 parent
87cad865fe
commit
468d525b16
5 files changed
+28
-7
No files matched your search
@@ -31,6 +31,8 @@ namespace plaYUVer
|
||||
|
||||
Void FilterFrame::create( PlaYUVerFrame* InputFrame )
|
||||
{
|
||||
if( m_pcFilteredFrame )
|
||||
delete m_pcFilteredFrame;
|
||||
m_pcFilteredFrame = new PlaYUVerFrame( InputFrame->getWidth(), InputFrame->getHeight(), InputFrame->getPelFormat() );
|
||||
}
|
||||
|
||||
@@ -48,13 +50,15 @@ PlaYUVerFrame* FilterFrame::process( PlaYUVerFrame* InputFrame )
|
||||
pppPelYUV[2][y][x] = 128;
|
||||
}
|
||||
}
|
||||
m_pcFilteredFrame->YUV420toRGB();
|
||||
//m_pcFilteredFrame->YUV420toRGB();
|
||||
return m_pcFilteredFrame;
|
||||
}
|
||||
|
||||
Void FilterFrame::destroy()
|
||||
{
|
||||
delete m_pcFilteredFrame;
|
||||
if( m_pcFilteredFrame )
|
||||
delete m_pcFilteredFrame;
|
||||
m_pcFilteredFrame = NULL;
|
||||
}
|
||||
|
||||
} // NAMESPACE
|
||||
|
||||
@@ -33,6 +33,7 @@
|
||||
#include "PlaYUVerFrame.h"
|
||||
|
||||
class QImage;
|
||||
class QAction;
|
||||
|
||||
namespace plaYUVer
|
||||
{
|
||||
@@ -54,6 +55,8 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
QAction* m_pcAction;
|
||||
|
||||
const Char* m_pchModuleType;
|
||||
const Char* m_pchModuleName;
|
||||
const Char* m_pchModuleTooltip;
|
||||
@@ -65,6 +68,8 @@ public:
|
||||
virtual PlaYUVerFrame* process( PlaYUVerFrame* ) {};
|
||||
virtual PlaYUVerFrame* getModImage() {};
|
||||
|
||||
virtual QImage* process( QImage* ) {};
|
||||
|
||||
virtual Void destroy() {};
|
||||
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user