Obtaining the Processing Result

Ascend 310 acldvpp API

Ascend 310P hi_mpi API

What You Need to Do

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

  • The corresponding "get" API:

    acldvppGetPicDescData

    acldvppGetPicDescWidth

    acldvppGetPicDescHeight

    acldvppGetPicDescWidthStride

    acldvppGetPicDescHeightStride

    acldvppGetPicDescFormat

Wait for the task to complete and obtain the output image.

  • Wait for the task to complete:

    hi_mpi_vpc_get_process_result

  • 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.