33. Mono

33.1. Function Overview

This section describes how to set monochrome modes and properties.

33.2. API Reference

33.2.1. CVI_ISP_SetMonoAttr

【Description】

Set Mono attribute parameter

【Syntax】

CVI_S32 CVI_ISP_SetMonoAttr(VI_PIPE ViPipe, const ISP_MONO_ATTR_S *pstMonoAttr);

【Parameter】

Parameter

Description

Input/Output

ViPipe

VI_PIPE number

Input

pstMonoAttr

Mono attribute 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】

33.2.2. CVI_ISP_GetMonoAttr

【Description】

Get Mono attribute parameter

【Syntax】

CVI_S32 CVI_ISP_GetMonoAttr(VI_PIPE ViPipe, ISP_MONO_ATTR_S *pstMonoAttr);

【Parameter】

Parameter

Description

Input/Output

ViPipe

VI_PIPE number

Input

pstMonoAttr

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

33.3. Data Types

33.3.1. ISP_MONO_ATTR_S

【Description】

Mono attribute parameter

【Syntax】

typedef struct _ISP_MONO_ATTR_S {
   CVI_BOOL Enable;
   CVI_U8 UpdateInterval;
} ISP_MONO_ATTR_S;

【Member】

Member

Description

Enable

Monochrome mode enabled

Value range: [0x0, 0x1]

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

【Note】

None.

【Related Data Type and Interface】