|
楼主 |
发表于 2023-10-11 10:12:01
|
显示全部楼层
imresize
具体代码:
dst_buf = (char *)malloc(dst_buf_size);
src_handle = importbuffer_virtualaddr(img_rgb.data, src_buf_size);
dst_handle = importbuffer_virtualaddr(dst_buf, dst_buf_size);
src_img = wrapbuffer_handle(src_handle, 640, 480, RK_FORMAT_RGB_888);
dst_img = wrapbuffer_handle(dst_handle, 1920, 1080, RK_FORMAT_RGB_888);
ret = imresize(src_img, dst_img); |
|