24 #ifndef __FIREVISION_FVUTILS_IPC_SHM_LUT_H_ 25 #define __FIREVISION_FVUTILS_IPC_SHM_LUT_H_ 27 #include <utils/ipc/shm.h> 28 #include <utils/ipc/shm_lister.h> 29 #include <fvutils/ipc/defs.h> 33 #define FIREVISION_SHM_LUT_MAGIC_TOKEN "FireVision LUT" 42 char lut_id[LUT_ID_MAX_LENGTH];
62 unsigned int bytes_per_cell);
67 virtual bool matches(
void *memptr);
68 virtual size_t size();
71 virtual void set(
void *memptr);
78 const char *
lut_id()
const;
80 unsigned int width()
const;
81 unsigned int height()
const;
82 unsigned int depth()
const;
92 unsigned int __height;
94 unsigned int __bytes_per_cell;
103 virtual void print_header();
104 virtual void print_footer();
105 virtual void print_no_segments();
106 virtual void print_no_orphaned_segments();
108 int shm_id,
int semaphore,
unsigned int mem_size,
120 unsigned int depth = 1,
126 const char *
lut_id()
const;
128 unsigned char * buffer()
const;
129 unsigned int width()
const;
130 unsigned int height()
const;
131 unsigned int depth()
const;
135 static void cleanup(
bool use_lister =
true);
136 static bool exists(
const char *lut_id);
137 static void wipe(
const char *lut_id);
140 void constructor(
const char *lut_id,
141 unsigned int width,
unsigned int height,
unsigned int depth,
142 unsigned int bytes_per_cell,
149 unsigned int __width;
150 unsigned int __height;
151 unsigned int __depth;
152 unsigned int __bytes_per_cell;
Format list output for shared memory segments.
Shared memory lookup table lister.
Shared memory lookup table.