private void CreateMotionTrackerCameraDevice()
        {
            var device = new MotionTrackerCameraDevice();

            deviceStart = () =>
            {
                if (DesiredMotionTrackerParameters != null)
                {
                    device.setFrameRateType(DesiredMotionTrackerParameters.FPS);
                    device.setFocusMode(DesiredMotionTrackerParameters.FocusMode);
                    device.setFrameResolutionType(DesiredMotionTrackerParameters.Resolution);
                }
                device.start();
            };
            deviceStop = () =>
            {
                device.stop();
            };
            deviceClose = () =>
            {
                device.close();
                device.Dispose();
            };
            deviceSetBufferCapacity = (int capacity) =>
            {
                device.setBufferCapacity(capacity);
            };
            deviceGetBufferCapacity = () =>
            {
                return(device.bufferCapacity());
            };
            deviceConnect = (InputFrameSink sink) =>
            {
                device.inputFrameSource().connect(sink);
            };
            Device = device;
        }