Wait for the task to complete and obtain the output image by calling the corresponding "get" API from outputDesc of the acldvppVpcCropResizePasteAsync API.
- Wait for the task to complete:
aclrtSynchronizeStream
|
Wait for the task to complete and obtain the output image.
- For different functions, the parameters for obtaining the output image are as follows:
Obtain the output image from hi_vpc_crop_resize_paste_region.dest_pic_info.picture_address for image cropping, resizing, and pasting through the hi_mpi_vpc_crop_resize_paste API. Obtain the output image from hi_vpc_crop_resize_paste_region.dest_pic_info.picture_address for batch image cropping, resizing, and pasting through the hi_mpi_vpc_batch_crop_resize_paste API. Obtain the output image from dest_pic.picture_address for image resizing through the hi_mpi_vpc_resize API.
|
Modify your code to change the aclrtSynchronizeStream API to the hi_mpi_vpc_get_process_result API and directly obtain the output image from the corresponding member variable. |