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;
            }
        }
 public int ChangeChannel(DigtiMatrix.Entity.VideoOutputInfo oVideoOutputInfo)
 {
     throw new NotImplementedException();
 }