Пример #1
0
 protected Processor(StreamFrameSource 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;
 }
Пример #2
0
        public VSyncProcessor(StreamFrameSource fs, DepthDeviceType t, DepthCameraIntrinsics cI,
                              ushort w, ushort h, ushort ml, string guid)
            : base(fs, t, cI, w, h, ml, guid)
        {
            _frameBuffer = new Dictionary <ulong, 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();
        }