25. ColorTone

25.1. Function Overview

On the basis of WB, further adjust the preference of red or blue image color.

25.2. API Reference

25.2.1. CVI_ISP_SetColorToneAttr

【Description】

Set color tone attribute parameter

【Syntax】

CVI_S32 CVI_ISP_SetColorToneAttr(VI_PIPE ViPipe, const ISP_ColorToneAttr_ATTR_S *pstColorToneAttr);

【Parameter】

Parameter

Description

Input/Output

ViPipe

VI_PIPE number

Input

pstColorToneAttr

Color tone attribute

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】

25.2.2. CVI_ISP_GetColorToneAttr

【Description】

Get color tone attribute parameter

【Syntax】

CVI_S32 CVI_ISP_GetColorToneAttr(VI_PIPE ViPipe, ISP_COLOR_TONE_ATTR_S *pstWBGAttr);

【Parameter】

Parameter

Description

Input/Output

ViPipe

VI_PIPE number

Input

pstColorToneAttr

color tone attribute 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】

25.3. Data Types

ISP_COLOR_TONE_ATTR_S: Color tone attribute parameter

25.3.1. ISP_COLOR_TONE_ATTR_S

【Description】

Color tone attribute parameter

【Syntax】

typedef struct _ISP_COLOR_TONE_ATTR_S {
   CVI_U16 u16RedCastGain;
   CVI_U16 u16GreenCastGain;
   CVI_U16 u16BlueCastGain;
} ISP_COLOR_TONE_ATTR_S;

【Member】

Member

Description

u16RedCastGain

R channel gain, 8bit decimal precision.

Value range: [0x0, 0x1000]

Data Type: CVI_U16

u16GreenCastGain

G channel gain, 8bit decimal precision.

Value range: [0x0, 0x1000]

Data Type: CVI_U16

u16BlueCastGain

B channel gain, 8bit decimal precision.

Value range: [0x0, 0x1000]

Data Type: CVI_U16

【Note】

None

【Related Data Type and Interface】