Function: venc_get_channel_desc_param

Applicability

Product

Supported (√/x)

Atlas A3 training products/Atlas A3 inference products

x

Atlas A2 training products/Atlas A2 inference products

x

Atlas training products

x

Atlas inference products

Atlas 200I/500 A2 inference products

Function Usage

Obtains the description of a video encoding channel.

Atlas training products: This API is not supported.

Atlas A2 training products/Atlas A2 inference products: This API is not supported.

Atlas A3 training products/Atlas A3 inference products: This API is not supported.

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)
    

Parameter Description

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 Description

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.