Blame view

src/decoder/dvpp/VpcUtils.h 578 Bytes
6fdcb6a5   Hu Chunming   初次提交,代码大体完成编写,完善中
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
  #include "dvpp_headers.h"
  #include "depend_headers.h"
  #include "DvppDataMemory.hpp"
  
  
  class VpcUtils{
  public:
      VpcUtils();
      ~VpcUtils();
      int init(int);
  
      DvppDataMemory* convert2bgr(acldvppPicDesc *input, int out_width, int out_height, bool key_frame);
      DvppDataMemory* convert2bgr(DvppDataMemory* inMem);
  
      DvppDataMemory* resize(acldvppPicDesc *inputDesc_, int out_width, int out_height);
  private:
      void release();
  private:
      aclrtContext context_{nullptr};
      int m_devId;
      acldvppChannelDesc *dvppChannelDesc_ {nullptr};
      string m_dec_name;
  };