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.

76 lines
1.5 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef __BASIC_MEDIA_DESTINATION_H_INCL__
  2. #define __BASIC_MEDIA_DESTINATION_H_INCL__
  3. #include "basicFunctionality.h"
  4. #include "basicLIBAV.h"
  5. #include "basicLogCollection.h"
  6. /**
  7. * TODO: Add class description
  8. *
  9. * @author Gagua
  10. */
  11. class basicMediaDestination
  12. {
  13. private:
  14. basicLogCollection * m_pLog;
  15. public:
  16. basicMediaDestination();
  17. virtual ~basicMediaDestination();
  18. virtual bool pushFrame(AVFrame * Frame, void * src = NULL)
  19. {
  20. if ( Frame || src ) return false;
  21. return false;
  22. }
  23. virtual bool pushFrame(cv::Mat * Frame, void * src = NULL)
  24. {
  25. if ( Frame || src ) return false;
  26. return false;
  27. }
  28. virtual bool pushFrame(cv::Mat & Frame, void * src = NULL)
  29. {
  30. if ( Frame.empty() || src ) return false;
  31. return false;
  32. }
  33. virtual void setError(bool A, CSTR BOBO = NULL) {
  34. if ( A || BOBO ) A=false;
  35. }
  36. virtual int startRecord(uint32_t FramesToRecord)
  37. {
  38. if ( FramesToRecord ) return -1;
  39. return -1;
  40. }
  41. virtual void startRecord(CSTR FileName) {
  42. if ( FileName ) FileName = FileName;
  43. }
  44. virtual int stopRecord(void)
  45. {
  46. return -1;
  47. }
  48. virtual bool isRecorder(void)
  49. {
  50. return false;
  51. }
  52. };
  53. inline basicMediaDestination::basicMediaDestination()
  54. {
  55. m_pLog = basicLogCollection::getInstance();
  56. }
  57. inline basicMediaDestination::~basicMediaDestination() {}
  58. typedef vector<basicMediaDestination *> mediaDestinationsCollection;
  59. #endif // __BASICMEDIADESTINATION_H_INCL__