acldvppGetHistData

Description

Obtains histogram data based on the specified dimension. This API is synchronous.

The Ascend 310 AI Processor does not support this API in the current version.

The Ascend 910 AI Processor does not support this API in the current version.

Prototype

aclError acldvppGetHistData(acldvppHist *hist, uint32_t dim, uint32_t **data, uint16_t *len)

Parameters

Parameter

Input/Output

Description

hist

Input

Pointer to the histogram description.

Call acldvppVpcCalcHistAsync to generate histogram description data of each dimension in advance.

dim

Input

Histogram dimension.

Call acldvppGetHistDims to obtain the number of dimensions in the histogram. The value range of dim is [0, (Number of dimensions – 1)].

data

Output

Pointer to the pointer to the start address of the histogram data of the corresponding dimension.

len

Output

Pointer to the histogram data length.

Returns

0 on success; else, failure.