24 #ifndef _FIREVISION_FVUTILS_COLORMAP_COLORMAP_H_ 25 #define _FIREVISION_FVUTILS_COLORMAP_COLORMAP_H_ 27 #include <fvutils/base/types.h> 28 #include <sys/types.h> 32 namespace firevision {
34 class ColormapFileBlock;
41 virtual color_t
determine(
unsigned int y,
unsigned int u,
unsigned int v)
const = 0;
42 virtual void set(
unsigned int y,
unsigned int u,
unsigned int v, color_t c) = 0;
44 virtual void reset() = 0;
45 virtual void set(
unsigned char *buffer) = 0;
47 virtual size_t size() = 0;
48 virtual void to_image(
unsigned char *yuv422_planar_buffer,
unsigned int level = 0);
57 virtual unsigned int width()
const = 0;
58 virtual unsigned int height()
const = 0;
59 virtual unsigned int depth()
const = 0;
60 virtual unsigned int deepness()
const = 0;
62 virtual std::list<ColormapFileBlock *>
get_blocks() = 0;
virtual void to_image(unsigned char *yuv422_planar_buffer, unsigned int level=0)
Create image from LUT.
virtual unsigned int depth() const =0
Get depth of colormap.
virtual void set(unsigned int y, unsigned int u, unsigned int v, color_t c)=0
Set color class for given YUV value.
virtual unsigned int height() const =0
Get height of colormap.
virtual std::list< ColormapFileBlock * > get_blocks()=0
Get file blocks for this colormap.
virtual ~Colormap()
Virtual empty destructor.
virtual color_t determine(unsigned int y, unsigned int u, unsigned int v) const =0
Determine color class for given YUV value.
virtual Colormap & operator+=(const Colormap &cmlt)=0
Adds the given colormap to this colormap.
virtual size_t size()=0
Size in bytes of buffer returned by get_buffer().
virtual unsigned int width() const =0
Get width of colormap.
virtual unsigned int deepness() const =0
Get deepness of colormap.
virtual unsigned char * get_buffer() const =0
Get the raw buffer of this colormap.
virtual unsigned int image_width() const
Width of conversion image.
virtual void reset()=0
Reset colormap.
virtual unsigned int image_height() const
Height of conversion image.