32 #if defined(__APPLE__) 47 #define PKTS_PER_XFER 128 49 #define DEPTH_PKTBUF 2048 50 #define VIDEO_PKTBUF 2048 53 #define PKTS_PER_XFER 32 56 #define PKTS_PER_XFER 16 59 #define DEPTH_PKTBUF 1920 60 #define VIDEO_PKTBUF 1920
int fnusb_close_subdevices(freenect_device *dev)
int fnusb_shutdown(fnusb_ctx *ctx)
void freenect_usb_context
int fnusb_init(fnusb_ctx *ctx, freenect_usb_context *usb_ctx)
int fnusb_control(fnusb_dev *dev, uint8_t bmRequestType, uint8_t bRequest, uint16_t wValue, uint16_t wIndex, uint8_t *data, uint16_t wLength)
int fnusb_start_iso(fnusb_dev *dev, fnusb_isoc_stream *strm, fnusb_iso_cb cb, int ep, int xfers, int pkts, int len)
int fnusb_stop_iso(fnusb_dev *dev, fnusb_isoc_stream *strm)
libusb_device_handle * dev
void(* fnusb_iso_cb)(freenect_device *dev, uint8_t *buf, int len)
int fnusb_num_devices(fnusb_ctx *ctx)
static freenect_context * ctx
int fnusb_open_subdevices(freenect_device *dev, int index)
int fnusb_process_events_timeout(fnusb_ctx *ctx, struct timeval *timeout)
int fnusb_list_device_attributes(fnusb_ctx *ctx, struct freenect_device_attributes **attribute_list)
int fnusb_num_interfaces(fnusb_dev *dev)
int fnusb_process_events(fnusb_ctx *ctx)
struct libusb_transfer ** xfers
int fnusb_bulk(fnusb_dev *dev, uint8_t endpoint, uint8_t *data, int len, int *transferred)