From d8d2bc7b4cf8e4a1f2b2a325d2ca02f0eb409d9c Mon Sep 17 00:00:00 2001
From: zhangmeng <zhangmeng@aiotlink.com>
Date: 星期四, 19 十二月 2019 16:25:24 +0800
Subject: [PATCH] up

---
 goconv/conv.h |   23 +++++++++++++++++++++++
 1 files changed, 23 insertions(+), 0 deletions(-)

diff --git a/goconv/conv.h b/goconv/conv.h
new file mode 100644
index 0000000..a55d9a8
--- /dev/null
+++ b/goconv/conv.h
@@ -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__

--
Gitblit v1.8.0