#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include "libfreenect.h"
#include <pthread.h>
#include <GL/glut.h>
#include <math.h>
Go to the source code of this file.
Functions | |
void | chunk_cb (void *buffer, void *pkt_data, int pkt_num, int pkt_size, void *ud) |
void | depth_cb (freenect_device *dev, void *v_depth, uint32_t timestamp) |
void | DrawGLScene () |
void * | freenect_threadfunc (void *arg) |
void * | gl_threadfunc (void *arg) |
void | InitGL (int Width, int Height) |
void | keyPressed (unsigned char key, int x, int y) |
int | main (int argc, char **argv) |
void | ReSizeGLScene (int Width, int Height) |
Variables | |
uint8_t * | depth_front |
uint8_t * | depth_mid |
volatile int | die = 0 |
freenect_context * | f_ctx |
freenect_device * | f_dev |
int | freenect_angle = 0 |
int | freenect_led |
pthread_t | freenect_thread |
int | g_argc |
char ** | g_argv |
pthread_mutex_t | gl_backbuf_mutex = PTHREAD_MUTEX_INITIALIZER |
GLuint | gl_depth_tex |
pthread_cond_t | gl_frame_cond = PTHREAD_COND_INITIALIZER |
int | got_depth = 0 |
uint16_t | t_gamma [2048] |
int | window |
void chunk_cb | ( | void * | buffer, |
void * | pkt_data, | ||
int | pkt_num, | ||
int | pkt_size, | ||
void * | ud | ||
) |
Definition at line 78 of file chunkview.c.
void depth_cb | ( | freenect_device * | dev, |
void * | v_depth, | ||
uint32_t | timestamp | ||
) |
Definition at line 257 of file chunkview.c.
void DrawGLScene | ( | ) |
Definition at line 114 of file chunkview.c.
void* freenect_threadfunc | ( | void * | arg | ) |
Definition at line 308 of file chunkview.c.
void* gl_threadfunc | ( | void * | arg | ) |
Definition at line 230 of file chunkview.c.
void InitGL | ( | int | Width, |
int | Height | ||
) |
Definition at line 209 of file chunkview.c.
void keyPressed | ( | unsigned char | key, |
int | x, | ||
int | y | ||
) |
Definition at line 148 of file chunkview.c.
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 348 of file chunkview.c.
void ReSizeGLScene | ( | int | Width, |
int | Height | ||
) |
Definition at line 199 of file chunkview.c.
uint8_t * depth_front |
Definition at line 57 of file chunkview.c.
uint8_t* depth_mid |
Definition at line 57 of file chunkview.c.
volatile int die = 0 |
Definition at line 45 of file chunkview.c.
freenect_context* f_ctx |
Definition at line 61 of file chunkview.c.
freenect_device* f_dev |
Definition at line 62 of file chunkview.c.
int freenect_angle = 0 |
Definition at line 63 of file chunkview.c.
int freenect_led |
Definition at line 64 of file chunkview.c.
pthread_t freenect_thread |
Definition at line 44 of file chunkview.c.
int g_argc |
Definition at line 47 of file chunkview.c.
char** g_argv |
Definition at line 48 of file chunkview.c.
pthread_mutex_t gl_backbuf_mutex = PTHREAD_MUTEX_INITIALIZER |
Definition at line 52 of file chunkview.c.
GLuint gl_depth_tex |
Definition at line 59 of file chunkview.c.
pthread_cond_t gl_frame_cond = PTHREAD_COND_INITIALIZER |
Definition at line 67 of file chunkview.c.
int got_depth = 0 |
Definition at line 68 of file chunkview.c.
uint16_t t_gamma[2048] |
Definition at line 254 of file chunkview.c.
int window |
Definition at line 50 of file chunkview.c.