11.4. Data Types

11.4.1. GDC_HANDLE

【Description】

Define the handle to the GDC JOB

【Syntax】

typedef CVI_S32 GDC_HANDLE;

【Note】

None

【Related Data Type and Interface】

None

11.4.2. LDC_ALIGN

【Description】

Alignment size of GDC

【Syntax】

#define LDC_ALIGN 64

【Note】

None

【Related Data Type and Interface】

None

11.4.3. GDC_PROC_JOB_INFO_NUM

【Description】

Maximum number of GDC proc jobs

【Syntax】

#define GDC_PROC_JOB_INFO_NUM (500)

【Note】

None

【Related Data Type and Interface】

None

11.4.4. GDC_MIN_IMAGE_WIDTH

【Description】

minimum size width information supported by GDC hardware

【Syntax】

#define GDC_MIN_IMAGE_WIDTH            64 /* minimum width of the GDC image */

【Note】

None

【Related Data Type and Interface】

None

11.4.5. GDC_MIN_IMAGE_HEIGHT

【Description】

minimum size height information supported by GDC hardware

【Syntax】

#define GDC_MIN_IMAGE_HEIGHT           64 /* minimum height of the GDC image */

【Note】

None

【Related Data Type and Interface】

None

11.4.6. GDC_MAX_IMAGE_WIDTH

【Description】

Maximum size width information supported by GDC hardware

【Syntax】

#define GDC_MAX_IMAGE_WIDTH            4032 /* maximum width of the GDC image */

【Note】

None

【Related Data Type and Interface】

None

11.4.7. GDC_MAX_IMAGE_HEIGHT

【Description】

Maximum size height information supported by GDC hardware

【Syntax】

#define GDC_MAX_IMAGE_HEIGHT           4032 /* maximum height of the GDC image */

【Note】

None

【Related Data Type and Interface】

None

11.4.8. 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.9. 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=0.

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.10. 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】

11.4.11. MESH_DUMP_ATTR_S

【Description】

Define the properties of the dump mesh.

【Syntax】

typedef struct _MESH_DUMP_ATTR_S {
  CVI_CHAR binFileName[128];
  MOD_ID_E enModId;
  union {
    VI_MESH_ATTR_S viMeshAttr;
    VPSS_MESH_ATTR_S vpssMeshAttr;
  };
} MESH_DUMP_ATTR_S;

【Member】

Member

Description

binFileName

mesh file name

enModId

Module ID

viMeshAttr

mesh related Settings for vi

vpssMeshAttr

mesh related Settings for vpss

【Note】

The image attributes must match the corresponding hardware attributes

【Related Data Type and Interface】

11.4.12. VI_MESH_ATTR_S

【Description】

mesh related Settings for vi

【Syntax】

typedef struct _VI_MESH_ATTR_S {
  VI_CHN chn;
} VI_MESH_ATTR_S;

【Member】

Member

Description

chn

vi chn

【Note】

The image attributes must match the corresponding hardware attributes

【Related Data Type and Interface】

11.4.13. VPSS_MESH_ATTR_S

【Description】

mesh related Settings for vpss

【Syntax】

typedef struct _VPSS_MESH_ATTR_S {
  VPSS_GRP grp;
  VPSS_CHN chn;
} VPSS_MESH_ATTR_S;

【Member】

Member

Description

grp

vpss grp

chn

vpss chn

【Note】

The image attributes must match the corresponding hardware attributes

【Related Data Type and Interface】