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.
 
 
 
 
 
 

79 lines
1.5 KiB

#ifndef __BASIC_MEDIA_DESTINATION_H_INCL__
#define __BASIC_MEDIA_DESTINATION_H_INCL__
#ifndef LRF_PROXY_ONLY
#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)
{
if ( Frame || src ) return false;
return false;
}
virtual bool pushFrame(cv::Mat * Frame, void * src = NULL)
{
if ( Frame || src ) return false;
return false;
}
virtual bool pushFrame(cv::Mat & Frame, void * src = NULL)
{
if ( Frame.empty() || src ) return false;
return false;
}
virtual void setError(bool A, CSTR BOBO = NULL) {
if ( A || BOBO ) A=false;
}
virtual int startRecord(uint32_t FramesToRecord)
{
if ( FramesToRecord ) return -1;
return -1;
}
virtual void startRecord(CSTR FileName) {
if ( FileName ) FileName = 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 // ! LRF_PROXY_ONLY
#endif // __BASICMEDIADESTINATION_H_INCL__