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> 36 class ColormapFileBlock;
43 virtual color_t
determine(
unsigned int y,
unsigned int u,
unsigned int v)
const = 0;
44 virtual void set(
unsigned int y,
unsigned int u,
unsigned int v, color_t c) = 0;
46 virtual void reset() = 0;
47 virtual void set(
unsigned char *buffer) = 0;
49 virtual size_t size() = 0;
50 virtual void to_image(
unsigned char *yuv422_planar_buffer,
51 unsigned int level = 0);
55 virtual unsigned char *
get_buffer()
const = 0;
60 virtual unsigned int width()
const = 0;
61 virtual unsigned int height()
const = 0;
62 virtual unsigned int depth()
const = 0;
63 virtual unsigned int deepness()
const = 0;
65 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 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.