#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "freenect_internal.h"
Go to the source code of this file.
Classes | |
struct | cam_hdr |
struct | pkt_hdr |
Functions | |
static void | convert_packed_to_16bit (uint8_t *raw, uint16_t *frame, int vw) |
static void | depth_process (freenect_device *dev, uint8_t *pkt, int len) |
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) |
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_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. | |
static void | rgb_process (freenect_device *dev, uint8_t *pkt, int len) |
static int | send_cmd (freenect_device *dev, uint16_t cmd, void *cmdbuf, unsigned int cmd_len, void *replybuf, unsigned int reply_len) |
static int | stream_process (freenect_context *ctx, packet_stream *strm, uint8_t *pkt, int len) |
static int | write_register (freenect_device *dev, uint16_t reg, uint16_t data) |
Variables | |
struct caminit | inits [] |
const int | num_inits |
static void convert_packed_to_16bit | ( | uint8_t * | raw, | |
uint16_t * | frame, | |||
int | vw | |||
) | [inline, static] |
static void depth_process | ( | freenect_device * | dev, | |
uint8_t * | pkt, | |||
int | len | |||
) | [static] |
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 | |||
) |
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_start_depth | ( | freenect_device * | dev | ) |
int freenect_start_ir | ( | freenect_device * | dev | ) |
int freenect_start_rgb | ( | freenect_device * | dev | ) |
int freenect_stop_depth | ( | freenect_device * | dev | ) |
int freenect_stop_ir | ( | freenect_device * | dev | ) |
int freenect_stop_rgb | ( | freenect_device * | dev | ) |
static void rgb_process | ( | freenect_device * | dev, | |
uint8_t * | pkt, | |||
int | len | |||
) | [static] |
static int send_cmd | ( | freenect_device * | dev, | |
uint16_t | cmd, | |||
void * | cmdbuf, | |||
unsigned int | cmd_len, | |||
void * | replybuf, | |||
unsigned int | reply_len | |||
) | [static] |
static int stream_process | ( | freenect_context * | ctx, | |
packet_stream * | strm, | |||
uint8_t * | pkt, | |||
int | len | |||
) | [static] |
static int write_register | ( | freenect_device * | dev, | |
uint16_t | reg, | |||
uint16_t | data | |||
) | [static] |
const int num_inits |