zhangmeng
2020-01-06 a10f7bf10c195421b089cda0c13f2195c614cb80
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__