24 #ifndef __FIREVISION_FVUTILS_COLORMAP_CMFILE_H_
25 #define __FIREVISION_FVUTILS_COLORMAP_CMFILE_H_
27 #include <fvutils/fileformat/fvfile.h>
28 #include <fvutils/colormap/cmfile_block.h>
33 namespace firevision {
40 #define CMFILE_MAGIC_TOKEN 0xFF01
41 #define CMFILE_CUR_VERSION 2
43 #define CMFILE_TYPE_YUV 1
59 ColormapFile(uint16_t depth, uint16_t width, uint16_t height);
67 void add_colormap(
Colormap *colormap);
73 uint16_t get_height();
75 static bool is_colormap_file(
const char *filename);
76 static std::string compose_filename(
const std::string format);
81 inline void assert_header();