acldvppGetLutMapData

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 memory pointer and array length of a color remapping table with a dimension specified.

Prototype

1
aclError acldvppGetLutMapData(const acldvppLutMap *lutMap, uint32_t dim, uint8_t **data, uint32_t *len)

Parameters

Parameter

Input/Output

Description

lutMap

Input

Pointer to the color remapping table.

Call the acldvppCreateLutMap API to create data of the acldvppLutMap type in advance.

dim

Input

Dimension of the color remapping table

Call the acldvppGetLutMapDims interface to obtain the number of dimensions of the color remapping table. The value range of dim is as follows: [0, (Number of dimensions - 1)].

data

Output

Pointer to the memory pointer for obtaining the color remapping table data of the specified dimension.

len

Output

Pointer to the length of the data array.

Returns

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