11.4. Data Types

11.4.1. GDC_TASK_ATTR_S

【Description】

Define the attributes of GDC TASK. GDC supports pixel formats such as NV21, NV12, and YUV400.

【Syntax】

 typedef struct _GDC_TASK_ATTR_S {
  VIDEO_FRAME_INFO_S stImgIn;
  VIDEO_FRAME_INFO_S stImgOut;
  CVI_U64 au64privateData[4];
  CVI_U64 reserved;
} GDC_TASK_ATTR_S;

【Member】

Member

Description

stImgIn

Input image properties

stImgOut

Output image properties

au64privateData

Task related private data

reserved

Reserved

【Note】

The image attributes must match the corresponding hardware attributes

【Related Data Type and Interface】

  • VIDEO_FRAME_INFO_S

11.4.2. LDC_ATTR_S

【Description】

Define the Lens Distortion Correction (LDC) properties.

【Syntax】

 typedef struct _LDC_ATTR_S {
  CVI_BOOL bAspect; /* RW;Whether aspect ration  is keep */
  CVI_S32 s32XRatio; /* RW; Range: [0, 100], field angle ration of  horizontal,valid when bAspect=0.*/
  CVI_S32 s32YRatio; /* RW; Range: [0, 100], field angle ration of  vertical,valid when bAspect=0.*/
  CVI_S32 s32XYRatio; /* RW; Range: [0, 100], field angle ration of  all,valid when bAspect=1.*/
  CVI_S32 s32CenterXOffset;
  CVI_S32 s32CenterYOffset;
  CVI_S32 s32DistortionRatio;
  GRID_INFO_ATTR_S stGridInfoAttr;
} LDC_ATTR_S;

【Member】

Member

Description

Value Range

bAspect

Whether aspect ration is keep

bool

s32XRatio

Field angle ration of horizontal. Valid when bAspect=1.

0~100

s32YRatio

Field angle ration of vertical. Valid when bAspect=0.

0~100

s32XYRatio

Field angle ration of all,valid when bAspect=1.

0~100

s32CenterXOffset

Horizontal offset of the image center point relative to the physical center point.

-511~+511

s32CenterYOffset

Vertical offset of the image center point relative to the physical center point.

-511~+511

s32DistortionRatio

Correction strength Negative values for pincushion distortion. Positive values for barrel distortion.

-300~+500

stGridInfoAttr

gridinfo parameters.

/

【Note】

The image attributes must match the corresponding hardware attributes

【Related Data Type and Interface】

11.4.3. GRID_INFO_ATTR_S

【Description】

Define the GridInfo properties.

【Syntax】

 typedef struct _GRID_INFO_ATTR_S {
         CVI_BOOL Enable;
         char gridFileName[128];
         char gridBindName[128];
         CVI_BOOL isBlending;
         CVI_BOOL bEISEnable; /* enable EIS */
         uint8_t homoRgnNum;
} GRID_INFO_ATTR_S;

【Member】

Member

Description

Value Range

bEnable

Whether to enable GridInfo.

bool

gridFileName

GridInfo file name.

/

gridBindName

GridInfo binding name.

/

isBlending

Not used at the moment.

bool

bEISEnable

Not used at the moment.

bool

homoRgnNum

Not used at the moment.

/

【Note】

The image attributes must match the corresponding hardware attributes

【Related Data Type and Interface】