| | |
| | | package com.ycl.api.YS.lib; |
| | | |
| | | |
| | | import com.sun.jna.Library; |
| | | import com.sun.jna.Native; |
| | | import com.sun.jna.Pointer; |
| | | |
| | | import com.sun.jna.Structure; |
| | | import com.sun.jna.ptr.IntByReference; |
| | | import com.sun.jna.ptr.LongByReference; |
| | |
| | | * @brief 设备登录信息 |
| | | * @attention |
| | | */ |
| | | @Structure.FieldOrder({"byRes", "dwDeviceType" ,"dwLoginProto","dwPort","szIPAddr","szPassword","szUserName"}) |
| | | public class NETDEV_DEVICE_LOGIN_INFO_S extends Structure |
| | | { |
| | | public byte[] szIPAddr = new byte[NETDEV_LEN_260]; /* IP地址/域名 */ |
| | |
| | | * @brief 安全登录信息 |
| | | * @attention |
| | | */ |
| | | @Structure.FieldOrder({"byRes", "dwSELogCount","dwSELogTime"}) |
| | | public class NETDEV_SELOG_INFO_S extends Structure { |
| | | public int dwSELogCount; /* 安全登录次数 */ |
| | | public int dwSELogTime; /* 安全登录时间 */ |
| | |
| | | * @brief 区域 Area |
| | | * @attention 无 None |
| | | */ |
| | | @Structure.FieldOrder({"dwLocateX", "dwLocateY"}) |
| | | public class NETDEV_AREA_SCOPE_S extends Structure { |
| | | public int dwLocateX; /** 顶点x坐标值[0,10000] * Coordinates of top point x [0,10000] */ |
| | | public int dwLocateY; /** 顶点y坐标值[0,10000] * Coordinates of top point y [0,10000] */ |
| | |
| | | * @brief OSD时间配置信息 OSD time configuration information |
| | | * @attention 无 None |
| | | */ |
| | | @Structure.FieldOrder({"bEnableFlag", "bWeekEnableFlag","stAreaScope","udwDateFormat","udwTimeFormat"}) |
| | | public class NETDEV_OSD_TIME_S extends Structure { |
| | | public int bEnableFlag; /** 时间OSD使能, BOOL_TRUE为使能,BOOL_FALSE为非使能 * Enable time OSD, BOOL_TRUE means enable and BOOL_FALSE means disable */ |
| | | public int bWeekEnableFlag; /** 是否显示星期(预留) * Display week or not (reserved) */ |
| | | public NETDEV_AREA_SCOPE_S stAreaScope; /** 区域坐标 * Area coordinates */ |
| | | public int udwTimeFormat; /** 时间OSD时间格式,详见 NETDEV_OSD_TIME_FORMAT_CAP_E * Time OSD format, see NETDEV_OSD_TIME_FORMAT_E */ |
| | | public int udwDateFormat; /** 日期OSD时间格式,详见 NETDEV_OSD_DATE_FORMAT_CAP_E * Date OSD format, see NETDEV_OSD_TIME_FORMAT_E */ |
| | | public NETDEV_OSD_TIME_S() { |
| | | // 初始化代码 |
| | | } |
| | | |
| | | } |
| | | |
| | | /** |
| | | * @brief OSD字符叠加信息 OSD text overlay information |
| | | * @attention |
| | | */ |
| | | @Structure.FieldOrder({"bEnableFlag", "byRes","stAreaScope","szOSDText"}) |
| | | public class NETDEV_OSD_TEXT_OVERLAY_S extends Structure { |
| | | public int bEnableFlag; /** OSD字符叠加使能, BOOL_TRUE为使能,BOOL_FALSE为非使能 * Enable OSD text overlay, BOOL_TRUE means enable and BOOL_FALSE means disable */ |
| | | public NETDEV_AREA_SCOPE_S stAreaScope; /** OSD字符叠加区域坐标 * OSD text overlay area coordinates */ |
| | | public byte[] szOSDText=new byte[NETDEV_OSD_TEXT_MAX_LEN]; /** OSD字符叠加名称字符串 * OSD text overlay name strings */ |
| | | public byte[] byRes=new byte[4]; /* 保留字段 Reserved */ |
| | | public NETDEV_OSD_TEXT_OVERLAY_S() { |
| | | // 初始化代码 |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * @brief 通道OSD的基本属性信息 Basic channel OSD information |
| | | * @attention |
| | | */ |
| | | @Structure.FieldOrder({"astTextOverlay", "stNameOSD","stTimeOSD","wTextNum"}) |
| | | public class NETDEV_VIDEO_OSD_CFG_S extends Structure { |
| | | public NETDEV_OSD_TIME_S stTimeOSD; /* 通道的时间OSD信息 Information of channel time OSD */ |
| | | public NETDEV_OSD_TEXT_OVERLAY_S stNameOSD; /* 通道的名称OSD信息 Information of channel name OSD */ |