Blame view

src/decoder/interface/ImgUtils.h 641 Bytes
4061a3c3   Hu Chunming   更换decoder
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
  #ifndef __INTERFACE_IMGUTILS__
  #define __INTERFACE_IMGUTILS__
  
  #include "DeviceMemory.hpp"
  
  class ImgUtils
  {
  public:
      static ImgUtils* getInstance() {
          static ImgUtils* singleton = nullptr;
  		if (singleton == nullptr){
  			singleton = new ImgUtils();
  		}
  		return singleton;
  	}
  
      ImgUtils(/* args */);
      ~ImgUtils();
  
      DeviceMemory* DeviceMemory* resize(DeviceMemory* memPtr, int out_width, int out_height) ;(DeviceMemory* memPtr, int out_width, int out_height) DeviceMemory* resize(DeviceMemory* memPtr, int out_width, int out_height) ;
  
      DeviceMemory* DeviceMemory* crop(DeviceMemory* memPtr, AreaInfo& area_info) ;(DeviceMemory* memPtr, AreaInfo& area_info) DeviceMemory* crop(DeviceMemory* memPtr, AreaInfo& area_info) ;
  
      vector< DeviceMemory* > crop_batch(DeviceMemory* memPtr, vector<AreaInfo>& vec_area_info) ;
  
  private:
      /* data */
  
  };
  
  
  #endif  //__INTERFACE_IMGUTILS__