#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 | depth_cb (freenect_device *dev, void *v_depth, uint32_t timestamp) |
void | DispatchDraws () |
void | DrawDepthScene () |
void | DrawVideoScene () |
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) |
void | video_cb (freenect_device *dev, void *rgb, uint32_t timestamp) |
Variables | |
freenect_video_format | current_format = FREENECT_VIDEO_RGB |
freenect_resolution | current_resolution = FREENECT_RESOLUTION_HIGH |
uint8_t * | depth_front |
uint8_t * | depth_mid |
pthread_mutex_t | depth_mutex = PTHREAD_MUTEX_INITIALIZER |
int | depth_on = 1 |
int | depth_window |
volatile int | die = 0 |
freenect_context * | f_ctx |
freenect_device * | f_dev |
int | freenect_led |
pthread_t | freenect_thread |
int | g_argc |
char ** | g_argv |
GLuint | gl_depth_tex |
pthread_cond_t | gl_frame_cond = PTHREAD_COND_INITIALIZER |
GLuint | gl_rgb_tex |
int | got_depth = 0 |
int | got_rgb = 0 |
freenect_video_format | requested_format = FREENECT_VIDEO_RGB |
freenect_resolution | requested_resolution = FREENECT_RESOLUTION_HIGH |
uint8_t * | rgb_back |
uint8_t * | rgb_front |
uint8_t * | rgb_mid |
uint16_t | t_gamma [2048] |
pthread_mutex_t | video_mutex = PTHREAD_MUTEX_INITIALIZER |
int | video_window |
void depth_cb | ( | freenect_device * | dev, |
void * | v_depth, | ||
uint32_t | timestamp | ||
) |
void video_cb | ( | freenect_device * | dev, |
void * | rgb, | ||
uint32_t | timestamp | ||
) |
freenect_video_format current_format = FREENECT_VIDEO_RGB |
freenect_resolution current_resolution = FREENECT_RESOLUTION_HIGH |
freenect_context* f_ctx |
freenect_device* f_dev |
freenect_video_format requested_format = FREENECT_VIDEO_RGB |
freenect_resolution requested_resolution = FREENECT_RESOLUTION_HIGH |