public V2DepthStream(IKinectSensor sensor) : base(10000000) { m_source = sensor.get_DepthFrameSource(); m_reader = m_source.OpenReader(); var frameDesc=m_source.get_FrameDescription(); _bytesPerPixel = (Int32)frameDesc.get_BytesPerPixel(); }
public V2DepthStream(IKinectSensor sensor) : base(10000000) { var source = sensor.get_DepthFrameSource(); m_reader = source.OpenReader(); var frameDesc=source.get_FrameDescription(); _width = frameDesc.get_Width(); _height = frameDesc.get_Height(); }
public V2DepthStream(IKinectSensor sensor) : base(10000000) { m_source = sensor.get_DepthFrameSource(); m_reader = m_source.OpenReader(); var frameDesc = m_source.get_FrameDescription(); _bytesPerPixel = (Int32)frameDesc.get_BytesPerPixel(); }
public V2DepthFrame(IDepthFrameReader reader, IntPtr handle) { try { _data = reader.GetFrameArrivedEventData(handle); _reference = _data.get_FrameReference(); SetFrame(_reference.AcquireFrame()); } catch (COMException) { Dispose(); } }
public V2DepthFrame(IDepthFrameReader reader, IntPtr handle) { try { _data = reader.GetFrameArrivedEventData(handle); _reference = _data.get_FrameReference(); SetFrame(_reference.AcquireFrame()); } catch (COMException) { Dispose(); } }