Example #1
0
 public bool ListenTo(uint intIP)
 {
     if (GroupSDK.MAG_ListenTo(m_intChannelIndex, intIP))
     {
         GroupSDK.MAG_GetCamInfo(m_intChannelIndex, ref m_CamInfo, Marshal.SizeOf(typeof(GroupSDK.CAMERA_INFO)));
         return(true);
     }
     else
     {
         return(false);
     }
 }
Example #2
0
        /// <summary>
        /// 连接相机
        /// </summary>
        /// <param name="intIP"></param>
        /// <param name="intTimeOut">ms</param>
        /// <returns></returns>
        public bool LinkCamera(uint intIP, uint intTimeOut)
        {
            if (GroupSDK.MAG_LinkCamera(m_intChannelIndex, intIP, intTimeOut))
            {
                m_intCameraIPAddr = intIP;
                GroupSDK.MAG_GetCamInfo(m_intChannelIndex, ref m_CamInfo, Marshal.SizeOf(typeof(GroupSDK.CAMERA_INFO)));
                GroupSDK.MAG_ReadCameraRegContent(m_intChannelIndex, ref m_RegContent, intTimeOut, 0);

                return(true);
            }
            else
            {
                return(false);
            }
        }
Example #3
0
        public bool LoadDDT(GroupSDK.OUTPUT_PARAM param, [MarshalAs(UnmanagedType.LPWStr)] string sFileName, GroupSDK.DelegateNewFrame funcFrame, IntPtr pUserData)
        {
            if (!GroupSDK.MAG_IsProcessingImage(m_intChannelIndex))
            {
                if (!GroupSDK.MAG_LoadDDT(m_intChannelIndex, ref param, sFileName, funcFrame, pUserData))
                {
                    return(false);
                }

                GroupSDK.MAG_GetCamInfo(m_intChannelIndex, ref m_CamInfo, Marshal.SizeOf(typeof(GroupSDK.CAMERA_INFO)));
                return(true);
            }

            return(false);
        }
Example #4
0
        public bool LoadBufferedDDT(GroupSDK.OUTPUT_PARAM param, IntPtr pBuffer, uint size, GroupSDK.DelegateNewFrame funcFrame, IntPtr pUserData)
        {
            if (!GroupSDK.MAG_IsProcessingImage(m_intChannelIndex))
            {
                if (!GroupSDK.MAG_LoadBufferedDDT(m_intChannelIndex, ref param, pBuffer, size, funcFrame, pUserData))
                {
                    return(false);
                }

                GroupSDK.MAG_GetCamInfo(m_intChannelIndex, ref m_CamInfo, Marshal.SizeOf(typeof(GroupSDK.CAMERA_INFO)));
                return(true);
            }

            return(true);
        }
Example #5
0
        public bool LinkCameraEx(uint intIP, ushort shortPort, string charCloudUser, string charCloudPwd,
                                 uint intCamSN, string charCamUser, string charCamPwd, uint intTimeOut)
        {
            if (GroupSDK.MAG_LinkCameraEx(m_intChannelIndex, intIP, shortPort, charCloudUser, charCloudPwd,
                                          intCamSN, charCamUser, charCamPwd, intTimeOut))
            {
                m_intCameraIPAddr = intIP;
                GroupSDK.MAG_GetCamInfo(m_intChannelIndex, ref m_CamInfo, Marshal.SizeOf(typeof(GroupSDK.CAMERA_INFO)));
                GroupSDK.MAG_ReadCameraRegContent(m_intChannelIndex, ref m_RegContent, intTimeOut, 0);

                return(true);
            }
            else
            {
                return(false);
            }
        }