Ascend 310 acldvpp API |
Ascend 310P hi_mpi API |
What You Need to Do |
|---|---|---|
Configure the input image information: acldvppCreatePicDesc acldvppSetPicDescData acldvppSetPicDescSize acldvppSetPicDescWidth acldvppSetPicDescHeight acldvppSetPicDescWidthStride acldvppSetPicDescHeightStride acldvppSetPicDescFormat acldvppDestroyPicDesc |
No corresponding API. Directly assign values to source_pic (the hi_vpc_pic_info struct) when configuring the input image parameters. The struct consists of: picture_address; picture_buffer_size; picture_width; picture_height; picture_width_stride; picture_height_stride; picture_format; |
Modify your code to implement this function by assigning values to source_pic. |
Configure the output image information: acldvppCreatePicDesc acldvppSetPicDescData acldvppSetPicDescSize acldvppSetPicDescWidth acldvppSetPicDescHeight acldvppSetPicDescWidthStride acldvppSetPicDescHeightStride acldvppSetPicDescFormat acldvppDestroyPicDesc |
No corresponding API. Directly assign values to dest_pic (the hi_vpc_pic_info struct) when configuring the output image parameters. The struct consists of: picture_address; picture_buffer_size; picture_width; picture_height; picture_width_stride; picture_height_stride; picture_format; |
Modify your code to implement this function by assigning values to dest_pic. |
Configure the resizing algorithm: acldvppCreateResizeConfig acldvppSetResizeConfigInterpolation acldvppDestroyResizeConfig |
No corresponding API. Directly assign values to interpolation. |
Modify your code to implement this function by assigning values to interpolation. |
Resize an image: acldvppVpcResizeAsync |
Resize an image: hi_mpi_vpc_resize |
Modify your code to use the hi_mpi_vpc_resize API. |