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.

54 lines
1.6 KiB

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
7 years ago
​
​
​
​
7 years ago
​
​
​
​
​
​
​
​
  1. #ifndef __BASICMEDIADESTINATION_H_INCL__
  2. #define __BASICMEDIADESTINATION_H_INCL__
  3. #include <opencv2/opencv.hpp>
  4. #ifdef USE_QVideoFrame
  5. #include <QtMultimedia/qvideoframe.h>
  6. #endif
  7. #include "basicFunctionality.h"
  8. #include "basicLogCollection.h"
  9. /**
  10. * TODO: Add class description
  11. *
  12. * @author Gagua
  13. */
  14. class basicMediaDestination {
  15. public:
  16. basicLogCollection *m_pLog;
  17. // Constructor
  18. basicMediaDestination();
  19. // Destructor
  20. virtual ~basicMediaDestination();
  21. // Copy constructor
  22. // TODO: Uncomment the copy constructor when you need it.
  23. //basicMediaDestination(const basicMediaDestination& src);
  24. // Assignment operator
  25. // TODO: Uncomment the assignment operator when you need it.
  26. //basicMediaDestination& operator=(const basicMediaDestination& src);
  27. virtual void pushFrame(cv::Mat *Frame, void *src = NULL ){};
  28. #ifdef USE_QVideoFrame
  29. virtual void pushFrame(QVideoFrame *Frame, void *src = NULL ){};
  30. #endif
  31. virtual void setError(bool A, CSTR BOBO = NULL ){};
  32. //virtual bool init(void){ return true; };
  33. virtual int startRecord(uint32_t FramesToRecord) { return -1; };
  34. virtual void startRecord(CSTR FileName) {};
  35. virtual int stopRecord(void) { return -1; };
  36. virtual bool isRecorder(void){ return false; };
  37. };
  38. // Constructor implementation
  39. inline basicMediaDestination::basicMediaDestination() /*: basicThread()*/{
  40. m_pLog = basicLogCollection::getInstance();
  41. };
  42. // Destructor implementation
  43. inline basicMediaDestination::~basicMediaDestination(){
  44. };
  45. typedef vector<basicMediaDestination*> mediaDestinationsCollection;
  46. #endif // __BASICMEDIADESTINATION_H_INCL__