35 #define FN_INTERNAL __attribute__ ((visibility ("hidden"))) 64 #define LL_FATAL FREENECT_LOG_FATAL 65 #define LL_ERROR FREENECT_LOG_ERROR 66 #define LL_WARNING FREENECT_LOG_WARNING 67 #define LL_NOTICE FREENECT_LOG_NOTICE 68 #define LL_INFO FREENECT_LOG_INFO 69 #define LL_DEBUG FREENECT_LOG_DEBUG 70 #define LL_SPEW FREENECT_LOG_SPEW 71 #define LL_FLOOD FREENECT_LOG_FLOOD 82 #define FN_LOG(level, ...) fn_log(ctx, level, __VA_ARGS__) 84 #define FN_FATAL(...) FN_LOG(LL_FATAL, __VA_ARGS__) 85 #define FN_ERROR(...) FN_LOG(LL_ERROR, __VA_ARGS__) 86 #define FN_WARNING(...) FN_LOG(LL_WARNING, __VA_ARGS__) 87 #define FN_NOTICE(...) FN_LOG(LL_NOTICE, __VA_ARGS__) 88 #define FN_INFO(...) FN_LOG(LL_INFO, __VA_ARGS__) 89 #define FN_DEBUG(...) FN_LOG(LL_DEBUG, __VA_ARGS__) 90 #define FN_SPEW(...) FN_LOG(LL_SPEW, __VA_ARGS__) 91 #define FN_FLOOD(...) FN_LOG(LL_FLOOD, __VA_ARGS__) 96 return (d<<8) | (d>>8);
100 return (d<<24) | ((d<<8)&0xFF0000) | ((d>>8)&0xFF00) | (d>>24);
109 conversion_union.s = s;
110 conversion_union.u =
fn_le16(conversion_union.u);
111 return conversion_union.s;
120 conversion_union.s = s;
121 conversion_union.u =
fn_le32(conversion_union.u);
122 return conversion_union.s;
125 #define fn_le16(x) (x) 126 #define fn_le32(x) (x) 127 #define fn_le16s(x) (x) 128 #define fn_le32s(x) (x) 131 #define DEPTH_PKTSIZE 1760 132 #define VIDEO_PKTSIZE 1920 134 #define DEPTH_PKTDSIZE (DEPTH_PKTSIZE-12) 135 #define VIDEO_PKTDSIZE (VIDEO_PKTSIZE-12) 137 #define VID_MICROSOFT 0x45e 138 #define PID_NUI_AUDIO 0x02ad 139 #define PID_NUI_CAMERA 0x02ae 140 #define PID_NUI_MOTOR 0x02b0 141 #define PID_K4W_CAMERA 0x02bf 146 #define PID_K4W_AUDIO 0x02be 147 #define PID_K4W_AUDIO_ALT_1 0x02c3 148 #define PID_K4W_AUDIO_ALT_2 0x02bb
void(* freenect_audio_in_cb)(freenect_device *dev, int num_samples, int32_t *mic1, int32_t *mic2, int32_t *mic3, int32_t *mic4, int16_t *cancelled, void *unknown)
freenect_chunk_cb depth_chunk_cb
freenect_device_flags enabled_subdevices
void(* freenect_audio_out_cb)(freenect_device *dev, freenect_sample_51 *samples, int *sample_count)
freenect_video_format video_format
freenect_context * parent
unsigned char * fn_fw_k4w_ptr
uint8_t out_window_parity
int device_does_motor_control_with_audio
freenect_registration registration
unsigned int fn_fw_k4w_size
freenect_depth_format depth_format
void fn_log(freenect_context *ctx, freenect_loglevel level, const char *fmt,...) __attribute__((format(printf
fnusb_isoc_stream video_isoc
freenect_resolution depth_resolution
void(* freenect_depth_cb)(freenect_device *dev, void *depth, uint32_t timestamp)
Typedef for depth image received event callbacks.
freenect_depth_cb depth_cb
uint8_t out_counter_within_window
fnusb_isoc_stream audio_in_isoc
Structure to represent a single 16-bit signed little-endian PCM sample.
FN_INTERNAL int fnusb_set_led_alt(libusb_device_handle *dev, freenect_context *ctx, freenect_led_options state)
freenect_loglevel
Enumeration of message logging levels.
int motor_control_with_audio_enabled
freenect_sample_51 * audio_out_ring
uint16_t out_weird_timestamp
void(* fnusb_iso_cb)(freenect_device *dev, uint8_t *buf, int len)
unsigned char * fn_fw_nui_ptr
freenect_raw_tilt_state raw_state
all data needed for depth->RGB mapping
void(* freenect_log_cb)(freenect_context *dev, freenect_loglevel level, const char *msg)
Typedef for logging callback functions.
typedef void(ONI_CALLBACK_TYPE *DeviceConnectedCallback)(const OniDeviceInfo *
static freenect_context * ctx
Data from the tilt motor and accelerometer.
unsigned int fn_fw_nui_size
freenect_loglevel log_level
freenect_resolution video_resolution
fnusb_isoc_stream depth_isoc
fnusb_isoc_stream audio_out_isoc
freenect_audio_out_cb audio_out_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_chunk_cb video_chunk_cb
void(* freenect_video_cb)(freenect_device *dev, void *video, uint32_t timestamp)
Typedef for video image received event callbacks.
int16_t * cancelled_buffer
freenect_video_cb video_cb
freenect_audio_in_cb audio_in_cb