Macros | Functions | Variables
record.c File Reference
#include "libfreenect.h"
#include "platform.h"
#include <sys/stat.h>
#include <sys/types.h>
#include <stdio.h>
#include <signal.h>
#include <string.h>
#include <stdlib.h>
Include dependency graph for record.c:

Go to the source code of this file.

Macros

#define FREENECT_FRAME_H   480
 
#define FREENECT_FRAME_W   640
 

Functions

void depth_cb (freenect_device *dev, void *depth, uint32_t timestamp)
 
void depth_cb_ffmpeg (freenect_device *dev, void *depth, uint32_t timestamp)
 
void dump (char type, uint32_t timestamp, void *data, int data_size)
 
void dump_depth (FILE *fp, void *data, int data_size)
 
void dump_ffmpeg_24 (FILE *stream, uint32_t timestamp, void *data, int data_size)
 
void dump_ffmpeg_pad16 (FILE *stream, uint32_t timestamp, void *data, int data_size)
 
void dump_rgb (FILE *fp, void *data, int data_size)
 
void init ()
 
void init_ffmpeg_streams ()
 
int main (int argc, char **argv)
 
FILE * open_dump (char type, double cur_time, uint32_t timestamp, int data_size, const char *extension)
 
FILE * open_ffmpeg (char *output_filename)
 
FILE * open_index (const char *fn)
 
void print_mode (const char *name, freenect_frame_mode mode)
 
void rgb_cb (freenect_device *dev, void *rgb, uint32_t timestamp)
 
void rgb_cb_ffmpeg (freenect_device *dev, void *rgb, uint32_t timestamp)
 
void signal_cleanup (int num)
 
void snapshot_accel (freenect_device *dev)
 
void usage ()
 

Variables

char * depth_name = 0
 
FILE * depth_stream =0
 
char * ffmpeg_opts = 0
 
FILE * index_fp = NULL
 
uint32_t last_timestamp = 0
 
char * out_dir =0
 
char * rgb_name = 0
 
FILE * rgb_stream =0
 
volatile sig_atomic_t running = 1
 
int use_ffmpeg = 0
 

Macro Definition Documentation

#define FREENECT_FRAME_H   480

Definition at line 41 of file record.c.

#define FREENECT_FRAME_W   640

Definition at line 40 of file record.c.

Function Documentation

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

Definition at line 157 of file record.c.

void depth_cb_ffmpeg ( freenect_device dev,
void *  depth,
uint32_t  timestamp 
)

Definition at line 168 of file record.c.

void dump ( char  type,
uint32_t  timestamp,
void *  data,
int  data_size 
)

Definition at line 102 of file record.c.

void dump_depth ( FILE *  fp,
void *  data,
int  data_size 
)

Definition at line 51 of file record.c.

void dump_ffmpeg_24 ( FILE *  stream,
uint32_t  timestamp,
void *  data,
int  data_size 
)

Definition at line 127 of file record.c.

void dump_ffmpeg_pad16 ( FILE *  stream,
uint32_t  timestamp,
void *  data,
int  data_size 
)

Definition at line 133 of file record.c.

void dump_rgb ( FILE *  fp,
void *  data,
int  data_size 
)

Definition at line 57 of file record.c.

void init ( )

Definition at line 204 of file record.c.

void init_ffmpeg_streams ( )

Definition at line 187 of file record.c.

int main ( int  argc,
char **  argv 
)

Definition at line 274 of file record.c.

FILE* open_dump ( char  type,
double  cur_time,
uint32_t  timestamp,
int  data_size,
const char *  extension 
)

Definition at line 63 of file record.c.

FILE* open_ffmpeg ( char *  output_filename)

Definition at line 79 of file record.c.

FILE* open_index ( const char *  fn)

Definition at line 242 of file record.c.

void print_mode ( const char *  name,
freenect_frame_mode  mode 
)

Definition at line 193 of file record.c.

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

Definition at line 163 of file record.c.

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

Definition at line 178 of file record.c.

void signal_cleanup ( int  num)

Definition at line 259 of file record.c.

void snapshot_accel ( freenect_device dev)

Definition at line 146 of file record.c.

void usage ( )

Definition at line 266 of file record.c.

Variable Documentation

char* depth_name = 0

Definition at line 45 of file record.c.

FILE* depth_stream =0

Definition at line 48 of file record.c.

char* ffmpeg_opts = 0

Definition at line 44 of file record.c.

FILE* index_fp = NULL

Definition at line 38 of file record.c.

uint32_t last_timestamp = 0

Definition at line 37 of file record.c.

char* out_dir =0

Definition at line 35 of file record.c.

char* rgb_name = 0

Definition at line 46 of file record.c.

FILE* rgb_stream =0

Definition at line 49 of file record.c.

volatile sig_atomic_t running = 1

Definition at line 36 of file record.c.

int use_ffmpeg = 0

Definition at line 43 of file record.c.



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