#include <stdio.h>
#include <pthread.h>
#include <string.h>
#include <stdlib.h>
#include <assert.h>
#include "libfreenect_registration.h"
#include "libfreenect_sync.h"
Go to the source code of this file.
Classes | |
struct | buffer_ring |
struct | sync_kinect |
Macros | |
#define | MAX_KINECTS 64 |
Typedefs | |
typedef struct buffer_ring | buffer_ring_t |
typedef int(* | set_buffer_t) (freenect_device *dev, void *buf) |
typedef struct sync_kinect | sync_kinect_t |
Variables | |
static freenect_context * | ctx |
static sync_kinect_t * | kinects [MAX_KINECTS] = {} |
static int | pending_runloop_tasks = 0 |
static pthread_cond_t | pending_runloop_tasks_cond = PTHREAD_COND_INITIALIZER |
static pthread_mutex_t | pending_runloop_tasks_lock = PTHREAD_MUTEX_INITIALIZER |
static pthread_mutex_t | runloop_lock = PTHREAD_MUTEX_INITIALIZER |
static pthread_t | thread |
static int | thread_running = 0 |
#define MAX_KINECTS 64 |
Definition at line 52 of file libfreenect_sync.c.
typedef struct buffer_ring buffer_ring_t |
typedef int(* set_buffer_t) (freenect_device *dev, void *buf) |
Definition at line 50 of file libfreenect_sync.c.
typedef struct sync_kinect sync_kinect_t |
|
static |
Definition at line 96 of file libfreenect_sync.c.
|
static |
Definition at line 72 of file libfreenect_sync.c.
|
static |
Definition at line 249 of file libfreenect_sync.c.
|
static |
Definition at line 237 of file libfreenect_sync.c.
|
static |
Definition at line 225 of file libfreenect_sync.c.
|
static |
Definition at line 153 of file libfreenect_sync.c.
|
static |
Definition at line 121 of file libfreenect_sync.c.
int freenect_sync_camera_to_world | ( | int | cx, |
int | cy, | ||
int | wz, | ||
double * | wx, | ||
double * | wy, | ||
int | index | ||
) |
Definition at line 426 of file libfreenect_sync.c.
int freenect_sync_get_depth | ( | void ** | depth, |
uint32_t * | timestamp, | ||
int | index, | ||
freenect_depth_format | fmt | ||
) |
Definition at line 398 of file libfreenect_sync.c.
int freenect_sync_get_depth_with_res | ( | void ** | depth, |
uint32_t * | timestamp, | ||
int | index, | ||
freenect_resolution | res, | ||
freenect_depth_format | fmt | ||
) |
Definition at line 383 of file libfreenect_sync.c.
int freenect_sync_get_tilt_state | ( | freenect_raw_tilt_state ** | state, |
int | index | ||
) |
Definition at line 403 of file libfreenect_sync.c.
int freenect_sync_get_video | ( | void ** | video, |
uint32_t * | timestamp, | ||
int | index, | ||
freenect_video_format | fmt | ||
) |
Definition at line 378 of file libfreenect_sync.c.
int freenect_sync_get_video_with_res | ( | void ** | video, |
uint32_t * | timestamp, | ||
int | index, | ||
freenect_resolution | res, | ||
freenect_video_format | fmt | ||
) |
Definition at line 364 of file libfreenect_sync.c.
int freenect_sync_set_led | ( | freenect_led_options | led, |
int | index | ||
) |
Definition at line 419 of file libfreenect_sync.c.
int freenect_sync_set_tilt_degs | ( | int | angle, |
int | index | ||
) |
Definition at line 412 of file libfreenect_sync.c.
void freenect_sync_stop | ( | void | ) |
Definition at line 433 of file libfreenect_sync.c.
|
static |
Definition at line 185 of file libfreenect_sync.c.
|
static |
Definition at line 214 of file libfreenect_sync.c.
|
static |
Definition at line 167 of file libfreenect_sync.c.
|
static |
Definition at line 159 of file libfreenect_sync.c.
|
static |
Definition at line 177 of file libfreenect_sync.c.
|
static |
Definition at line 134 of file libfreenect_sync.c.
|
static |
Definition at line 343 of file libfreenect_sync.c.
|
static |
Definition at line 358 of file libfreenect_sync.c.
|
static |
Definition at line 274 of file libfreenect_sync.c.
|
static |
Definition at line 318 of file libfreenect_sync.c.
|
static |
Definition at line 148 of file libfreenect_sync.c.
|
static |
Definition at line 54 of file libfreenect_sync.c.
|
static |
Definition at line 53 of file libfreenect_sync.c.
|
static |
Definition at line 58 of file libfreenect_sync.c.
|
static |
Definition at line 60 of file libfreenect_sync.c.
|
static |
Definition at line 59 of file libfreenect_sync.c.
|
static |
Definition at line 57 of file libfreenect_sync.c.
|
static |
Definition at line 56 of file libfreenect_sync.c.
|
static |
Definition at line 55 of file libfreenect_sync.c.