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.
 
 
 
 
 
 

59 lines
1.6 KiB

#ifndef __BASICMEDIASOURCE_H_INCL__
#define __BASICMEDIASOURCE_H_INCL__
#include <opencv2/opencv.hpp>
#include "basicMediaDestination.h"
#include "basicThread.h"
/**
* TODO: Add class description
*
* @author Gagua
*/
class basicMediaSource : public basicThread {
private:
protected:
//mediaPorts m_vCorossBar;
basicMediaDestination *m_pMediaDestination;
MediaStateStatus m_eMediaStatus;
bool m_bStreamingSource;
public:
// Constructor
basicMediaSource();
// Destructor
virtual ~basicMediaSource();
bool attachDestination(basicMediaDestination *Viewer){
if (Viewer != NULL){
m_pMediaDestination = Viewer;
return true;
};
return false;
};
void setStreaming(bool T){ m_bStreamingSource = T; };
virtual bool _stop(void){ return true; };
MediaStateStatus getStatus( void ){ return m_eMediaStatus;};
// Copy constructor
// TODO: Uncomment the copy constructor when you need it.
//basicMediaSource(const basicMediaSource& src);
// Assignment operator
// TODO: Uncomment the assignment operator when you need it.
//basicMediaSource& operator=(const basicMediaSource& src);
};
// Constructor implementation
inline basicMediaSource::basicMediaSource(): basicThread(){
m_pMediaDestination = NULL;
m_eMediaStatus = MS_UNDEFINED;
}
// Destructor implementation
inline basicMediaSource::~basicMediaSource(){
}
typedef vector<basicMediaSource *> mediaSourceCollection;
#endif // __BASICMEDIASOURCE_H_INCL__