aclAippInfo

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
typedef struct aclAippInfo {
    aclAippInputFormat inputFormat;
    int32_t srcImageSizeW;
    int32_t srcImageSizeH;
    int8_t cropSwitch;
    int32_t loadStartPosW;
    int32_t loadStartPosH;
    int32_t cropSizeW;
    int32_t cropSizeH;
    int8_t resizeSwitch;
    int32_t resizeOutputW;
    int32_t resizeOutputH;
    int8_t paddingSwitch;
    int32_t leftPaddingSize;
    int32_t rightPaddingSize;
    int32_t topPaddingSize;
    int32_t bottomPaddingSize;
    int8_t cscSwitch;
    int8_t rbuvSwapSwitch;
    int8_t axSwapSwitch;
    int8_t singleLineMode;
    int32_t matrixR0C0;
    int32_t matrixR0C1;
    int32_t matrixR0C2;
    int32_t matrixR1C0;
    int32_t matrixR1C1;
    int32_t matrixR1C2;
    int32_t matrixR2C0;
    int32_t matrixR2C1;
    int32_t matrixR2C2;
    int32_t outputBias0;
    int32_t outputBias1;
    int32_t outputBias2;
    int32_t inputBias0;
    int32_t inputBias1;
    int32_t inputBias2;
    int32_t meanChn0;
    int32_t meanChn1;
    int32_t meanChn2;
    int32_t meanChn3;
    float minChn0;
    float minChn1;
    float minChn2;
    float minChn3;
    float varReciChn0;
    float varReciChn1;
    float varReciChn2;
    float varReciChn3;
    aclFormat srcFormat; 
    aclDataType srcDatatype; 
    size_t srcDimNum; 
    size_t shapeCount; 
    aclAippDims outDims[ACL_MAX_SHAPE_COUNT];
    aclAippExtendInfo *aippExtend; 
} aclAippInfo;

Member

Description

inputFormat

Input image format. For details about the type definition, see aclAippInputFormat.

srcImageSizeW

Source image width

srcImageSizeH

Source image height

cropSwitch

Cropping switch

loadStartPosW

Horizontal coordinate of the crop start

loadStartPosH

Vertical coordinate of the crop start

cropSizeW

Width of the crop ROI

cropSizeH

Height of the crop ROI

resizeSwitch

Resizing switch

resizeOutputW

Destination image width

resizeOutputH

Destination image height

paddingSwitch

Whether to enable image padding

leftPaddingSize

Left padding size

rightPaddingSize

Right padding size

topPaddingSize

Top padding size

bottomPaddingSize

Bottom padding size

cscSwitch

CSC switch

rbuvSwapSwitch

RB or UV channel swap switch

axSwapSwitch

RGBA-to-ARGB or YUVA-to-AYUV switch

singleLineMode

Single line mode switch (in this mode, only the first line after crop is processed.)

matrixR0C0

CSC matrix parameter

matrixR0C1

CSC matrix parameter

matrixR0C2

CSC matrix parameter

matrixR1C0

CSC matrix parameter

matrixR1C1

CSC matrix parameter

matrixR1C2

CSC matrix parameter

matrixR2C0

CSC matrix parameter

matrixR2C1

CSC matrix parameter

matrixR2C2

CSC matrix parameter

outputBias0

Output bias for RGB2YUV conversion

outputBias1

Output bias for RGB2YUV conversion

outputBias2

Output bias for RGB2YUV conversion

inputBias0

Input bias for YUV2RGB conversion

inputBias1

Input bias for YUV2RGB conversion

inputBias2

Input bias for YUV2RGB conversion

meanChn0

Mean value of channel 0

meanChn1

Mean value of channel 1

meanChn2

Mean value of channel 2

meanChn3

Mean value of channel 3

varReciChn0

Reciprocal of the variance of channel 0

varReciChn1

Reciprocal of the variance of channel 1

varReciChn2

Reciprocal of the variance of channel 2

varReciChn3

Reciprocal of the variance of channel 3

srcFormat

Source format

For details about the type definition, see aclFormat.

srcDatatype

Source data type

For details about the type definition, see aclDataType.

srcDimNum

Source dimension count

shapeCount

Number of batch/image size profiles in the dynamic-shape scenario

outDims

For a dynamic-shape model, the AIPP output dimension of each shape profile is inferred based on the shape during model compilation and saved in the model. The output format, data type, and output dimension do not change with the shape.

For details about the type definition, see aclAippDims.

aippExtend

Reserved. In the current version, a null pointer must be passed.