|
@ -49,6 +49,7 @@ public static class YuShiOriSDK |
|
|
public const int PtzSpeedMax = 9; |
|
|
public const int PtzSpeedMax = 9; |
|
|
|
|
|
|
|
|
/* Common length */ |
|
|
/* Common length */ |
|
|
|
|
|
public const int NETDEV_LEN_32 = 32; |
|
|
public const int NETDEV_LEN_64 = 64; |
|
|
public const int NETDEV_LEN_64 = 64; |
|
|
public const int NETDEV_LEN_128 = 128; |
|
|
public const int NETDEV_LEN_128 = 128; |
|
|
public const int NETDEV_LEN_132 = 132; |
|
|
public const int NETDEV_LEN_132 = 132; |
|
@ -83,6 +84,8 @@ public static class YuShiOriSDK |
|
|
public const int PRESET_SET = 0; /* Set preset */ |
|
|
public const int PRESET_SET = 0; /* Set preset */ |
|
|
public const int PRESET_CLE = 1; /* Clear preset */ |
|
|
public const int PRESET_CLE = 1; /* Clear preset */ |
|
|
public const int PRESET_GOTO = 2; /* Go to preset */ |
|
|
public const int PRESET_GOTO = 2; /* Go to preset */ |
|
|
|
|
|
/* Maximum number of presets */ |
|
|
|
|
|
public const int NETDEV_MAX_PRESET_NUM = 255; |
|
|
|
|
|
|
|
|
public enum NETDEV_LIVE_STREAM_INDEX_E : int |
|
|
public enum NETDEV_LIVE_STREAM_INDEX_E : int |
|
|
{ |
|
|
{ |
|
@ -188,6 +191,24 @@ public static class YuShiOriSDK |
|
|
public byte[] szReserve; /* Reserved */ |
|
|
public byte[] szReserve; /* Reserved */ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
[StructLayout(LayoutKind.Sequential)] |
|
|
|
|
|
public struct NETDEV_PTZ_ALLPRESETS_S |
|
|
|
|
|
{ |
|
|
|
|
|
public Int32 dwSize; /* Total number of presets */ |
|
|
|
|
|
|
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValArray, SizeConst = NETDEV_MAX_PRESET_NUM)] |
|
|
|
|
|
public NETDEV_PTZ_PRESET_S[] astPreset; /* Structure of preset information */ |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
[StructLayout(LayoutKind.Sequential)] |
|
|
|
|
|
public struct NETDEV_PTZ_PRESET_S |
|
|
|
|
|
{ |
|
|
|
|
|
public Int32 dwPresetID; /* ID Preset ID */ |
|
|
|
|
|
|
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValArray, SizeConst = NETDEV_LEN_32)] |
|
|
|
|
|
public byte[] szPresetName; /** Preset name */ |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
#endregion SDK Struct
|
|
|
#endregion SDK Struct
|
|
|
|
|
|
|
|
|
#region Common Method
|
|
|
#region Common Method
|
|
@ -227,5 +248,8 @@ public static class YuShiOriSDK |
|
|
[DllImport(LibYsNetSDK, CharSet = CharSet.Ansi, CallingConvention = CallingConvention.StdCall)] |
|
|
[DllImport(LibYsNetSDK, CharSet = CharSet.Ansi, CallingConvention = CallingConvention.StdCall)] |
|
|
public static extern int NETDEV_StopRealPlay(IntPtr lpRealHandle); |
|
|
public static extern int NETDEV_StopRealPlay(IntPtr lpRealHandle); |
|
|
|
|
|
|
|
|
|
|
|
[DllImport(LibYsNetSDK, CharSet = CharSet.Ansi, CallingConvention = CallingConvention.StdCall)] |
|
|
|
|
|
public static extern Int32 NETDEV_GetPTZPresetList(IntPtr lpUserID, Int32 dwChannelID, ref NETDEV_PTZ_ALLPRESETS_S lpOutBuffer); |
|
|
|
|
|
|
|
|
#endregion Common Method
|
|
|
#endregion Common Method
|
|
|
} |
|
|
} |