Exemplo n.º 1
0
 public FastProcessor(StreamFrameSource fs, ConfigMessage cm)
     : base(fs, cm.deviceType, cm.intrinsics, cm.intrinsics.width, cm.intrinsics.height, cm.maxLines, cm.GUID)
 {
     _frameBuffer = new Queue <FastFrame>();
     for (int i = 0; i < _frameBufferSize; i++)
     {
         _frameBuffer.Enqueue(new FastFrame(this));
     }
 }
Exemplo n.º 2
0
 public StreamParser(UDPConnector _udpClient, RGBDAudio audio, RGBDControl control, StreamFrameSource fs)
 {
     _listenThread = new Thread(new ThreadStart(Listen));
     _frameSource  = fs;
     udpClient     = _udpClient;
     _listenThread.Start();
     _audio   = audio;
     _control = control;
 }
Exemplo n.º 3
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;
 }
Exemplo n.º 4
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();
        }
Exemplo n.º 5
0
        void Start()
        {
            bookmarks      = new ulong[n_bookmarks];
            _bodyFrames    = new Queue <RGBDBodyFrame>();
            _trackedBodies = new Dictionary <uint, RGBDBody>();
            _eventQueue    = new Queue <RGBDStreamEventArgs>();

            _state                    = RGBD_STATE.IDLE;
            oiudp                     = GetComponent <UDPConnector>();
            sfs                       = GetComponent <StreamFrameSource>();
            _audio                    = GetComponent <RGBDAudio>();
            _defaultTransform         = sfs.cameraTransform;
            _recordedTransform        = (new GameObject("_kinect_recorded")).transform;
            _recordedTransform.parent = transform;
            //cameraKinectView.transform.parent = _recordedTransform;
            //cameraKinectView.transform.localPosition = Vector3.zero;
            //cameraKinectView.transform.localRotation = Quaternion.identity;
            last_idle = Time.time + 1.0f;
        }