摘要: void crop_yuv420_sp(unsigned char *srcbuf, int src_width, int src_height, unsigned char *dstbuf, int x, int y, int w, int h) { int i; int dst_y_size = 阅读全文
posted @ 2024-12-20 21:10 ahuo 阅读(2) 评论(0) 推荐(0) 编辑
摘要: // 将 NV12 转换为 BGR void nv12ToBgr(const unsigned char* yuvData, int width, int height, Mat& bgrImage) { // 计算每个平面的大小 int ySize = width * height; int uv 阅读全文
posted @ 2024-12-20 21:08 ahuo 阅读(1) 评论(0) 推荐(0) 编辑