airockchip / rknn_model_zoo

Apache License 2.0
1.05k stars 192 forks source link

How to use img_resize_fast in RKNN_C_demo? #34

Open ycxia opened 1 year ago

ycxia commented 1 year ago

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!