/// <summary>
        /// Constructor
        /// </summary>
        /// <param name="parent">
        /// Parent <see cref="Kinect"/> device that this video camera is part of
        /// </param>
        internal VideoCamera(Kinect parent) : base(parent)
        {
            // Update modes available for this video camera
            this.UpdateVideoModes();

            // Use the first mode by default
            this.Mode = this.Modes[0];

            // Setup callbacks
            KinectNative.freenect_set_video_callback(parent.devicePointer, this.DataCallback);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="parent">
        /// Parent <see cref="Kinect"/> device that this video camera is part of
        /// </param>
        internal VideoCamera(Kinect parent)
        {
            // Save parent device
            this.parentDevice = parent;

            // Not running by default
            this.IsRunning = false;

            // Set format to RGB by default
            this.DataFormat = DataFormatOption.RGB;

            // Setup callbacks
            KinectNative.freenect_set_video_callback(parent.devicePointer, VideoCallback);
        }