public class freenect extends freenect
freenect.timeval
Modifier and Type | Field and Description |
---|---|
static int |
FREENECT_AUTO_EXPOSURE
enum freenect_flag
|
static int |
FREENECT_AUTO_WHITE_BALANCE
enum freenect_flag
|
static int |
FREENECT_COUNTS_PER_G
Ticks per G for accelerometer as set per http://www.kionix.com/Product%20Sheets/KXSD9%20Product%20Brief.pdf
|
static int |
FREENECT_DEPTH_10BIT
enum freenect_depth_format
|
static int |
FREENECT_DEPTH_10BIT_PACKED
enum freenect_depth_format
|
static int |
FREENECT_DEPTH_11BIT
enum freenect_depth_format
|
static int |
FREENECT_DEPTH_11BIT_PACKED
enum freenect_depth_format
|
static int |
FREENECT_DEPTH_DUMMY
enum freenect_depth_format
|
static int |
FREENECT_DEPTH_MM
enum freenect_depth_format
|
static int |
FREENECT_DEPTH_MM_MAX_VALUE
Maximum value that a uint16_t pixel will take on in the buffer of any of the FREENECT_DEPTH_MM or FREENECT_DEPTH_REGISTERED frame callbacks
|
static int |
FREENECT_DEPTH_MM_NO_VALUE
Value indicating that this pixel has no data, when using FREENECT_DEPTH_MM or FREENECT_DEPTH_REGISTERED depth modes
|
static int |
FREENECT_DEPTH_RAW_MAX_VALUE
Maximum value that a uint16_t pixel will take on in the buffer of any of the FREENECT_DEPTH_11BIT, FREENECT_DEPTH_10BIT, FREENECT_DEPTH_11BIT_PACKED, or FREENECT_DEPTH_10BIT_PACKED frame callbacks
|
static int |
FREENECT_DEPTH_RAW_NO_VALUE
Value indicating that this pixel has no data, when using FREENECT_DEPTH_11BIT, FREENECT_DEPTH_10BIT, FREENECT_DEPTH_11BIT_PACKED, or FREENECT_DEPTH_10BIT_PACKED
|
static int |
FREENECT_DEPTH_REGISTERED
enum freenect_depth_format
|
static int |
FREENECT_DEVICE_AUDIO
enum freenect_device_flags
|
static int |
FREENECT_DEVICE_CAMERA
enum freenect_device_flags
|
static int |
FREENECT_DEVICE_MOTOR
enum freenect_device_flags
|
static int |
FREENECT_LOG_DEBUG
enum freenect_loglevel
|
static int |
FREENECT_LOG_ERROR
enum freenect_loglevel
|
static int |
FREENECT_LOG_FATAL
enum freenect_loglevel
|
static int |
FREENECT_LOG_FLOOD
enum freenect_loglevel
|
static int |
FREENECT_LOG_INFO
enum freenect_loglevel
|
static int |
FREENECT_LOG_NOTICE
enum freenect_loglevel
|
static int |
FREENECT_LOG_SPEW
enum freenect_loglevel
|
static int |
FREENECT_LOG_WARNING
enum freenect_loglevel
|
static int |
FREENECT_MIRROR_DEPTH
enum freenect_flag
|
static int |
FREENECT_MIRROR_VIDEO
enum freenect_flag
|
static int |
FREENECT_NEAR_MODE
enum freenect_flag
|
static int |
FREENECT_OFF
enum freenect_flag_value
|
static int |
FREENECT_ON
enum freenect_flag_value
|
static int |
FREENECT_RAW_COLOR
enum freenect_flag
|
static int |
FREENECT_RESOLUTION_DUMMY
enum freenect_resolution
|
static int |
FREENECT_RESOLUTION_HIGH
enum freenect_resolution
|
static int |
FREENECT_RESOLUTION_LOW
enum freenect_resolution
|
static int |
FREENECT_RESOLUTION_MEDIUM
enum freenect_resolution
|
static int |
FREENECT_VIDEO_BAYER
enum freenect_video_format
|
static int |
FREENECT_VIDEO_DUMMY
enum freenect_video_format
|
static int |
FREENECT_VIDEO_IR_10BIT
enum freenect_video_format
|
static int |
FREENECT_VIDEO_IR_10BIT_PACKED
enum freenect_video_format
|
static int |
FREENECT_VIDEO_IR_8BIT
enum freenect_video_format
|
static int |
FREENECT_VIDEO_RGB
enum freenect_video_format
|
static int |
FREENECT_VIDEO_YUV_RAW
enum freenect_video_format
|
static int |
FREENECT_VIDEO_YUV_RGB
enum freenect_video_format
|
static int |
LED_BLINK_GREEN
enum freenect_led_options
|
static int |
LED_BLINK_RED_YELLOW
enum freenect_led_options
|
static int |
LED_GREEN
enum freenect_led_options
|
static int |
LED_OFF
enum freenect_led_options
|
static int |
LED_RED
enum freenect_led_options
|
static int |
LED_YELLOW
enum freenect_led_options
|
static int |
TILT_STATUS_LIMIT
enum freenect_tilt_status_code
|
static int |
TILT_STATUS_MOVING
enum freenect_tilt_status_code
|
static int |
TILT_STATUS_STOPPED
enum freenect_tilt_status_code
|
Constructor and Description |
---|
freenect() |
Modifier and Type | Method and Description |
---|---|
static void |
freenect_camera_to_world(freenect_device dev,
int cx,
int cy,
int wz,
double[] wx,
double[] wy) |
static void |
freenect_camera_to_world(freenect_device dev,
int cx,
int cy,
int wz,
DoubleBuffer wx,
DoubleBuffer wy) |
static void |
freenect_camera_to_world(freenect_device dev,
int cx,
int cy,
int wz,
DoublePointer wx,
DoublePointer wy) |
static int |
freenect_close_device(freenect_device dev)
Closes a device that is currently open
|
static freenect_registration |
freenect_copy_registration(freenect_device dev) |
static int |
freenect_destroy_registration(freenect_registration reg) |
static int |
freenect_enabled_subdevices(freenect_context ctx)
Returns the devices that are enabled after calls to freenect_open_device()
On newer kinects the motor and audio are automatically disabled for now
|
static freenect_frame_mode |
freenect_find_depth_mode(int res,
int fmt)
Convenience function to return a mode descriptor matching the
specified resolution and depth camera pixel format, if one exists.
|
static freenect_frame_mode |
freenect_find_video_mode(int res,
int fmt)
Convenience function to return a mode descriptor matching the
specified resolution and video camera pixel format, if one exists.
|
static void |
freenect_free_device_attributes(freenect_device_attributes attribute_list)
Free the linked list produced by freenect_list_device_attributes().
|
static freenect_frame_mode |
freenect_get_current_depth_mode(freenect_device dev)
Get the frame descriptor of the current depth mode for the specified
freenect device.
|
static freenect_frame_mode |
freenect_get_current_video_mode(freenect_device dev)
Get the frame descriptor of the current video mode for the specified
freenect device.
|
static int |
freenect_get_depth_mode_count()
Get the number of depth camera modes supported by the driver.
|
static freenect_frame_mode |
freenect_get_depth_mode(int mode_num)
Get the frame descriptor of the nth supported depth mode for the
depth camera.
|
static int |
freenect_get_ir_brightness(freenect_device dev)
Returns the brightness of the IR sensor.
|
static void |
freenect_get_mks_accel(freenect_raw_tilt_state state,
double[] x,
double[] y,
double[] z) |
static void |
freenect_get_mks_accel(freenect_raw_tilt_state state,
DoubleBuffer x,
DoubleBuffer y,
DoubleBuffer z) |
static void |
freenect_get_mks_accel(freenect_raw_tilt_state state,
DoublePointer x,
DoublePointer y,
DoublePointer z)
Get the axis-based gravity adjusted accelerometer state, as laid
out via the accelerometer data sheet, which is available at
http://www.kionix.com/Product%20Sheets/KXSD9%20Product%20Brief.pdf
|
static double |
freenect_get_tilt_degs(freenect_raw_tilt_state state)
Return the tilt state, in degrees with respect to the horizon
|
static freenect_raw_tilt_state |
freenect_get_tilt_state(freenect_device dev)
Retrieve the tilt state from a device
|
static int |
freenect_get_tilt_status(freenect_raw_tilt_state state)
Return the movement state of the tilt motor (moving, stopped, etc...)
|
static Pointer |
freenect_get_user(freenect_device dev)
Retrieve the pointer to user data from the device struct
|
static int |
freenect_get_video_mode_count()
Get the number of video camera modes supported by the driver.
|
static freenect_frame_mode |
freenect_get_video_mode(int mode_num)
Get the frame descriptor of the nth supported video mode for the
video camera.
|
static int |
freenect_init(freenect_context ctx,
freenect_usb_context usb_ctx) |
static int |
freenect_init(PointerPointer ctx,
freenect_usb_context usb_ctx)
Initialize a freenect context and do any setup required for
platform specific USB libraries.
|
static int |
freenect_list_device_attributes(freenect_context ctx,
freenect_device_attributes attribute_list) |
static int |
freenect_list_device_attributes(freenect_context ctx,
PointerPointer attribute_list)
Scans for kinect devices and produces a linked list of their attributes
(namely, serial numbers), returning the number of devices.
|
static void |
freenect_map_rgb_to_depth(freenect_device dev,
short[] depth_mm,
byte[] rgb_raw,
byte[] rgb_registered) |
static void |
freenect_map_rgb_to_depth(freenect_device dev,
ShortBuffer depth_mm,
ByteBuffer rgb_raw,
ByteBuffer rgb_registered) |
static void |
freenect_map_rgb_to_depth(freenect_device dev,
ShortPointer depth_mm,
BytePointer rgb_raw,
BytePointer rgb_registered) |
static int |
freenect_num_devices(freenect_context ctx)
Return the number of kinect devices currently connected to the
system
|
static int |
freenect_open_device_by_camera_serial(freenect_context ctx,
freenect_device dev,
BytePointer camera_serial) |
static int |
freenect_open_device_by_camera_serial(freenect_context ctx,
freenect_device dev,
String camera_serial) |
static int |
freenect_open_device_by_camera_serial(freenect_context ctx,
PointerPointer dev,
BytePointer camera_serial)
Opens a kinect device (via a context) associated with a particular camera
subdevice serial number.
|
static int |
freenect_open_device(freenect_context ctx,
freenect_device dev,
int index) |
static int |
freenect_open_device(freenect_context ctx,
PointerPointer dev,
int index)
Opens a kinect device via a context.
|
static int |
freenect_process_events_timeout(freenect_context ctx,
freenect.timeval timeout)
Calls the platform specific usb event processor until either an event occurs
or the timeout parameter time has passed.
|
static int |
freenect_process_events(freenect_context ctx)
Calls the platform specific usb event processor
|
static void |
freenect_select_subdevices(freenect_context ctx,
int subdevs)
Set which subdevices any subsequent calls to freenect_open_device()
should open.
|
static int |
freenect_set_depth_buffer(freenect_device dev,
Pointer buf)
Set the buffer to store depth information to.
|
static void |
freenect_set_depth_callback(freenect_device dev,
freenect_depth_cb cb)
Set callback for depth information received event
|
static void |
freenect_set_depth_chunk_callback(freenect_device dev,
freenect_chunk_cb cb)
Set callback for depth chunk processing
|
static int |
freenect_set_depth_mode(freenect_device dev,
freenect_frame_mode mode)
Sets the current depth mode for the specified device.
|
static int |
freenect_set_flag(freenect_device dev,
int flag,
int value)
Enables or disables the specified flag.
|
static void |
freenect_set_fw_address_k4w(freenect_context ctx,
byte[] fw_ptr,
int num_bytes) |
static void |
freenect_set_fw_address_k4w(freenect_context ctx,
ByteBuffer fw_ptr,
int num_bytes) |
static void |
freenect_set_fw_address_k4w(freenect_context ctx,
BytePointer fw_ptr,
int num_bytes)
Allows the user to specify a pointer to the audio firmware in memory for the K4W Kinect
|
static void |
freenect_set_fw_address_nui(freenect_context ctx,
byte[] fw_ptr,
int num_bytes) |
static void |
freenect_set_fw_address_nui(freenect_context ctx,
ByteBuffer fw_ptr,
int num_bytes) |
static void |
freenect_set_fw_address_nui(freenect_context ctx,
BytePointer fw_ptr,
int num_bytes)
Allows the user to specify a pointer to the audio firmware in memory for the Xbox 360 Kinect
|
static int |
freenect_set_ir_brightness(freenect_device dev,
short brightness)
Sets the brightness of the IR sensor.
|
static int |
freenect_set_led(freenect_device dev,
int option)
Set the state of the LED.
|
static void |
freenect_set_log_callback(freenect_context ctx,
freenect_log_cb cb)
Callback for log messages (i.e.
|
static void |
freenect_set_log_level(freenect_context ctx,
int level)
Set the log level for the specified freenect context
|
static int |
freenect_set_tilt_degs(freenect_device dev,
double angle)
Set the tilt state of the device, in degrees with respect to the
horizon.
|
static void |
freenect_set_user(freenect_device dev,
Pointer user)
Set the device user data, for passing generic information into
callbacks
|
static int |
freenect_set_video_buffer(freenect_device dev,
Pointer buf)
Set the buffer to store depth information to.
|
static void |
freenect_set_video_callback(freenect_device dev,
freenect_video_cb cb)
Set callback for video information received event
|
static void |
freenect_set_video_chunk_callback(freenect_device dev,
freenect_chunk_cb cb)
Set callback for video chunk processing
|
static int |
freenect_set_video_mode(freenect_device dev,
freenect_frame_mode mode)
Sets the current video mode for the specified device.
|
static int |
freenect_shutdown(freenect_context ctx)
Closes the device if it is open, and frees the context
|
static int |
freenect_start_depth(freenect_device dev)
Start the depth information stream for a device.
|
static int |
freenect_start_video(freenect_device dev)
Start the video information stream for a device.
|
static int |
freenect_stop_depth(freenect_device dev)
Stop the depth information stream for a device
|
static int |
freenect_stop_video(freenect_device dev)
Stop the video information stream for a device
|
static int |
freenect_supported_subdevices()
Answer which subdevices this library supports.
|
static int |
freenect_sync_camera_to_world(int cx,
int cy,
int wz,
double[] wx,
double[] wy,
int index) |
static int |
freenect_sync_camera_to_world(int cx,
int cy,
int wz,
DoubleBuffer wx,
DoubleBuffer wy,
int index) |
static int |
freenect_sync_camera_to_world(int cx,
int cy,
int wz,
DoublePointer wx,
DoublePointer wy,
int index) |
static int |
freenect_sync_get_depth_with_res(Pointer depth,
int[] timestamp,
int index,
int res,
int fmt) |
static int |
freenect_sync_get_depth_with_res(Pointer depth,
IntBuffer timestamp,
int index,
int res,
int fmt) |
static int |
freenect_sync_get_depth_with_res(Pointer depth,
IntPointer timestamp,
int index,
int res,
int fmt) |
static int |
freenect_sync_get_depth_with_res(PointerPointer depth,
IntPointer timestamp,
int index,
int res,
int fmt) |
static int |
freenect_sync_get_depth(Pointer depth,
int[] timestamp,
int index,
int fmt) |
static int |
freenect_sync_get_depth(Pointer depth,
IntBuffer timestamp,
int index,
int fmt) |
static int |
freenect_sync_get_depth(Pointer depth,
IntPointer timestamp,
int index,
int fmt) |
static int |
freenect_sync_get_depth(PointerPointer depth,
IntPointer timestamp,
int index,
int fmt) |
static int |
freenect_sync_get_tilt_state(freenect_raw_tilt_state state,
int index) |
static int |
freenect_sync_get_tilt_state(PointerPointer state,
int index) |
static int |
freenect_sync_get_video_with_res(Pointer video,
int[] timestamp,
int index,
int res,
int fmt) |
static int |
freenect_sync_get_video_with_res(Pointer video,
IntBuffer timestamp,
int index,
int res,
int fmt) |
static int |
freenect_sync_get_video_with_res(Pointer video,
IntPointer timestamp,
int index,
int res,
int fmt) |
static int |
freenect_sync_get_video_with_res(PointerPointer video,
IntPointer timestamp,
int index,
int res,
int fmt)
DLLExport information for windows, set to nothing on other platforms
|
static int |
freenect_sync_get_video(Pointer video,
int[] timestamp,
int index,
int fmt) |
static int |
freenect_sync_get_video(Pointer video,
IntBuffer timestamp,
int index,
int fmt) |
static int |
freenect_sync_get_video(Pointer video,
IntPointer timestamp,
int index,
int fmt) |
static int |
freenect_sync_get_video(PointerPointer video,
IntPointer timestamp,
int index,
int fmt) |
static int |
freenect_sync_set_led(int led,
int index) |
static int |
freenect_sync_set_tilt_degs(int angle,
int index) |
static void |
freenect_sync_stop() |
static int |
freenect_update_tilt_state(freenect_device dev)
Updates the accelerometer state using a blocking control message
call.
|
public static final int FREENECT_COUNTS_PER_G
public static final int FREENECT_DEPTH_MM_MAX_VALUE
public static final int FREENECT_DEPTH_MM_NO_VALUE
public static final int FREENECT_DEPTH_RAW_MAX_VALUE
public static final int FREENECT_DEPTH_RAW_NO_VALUE
public static final int FREENECT_DEVICE_MOTOR
public static final int FREENECT_DEVICE_CAMERA
public static final int FREENECT_DEVICE_AUDIO
public static final int FREENECT_RESOLUTION_LOW
public static final int FREENECT_RESOLUTION_MEDIUM
public static final int FREENECT_RESOLUTION_HIGH
public static final int FREENECT_RESOLUTION_DUMMY
public static final int FREENECT_VIDEO_RGB
public static final int FREENECT_VIDEO_BAYER
public static final int FREENECT_VIDEO_IR_8BIT
public static final int FREENECT_VIDEO_IR_10BIT
public static final int FREENECT_VIDEO_IR_10BIT_PACKED
public static final int FREENECT_VIDEO_YUV_RGB
public static final int FREENECT_VIDEO_YUV_RAW
public static final int FREENECT_VIDEO_DUMMY
public static final int FREENECT_DEPTH_11BIT
public static final int FREENECT_DEPTH_10BIT
public static final int FREENECT_DEPTH_11BIT_PACKED
public static final int FREENECT_DEPTH_10BIT_PACKED
public static final int FREENECT_DEPTH_REGISTERED
public static final int FREENECT_DEPTH_MM
public static final int FREENECT_DEPTH_DUMMY
public static final int FREENECT_AUTO_EXPOSURE
public static final int FREENECT_AUTO_WHITE_BALANCE
public static final int FREENECT_RAW_COLOR
public static final int FREENECT_MIRROR_DEPTH
public static final int FREENECT_MIRROR_VIDEO
public static final int FREENECT_NEAR_MODE
public static final int FREENECT_OFF
public static final int FREENECT_ON
public static final int LED_OFF
public static final int LED_GREEN
public static final int LED_RED
public static final int LED_YELLOW
public static final int LED_BLINK_GREEN
public static final int LED_BLINK_RED_YELLOW
public static final int TILT_STATUS_STOPPED
public static final int TILT_STATUS_LIMIT
public static final int TILT_STATUS_MOVING
public static final int FREENECT_LOG_FATAL
public static final int FREENECT_LOG_ERROR
public static final int FREENECT_LOG_WARNING
public static final int FREENECT_LOG_NOTICE
public static final int FREENECT_LOG_INFO
public static final int FREENECT_LOG_DEBUG
public static final int FREENECT_LOG_SPEW
public static final int FREENECT_LOG_FLOOD
public static int freenect_init(@Cast(value="freenect_context**") PointerPointer ctx, freenect_usb_context usb_ctx)
ctx
- Address of pointer to freenect context struct to allocate and initializeusb_ctx
- USB context to initialize. Can be NULL if not using multiple contexts.public static int freenect_init(@ByPtrPtr freenect_context ctx, freenect_usb_context usb_ctx)
public static int freenect_shutdown(freenect_context ctx)
ctx
- freenect context to close/freepublic static void freenect_set_log_level(freenect_context ctx, @Cast(value="freenect_loglevel") int level)
ctx
- context to set log level forlevel
- log level to use (see freenect_loglevel enum)public static void freenect_set_log_callback(freenect_context ctx, freenect_log_cb cb)
ctx
- context to set log callback forcb
- callback function pointerpublic static int freenect_process_events(freenect_context ctx)
ctx
- context to process events forpublic static int freenect_process_events_timeout(freenect_context ctx, freenect.timeval timeout)
ctx
- Context to process events fortimeout
- Pointer to a timeval containing the maximum amount of time to block waiting for events, or zero for nonblocking modepublic static int freenect_num_devices(freenect_context ctx)
ctx
- Context to access device count throughpublic static int freenect_list_device_attributes(freenect_context ctx, @Cast(value="freenect_device_attributes**") PointerPointer attribute_list)
ctx
- Context to scan for kinect devices withattribute_list
- Pointer to where this function will store the resultant linked listpublic static int freenect_list_device_attributes(freenect_context ctx, @ByPtrPtr freenect_device_attributes attribute_list)
public static void freenect_free_device_attributes(freenect_device_attributes attribute_list)
attribute_list
- Linked list of attributes to free.public static int freenect_supported_subdevices()
public static void freenect_select_subdevices(freenect_context ctx, @Cast(value="freenect_device_flags") int subdevs)
ctx
- Context to set future subdevice selection forsubdevs
- Flags representing the subdevices to select@Cast(value="freenect_device_flags") public static int freenect_enabled_subdevices(freenect_context ctx)
ctx
- Context to set future subdevice selection forpublic static int freenect_open_device(freenect_context ctx, @Cast(value="freenect_device**") PointerPointer dev, int index)
ctx
- Context to open device throughdev
- Device structure to assign opened device toindex
- Index of the device on the buspublic static int freenect_open_device(freenect_context ctx, @ByPtrPtr freenect_device dev, int index)
public static int freenect_open_device_by_camera_serial(freenect_context ctx, @Cast(value="freenect_device**") PointerPointer dev, @Cast(value="const char*") BytePointer camera_serial)
ctx
- Context to open device throughdev
- Device structure to assign opened device tocamera_serial
- Null-terminated ASCII string containing the serial number of the camera subdevice in the device to openpublic static int freenect_open_device_by_camera_serial(freenect_context ctx, @ByPtrPtr freenect_device dev, @Cast(value="const char*") BytePointer camera_serial)
public static int freenect_open_device_by_camera_serial(freenect_context ctx, @ByPtrPtr freenect_device dev, String camera_serial)
public static int freenect_close_device(freenect_device dev)
dev
- Device to closepublic static void freenect_set_user(freenect_device dev, Pointer user)
dev
- Device to attach user data touser
- User data to attachpublic static Pointer freenect_get_user(freenect_device dev)
dev
- Device from which to get user datapublic static void freenect_set_depth_callback(freenect_device dev, freenect_depth_cb cb)
dev
- Device to set callback forcb
- Function pointer for processing depth informationpublic static void freenect_set_video_callback(freenect_device dev, freenect_video_cb cb)
dev
- Device to set callback forcb
- Function pointer for processing video informationpublic static void freenect_set_depth_chunk_callback(freenect_device dev, freenect_chunk_cb cb)
dev
- Device to set callback forcb
- Function pointer for processing depth chunkpublic static void freenect_set_video_chunk_callback(freenect_device dev, freenect_chunk_cb cb)
dev
- Device to set callback forcb
- Function pointer for processing video chunkpublic static int freenect_set_depth_buffer(freenect_device dev, Pointer buf)
dev
- Device to set depth buffer for.buf
- Buffer to store depth information to.public static int freenect_set_video_buffer(freenect_device dev, Pointer buf)
dev
- Device to set video buffer for.buf
- Buffer to store video information to.public static int freenect_start_depth(freenect_device dev)
dev
- Device to start depth information stream for.public static int freenect_start_video(freenect_device dev)
dev
- Device to start video information stream for.public static int freenect_stop_depth(freenect_device dev)
dev
- Device to stop depth information stream on.public static int freenect_stop_video(freenect_device dev)
dev
- Device to stop video information stream on.public static int freenect_update_tilt_state(freenect_device dev)
dev
- Device to get accelerometer data frompublic static freenect_raw_tilt_state freenect_get_tilt_state(freenect_device dev)
dev
- Device to retrieve tilt state frompublic static double freenect_get_tilt_degs(freenect_raw_tilt_state state)
state
- The tilt state struct from a devicepublic static int freenect_set_tilt_degs(freenect_device dev, double angle)
dev
- Device to set tilt stateangle
- Angle the device should tilt to@Cast(value="freenect_tilt_status_code") public static int freenect_get_tilt_status(freenect_raw_tilt_state state)
state
- Raw state struct to get the tilt status code frompublic static int freenect_set_led(freenect_device dev, @Cast(value="freenect_led_options") int option)
dev
- Device to set the LED stateoption
- LED state to set on device. See freenect_led_options enum.public static void freenect_get_mks_accel(freenect_raw_tilt_state state, DoublePointer x, DoublePointer y, DoublePointer z)
state
- State to extract accelerometer data fromx
- Stores X-axis accelerometer statey
- Stores Y-axis accelerometer statez
- Stores Z-axis accelerometer statepublic static void freenect_get_mks_accel(freenect_raw_tilt_state state, DoubleBuffer x, DoubleBuffer y, DoubleBuffer z)
public static void freenect_get_mks_accel(freenect_raw_tilt_state state, double[] x, double[] y, double[] z)
public static int freenect_get_video_mode_count()
@ByVal public static freenect_frame_mode freenect_get_video_mode(int mode_num)
mode_num
- Which of the supported modes to return information about@ByVal public static freenect_frame_mode freenect_get_current_video_mode(freenect_device dev)
dev
- Which device to return the currently-set video mode for@ByVal public static freenect_frame_mode freenect_find_video_mode(@Cast(value="freenect_resolution") int res, @Cast(value="freenect_video_format") int fmt)
res
- Resolution desiredfmt
- Pixel format desiredpublic static int freenect_set_video_mode(freenect_device dev, @ByVal freenect_frame_mode mode)
dev
- Device for which to set the video modemode
- Frame mode to setpublic static int freenect_get_depth_mode_count()
@ByVal public static freenect_frame_mode freenect_get_depth_mode(int mode_num)
mode_num
- Which of the supported modes to return information about@ByVal public static freenect_frame_mode freenect_get_current_depth_mode(freenect_device dev)
dev
- Which device to return the currently-set depth mode for@ByVal public static freenect_frame_mode freenect_find_depth_mode(@Cast(value="freenect_resolution") int res, @Cast(value="freenect_depth_format") int fmt)
res
- Resolution desiredfmt
- Pixel format desiredpublic static int freenect_set_depth_mode(freenect_device dev, @Const @ByVal freenect_frame_mode mode)
dev
- Device for which to set the depth modemode
- Frame mode to setpublic static int freenect_set_flag(freenect_device dev, @Cast(value="freenect_flag") int flag, @Cast(value="freenect_flag_value") int value)
flag
- Feature to setvalue
- FREENECT_OFF
or FREENECT_ON
public static int freenect_get_ir_brightness(freenect_device dev)
dev
- Device to get IR brightnesspublic static int freenect_set_ir_brightness(freenect_device dev, @Cast(value="uint16_t") short brightness)
dev
- Device to set IR brightnessbrighness
- Brightness value in range 1 - 50public static void freenect_set_fw_address_nui(freenect_context ctx, @Cast(value="unsigned char*") BytePointer fw_ptr, @Cast(value="unsigned int") int num_bytes)
ctx
- Context to open device throughfw_ptr
- Pointer to audio firmware loaded in memorynum_bytes
- The size of the firmware in bytespublic static void freenect_set_fw_address_nui(freenect_context ctx, @Cast(value="unsigned char*") ByteBuffer fw_ptr, @Cast(value="unsigned int") int num_bytes)
public static void freenect_set_fw_address_nui(freenect_context ctx, @Cast(value="unsigned char*") byte[] fw_ptr, @Cast(value="unsigned int") int num_bytes)
public static void freenect_set_fw_address_k4w(freenect_context ctx, @Cast(value="unsigned char*") BytePointer fw_ptr, @Cast(value="unsigned int") int num_bytes)
ctx
- Context to open device throughfw_ptr
- Pointer to audio firmware loaded in memorynum_bytes
- The size of the firmware in bytespublic static void freenect_set_fw_address_k4w(freenect_context ctx, @Cast(value="unsigned char*") ByteBuffer fw_ptr, @Cast(value="unsigned int") int num_bytes)
public static void freenect_set_fw_address_k4w(freenect_context ctx, @Cast(value="unsigned char*") byte[] fw_ptr, @Cast(value="unsigned int") int num_bytes)
@ByVal public static freenect_registration freenect_copy_registration(freenect_device dev)
public static int freenect_destroy_registration(freenect_registration reg)
public static void freenect_camera_to_world(freenect_device dev, int cx, int cy, int wz, DoublePointer wx, DoublePointer wy)
public static void freenect_camera_to_world(freenect_device dev, int cx, int cy, int wz, DoubleBuffer wx, DoubleBuffer wy)
public static void freenect_camera_to_world(freenect_device dev, int cx, int cy, int wz, double[] wx, double[] wy)
public static void freenect_map_rgb_to_depth(freenect_device dev, @Cast(value="uint16_t*") ShortPointer depth_mm, @Cast(value="uint8_t*") BytePointer rgb_raw, @Cast(value="uint8_t*") BytePointer rgb_registered)
public static void freenect_map_rgb_to_depth(freenect_device dev, @Cast(value="uint16_t*") ShortBuffer depth_mm, @Cast(value="uint8_t*") ByteBuffer rgb_raw, @Cast(value="uint8_t*") ByteBuffer rgb_registered)
public static void freenect_map_rgb_to_depth(freenect_device dev, @Cast(value="uint16_t*") short[] depth_mm, @Cast(value="uint8_t*") byte[] rgb_raw, @Cast(value="uint8_t*") byte[] rgb_registered)
public static int freenect_sync_get_video_with_res(@Cast(value="void**") PointerPointer video, @Cast(value="uint32_t*") IntPointer timestamp, int index, @Cast(value="freenect_resolution") int res, @Cast(value="freenect_video_format") int fmt)
public static int freenect_sync_get_video_with_res(@Cast(value="void**") @ByPtrPtr Pointer video, @Cast(value="uint32_t*") IntPointer timestamp, int index, @Cast(value="freenect_resolution") int res, @Cast(value="freenect_video_format") int fmt)
public static int freenect_sync_get_video_with_res(@Cast(value="void**") @ByPtrPtr Pointer video, @Cast(value="uint32_t*") IntBuffer timestamp, int index, @Cast(value="freenect_resolution") int res, @Cast(value="freenect_video_format") int fmt)
public static int freenect_sync_get_video_with_res(@Cast(value="void**") @ByPtrPtr Pointer video, @Cast(value="uint32_t*") int[] timestamp, int index, @Cast(value="freenect_resolution") int res, @Cast(value="freenect_video_format") int fmt)
public static int freenect_sync_get_video(@Cast(value="void**") PointerPointer video, @Cast(value="uint32_t*") IntPointer timestamp, int index, @Cast(value="freenect_video_format") int fmt)
public static int freenect_sync_get_video(@Cast(value="void**") @ByPtrPtr Pointer video, @Cast(value="uint32_t*") IntPointer timestamp, int index, @Cast(value="freenect_video_format") int fmt)
public static int freenect_sync_get_video(@Cast(value="void**") @ByPtrPtr Pointer video, @Cast(value="uint32_t*") IntBuffer timestamp, int index, @Cast(value="freenect_video_format") int fmt)
public static int freenect_sync_get_video(@Cast(value="void**") @ByPtrPtr Pointer video, @Cast(value="uint32_t*") int[] timestamp, int index, @Cast(value="freenect_video_format") int fmt)
public static int freenect_sync_get_depth_with_res(@Cast(value="void**") PointerPointer depth, @Cast(value="uint32_t*") IntPointer timestamp, int index, @Cast(value="freenect_resolution") int res, @Cast(value="freenect_depth_format") int fmt)
public static int freenect_sync_get_depth_with_res(@Cast(value="void**") @ByPtrPtr Pointer depth, @Cast(value="uint32_t*") IntPointer timestamp, int index, @Cast(value="freenect_resolution") int res, @Cast(value="freenect_depth_format") int fmt)
public static int freenect_sync_get_depth_with_res(@Cast(value="void**") @ByPtrPtr Pointer depth, @Cast(value="uint32_t*") IntBuffer timestamp, int index, @Cast(value="freenect_resolution") int res, @Cast(value="freenect_depth_format") int fmt)
public static int freenect_sync_get_depth_with_res(@Cast(value="void**") @ByPtrPtr Pointer depth, @Cast(value="uint32_t*") int[] timestamp, int index, @Cast(value="freenect_resolution") int res, @Cast(value="freenect_depth_format") int fmt)
public static int freenect_sync_get_depth(@Cast(value="void**") PointerPointer depth, @Cast(value="uint32_t*") IntPointer timestamp, int index, @Cast(value="freenect_depth_format") int fmt)
public static int freenect_sync_get_depth(@Cast(value="void**") @ByPtrPtr Pointer depth, @Cast(value="uint32_t*") IntPointer timestamp, int index, @Cast(value="freenect_depth_format") int fmt)
public static int freenect_sync_get_depth(@Cast(value="void**") @ByPtrPtr Pointer depth, @Cast(value="uint32_t*") IntBuffer timestamp, int index, @Cast(value="freenect_depth_format") int fmt)
public static int freenect_sync_get_depth(@Cast(value="void**") @ByPtrPtr Pointer depth, @Cast(value="uint32_t*") int[] timestamp, int index, @Cast(value="freenect_depth_format") int fmt)
public static int freenect_sync_set_tilt_degs(int angle, int index)
public static int freenect_sync_get_tilt_state(@Cast(value="freenect_raw_tilt_state**") PointerPointer state, int index)
public static int freenect_sync_get_tilt_state(@ByPtrPtr freenect_raw_tilt_state state, int index)
public static int freenect_sync_set_led(@Cast(value="freenect_led_options") int led, int index)
public static int freenect_sync_camera_to_world(int cx, int cy, int wz, DoublePointer wx, DoublePointer wy, int index)
public static int freenect_sync_camera_to_world(int cx, int cy, int wz, DoubleBuffer wx, DoubleBuffer wy, int index)
public static int freenect_sync_camera_to_world(int cx, int cy, int wz, double[] wx, double[] wy, int index)
public static void freenect_sync_stop()
Copyright © 2023. All rights reserved.