fuliqi
2025-02-21 64efb660b2c119c00432434c0f651f8996483f18
ycl-server/src/main/java/com/ycl/api/YS/lib/NetDEVSDKLib.java
@@ -1,5 +1,6 @@
package com.ycl.api.YS.lib;
import com.sun.jna.Library;
import com.sun.jna.Native;
import com.sun.jna.Pointer;
@@ -128,6 +129,7 @@
    * @brief 设备登录信息
    * @attention
    */
   @Structure.FieldOrder({"szIPAddr", "dwPort" ,"szUserName","szPassword","dwLoginProto","dwDeviceType","byRes"})
   public class NETDEV_DEVICE_LOGIN_INFO_S extends Structure
   {
      public byte[]     szIPAddr = new byte[NETDEV_LEN_260];   /* IP地址/域名 */
@@ -144,6 +146,7 @@
    * @brief 安全登录信息
    * @attention
    */
   @Structure.FieldOrder({"dwSELogCount", "dwSELogTime","byRes"})
   public class NETDEV_SELOG_INFO_S extends Structure {
      public int       dwSELogCount;          /* 安全登录次数 */
      public int       dwSELogTime;           /* 安全登录时间 */
@@ -4958,6 +4961,8 @@
    * @brief 视频通道详细信息 结构体定义  Structure definition
    * @attention 无 None
    */
   @Structure.FieldOrder({"dwChannelID","bPtzSupported","enStatus","dwStreamNum","enChannelType","enVideoFormat","enAddressType", "szIPAddr","dwPort",
         "szChnName","allowDistribution","dwDeviceType","szManufacturer","szDeviceModel","udwAccessProtocol","pstExtendedInformation","byRes"})
   public class NETDEV_VIDEO_CHL_DETAIL_INFO_EX_S extends Structure {
      public int                  dwChannelID;                        /* 通道ID  Channel ID */
      public int                  bPtzSupported;                      /* 是否支持云台 Whether ptz is supported */
@@ -5228,6 +5233,7 @@
    * @brief 超时时间 结构体定义  Timeout structure definition
    * @attention
    */
   @Structure.FieldOrder({"dwRevTimeOut", "dwFileReportTimeOut","byRes"})
   public class NETDEV_REV_TIMEOUT_S extends Structure {
      public int   dwRevTimeOut;                 /* 设置接收超时时间 Set timeout for receiving */
      public int   dwFileReportTimeOut;          /* 设置文件操作超时时间 Set timeout for file operation */
@@ -5974,6 +5980,7 @@
    * @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] */
@@ -5983,29 +5990,39 @@
    * @brief OSD时间配置信息 OSD time configuration information
    * @attention 无 None
    */
   @Structure.FieldOrder({"bEnableFlag", "bWeekEnableFlag","stAreaScope","udwTimeFormat","udwDateFormat"})
   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", "stAreaScope","szOSDText","byRes"})
   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({"stTimeOSD", "stNameOSD","wTextNum","astTextOverlay"})
   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 */
@@ -7162,6 +7179,7 @@
    * @brief 时间配置 结构体定义 Time configuration structure definition
    * @attention
    */
   @Structure.FieldOrder({"dwMonth", "dwWeekInMonth" ,"dwDayInWeek","dwHour"})
   public class NETDEV_TIME_DST_S extends Structure{
      public int dwMonth;              /* 月(1~12)  Month(1~12)*/
      public int dwWeekInMonth;        /* 每月的第N周(1~5)  1 for the first week and 5 for the last week in the month */
@@ -7173,6 +7191,7 @@
    * @brief 时间配置 结构体定义 Time configuration structure definition
    * @attention
    */
   @Structure.FieldOrder({"stBeginTime", "stEndTime" ,"dwOffsetTime"})
   public class NETDEV_TIME_DST_CFG_S extends Structure{
      public NETDEV_TIME_DST_S   stBeginTime;        /* 夏令时开始时间 参见枚举#NETDEV_TIME_DST_S  DST begin time see enumeration NETDEV_TIME_DST_S */
      public NETDEV_TIME_DST_S   stEndTime;          /* 夏令时结束时间 参见枚举#NETDEV_TIME_DST_S  DST end time see enumeration NETDEV_TIME_DST_S */
@@ -7183,6 +7202,7 @@
    * @brief 时间参数 结构体定义 Time parameter Structure definition
    * @attention 无 None
    */
   @Structure.FieldOrder({"dwYear", "dwMonth" ,"dwDay","dwHour","dwMinute","dwSecond"})
   public class NETDEV_TIME_S extends Structure{
      public int   dwYear;                       /* 年  Year */
      public int   dwMonth;                      /* 月  Month */
@@ -7196,6 +7216,7 @@
    * @brief 时间配置 结构体定义 Time configuration structure definition
    * @attention
    */
   @Structure.FieldOrder({"dwTimeZone", "stTime" ,"bEnableDST","stTimeDSTCfg","udwDateFormat","udwHourFormat","byRes"})
   public class NETDEV_TIME_CFG_S extends Structure{
      public int     dwTimeZone;             /* 时区 参见枚举# NETDEV_TIME_ZONE_E  Time zone, see enumeration #NETDEV_TIME_ZONE_E */
      public NETDEV_TIME_S           stTime;                 /* 时间  Time */
@@ -10889,6 +10910,7 @@
    * @return TRUE表示成功,其他表示失败 TRUE means success, and any other value means failure.
    * @note
    */
   public boolean NETDEV_SetConnectTime(int dwWaitTime, int dwTrytimes);
   /**