Blame view

src/decoder/dvpp/DvppSourceManager.h 516 Bytes
09c2d08c   Hu Chunming   arm交付版
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
  
  #include<map>
  #include<string>
  
  #include "dvpp_headers.h"
  
  using namespace std;
  
  class DvppSourceManager{
  public:
      static DvppSourceManager* getInstance(){
  		static DvppSourceManager* singleton = nullptr;
  		if (singleton == nullptr){
  			singleton = new DvppSourceManager();
  		}
  		return singleton;
  	}
  
09c2d08c   Hu Chunming   arm交付版
19
20
21
22
23
24
25
26
27
28
29
  	int getChannel(int devId);
  	void releaseChannel(int devId, int channel);
  
  private:
      DvppSourceManager(){}
  	~DvppSourceManager();
  
  private:
      map<int, aclrtContext> ctxMap;
  	map<string, int> channelMap;
  };