Fawkes API  Fawkes Development Version
cmfile_yuvblock.h
1 
2 /**************************************************************************
3  * cmfile_yuvblock.h - FVFF Colormap File YUV Block
4  *
5  * Created: Mon Mar 31 18:08:07 2008
6  * Copyright 2005-2008 Tim Niemueller [www.niemueller.de]
7  *
8  ***************************************************************************/
9 
10 /* This program is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation; either version 2 of the License, or
13  * (at your option) any later version. A runtime exception applies to
14  * this software (see LICENSE.GPL_WRE file mentioned below for details).
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  * GNU Library General Public License for more details.
20  *
21  * Read the full text in the LICENSE.GPL_WRE file in the doc directory.
22  */
23 
24 #ifndef _FIREVISION_FVUTILS_COLORMAP_CMFILE_YUVBLOCK_H_
25 #define _FIREVISION_FVUTILS_COLORMAP_CMFILE_YUVBLOCK_H_
26 
27 #include <fvutils/colormap/cmfile_block.h>
28 
29 namespace firevision {
30 
31 class YuvColormap;
32 
33 #pragma pack(push, 4)
34 /** Block header for a YUV block in a ColormapFile. */
35 typedef struct
36 {
37  char range_from; /**< Y range from */
38  char range_to; /**< Y range to */
39  uint16_t reserved; /**< reserved for future use, padding */
41 #pragma pack(pop)
42 
44 {
45 public:
46  ColormapFileYuvBlock(YuvColormap *cm, unsigned int level = 0);
48 
49  unsigned int range_from() const;
50  unsigned int range_to() const;
51 
52 private:
53  YuvColormap * cm_;
54  unsigned int level_;
55  cmfile_yuvblock_header_t *header_;
56 };
57 
58 } // end namespace firevision
59 
60 #endif
unsigned int range_from() const
Range from value.
FireVision File Format data block.
Definition: fvfile_block.h:33
ColormapFileYuvBlock(YuvColormap *cm, unsigned int level=0)
Constructor.
YUV block for colormap file.
YUV Colormap.
Definition: yuvcm.h:35
unsigned int range_to() const
Range to value.
FireVision data file block for colormap files.
Definition: cmfile_block.h:33
Block header for a YUV block in a ColormapFile.
uint16_t reserved
reserved for future use, padding