DataSource.h 552 B

1234567891011121314151617181920212223242526272829303132333435
  1. #pragma once
  2. #include <iostream>
  3. #include <gst/gst.h>
  4. #include <vector>
  5. #include <memory>
  6. using namespace std;
  7. class DataSource
  8. {
  9. private:
  10. public:
  11. DataSource(){};
  12. ~DataSource(){};
  13. int Id;
  14. int sourceId;
  15. std::string uri;
  16. std::string range;
  17. GstElement *source_bin = NULL;
  18. std::string Pid;
  19. bool Play = false;
  20. int AddrNum = 0;
  21. };
  22. class InferInfo{
  23. public:
  24. InferInfo(){};
  25. ~InferInfo(){};
  26. static std::shared_ptr<InferInfo> CreateNew();
  27. bool Play = true;
  28. std::vector<DataSource> DataSources;
  29. };