Esempio n. 1
0
 public void Dispose()
 {
     if (_port >= 0)
     {
         UniviewNative.IMOS_XP_StopPlay(_port);
         UniviewNative.IMOS_XP_CloseInputStream(_port);
         _portMgr.Value.ReleasePort(_port);
     }
     _port = -1;
 }
Esempio n. 2
0
        public void InputData(byte[] data)
        {
            if (_port < 0)
            {
                _port = _portMgr.Value.QueryPort();
                UniviewNative.IMOS_XP_OpenInputStream(_port, null);
                UniviewNative.IMOS_XP_SetDecoderTag(_port, DecodeTag);
                UniviewNative.IMOS_XP_SetDecodeVideoMediaDataCB(_port, onDecodeVideoData, false);
                UniviewNative.IMOS_XP_StartPlay(_port);
                _timeStamp = 0;
            }

            UniviewNative.IMOS_XP_InputMediaData(_port, data);
        }
Esempio n. 3
0
 public PortMgr()
 {
     UniviewNative.IMOS_XP_Init();
 }