summaryrefslogtreecommitdiff
path: root/sharebuffer.h
blob: c25deb23cf2a3179652e35346eeb7010311f6832 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <sys/mman.h>
#include <fcntl.h>
#include <semaphore.h>
#include <sys/stat.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>

#define SHAREDMEMORY_SIZE ((uint64_t)20*1024*1024)

struct SharedMemoryInfo {
    sem_t sem1;
    sem_t sem2;
    int16_t shared_framenumber;
    char BitmapData;
};