42 #define FREENECT_COUNTS_PER_G 819 44 #define FREENECT_DEPTH_MM_MAX_VALUE 10000 46 #define FREENECT_DEPTH_MM_NO_VALUE 0 48 #define FREENECT_DEPTH_RAW_MAX_VALUE 2048 50 #define FREENECT_DEPTH_RAW_NO_VALUE 2047 191 #define FREENECTAPI extern "C" __declspec(dllexport) 195 #define FREENECTAPI __declspec(dllexport)
FREENECTAPI int freenect_set_video_mode(freenect_device *dev, freenect_frame_mode mode)
FREENECTAPI void freenect_set_log_level(freenect_context *ctx, freenect_loglevel level)
FREENECTAPI int freenect_set_tilt_degs(freenect_device *dev, double angle)
FREENECTAPI int freenect_set_depth_buffer(freenect_device *dev, void *buf)
FREENECTAPI int freenect_open_device(freenect_context *ctx, freenect_device **dev, int index)
FREENECTAPI int freenect_update_tilt_state(freenect_device *dev)
freenect_flag
Enumeration of flags to toggle features with freenect_set_flag()
#define FREENECTAPI
If Win32, export all functions for DLL usage.
FREENECTAPI int freenect_get_video_mode_count()
FREENECTAPI int freenect_process_events_timeout(freenect_context *ctx, struct timeval *timeout)
freenect_flag_value
Possible values for setting each freenect_flag
FREENECTAPI freenect_frame_mode freenect_find_depth_mode(freenect_resolution res, freenect_depth_format fmt)
FREENECTAPI void freenect_get_mks_accel(freenect_raw_tilt_state *state, double *x, double *y, double *z)
FREENECTAPI void freenect_set_fw_address_nui(freenect_context *ctx, unsigned char *fw_ptr, unsigned int num_bytes)
void freenect_usb_context
FREENECTAPI freenect_tilt_status_code freenect_get_tilt_status(freenect_raw_tilt_state *state)
int8_t data_bits_per_pixel
FREENECTAPI void freenect_free_device_attributes(struct freenect_device_attributes *attribute_list)
FREENECTAPI int freenect_set_led(freenect_device *dev, freenect_led_options option)
FREENECTAPI int freenect_start_depth(freenect_device *dev)
const char * camera_serial
freenect_tilt_status_code tilt_status
FREENECTAPI freenect_raw_tilt_state * freenect_get_tilt_state(freenect_device *dev)
FREENECTAPI freenect_frame_mode freenect_find_video_mode(freenect_resolution res, freenect_video_format fmt)
FREENECTAPI int freenect_close_device(freenect_device *dev)
FREENECTAPI double freenect_get_tilt_degs(freenect_raw_tilt_state *state)
FREENECTAPI int freenect_get_depth_mode_count()
void(* freenect_depth_cb)(freenect_device *dev, void *depth, uint32_t timestamp)
Typedef for depth image received event callbacks.
FREENECTAPI int freenect_open_device_by_camera_serial(freenect_context *ctx, freenect_device **dev, const char *camera_serial)
FREENECTAPI int freenect_set_video_buffer(freenect_device *dev, void *buf)
FREENECTAPI void freenect_set_depth_chunk_callback(freenect_device *dev, freenect_chunk_cb cb)
FREENECTAPI int freenect_set_flag(freenect_device *dev, freenect_flag flag, freenect_flag_value value)
FREENECTAPI int freenect_set_depth_mode(freenect_device *dev, const freenect_frame_mode mode)
FREENECTAPI int freenect_num_devices(freenect_context *ctx)
freenect_loglevel
Enumeration of message logging levels.
FREENECTAPI void freenect_set_user(freenect_device *dev, void *user)
FREENECTAPI int freenect_stop_video(freenect_device *dev)
FREENECTAPI void freenect_set_fw_address_k4w(freenect_context *ctx, unsigned char *fw_ptr, unsigned int num_bytes)
FREENECTAPI int freenect_list_device_attributes(freenect_context *ctx, struct freenect_device_attributes **attribute_list)
FREENECTAPI freenect_frame_mode freenect_get_depth_mode(int mode_num)
FREENECTAPI int freenect_process_events(freenect_context *ctx)
FREENECTAPI void freenect_set_video_callback(freenect_device *dev, freenect_video_cb cb)
FREENECTAPI freenect_frame_mode freenect_get_current_depth_mode(freenect_device *dev)
FREENECTAPI int freenect_stop_depth(freenect_device *dev)
struct freenect_device_attributes * next
void(* freenect_log_cb)(freenect_context *dev, freenect_loglevel level, const char *msg)
Typedef for logging callback functions.
FREENECTAPI void freenect_set_depth_callback(freenect_device *dev, freenect_depth_cb cb)
FREENECTAPI freenect_frame_mode freenect_get_video_mode(int mode_num)
FREENECTAPI int freenect_start_video(freenect_device *dev)
FREENECTAPI int freenect_init(freenect_context **ctx, freenect_usb_context *usb_ctx)
FREENECTAPI freenect_device_flags freenect_enabled_subdevices(freenect_context *ctx)
typedef void(ONI_CALLBACK_TYPE *DeviceConnectedCallback)(const OniDeviceInfo *
static freenect_context * ctx
Data from the tilt motor and accelerometer.
FREENECTAPI void freenect_select_subdevices(freenect_context *ctx, freenect_device_flags subdevs)
FREENECTAPI int freenect_shutdown(freenect_context *ctx)
FREENECTAPI int freenect_supported_subdevices(void)
FREENECTAPI void freenect_set_log_callback(freenect_context *ctx, freenect_log_cb cb)
int8_t padding_bits_per_pixel
freenect_resolution resolution
FREENECTAPI void freenect_set_video_chunk_callback(freenect_device *dev, freenect_chunk_cb cb)
void(* freenect_chunk_cb)(void *buffer, void *pkt_data, int pkt_num, int datalen, void *user_data)
Typedef for stream chunk processing callbacks.
freenect_depth_format depth_format
void(* freenect_video_cb)(freenect_device *dev, void *video, uint32_t timestamp)
Typedef for video image received event callbacks.
freenect_tilt_status_code
Enumeration of tilt motor status.
FREENECTAPI void * freenect_get_user(freenect_device *dev)
freenect_video_format video_format
FREENECTAPI freenect_frame_mode freenect_get_current_video_mode(freenect_device *dev)