32. CA2¶
32.1. Functional Description¶
AdjustUV domainsaturation, according toInputpixel saturation, againnewAdjustsaturationlevel
32.2. API Reference¶
CVI_ISP_SetCA2Attr : SetCA2 parameter attributes
CVI_ISP_GetCA2Attr : GetCA2 parameter attributes
32.2.1. CVI_ISP_SetCA2Attr¶
[Description]
SetCA2 parameter attributes
[Syntax]
CVI_S32 CVI_ISP_SetCA2Attr(VI_PIPE ViPipe, const ISP_CA2_ATTR_S *pstCA2Attr);
[Parameters]
Parameter Name |
Description |
Input/Output |
|---|---|---|
ViPipe |
VI_PIPE No. |
Input |
pstCA2Attr |
CA2 parameter attributes |
Input |
[Return Value]
Return Value |
Description |
|---|---|
0 |
Success |
Non-zero |
Failure, whose value is Error Code. |
[Requirements]
Header File: cvi_isp.h, cvi_comm_isp.h
Library File: libisp.so
[Note]
None
[Example]
VI_PIPE ViPipe = 0;
ISP_CA2_ATTR_S stAttr;
CVI_ISP_GetCA2Attr(ViPipe, &stAttr);
stAttr.enOpType = OP_TYPE_AUTO;
CVI_ISP_SetCA2Attr(ViPipe, &stAttr);
[Related Topics]
32.2.2. CVI_ISP_GetCA2Attr¶
[Description]
GetCA2 parameter attributes
[Syntax]
CVI_S32 CVI_ISP_GetCA2Attr(VI_PIPE ViPipe, ISP_CA2_ATTR_S *pstCA2Attr);
[Parameters]
Parameter Name |
Description |
Input/Output |
|---|---|---|
ViPipe |
VI_PIPE No. |
Input |
pstCA2Attr |
CA2 parameter attributes |
output |
[Return Value]
Return Value |
Description |
|---|---|
0 |
Success |
Non-zero |
Failure, whose value is Error Code. |
[Requirements]
Header File: cvi_isp.h, cvi_comm_isp.h
Library File: libisp.so
[Note]
None
[Example]
None
[Related Topics]
32.3. Data Types¶
ISP_CA2_MANUAL_ATTR_S : Manual DefinitionCA2 parameter attributes
ISP_CA2_AUTO_ATTR_S : Automatic DefinitionCA2 parameter attributes
ISP_CA2_ATTR_S : Defines CA2 parameter attributes
32.3.1. ISP_CA2_MANUAL_ATTR_S¶
[Description]
Manual DefinitionCA2 parameter attributes
[Definition]
typedef struct _ISP_CA2_MANUAL_ATTR_S {
CVI_U8 Ca2In[6]; /*Rw; Range:[0, 192]*/
CVI_U16 Ca2Out[6]; /*Rw; Range:[0, 2047]*/
} ISP_CA2_MANUAL_ATTR_S;
[Members]
Member Name |
Description |
|---|---|
Ca2In |
bysix valuesconsists of array, determinesInputsaturationlevel Value Range: [0, 192] Data Types: CVI_U8 |
Ca2Out |
bysixvaluesconsists of array, Define input/output output UVgain. according toInputsaturationlook upUVgain, the larger the value, saturationthe moreheight; and vice versa, thenthe moresmall Value Range: [0, 2047] Data Types: CVI_U16 |
[Precautions]
None
[Related Data Types and Interfaces]
32.3.2. ISP_CA2_AUTO_ATTR_S¶
[Description]
Automatic DefinitionCA2 parameter attributes
[Definition]
typedef struct _ISP_CA2_AUTO_ATTR_S {
CVI_U8 Ca2In[6][ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 192]*/
CVI_U16 Ca2Out[6][ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 2047]*/
} ISP_CA2_AUTO_ATTR_S;
[Members]
Member Name |
Description |
|---|---|
Ca2In |
bysix valuesconsists of array, determinesInputsaturationlevel Value Range: [0, 192] Data Types: CVI_U8 |
Ca2Out |
bysixvaluesconsists of array, Define input/output output UVgain. according toInputsaturationlook upUVgain, the larger the value, saturationthe moreheight; and vice versa, thenthe moresmall Value Range: [0, 2047] Data Types: CVI_U16 |
[Precautions]
None
[Related Data Types and Interfaces]
32.3.3. ISP_CA2_ATTR_S¶
[Description]
Defines CA2 parameter attributes
[Definition]
typedef struct _ISP_CA2_ATTR_S {
CVI_BOOL Enable; /*Rw; Range:[0, 1]*/
ISP_OP_TYPE_E enOpType;
CVI_U8 UpdateInterval; /*Rw; Range:[1, 255]*/
ISP_CA2_MANUAL_ATTR_S stManual;
ISP_CA2_AUTO_ATTR_S stAuto;
} ISP_CA2_ATTR_S;
[Members]
Member Name |
Description |
|---|---|
Enable |
module enable switch Value Range: [0, 1] Data Types: CVI_BOOL |
enOpType |
operation type OP_TYPE_AUTO: automatic mode OP_TYPE_MANUAL: manual mode Data Types: ISP_OP_TYPE_E |
UpdateInterval |
affects the parameter update interval,the larger the value, the slower the image changes,the better the performance. Value Range: [1, 255] Data Types: CVI_U8 |
stManual |
manual parameters |
stAuto |
automatic parameters |
[Precautions]
None
[Related Data Types and Interfaces]