acldvppGetChannelDescParam

Applicable Products

Product

Supported

Ascend 950PR/Ascend 950DT

x

Atlas A3 training products/Atlas A3 inference products

√

Atlas A2 training products/Atlas A2 inference products

√

Atlas 200I/500 A2 inference products

√

Atlas inference products

√

Atlas training products

√

Function

Obtains the description of an image processing channel.

Prototype

1
aclError acldvppGetChannelDescParam(const acldvppChannelDesc *channelDesc, acldvppChannelDescParamType paramType, size_t length, size_t *paramRetSize, void *param)

Parameters

Parameter

Input/Output

Description

channelDesc

Input

Pointer to the channel description.

Call acldvppCreateChannelDesc to create data of the acldvppChannelDesc type and call acldvppSetChannelDescParam to set the channel attributes in advance.

paramType

Input

Attribute data type. For details, see acldvppChannelDescParamType.

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 *_ENUM, set this parameter to 4.

paramRetSize

Output

Pointer to the actual attribute value length.

param

Output

Pointer to the attribute value.

Returns

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