aclvdecGetChannelDescParam

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas 200I/500 A2 inference product

Atlas inference product

Atlas training product

Function

Obtains the description of a video decoding channel.

Prototype

1
aclError aclvdecGetChannelDescParam(const aclvdecChannelDesc *channelDesc, aclvdecChannelDescParamType paramType, size_t length, size_t *paramRetSize, void *param)

Parameters

Parameter

Input/Output

Description

channelDesc

Input

Pointer to the description of a video decoding channel.

Call the aclvdecCreateChannelDesc API to create data of the aclvdecChannelDesc type and call the aclvdecSetChannelDescParam API to set the attribute value of the video decoding channel description in advance.

paramType

Input

Attribute data type. For details about the type definition, see aclvdecChannelDescParamType.

length

Input

Attribute value length.

  • If the attribute is of type *_UINT64, set this parameter to 8.
  • If the attribute is of type *_UINT32, set this parameter to 4.
  • If the attribute is of type *_PTR, set this parameter to 4 for 32-bit OS or 8 for 64-bit OS.

paramRetSize

Output

Pointer to the actual attribute value length.

param

Output

Pointer to the attribute value.

Returns

0 on success; otherwise, failure. For details, see aclError.