acldvppSetChannelDescParam

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

Sets the description of an image processing channel.

Prototype

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

Parameters

Parameter

Input/Output

Description

channelDesc

Output

Pointer to the channel description.

Call the acldvppCreateChannelDesc API to create data of the acldvppChannelDesc type in advance.

paramType

Input

Attribute data type. For details about the type definition, 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 type of the attribute parameter is *_ENUM, set the parameter to 4.

param

Input

Pointer to the attribute value.

Returns

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