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.

55 lines
1.6 KiB

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. protected:
  16. basicLogCollection *m_pLog;
  17. public:
  18. // Constructor
  19. basicMediaDestination();
  20. // Destructor
  21. virtual ~basicMediaDestination();
  22. // Copy constructor
  23. // TODO: Uncomment the copy constructor when you need it.
  24. //basicMediaDestination(const basicMediaDestination& src);
  25. // Assignment operator
  26. // TODO: Uncomment the assignment operator when you need it.
  27. //basicMediaDestination& operator=(const basicMediaDestination& src);
  28. virtual void pushFrame(cv::Mat *Frame, void *src = NULL ){};
  29. #ifdef USE_QVideoFrame
  30. virtual void pushFrame(QVideoFrame *Frame, void *src = NULL ){};
  31. #endif
  32. virtual void setError(bool A, CSTR BOBO = NULL ){};
  33. //virtual bool init(void){ return true; };
  34. virtual void startRecord( CSTR fileName ){};
  35. virtual void stopRecord(void){};
  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__