Fawkes API
Fawkes Development Version
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
All
Classes
Namespaces
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
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
#if 0
/* just to make Emacs auto-indent happy */
31
}
32
#endif
33
34
class
YuvColormap;
35
36
#pragma pack(push,4)
37
/** Block header for a YUV block in a ColormapFile. */
38
typedef
struct
{
39
char
range_from
;
/**< Y range from */
40
char
range_to
;
/**< Y range to */
41
uint16_t
reserved
;
/**< reserved for future use, padding */
42
}
cmfile_yuvblock_header_t
;
43
#pragma pack(pop)
44
45
class
ColormapFileYuvBlock
:
public
ColormapFileBlock
46
{
47
public
:
48
ColormapFileYuvBlock
(
YuvColormap
*cm,
unsigned
int
level = 0);
49
ColormapFileYuvBlock
(
FireVisionDataFileBlock
*block);
50
51
unsigned
int
range_from()
const
;
52
unsigned
int
range_to()
const
;
53
54
private
:
55
56
YuvColormap
*__cm;
57
unsigned
int
__level;
58
cmfile_yuvblock_header_t
*__header;
59
};
60
61
}
// end namespace firevision
62
63
#endif
src
libs
fvutils
colormap
cmfile_yuvblock.h
Generated by
1.8.1.1