acldvppGetLutMapData

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

x

Function

Obtains the memory pointer and array length of a color remapping LUT 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 LUT.

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

dim

Input

Dimension of the color remapping LUT.

Call acldvppGetLutMapDims to obtain the number of dimensions in the color remapping LUT. The value range of dim is [0, (Number of dimensions – 1)].

data

Output

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

len

Output

Pointer to the length of the data array.

Returns

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