private Connection(Key connectionKey) { ConnectionKey = connectionKey; _leapConnection = IntPtr.Zero; Frames = new CircularObjectBuffer <LEAP_TRACKING_EVENT>(_frameBufferLength); }
private Connection(int connectionKey) { ConnectionKey = connectionKey; _leapConnection = IntPtr.Zero; Frames = new CircularObjectBuffer <Frame>(_frameBufferLength); _imageDataCache = new ObjectPool <ImageData>(_imageBufferLength, false); _imageRawDataCache = new ObjectPool <ImageData>(_imageBufferLength, false); }
private Connection(int connectionKey) { ConnectionKey = connectionKey; _leapConnection = IntPtr.Zero; Frames = new CircularObjectBuffer <Frame> (_frameBufferLength); _quads = new CircularObjectBuffer <TrackedQuad> (_quadBufferLength); _imageDataCache = new ObjectPool <ImageData>(_imageBufferLength, false); _imageRawDataCache = new ObjectPool <ImageData>(_imageBufferLength, false); // DistortionCache = new DistortionDictionary(); }