示例#1
0
        public int Init(int VideoStandard)
        {
            VideoStandard_t vs   = (VideoStandard_t)VideoStandard;
            int             iRtn = HKDS4000.SetDefaultVideoStandard(vs);//

            iRtn = HKDS4000.InitDSPs();
            if (iRtn < 0)
            {
                return(iRtn);
            }
            _TotalChannels = HKDS4000.GetTotalDSPs();
            return(_TotalChannels);
        }
示例#2
0
        public int Close()
        {
            int iRtn = -1;

            try
            {
                iRtn = HKDS4000.StopVideoPreview(ChannelHandle);
                iRtn = HKDS4000.ChannelClose(ChannelHandle);
            }
            catch (Exception ex)
            {
                iRtn = -1;
            }
            return(iRtn);
        }
示例#3
0
        public int StartVideoPreview(DigtiMatrix.Entity.VideoOutputInfo oVideoOutputInfo)
        {
            int iRtn = -1;

            try
            {
                _VideoOutputInfo = oVideoOutputInfo;
                ChannelHandle    = HKDS4000.ChannelOpen(_VideoOutputInfo.OutputPort);
                //设置编码帧结构、帧率ITPUB个人空间 q Z4y3v/Y
                HKDS4000.SetIBPMode(ChannelHandle, 100, 2, 1, 25);
                //设置编码图像质量ITPUB个人空间!`mW a\5u
                HKDS4000.SetDefaultQuant(ChannelHandle, 15, 15, 20);
                Rectangle rect = _VideoOutputInfo.VideoPlayPanel.ClientRectangle;
                iRtn = HKDS4000.StartVideoPreview(ChannelHandle, _VideoOutputInfo.VideoPlayPanel.Handle, ref rect, false, (int)TypeVideoFormat.vdfRGB16, 25);
                return(iRtn);
            }
            catch (Exception ex)
            {
                return(-1);
            }
        }
示例#4
0
 public int UnInit()
 {
     return(HKDS4000.DeInitDSPs());
 }
示例#5
0
 public int StopVideoPreview()
 {
     return(HKDS4000.StopVideoPreview(ChannelHandle));
 }