Classes |
struct | freenect_raw_device_state |
Defines |
#define | FREENECT_BAYER_SIZE (FREENECT_FRAME_PIX) |
#define | FREENECT_COUNTS_PER_G 819 |
#define | FREENECT_DEPTH_SIZE (FREENECT_FRAME_PIX*sizeof(freenect_depth)) |
#define | FREENECT_FRAME_H 480 |
#define | FREENECT_FRAME_PIX (FREENECT_FRAME_H*FREENECT_FRAME_W) |
#define | FREENECT_FRAME_W 640 |
#define | FREENECT_RGB_SIZE (FREENECT_FRAME_PIX*3) |
Typedefs |
typedef struct _freenect_context | freenect_context |
typedef uint16_t | freenect_depth |
typedef void(* | freenect_depth_cb )(freenect_device *dev, void *depth, uint32_t timestamp) |
typedef struct _freenect_device | freenect_device |
typedef void(* | freenect_ir_cb )(freenect_device *dev, freenect_pixel_ir *rgb, uint32_t timestamp) |
typedef void(* | freenect_log_cb )(freenect_context *dev, freenect_loglevel level, const char *msg) |
typedef uint8_t | freenect_packed_depth |
typedef uint8_t | freenect_pixel |
typedef uint16_t | freenect_pixel_ir |
typedef void(* | freenect_rgb_cb )(freenect_device *dev, freenect_pixel *rgb, uint32_t timestamp) |
typedef libusb_context | freenect_usb_context |
Enumerations |
enum | freenect_depth_format { FREENECT_FORMAT_11_BIT = 0,
FREENECT_FORMAT_10_BIT = 1,
FREENECT_FORMAT_PACKED_11_BIT = 2,
FREENECT_FORMAT_PACKED_10_BIT = 3
} |
enum | freenect_led_options {
LED_OFF = 0,
LED_GREEN = 1,
LED_RED = 2,
LED_YELLOW = 3,
LED_BLINK_YELLOW = 4,
LED_BLINK_GREEN = 5,
LED_BLINK_RED_YELLOW = 6
} |
enum | freenect_loglevel {
FREENECT_LOG_FATAL = 0,
FREENECT_LOG_ERROR,
FREENECT_LOG_WARNING,
FREENECT_LOG_NOTICE,
FREENECT_LOG_INFO,
FREENECT_LOG_DEBUG,
FREENECT_LOG_SPEW,
FREENECT_LOG_FLOOD
} |
enum | freenect_rgb_format { FREENECT_FORMAT_RGB = 0,
FREENECT_FORMAT_BAYER = 1,
FREENECT_FORMAT_IR = 2
} |
enum | freenect_tilt_status_code { TILT_STATUS_STOPPED = 0x00,
TILT_STATUS_LIMIT = 0x01,
TILT_STATUS_MOVING = 0x04
} |
Functions |
int | freenect_close_device (freenect_device *dev) |
| Close the given device.
|
freenect_raw_device_state * | freenect_get_device_state (freenect_device *dev) |
void | freenect_get_mks_accel (freenect_raw_device_state *state, double *x, double *y, double *z) |
double | freenect_get_tilt_degs (freenect_raw_device_state *state) |
void * | freenect_get_user (freenect_device *dev) |
int | freenect_init (freenect_context **ctx, freenect_usb_context *usb_ctx) |
int | freenect_num_devices (freenect_context *ctx) |
| Get the list of devices for the current Freenect context. The method returns only the devices that satisfy the vendor ID (0x45e) and product ID (0x02ae).
|
int | freenect_open_device (freenect_context *ctx, freenect_device **dev, int index) |
| Open a device in the current Freenect context using a given index.
|
int | freenect_process_events (freenect_context *ctx) |
void | freenect_set_depth_callback (freenect_device *dev, freenect_depth_cb cb) |
int | freenect_set_depth_format (freenect_device *dev, freenect_depth_format fmt) |
void | freenect_set_ir_callback (freenect_device *dev, freenect_ir_cb cb) |
int | freenect_set_led (freenect_device *dev, freenect_led_options option) |
void | freenect_set_log_callback (freenect_context *ctx, freenect_log_cb cb) |
void | freenect_set_log_level (freenect_context *ctx, freenect_loglevel level) |
void | freenect_set_rgb_callback (freenect_device *dev, freenect_rgb_cb cb) |
int | freenect_set_rgb_format (freenect_device *dev, freenect_rgb_format fmt) |
int | freenect_set_tilt_degs (freenect_device *dev, double angle) |
void | freenect_set_user (freenect_device *dev, void *user) |
int | freenect_shutdown (freenect_context *ctx) |
| Shutdown the given Freenect context.
|
int | freenect_start_depth (freenect_device *dev) |
| Start the RGB stream acquisition for the given Freenect device.
|
int | freenect_start_ir (freenect_device *dev) |
| Start the IR stream acquisition for the given Freenect device.
|
int | freenect_start_rgb (freenect_device *dev) |
| Start the RGB stream acquisition for the given Freenect device.
|
int | freenect_stop_depth (freenect_device *dev) |
| Stop the depth stream for the given Freenect device.
|
int | freenect_stop_ir (freenect_device *dev) |
| Stop the IR stream for the given Freenect device.
|
int | freenect_stop_rgb (freenect_device *dev) |
| Stop the RGB stream for the given Freenect device.
|
int | freenect_update_device_state (freenect_device *dev) |