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.7 KiB

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