summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_tracker_ht/xxx_headtracker-ftnoir.h
blob: 4851099799d8fc471d7730add23398f208e4a330 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#pragma once
#include <stdlib.h>
#include <stdio.h>
#include "ht-api.h"

#define HT_SHM_NAME "ftnoir-tracker-ht-shm"
#define HT_MUTEX_NAME "ftnoir-tracker-ht-mutex"

#define HT_MAX_VIDEO_WIDTH 2048
#define HT_MAX_VIDEO_HEIGHT 1536
#define HT_MAX_VIDEO_CHANNELS 3

typedef struct {
    int width, height, channels;
    unsigned char frame[HT_MAX_VIDEO_WIDTH * HT_MAX_VIDEO_HEIGHT * HT_MAX_VIDEO_CHANNELS];
} ht_video_t;

typedef struct {
    ht_video_t frame;
    ht_config_t config;
    ht_result_t result;
    volatile int timer;
    volatile bool pause, terminate, running;
} ht_shm_t;