rknn_model_zoo icon indicating copy to clipboard operation
rknn_model_zoo copied to clipboard

How to use img_resize_fast in RKNN_C_demo?

Open ycxia opened this issue 1 year ago • 0 comments

void img_resize_fast(rga_context *rga_ctx, int src_fd, int src_w, int src_h, uint64_t dst_phys, int dst_w, int dst_h);

void img_resize_slow(rga_context *rga_ctx, void *src_virt, int src_w, int src_h, void *dst_virt, int dst_w, int dst_h, int w_offset, int h_offset, RgaSURF_FORMAT color, bool add_extra_sz_w, bool add_extra_sz_h);

img_resize_slow is too slow when testing multi_imgs. I want to use img_resize_fast, but it is difference between img_resize_fast and img_resize_slow in function parameters.

Can you provide an example for using img_resize_fast, Thank you!

ycxia avatar Apr 20 '23 09:04 ycxia