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

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