31. CA

31.1. Functional Description

AdjustUV domainsaturation, thismodegrouppartisCA modeandCP (thermalbecomeimage)mode, at the same timeintervalonlycanselectoneopenenable. CAmode: according toinput YtoAdjustsaturation, becausethiscanlocalAdjustsaturation. CPmode: becauseisthermalbecomeimagemodeonlyhaveYvalue, willaccording toYvaluelook upprefirstDebug colormodeboard, look upcorresponding YUVvalue, makeitsoncolor.

31.2. API Reference

31.2.1. CVI_ISP_SetCAAttr

[Description]

SetCA parameter attributes

[Syntax]

CVI_S32 CVI_ISP_SetCAAttr(VI_PIPE ViPipe, const ISP_CA_ATTR_S *pstCAAttr);

[Parameters]

Parameter Name

Description

Input/Output

ViPipe

VI_PIPE No.

Input

pstCAAttr

CA 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_CA_ATTR_S stAttr;
CVI_ISP_GetCAAttr(ViPipe, &stAttr);
stAttr.enOpType = OP_TYPE_AUTO;
CVI_ISP_SetCAAttr(ViPipe, &stAttr);

[Related Topics]

31.2.2. CVI_ISP_GetCAAttr

[Description]

GetCA parameter attributes

[Syntax]

CVI_S32 CVI_ISP_GetCAAttr(VI_PIPE ViPipe, ISP_CA_ATTR_S *pstCAAttr);

[Parameters]

Parameter Name

Description

Input/Output

ViPipe

VI_PIPE No.

Input

pstCAAttr

CA 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]

31.3. Data Types

31.3.1. ISP_CA_MANUAL_ATTR_S

[Description]

Manual DefinitionCA parameter attributes

[Definition]

typedef struct _ISP_CA_MANUAL_ATTR_S {
        CVI_U16 ISORatio; /*Rw; Range:[0, 2047]*/
        CVI_U16 YRatioLut[256]; /*Rw; Range:[0, 2047]*/
} ISP_CA_MANUAL_ATTR_S;

[Members]

Member Name

Description

ISORatio

CAmode, according toISOvaluelook upUVgain. allpixelpoint UVAdjustgainallisrelativesame , recommendedinlowISO whentimethis gaincanSetlargeonesome, andheightISOwhenthisgain valuecansettingssmallonesome, tosuppressdark region color noise.

Value Range: [0, 2047]

Data Types: CVI_U16

YRatioLut

CAmode, according tobrightnessYlook upUVgain. thisvalueaccording todifferentbrightnesslevelcanSetdifferent UVgain, recommendedinbright regiongaincanSetlargeonesome, colorwillrelativelyisvivid, anddark regiongaincanSetsmallonesome, tosuppressdark regioncolor noise.

Value Range: [0, 2047]

Data Types: CVI_U16

[Precautions]

None

[Related Data Types and Interfaces]

31.3.2. ISP_CA_AUTO_ATTR_S

[Description]

Automatic DefinitionCA parameter attributes

[Definition]

typedef struct _ISP_CA_AUTO_ATTR_S {
        CVI_U16 ISORatio[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 2047]*/
        CVI_U16 YRatioLut[256][ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 2047]*/
} ISP_CA_AUTO_ATTR_S;

[Members]

Member Name

Description

ISORatio

CAmode, according toISOvaluelook upUVgain. allpixelpoint UVAdjustgainallisrelativesame , recommendedinlowISO whentimethis gaincanSetlargeonesome, andheightISOwhenthisgain valuecansettingssmallonesome, tosuppressdark region color noise.

Value Range: [0, 2047]

Data Types: CVI_U16

YRatioLut

CAmode, according tobrightnessYlook upUVgain. thisvalueaccording todifferentbrightnesslevelcanSetdifferent UVgain, recommendedinbright regiongaincanSetlargeonesome, colorwillrelativelyisvivid, anddark regiongaincanSetsmallonesome, tosuppressdark regioncolor noise.

Value Range: [0, 2047]

Data Types: CVI_U16

[Precautions]

None

[Related Data Types and Interfaces]

31.3.3. ISP_CA_ATTR_S

[Description]

Define CA parameter attributes

[Definition]

typedef struct _ISP_CA_ATTR_S {
        CVI_BOOL Enable; /*Rw; Range:[0, 1]*/
        ISP_OP_TYPE_E enOpType;
        CVI_U8 UpdateInterval; /*Rw; Range:[1, 255]*/
        CVI_BOOL CaCpMode; /*Rw; Range:[0, 1]*/
        CVI_U8 CPLutY[256]; /*Rw; Range:[0, 255]*/
        CVI_U8 CPLutU[256]; /*Rw; Range:[0, 255]*/
        CVI_U8 CPLutV[256]; /*Rw; Range:[0, 255]*/
        ISP_CA_MANUAL_ATTR_S stManual;
        ISP_CA_AUTO_ATTR_S stAuto;
} ISP_CA_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

CaCpMode

CA modeselect:

0: CA mode.

1: CP mode.

Value Range: [0, 1]

Data Types: CVI_BOOL

CPLutY

CPmode, according tobrightnessYlook upLUTcorresponding Yvalue.

Value Range: [0, 255]

Data Types: CVI_U8

CPLutU

CPmode, according tobrightnessYlook upLUTcorresponding Uvalue.

Value Range: [0, 255]

Data Types: CVI_U8

CPLutV

CPmode, according tobrightnessYlook upLUTcorresponding Vvalue.

Value Range: [0, 255]

Data Types: CVI_U8

stManual

manual parameters

stAuto

automatic parameters

[Precautions]

None

[Related Data Types and Interfaces]