36. CA2

36.1. Function Overview

Adjust the UV domain saturation, readjust the saturation level based on the saturation of the input pixel

36.2. API Reference

36.2.1. CVI_ISP_SetCA2Attr

【Description】

Set the saturation attribute parameter

【Syntax】

CVI_S32 CVI_ISP_SetCA2Attr(VI_PIPE ViPipe, const ISP_CA2_ATTR_S *pstCA2Attr);

【Parameter】

Parameter

Description

Input/Output

ViPipe

VI_PIPE number

Input

pstCA2Attr

Saturation property parameter

Input

【Return Value】

Return Value

Description

0

Success

Non 0

Failure. An error code is returned. For details, see chapter Error Codes.

【Requirement】

  • Header files: cvi_isp.h, cvi_comm_isp.h

  • Library files: libisp.so

【Note】

None.

【Example】

None.

【Related Topic】

36.2.2. CVI_ISP_GetCA2Attr

【Description】

Get the saturation attribute parameter

【Syntax】

CVI_S32 CVI_ISP_GetCA2Attr(VI_PIPE ViPipe, ISP_CA2_ATTR_S *pstCA2Attr);

【Parameter】

Parameter

Description

Input/Output

ViPipe

VI_PIPE number

Input

pstCA2Attr

Saturation property parameter

Output

【Return Value】

Return Value

Description

0

Success

Non 0

Failure. An error code is returned. For details, see chapter Error Codes.

【Requirement】

  • Header files: cvi_isp.h, cvi_comm_isp.h

  • Library files: libisp.so

【Note】

None.

【Example】

None.

【Related Topic】

36.3. Data Types

36.3.1. ISP_CA2_MANUAL_ATTR_S

【Description】

Saturation attribute manual parameter

【Syntax】

typedef struct _ISP_CA2_MANUAL_ATTR_S {
   CVI_U16 Ca2In[CA_LITE_NODE];
   CVI_U16 Ca2Out[CA_LITE_NODE];
} ISP_CA2_MANUAL_ATTR_S;

【Member】

Member

Description

Ca2In[CA_LITE_NODE]

An array of six values that determine the input saturation level

Value range: [0x0, 0xc0]

Data type: CVI_U8

Ca2Out[CA_LITE_NODE]

An array of six values defining the UV gain for the output. Find the UV gain according to the input saturation, the larger the value, the higher the saturation; otherwise, the smaller

Value range: [0x0, 0x7ff]

Data Type: CVI_U16

【Note】

None.

【Related Data Type and Interface】

36.3.2. ISP_CA2_AUTO_ATTR_S

【Description】

Saturation attribute automatic parameter

【Syntax】

typedef struct _ISP_CA2_AUTO_ATTR_S {
   CVI_U16 Ca2In[CA_LITE_NODE][ISP_AUTO_ISO_STRENGTH_NUM];
   CVI_U16 Ca2Out[CA_LITE_NODE][ISP_AUTO_ISO_STRENGTH_NUM];
} ISP_CA2_AUTO_ATTR_S;

【Member】

Member

Description

Ca2In[CA_LITE_NODE]

Ca2In[CA_LITE_NODE] An array of six values that determine the input saturation level

Value range: [0x0, 0xc0]

Data type: CVI_U8

Ca2Out[CA_LITE_NODE]

Ca2Out[CA_LITE_NODE] An array of six values defining the output UV gain. Find the UV gain according to the input saturation, the larger the value, the higher the saturation; otherwise, the smaller

Value range: [0x0, 0x7ff]

Data Type: CVI_U16

【Note】

None.

【Related Data Type and Interface】

36.3.3. ISP_CA2_ATTR_S

【Description】

Saturation attribute parameter

【Syntax】

typedef struct _ISP_CA2_ATTR_S {
   CVI_BOOL Enable;
   ISP_OP_TYPE_E enOpType;
   CVI_U8 UpdateInterval;
   ISP_CA2_MANUAL_ATTR_S stManual;
   ISP_CA2_AUTO_ATTR_S stAuto;
} ISP_CA2_ATTR_S;

【Member】

Member

Description

Enable

The CA2 module is enabled.

Value range: [0, 1]

Data Type: CVI_BOOL

UpdateInterval

Affects the parameter update interval, the larger the value, the slower the screen changes and the better the performance Value range: [0x0, 0xff] Data type: CVI_U8

stManual

Manual Mode Parameter Properties

stAuto

Auto Mode Parameter Properties

【Note】

None.

【Related Data Type and Interface】