Function: venc_set_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

Sets the attributes of a VENC channel.

Prototype

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

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.

param

Attribute parameter value.

  • If the type of the attribute parameter is uint64_t or uint32_t, the value is the corresponding parameter 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.

Return Value

Return Value

Description

ret

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