Creating a Channel

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_venc_chn_attr struct directly.

Declare the variables of the hi_venc_chn_attr struct in your code.

No corresponding API.

Directly assign values to the members of the hi_venc_chn_attr struct:

hi_venc_chn_attr.venc_attr.type

hi_venc_chn_attr.venc_attr.pic_width

hi_venc_chn_attr.venc_attr.pic_height

Modify your code to configure the parameters of the channel description by assigning values to the members of the hi_venc_chn_attr struct.

Create a channel:

acldvppCreateChannel

Create a channel:

hi_mpi_venc_create_chn

Modify your code to create a channel using the hi_mpi_venc_create_chn API.