#include <stdio.h>#include <stdlib.h>#include <unistd.h>#include <string.h>#include "libfreenect.h"#include <pthread.h>#include <arpa/inet.h>#include <signal.h>#include <math.h>
Go to the source code of this file.
Defines | |
| #define | AS3_BITMAPDATA_LEN 640 * 480 * 4 |
Functions | |
| void | depth_cb (freenect_device *dev, void *v_depth, uint32_t timestamp) |
| int | main (int argc, char **argv) |
| void | network_close () |
| void * | network_data (void *arg) |
| void * | network_depth (void *arg) |
| int | network_init () |
| void * | network_rgb (void *arg) |
| void | rgb_cb (freenect_device *dev, freenect_pixel *rgb, uint32_t timestamp) |
| void | send_policy_file (int child) |
Variables | |
| uint8_t | buf_depth [AS3_BITMAPDATA_LEN] |
| uint8_t | buf_rgb [AS3_BITMAPDATA_LEN] |
| char * | conf_ip = "127.0.0.1" |
| int | conf_port_data = 6003 |
| int | conf_port_depth = 6001 |
| int | conf_port_rgb = 6002 |
| int | data_child |
| int | data_connected = 0 |
| pthread_t | data_thread |
| int | depth_child |
| pthread_cond_t | depth_cond = PTHREAD_COND_INITIALIZER |
| int | depth_connected = 0 |
| pthread_mutex_t | depth_mutex = PTHREAD_MUTEX_INITIALIZER |
| pthread_t | depth_thread |
| int | die = 0 |
| freenect_context * | f_ctx |
| freenect_device * | f_dev |
| int | g_argc |
| char ** | g_argv |
| int | got_frames = 0 |
| int | psent = 0 |
| int | rgb_child |
| pthread_cond_t | rgb_cond = PTHREAD_COND_INITIALIZER |
| int | rgb_connected = 0 |
| pthread_mutex_t | rgb_mutex = PTHREAD_MUTEX_INITIALIZER |
| pthread_t | rgb_thread |
| int | s_data = -1 |
| int | s_depth = -1 |
| int | s_rgb = -1 |
| struct sockaddr_in si_depth si_rgb | si_data |
| uint16_t | t_gamma [2048] |
| #define AS3_BITMAPDATA_LEN 640 * 480 * 4 |
Definition at line 46 of file as3-server.c.
| void depth_cb | ( | freenect_device * | dev, | |
| void * | v_depth, | |||
| uint32_t | timestamp | |||
| ) |
Definition at line 301 of file as3-server.c.
| int main | ( | int | argc, | |
| char ** | argv | |||
| ) |
Definition at line 394 of file as3-server.c.
| void network_close | ( | ) |
Definition at line 290 of file as3-server.c.
| void* network_data | ( | void * | arg | ) |
Definition at line 143 of file as3-server.c.
| void* network_depth | ( | void * | arg | ) |
Definition at line 93 of file as3-server.c.
| int network_init | ( | ) |
Definition at line 182 of file as3-server.c.
| void* network_rgb | ( | void * | arg | ) |
Definition at line 118 of file as3-server.c.
| void rgb_cb | ( | freenect_device * | dev, | |
| freenect_pixel * | rgb, | |||
| uint32_t | timestamp | |||
| ) |
Definition at line 364 of file as3-server.c.
| void send_policy_file | ( | int | child | ) |
Definition at line 79 of file as3-server.c.
| uint8_t buf_depth[AS3_BITMAPDATA_LEN] |
Definition at line 62 of file as3-server.c.
| uint8_t buf_rgb[AS3_BITMAPDATA_LEN] |
Definition at line 63 of file as3-server.c.
| char* conf_ip = "127.0.0.1" |
Definition at line 54 of file as3-server.c.
| int conf_port_data = 6003 |
Definition at line 60 of file as3-server.c.
| int conf_port_depth = 6001 |
Definition at line 58 of file as3-server.c.
| int conf_port_rgb = 6002 |
Definition at line 59 of file as3-server.c.
| int data_child |
Definition at line 73 of file as3-server.c.
| int data_connected = 0 |
Definition at line 74 of file as3-server.c.
| pthread_t data_thread |
Definition at line 49 of file as3-server.c.
| int depth_child |
Definition at line 67 of file as3-server.c.
| pthread_cond_t depth_cond = PTHREAD_COND_INITIALIZER |
Definition at line 52 of file as3-server.c.
| int depth_connected = 0 |
Definition at line 68 of file as3-server.c.
| pthread_mutex_t depth_mutex = PTHREAD_MUTEX_INITIALIZER |
Definition at line 50 of file as3-server.c.
| pthread_t depth_thread |
Definition at line 49 of file as3-server.c.
| int die = 0 |
Definition at line 65 of file as3-server.c.
Definition at line 41 of file as3-server.c.
Definition at line 42 of file as3-server.c.
| int g_argc |
Definition at line 38 of file as3-server.c.
| char** g_argv |
Definition at line 39 of file as3-server.c.
| int got_frames = 0 |
Definition at line 44 of file as3-server.c.
| int psent = 0 |
Definition at line 77 of file as3-server.c.
| int rgb_child |
Definition at line 70 of file as3-server.c.
| pthread_cond_t rgb_cond = PTHREAD_COND_INITIALIZER |
Definition at line 53 of file as3-server.c.
| int rgb_connected = 0 |
Definition at line 71 of file as3-server.c.
| pthread_mutex_t rgb_mutex = PTHREAD_MUTEX_INITIALIZER |
Definition at line 51 of file as3-server.c.
| pthread_t rgb_thread |
Definition at line 49 of file as3-server.c.
| int s_data = -1 |
Definition at line 57 of file as3-server.c.
| int s_depth = -1 |
Definition at line 55 of file as3-server.c.
| int s_rgb = -1 |
Definition at line 56 of file as3-server.c.
| struct sockaddr_in si_depth si_rgb si_data |
Definition at line 48 of file as3-server.c.
| uint16_t t_gamma[2048] |
Definition at line 299 of file as3-server.c.