17. Crosstalk

17.1. Function Overview

It can balance the difference between adjacent pixels Gr and Gb between raw

and effectively prevent the square

or other similar patterns produced by demosaic interpolation algorithm.

17.2. API Reference

17.2.1. CVI_ISP_SetCrosstalkAttr

【Description】

Set Crosstalk property parameter.

【Syntax】

CVI_S32 CVI_ISP_SetCrosstalkAttr(VI_PIPE ViPipe, const ISP_CROSSTALK_ATTR_S *pstCrosstalkAttr);

【Parameter】

Parameter

Description

Input/Output

ViPipe

VI_PIPE number

Input

pstCrosstalkAttr

Crosstalk 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】

17.2.2. CVI_ISP_GetCrosstalkAttr

【Description】

Get Crosstalk property parameter.

【Syntax】

CVI_S32 CVI_ISP_GetCrosstalkAttr(VI_PIPE ViPipe, ISP_CROSSTALK_ATTR_S *pstCrosstalkAttr);

【Parameter】

Parameter

Description

Input/Output

ViPipe

VI_PIPE number

Input

pstCrosstalkAttr

Crosstalk 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】

17.3. Data Types

17.3.1. ISP_CROSSTALK_MANUAL_ATTR_S

【Description】

Crosstalk attribute manual parameter.

【Syntax】

typedef struct _ISP_CROSSTALK_MANUAL_ATTR_S {
   CVI_U16 Strength;
} ISP_CROSSTALK_MANUAL_ATTR_S;

【Member】

Member

Description

Strength

G-channel balanced global strength;

Value range: [0x0, 0x100]

Data type: CVI_U16

【Note】

None.

【Related Data Type and Interface】

17.3.2. ISP_CROSSTALK_AUTO_ATTR_S

【Description】

Crosstalk attribute auto parameter.

【Syntax】

typedef struct _ISP_CROSSTALK_AUTO_ATTR_S {
   CVI_U16 Strength[ISP_AUTO_ISO_STRENGTH_NUM];
} ISP_CROSSTALK_AUTO_ATTR_S;

【Member】

Member

Description

Strength

G-channel balanced global strength;

Value range: [0x0, 0x100]

Data type: CVI_U16

【Note】

None.

【Related Data Type and Interface】

17.3.3. ISP_CROSSTALK_ATTR_S

【Description】

Crosstalk attribute parameter.

【Syntax】

typedef struct _ISP_CROSSTALK_ATTR_S {
   CVI_BOOL Enable; /*RW; Range:[0, 1]*/
   ISP_OP_TYPE_E enOpType;
   CVI_U8 UpdateInterval;
   CVI_U16 GrGbDiffThreSec[4]; /*RW; Range:[0x0, 0xfff]*/
   CVI_U16 FlatThre[4]; /*RW; Range:[0x0, 0xfff]*/
   ISP_CROSSTALK_MANUAL_ATTR_S stManual;
   ISP_CROSSTALK_AUTO_ATTR_S stAuto;
} ISP_CROSSTALK_ATTR_S;

【Member】

Member

Description

Enable

The GE module is enabled.

0: off.

1: Enabled.

Value range: [0, 1]

Data type: CVI_BOOL

enOpType

job type

OP_TYPE_AUTO: automatic mode

OP_TYPE_MANUAL: manual mode

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

GrGbDiffThreSec[4]

G channel balance node threshold 1-4

Value range: [0x0, 0xfff]

Data type: CVI_U16

FlatThre[4]

Flat area detection node threshold 1-4

Value range: [0x0, 0xfff]

Data type: CVI_U16

stManual

Manual Mode Parameter Properties

stAuto

Auto Mode Parameter Properties

【Note】

None.

【Related Data Type and Interface】