New file |
| | |
| | | #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__ |