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();
void add_colormap(Colormap *colormap)
Add colormap.
~ColormapBlockVector()
Destructor.
uint16_t get_depth()
Get depth of colormap.
Colormap * get_colormap()
Get a freshly generated colormap based on current file content.
uint16_t get_height()
Get height of colormap.
ColormapFile()
Constructor.
ColormapBlockVector * colormap_blocks()
Get colormap blocks.
Vector of colormap blocks.
virtual void clear()
Clear internal storage.
FireVision File Format for data files.
static std::string compose_filename(const std::string format)
Compose filename.
static bool is_colormap_file(const char *filename)
Check if given file is a colormap file.
uint16_t get_width()
Get width of colormap.