跳转至

DD_MOTION_AREA

结构体定义

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;
}

功能描述

移动区域结构体。

成员说明

成员 类型 备注
sensitivity unsigned int 灵敏度(0~7),数字越大灵敏度越高。
widthNum unsigned short 区域的横向栅格数目。
heightNum unsigned short 区域的纵向栅格数目。
area unsigned char[DD_MAX_MOTION_AREA_HIGHT_NUM] 区域的栅格掩码数据,兼容1920x1080,每块8X8大小。
错误码