public DepthStreamingListener(IMPRESS_UDPClient _udpClient, DepthStreamingSource fs)
 {
     _listenThread = new Thread(new ThreadStart(Listen));
     _frameSource  = fs;
     udpClient     = _udpClient;
     _listenThread.Start();
 }
Ejemplo n.º 2
0
 protected DepthStreamingProcessor(DepthStreamingSource fs, DepthDeviceType t, DepthCameraIntrinsics cameraIntrinsics,
                                   ushort w, ushort h, ushort ml, string guid)
 {
     DeviceType       = t;
     TotalWidth       = w;
     TotalHeight      = h;
     MaxLinesPerBlock = ml;
     DeviceGUID       = guid;
     CameraIntrinsics = cameraIntrinsics;
     FrameSource      = fs;
 }
Ejemplo n.º 3
0
        public VSyncProcessor(DepthStreamingSource fs, DepthDeviceType t, DepthCameraIntrinsics cI,
                              ushort w, ushort h, ushort ml, string guid)
            : base(fs, t, cI, w, h, ml, guid)
        {
            _frameBuffer = new Dictionary <UInt32, SequencedFrame>();
            _unusedQueue = new Queue <SequencedFrame>();
            for (int i = 0; i < _frameBufferSize; i++)
            {
                _unusedQueue.Enqueue(new SequencedFrame(this));
            }

            _processThread = new Thread(new ThreadStart(Process));
            _processThread.Start();
        }