Version of freenect patched for Kinect for Windows support.

This commit is contained in:
Andrzej Kapolka 2013-06-26 12:57:57 -07:00
parent 5e989b6ee5
commit afab7d32ef
7 changed files with 24 additions and 3 deletions

View file

@ -24,7 +24,8 @@
* either License.
*/
#pragma once
#ifndef LIBFREENECT_AUDIO_H
#define LIBFREENECT_AUDIO_H
#include <libfreenect.h>
#include <stdint.h>
@ -113,3 +114,7 @@ FREENECTAPI int freenect_stop_audio(freenect_device* dev);
#ifdef __cplusplus
}
#endif
#endif //

View file

@ -24,7 +24,8 @@
* either License.
*/
#pragma once
#ifndef LIBFREENECT_REGISTRATION_H
#define LIBFREENECT_REGISTRATION_H
#include <libfreenect.h>
#include <stdint.h>
@ -124,3 +125,5 @@ FREENECTAPI void freenect_camera_to_world(freenect_device* dev,
#ifdef __cplusplus
}
#endif
#endif // LIBFREENECT_REGISTRATION_H

View file

@ -24,7 +24,8 @@
* either License.
*/
#pragma once
#ifndef LIBFREENECT_H
#define LIBFREENECT_H
#include <stdint.h>
@ -302,6 +303,15 @@ FREENECTAPI int freenect_supported_subdevices(void);
*/
FREENECTAPI void freenect_select_subdevices(freenect_context *ctx, freenect_device_flags subdevs);
/**
* Returns the devices that are enabled after calls to freenect_open_device()
* On newer kinects the motor and audio are automatically disabled for now
*
* @param ctx Context to set future subdevice selection for
* @return Flags representing the subdevices that were actually opened (see freenect_device_flags)
*/
FREENECTAPI freenect_device_flags freenect_enabled_subdevices(freenect_context *ctx);
/**
* Opens a kinect device via a context. Index specifies the index of
* the device on the current state of the bus. Bus resets may cause
@ -617,3 +627,6 @@ FREENECTAPI int freenect_set_depth_mode(freenect_device* dev, const freenect_fra
#ifdef __cplusplus
}
#endif
#endif //