24 #ifndef _FIREVISION_FVUTILS_COLORMAP_CMFILE_H_
25 #define _FIREVISION_FVUTILS_COLORMAP_CMFILE_H_
27 #include <fvutils/colormap/cmfile_block.h>
28 #include <fvutils/fileformat/fvfile.h>
34 namespace firevision {
38 #define CMFILE_MAGIC_TOKEN 0xFF01
39 #define CMFILE_CUR_VERSION 2
41 #define CMFILE_TYPE_YUV 1
58 ColormapFile(uint16_t depth, uint16_t width, uint16_t height);
80 inline void assert_header();
Vector of colormap blocks.
~ColormapBlockVector()
Destructor.
static std::string compose_filename(const std::string format)
Compose filename.
uint16_t get_height()
Get height of colormap.
virtual void clear()
Clear internal storage.
uint16_t get_width()
Get width of colormap.
ColormapBlockVector * colormap_blocks()
Get colormap blocks.
Colormap * get_colormap()
Get a freshly generated colormap based on current file content.
void add_colormap(Colormap *colormap)
Add colormap.
static bool is_colormap_file(const char *filename)
Check if given file is a colormap file.
ColormapFile()
Constructor.
uint16_t get_depth()
Get depth of colormap.
FireVision File Format for data files.