Function: venc_get_channel_desc_param

Applicability

Product

Supported

Atlas 350 Accelerator Card

x

Atlas A3 training product/Atlas A3 inference product

x

Atlas A2 training product/Atlas A2 inference product

x

Atlas training product

x

Atlas inference product

Atlas 200I/500 A2 inference product

Description

Obtains the description of a video encoding channel.

The Atlas training product does not support this API.

The Atlas A2 training product/Atlas A2 inference product does not support this API.

The Atlas A3 training product/Atlas A3 inference product does not support this API.

Prototype

  • C Prototype
    1
    aclError aclvencGetChannelDescParam(const aclvencChannelDesc *channelDesc, aclvencChannelDescParamType paramType, size_t length, size_t *paramRetSize, void *param)
    
  • Python Function
    1
    attr, ret = acl.media.venc_get_channel_desc_param(venc_channel_desc, param_type)
    

Parameters

Parameter

Description

venc_channel_desc

Int, pointer address of the description of a video encoding channel.

param_type

Int, attribute parameter type. For details, see aclvencChannelDescParamType.

Return Value

Return Value

Description

attr

Attribute value.

  • If the type of the attribute parameter is uint64_t or uint32_t, the value is the corresponding attribute value.
  • If the attribute parameter is of the callback function type, the value is a Python function object, which encodes the callback function.

    Callback function format in Python:

    def venc_call_back_func(dvpp_pic_desc, dvpp_stream_desc, user_data):
    pass
  • If the type of the attribute parameter is pointer, the value is the address to which the pointer points.

ret

Int, error code. 0 on success; else, failure.