Skip to content

DD_MOTION_AREA

Structure Definition

1
2
3
4
5
6
7
typedef struct _dd_motion_area_
{
    unsigned int sensitivity;                                                       
    unsigned short widthNum;                                                        
    unsigned short heightNum;                                                       
    unsigned char area[DD_MAX_MOTION_AREA_HIGHT_NUM][DD_MAX_MOTION_AREA_WIDTH_NUM]; 
} DD_MOTION_AREA;
1
2
3
4
5
6
7
8
9
[StructLayout(LayoutKind.Sequential, Pack = 4)]
public struct DD_MOTION_AREA
{
    public UInt32 sensitivity;
    public UInt16 widthNum;
    public UInt16 heightNum;
    [MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.U1, SizeConst = 68)]
    public byte[] area;
}

Function Description

Move the region structure.

Member Description

Member Type Remark
sensitivity unsigned int Sensitivity (0~7), the larger the number, the higher the sensitivity.
widthNum unsigned short The number of horizontal grid cells in the region.
heightNum unsigned short The number of vertical grid cells in the region.
area unsigned char[DD_MAX_MOTION_AREA_HIGHT_NUM] The raster mask data of the region, compatible with 1920x1080, each block is 8X8 in size.
Error Code