DataSource.h 420 B

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