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.

71 lines
1.7 KiB

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef __BASICMEDIAVIEWER_H_INCL__
  2. #define __BASICMEDIAVIEWER_H_INCL__
  3. #include <opencv2/opencv.hpp>
  4. #ifdef USE_QT
  5. #include <QtMultimedia/qvideoframe.h>
  6. #endif
  7. #include "basicFunctionality.h"
  8. #include "basicLogCollection.h"
  9. #include "basicLIBAV.h"
  10. /**
  11. * TODO: Add class description
  12. *
  13. * @author Gagua
  14. */
  15. class basicMediaViewer {
  16. protected:
  17. basicLogCollection *m_pLog;
  18. public:
  19. // Constructor
  20. basicMediaViewer();
  21. // Destructor
  22. virtual ~basicMediaViewer();
  23. // Copy constructor
  24. // TODO: Uncomment the copy constructor when you need it.
  25. //basicMediaViewer(const basicMediaViewer& src);
  26. // Assignment operator
  27. // TODO: Uncomment the assignment operator when you need it.
  28. //basicMediaViewer& operator=(const basicMediaViewer& src);
  29. virtual void pushFrame(cv::Mat *Frame){};
  30. #ifdef USE_QT
  31. virtual void pushFrame(QVideoFrame *Frame){};
  32. #endif
  33. virtual void setError(bool A, CSTR BOBO = NULL ){};
  34. virtual bool init(void){ return true; };
  35. };
  36. // Constructor implementation
  37. inline basicMediaViewer::basicMediaViewer(){
  38. m_pLog = basicLogCollection::getInstance();
  39. }
  40. // Destructor implementation
  41. inline basicMediaViewer::~basicMediaViewer(){
  42. }
  43. // TODO: Uncomment the copy constructor when you need it.
  44. //inline basicMediaViewer::basicMediaViewer(const basicMediaViewer& src)
  45. //{
  46. // // TODO: copy
  47. //}
  48. // TODO: Uncomment the assignment operator when you need it.
  49. //inline basicMediaViewer& basicMediaViewer::operator=(const basicMediaViewer& rhs)
  50. //{
  51. // if (this == &rhs) {
  52. // return *this;
  53. // }
  54. //
  55. // // TODO: assignment
  56. //
  57. // return *this;
  58. //}
  59. typedef vector<basicMediaViewer*> mediaViewerCollection;
  60. #endif // __BASICMEDIAVIEWER_H_INCL__