2018-03-06 23:09:15 +01:00
|
|
|
#ifndef TAG_PARSER_BITMAPINFOHEADER_H
|
|
|
|
#define TAG_PARSER_BITMAPINFOHEADER_H
|
2015-06-11 00:27:34 +02:00
|
|
|
|
2016-08-29 15:43:05 +02:00
|
|
|
#include "../global.h"
|
|
|
|
|
2019-03-13 19:06:42 +01:00
|
|
|
#include <cstdint>
|
2015-06-11 00:27:34 +02:00
|
|
|
|
2019-06-10 22:49:11 +02:00
|
|
|
namespace CppUtilities {
|
2015-06-11 00:27:34 +02:00
|
|
|
class BinaryReader;
|
|
|
|
}
|
|
|
|
|
2018-03-06 23:09:15 +01:00
|
|
|
namespace TagParser {
|
2015-06-11 00:27:34 +02:00
|
|
|
|
2018-03-07 01:17:50 +01:00
|
|
|
class TAG_PARSER_EXPORT BitmapInfoHeader {
|
2015-06-11 00:27:34 +02:00
|
|
|
public:
|
|
|
|
BitmapInfoHeader();
|
|
|
|
|
2019-06-10 22:49:11 +02:00
|
|
|
void parse(CppUtilities::BinaryReader &reader);
|
2015-06-11 00:27:34 +02:00
|
|
|
|
2019-03-13 19:06:42 +01:00
|
|
|
std::uint32_t size;
|
|
|
|
std::uint32_t width;
|
|
|
|
std::uint32_t height;
|
|
|
|
std::uint16_t planes;
|
|
|
|
std::uint16_t bitCount;
|
|
|
|
std::uint32_t compression;
|
|
|
|
std::uint32_t imageSize;
|
|
|
|
std::uint32_t horizontalResolution;
|
|
|
|
std::uint32_t verticalResolution;
|
|
|
|
std::uint32_t clrUsed;
|
|
|
|
std::uint32_t clrImportant;
|
2015-06-11 00:27:34 +02:00
|
|
|
};
|
|
|
|
|
2018-03-07 01:17:50 +01:00
|
|
|
} // namespace TagParser
|
2015-06-11 00:27:34 +02:00
|
|
|
|
2018-03-06 23:09:15 +01:00
|
|
|
#endif // TAG_PARSER_BITMAPINFOHEADER_H
|