Function: venc_set_channel_desc_param

C Prototype

aclError aclvencSetChannelDescParam(aclvencChannelDesc *channelDesc, aclvencChannelDescParamType paramType, size_t length, const void *param)

Python Function

ret = acl.media.venc_set_channel_desc_param(venc_channel_desc, param_type, param)

Function Usage

Sets the attributes of a VENC channel.

The Atlas Training Series Product does not support this API.

Input 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

ret: int, error code.