BMITypes.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /*
3  * This file is a part of the libzmf project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  */
9 
10 #ifndef BMITYPES_H_INCLUDED
11 #define BMITYPES_H_INCLUDED
12 
13 #include "libzmf_utils.h"
14 #include "ZMFTypes.h"
15 #include <vector>
16 
17 namespace libzmf
18 {
19 
20 enum class BMIStreamType
21 {
22  UNKNOWN,
23  BITMAP,
25 };
26 
27 struct BMIOffset
28 {
30  uint32_t start;
31  uint32_t end;
32 
34  : type(BMIStreamType::UNKNOWN), start(0), end(0)
35  { }
36 };
37 
38 bool operator==(const BMIOffset &lhs, const BMIOffset &rhs);
39 bool operator!=(const BMIOffset &lhs, const BMIOffset &rhs);
40 
42 {
43  uint32_t width;
44  uint32_t height;
45  std::vector<Color> data;
46 
48  : width(0), height(0), data()
49  { }
50 };
51 
52 }
53 
54 #endif // BMITYPES_H_INCLUDED
55 
56 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
BMIStreamType
Definition: BMITypes.h:20
std::vector< Color > data
Definition: BMITypes.h:45
bool operator==(const BMIOffset &lhs, const BMIOffset &rhs)
Definition: BMITypes.cpp:15
uint32_t height
Definition: BMITypes.h:44
uint32_t start
Definition: BMITypes.h:30
bool operator!=(const BMIOffset &lhs, const BMIOffset &rhs)
Definition: BMITypes.cpp:20
BMIOffset()
Definition: BMITypes.h:33
BMIStreamType type
Definition: BMITypes.h:29
ColorBitmap()
Definition: BMITypes.h:47
Definition: BMITypes.h:27
Definition: BMITypes.h:41
uint32_t width
Definition: BMITypes.h:43
Definition: BMIHeader.cpp:13
uint32_t end
Definition: BMITypes.h:31

Generated for libzmf by doxygen 1.8.14