Ascend 310 acldvpp API |
Ascend 310P hi_mpi API |
What You Need to Do |
|---|---|---|
Configure the input stream information: No corresponding API. Directly pass the input image information when using the acldvppPngDecodeAsync API. |
Directly assign values to the members of the hi_img_stream struct when configuring the input stream parameters: hi_img_stream.type hi_img_stream.addr hi_img_stream.len hi_img_stream.pts |
Modify your code to configure the parameters of the input stream information by assigning values to the members of the hi_vdec_chn_attr struct. |
Configure the output image information: acldvppCreatePicDesc acldvppSetPicDescData acldvppSetPicDescSize acldvppSetPicDescFormat acldvppSetPicDescWidth acldvppSetPicDescHeight acldvppSetPicDescWidthStride acldvppSetPicDescHeightStride |
No corresponding API. Directly assign values to the members of the hi_pic_info struct when configuring the output image parameters: hi_pic_info.picture_address hi_pic_info.picture_buffer_size hi_pic_info.picture_format hi_pic_info.picture_width hi_pic_info.picture_height hi_pic_info.picture_width_stride hi_pic_info.picture_height_stride |
Modify your code to configure the parameters of the output image information by assigning values to the members of the hi_pic_info struct. |
Call the API to send an image for each frame: acldvppPngDecodeAsync |
Call the API once per frame to send the stream to be decoded: hi_mpi_pngd_send_stream |
Modify your code to send the stream using the hi_mpi_pngd_send_stream API and pass the channel ID. |