VpcUtils.h 584 Bytes
#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:
    aclrtContext context_{nullptr};
    aclrtStream stream_{nullptr};
    int m_devId;
    acldvppChannelDesc *dvppChannelDesc_ {nullptr};
    string m_dec_name;
};