Ascend 310 aclvdec API |
Ascend 310P hi_mpi API |
What You Need to Do |
|---|---|---|
Create the struct of the channel description: aclvdecCreateChannelDesc |
No corresponding API. Use the hi_vdec_chn_attr struct directly. |
Declare the variables of the hi_vdec_chn_attr struct in your code. |
Set the parameters of the channel description: aclvdecSetChannelDescEnType aclvdecSetChannelDescOutPicWidth aclvdecSetChannelDescOutPicHeight aclvdecSetChannelDescRefFrameNum aclvdecSetChannelDescChannelId (specific to acl APIs) aclvdecSetChannelDescThreadId (specific to acl APIs) aclvdecSetChannelDescCallback (specific to acl APIs) aclvdecSetChannelDescOutPicFormat (specific to acl APIs) aclvdecSetChannelDescOutMode (specific to acl APIs) |
No corresponding API. Assign values to the members of hi_vdec_chn_attr struct: hi_vdec_chn_attr.type hi_vdec_chn_attr.pic_width hi_vdec_chn_attr.pic_height hi_vdec_chn_attr.video_attr.ref_frame_num 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) hi_vdec_chn_attr.video_attr.temporal_mvp_en (specific to hi_mpi APIs) hi_vdec_chn_attr.video_attr.tmv_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.
|
No corresponding API. |
Set channel attributes: hi_mpi_vdec_set_chn_param |
Set the output mode of the decoded frames using the hi_mpi_vdec_set_chn_param API. |
Create a channel: aclvdecCreateChannel |
Create a channel: hi_mpi_vdec_create_chn |
Modify your code to create a channel using the hi_mpi_vdec_create_chn API. |