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 */
40
}
cmfile_yuvblock_header_t
;
41
#pragma pack(pop)
42
43
class
ColormapFileYuvBlock
:
public
ColormapFileBlock
44
{
45
public
:
46
ColormapFileYuvBlock
(
YuvColormap
*cm,
unsigned
int
level = 0);
47
ColormapFileYuvBlock
(
FireVisionDataFileBlock
*block);
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
firevision::cmfile_yuvblock_header_t::range_to
char range_to
Y range to.
Definition:
cmfile_yuvblock.h:38
firevision::cmfile_yuvblock_header_t::range_from
char range_from
Y range from.
Definition:
cmfile_yuvblock.h:37
firevision::ColormapFileYuvBlock::range_to
unsigned int range_to() const
Range to value.
Definition:
cmfile_yuvblock.cpp:83
firevision::YuvColormap
YUV Colormap.
Definition:
yuvcm.h:36
firevision::ColormapFileBlock
FireVision data file block for colormap files.
Definition:
cmfile_block.h:34
firevision::ColormapFileYuvBlock::ColormapFileYuvBlock
ColormapFileYuvBlock(YuvColormap *cm, unsigned int level=0)
Constructor.
Definition:
cmfile_yuvblock.cpp:42
firevision::cmfile_yuvblock_header_t::reserved
uint16_t reserved
reserved for future use, padding
Definition:
cmfile_yuvblock.h:39
firevision::ColormapFileYuvBlock::range_from
unsigned int range_from() const
Range from value.
Definition:
cmfile_yuvblock.cpp:74
firevision::cmfile_yuvblock_header_t
Block header for a YUV block in a ColormapFile.
Definition:
cmfile_yuvblock.h:36
firevision::ColormapFileYuvBlock
YUV block for colormap file.
Definition:
cmfile_yuvblock.h:44
firevision::FireVisionDataFileBlock
FireVision File Format data block.
Definition:
fvfile_block.h:34
src
libs
fvutils
colormap
cmfile_yuvblock.h
Generated by
1.8.20