Ascend 310 acldvpp API |
Ascend 310P hi_mpi API |
What You Need to Do |
|---|---|---|
Create the struct of the channel description: acldvppCreateChannelDesc |
No corresponding API. Use the hi_vdec_chn_attr struct directly. |
Declare the variables of the hi_vdec_chn_attr struct in your code. |
No corresponding API. |
Directly assign values to the members of the hi_vdec_chn_attr struct: hi_vdec_chn_attr.type (specific to hi_mpi APIs) hi_vdec_chn_attr.pic_width (specific to hi_mpi APIs) hi_vdec_chn_attr.pic_height (specific to hi_mpi APIs) hi_vdec_chn_attr.mode (specific to hi_mpi APIs) hi_vdec_chn_attr.stream_buf_size (specific to hi_mpi APIs) hi_vdec_chn_attr.frame_buf_cnt (specific to hi_mpi APIs) hi_vdec_chn_attr.frame_buf_size (specific to hi_mpi APIs) |
Modify your code to configure the parameters of the channel description by assigning values to the members of the hi_vdec_chn_attr struct. Note that for the parameters specific to acl APIs, there are corresponding hi_mpi APIs. |
Create a channel: acldvppCreateChannel |
Create a channel: hi_mpi_vdec_create_chn |
Modify your code to create a channel using the hi_mpi_vdec_create_chn API. |