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
17namespace libzmf
18{
19
20enum class BMIStreamType
21{
22 UNKNOWN,
23 BITMAP,
25};
26
28{
30 uint32_t start;
31 uint32_t end;
32
35 { }
36};
37
38bool operator==(const BMIOffset &lhs, const BMIOffset &rhs);
39bool 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: */
Definition BMIHeader.cpp:14
bool operator==(const BMIOffset &lhs, const BMIOffset &rhs)
Definition BMITypes.cpp:15
bool operator!=(const BMIOffset &lhs, const BMIOffset &rhs)
Definition BMITypes.cpp:20
BMIStreamType
Definition BMITypes.h:21
Definition BMITypes.h:28
uint32_t start
Definition BMITypes.h:30
uint32_t end
Definition BMITypes.h:31
BMIOffset()
Definition BMITypes.h:33
BMIStreamType type
Definition BMITypes.h:29
Definition BMITypes.h:42
std::vector< Color > data
Definition BMITypes.h:45
ColorBitmap()
Definition BMITypes.h:47
uint32_t width
Definition BMITypes.h:43
uint32_t height
Definition BMITypes.h:44

Generated for libzmf by doxygen 1.10.0