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.
 
 
 
 
 
 

38 lines
1.2 KiB

#ifndef __BASIC_MEDIA_DESTINATION_H_INCL__
#define __BASIC_MEDIA_DESTINATION_H_INCL__
#include "basicFunctionality.h"
#include "basicLIBAV.h"
#include "basicLogCollection.h"
/**
* TODO: Add class description
*
* @author Gagua
*/
class basicMediaDestination {
private:
basicLogCollection* m_pLog;
public:
basicMediaDestination();
virtual ~basicMediaDestination();
virtual bool pushFrame(AVFrame *Frame, void* src = NULL) { return false; };
virtual bool pushFrame(cv::Mat *Frame, void* src = NULL) { return false; };
virtual bool pushFrame(cv::Mat &Frame, void* src = NULL) { return false; };
virtual void setError(bool A, CSTR BOBO = NULL ){};
virtual int startRecord(uint32_t FramesToRecord) { return -1; };
virtual void startRecord(CSTR FileName) {};
virtual int stopRecord(void) { return -1; };
virtual bool isRecorder(void){ return false; };
};
inline basicMediaDestination::basicMediaDestination(){
m_pLog = basicLogCollection::getInstance();
};
inline basicMediaDestination::~basicMediaDestination(){
};
typedef vector<basicMediaDestination*> mediaDestinationsCollection;
#endif // __BASICMEDIADESTINATION_H_INCL__