Functions | Variables
hiview.c File Reference
#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>
Include dependency graph for hiview.c:

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_tdepth_front
 
uint8_tdepth_mid
 
pthread_mutex_t depth_mutex = PTHREAD_MUTEX_INITIALIZER
 
int depth_on = 1
 
int depth_window
 
volatile int die = 0
 
freenect_contextf_ctx
 
freenect_devicef_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_trgb_back
 
uint8_trgb_front
 
uint8_trgb_mid
 
uint16_t t_gamma [2048]
 
pthread_mutex_t video_mutex = PTHREAD_MUTEX_INITIALIZER
 
int video_window
 

Function Documentation

void depth_cb ( freenect_device dev,
void *  v_depth,
uint32_t  timestamp 
)

Definition at line 292 of file hiview.c.

void DispatchDraws ( )

Definition at line 79 of file hiview.c.

void DrawDepthScene ( )

Definition at line 94 of file hiview.c.

void DrawVideoScene ( )

Definition at line 124 of file hiview.c.

void* freenect_threadfunc ( void *  arg)

Definition at line 357 of file hiview.c.

void* gl_threadfunc ( void *  arg)

Definition at line 256 of file hiview.c.

void InitGL ( int  Width,
int  Height 
)

Definition at line 236 of file hiview.c.

void keyPressed ( unsigned char  key,
int  x,
int  y 
)

Definition at line 165 of file hiview.c.

int main ( int  argc,
char **  argv 
)

Definition at line 410 of file hiview.c.

void ReSizeGLScene ( int  Width,
int  Height 
)

Definition at line 227 of file hiview.c.

void video_cb ( freenect_device dev,
void *  rgb,
uint32_t  timestamp 
)

Definition at line 343 of file hiview.c.

Variable Documentation

Definition at line 70 of file hiview.c.

Definition at line 72 of file hiview.c.

uint8_t * depth_front

Definition at line 59 of file hiview.c.

uint8_t* depth_mid

Definition at line 59 of file hiview.c.

pthread_mutex_t depth_mutex = PTHREAD_MUTEX_INITIALIZER

Definition at line 53 of file hiview.c.

int depth_on = 1

Definition at line 77 of file hiview.c.

int depth_window

Definition at line 50 of file hiview.c.

volatile int die = 0

Definition at line 45 of file hiview.c.

Definition at line 65 of file hiview.c.

Definition at line 66 of file hiview.c.

int freenect_led

Definition at line 67 of file hiview.c.

pthread_t freenect_thread

Definition at line 44 of file hiview.c.

int g_argc

Definition at line 47 of file hiview.c.

char** g_argv

Definition at line 48 of file hiview.c.

GLuint gl_depth_tex

Definition at line 62 of file hiview.c.

pthread_cond_t gl_frame_cond = PTHREAD_COND_INITIALIZER

Definition at line 74 of file hiview.c.

GLuint gl_rgb_tex

Definition at line 63 of file hiview.c.

int got_depth = 0

Definition at line 76 of file hiview.c.

int got_rgb = 0

Definition at line 75 of file hiview.c.

Definition at line 69 of file hiview.c.

Definition at line 71 of file hiview.c.

uint8_t* rgb_back

Definition at line 60 of file hiview.c.

uint8_t * rgb_front

Definition at line 60 of file hiview.c.

uint8_t * rgb_mid

Definition at line 60 of file hiview.c.

uint16_t t_gamma[2048]

Definition at line 290 of file hiview.c.

pthread_mutex_t video_mutex = PTHREAD_MUTEX_INITIALIZER

Definition at line 54 of file hiview.c.

int video_window

Definition at line 51 of file hiview.c.



libfreenect
Author(s): Hector Martin, Josh Blake, Kyle Machulis, OpenKinect community
autogenerated on Thu Jun 6 2019 19:25:39