public void Dispose() { if (_port >= 0) { UniviewNative.IMOS_XP_StopPlay(_port); UniviewNative.IMOS_XP_CloseInputStream(_port); _portMgr.Value.ReleasePort(_port); } _port = -1; }
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); }
public PortMgr() { UniviewNative.IMOS_XP_Init(); }