aclmdlSetAIPPPixelVarReci

Description

Sets the variance of each channel in the dynamic AIPP scenario.

Prototype

aclError aclmdlSetAIPPPixelVarReci(aclmdlAIPP *aippParmsSet,

float dtcPixelVarReciChn0,

float dtcPixelVarReciChn1,

float dtcPixelVarReciChn2,

float dtcPixelVarReciChn3,

uint64_t batchIndex)

Parameters

Parameter

Input/Output

Description

aippParmsSet

Output

Pointer to the dynamic AIPP parameter object.

Call aclmdlCreateAIPP in advance to create data of the aclmdlAIPP type.

dtcPixelVarReciChn0

Input

Reciprocal of channel 0 variance. Defaults to 1.0.

Value range: [–65504, +65504]

dtcPixelVarReciChn1

Input

Reciprocal of channel 1 variance. Defaults to 1.0.

Value range: [–65504, +65504]

dtcPixelVarReciChn2

Input

Reciprocal of channel 2 variance. Defaults to 1.0.

Value range: [–65504, +65504]

dtcPixelVarReciChn3

Input

Reciprocal of channel 3 variance. Defaults to 1.0. Set to 1.0 if there are only three channels.

Value range: [–65504, +65504]

batchIndex

Input

Index of batch for applying the variance per channel.

Value range: [0, batchSize)

batchSize is set when data of the aclmdlAIPP type is created by the aclmdlCreateAIPP call.

Returns

The value 0 indicates success, and other values indicate failure. For details, see aclError.