up
zhangmeng
2019-12-19 d8d2bc7b4cf8e4a1f2b2a325d2ca02f0eb409d9c
goconv/conv.h
New file
@@ -0,0 +1,23 @@
#ifndef __RESIZE_NPP_H__
#define __RESIZE_NPP_H__
#ifdef __cplusplus
extern "C"{
#endif
typedef void* convHandle;
convHandle conv_create(const int srcW, const int srcH, const int dstW, const int dstH, const int gpu);
void conv_destroy(convHandle h);
int yuv2bgrandresize(convHandle h, void *yuv, unsigned char **bgr, int *bgrLen, unsigned char **scaleBGR, int *scaleBGRLen);
int yuv2bgr(convHandle h, void *yuv, unsigned char **bgr, int *bgrLen);
int yuv2resizedbgr(convHandle h, void *yuv, unsigned char **bgr, int *bgrLen);
int resizebgr(convHandle h, void *data, unsigned char **resized, int *len);
int resizeyuv(convHandle h, void *data, unsigned char **resized, int *len);
#ifdef __cplusplus
}
#endif
#endif //__RESIZE_NPP_H__