You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.2 KiB
36 lines
1.2 KiB
#ifndef __VIDEO_NODE_HEADER__
|
|
#define __VIDEO_NODE_HEADER__
|
|
|
|
#include "video/videoAVLIBSource.h"
|
|
#include "video/videoAVLIBDestination.h"
|
|
#include "../../components/base/basicThread.h"
|
|
#include "../../components/base/basicMutex.h"
|
|
#include "../../components/base/basicMediaDestination.h"
|
|
#include "../../components/base/basicSettingsProvider.h"
|
|
#include "../../components/base/basicVideoAnalyzer.h"
|
|
|
|
class videoNode : public basicMediaDestination, public basicThread {
|
|
private:
|
|
config_setting_t *m_pSettings;
|
|
cv::Mat *m_pCurrentMat;
|
|
bool m_bNewDataArival;
|
|
mediaDestinationsCollection m_vDestinations;
|
|
basicMutex *m_pMatProtector;
|
|
protected:
|
|
void m_fThreadProc();
|
|
public:
|
|
explicit videoNode( config_setting_t *Settings = NULL );
|
|
~videoNode();
|
|
void stopConveyour( void );
|
|
void startRecord( void);
|
|
void stopRecord( void);
|
|
void takeSnapshot( CSTR filename );
|
|
virtual void pushFrame( cv::Mat *Frame, void *src = NULL );
|
|
bool attachVideoAnalyzer( basicVideoAnalyzer *BVA );
|
|
void connect( basicMediaDestination *V);
|
|
void disconnect( basicMediaDestination *V);
|
|
};
|
|
|
|
typedef vector<videoNode *> videoNodeCollection;
|
|
|
|
#endif
|