Ascend 310 acldvpp API |
Ascend 310P hi_mpi API |
What You Need to Do |
|---|---|---|
Call the aclrtSynchronizeStream API, and obtain the decoding result after the image decoding is complete. acldvppGetPicDescData acldvppGetPicDescWidth acldvppGetPicDescHeight acldvppGetPicDescWidthStride acldvppGetPicDescHeightStride acldvppGetPicDescFormat acldvppGetPicDescRetCode (whether the decoding is successful or not, specific to acl APIs) |
Obtain the decoding result of a frame using hi_mpi_pngd_get_image_data, and then obtain the decoding result from the following members of the hi_pic_info struct: hi_pic_info.picture_address hi_pic_info.picture_width hi_pic_info.picture_height hi_pic_info.picture_width_stride hi_pic_info.picture_height_stride hi_pic_info.picture_format hi_pic_info.picture_buffer_size (specific to hi_mpi APIs) |
Modify your code to start another thread and call the hi_mpi_pngd_get_image_data API to proactively obtain the decoding result. Note: For the hi_mpi APIs, if the decoded data can be obtained, the decoding is successful. Otherwise, the decoding fails. |