Tag Parser
12.3.1
C++ library for reading and writing MP4 (iTunes), ID3, Vorbis, Opus, FLAC and Matroska tags
Loading...
Searching...
No Matches
avi
bitmapinfoheader.cpp
Go to the documentation of this file.
1
#include "
./bitmapinfoheader.h
"
2
3
#include <c++utilities/io/binaryreader.h>
4
5
using namespace
CppUtilities
;
6
7
namespace
TagParser
{
8
17
BitmapInfoHeader::BitmapInfoHeader
()
18
: size(0)
19
, width(0)
20
, height(0)
21
, planes(0)
22
, bitCount(0)
23
, compression(0)
24
, imageSize(0)
25
, horizontalResolution(0)
26
, verticalResolution(0)
27
, clrUsed(0)
28
, clrImportant(0)
29
{
30
}
31
36
void
BitmapInfoHeader::parse
(BinaryReader &reader)
37
{
38
size
= reader.readUInt32LE();
39
width
= reader.readUInt32LE();
40
height
= reader.readUInt32LE();
41
planes
= reader.readUInt16LE();
42
bitCount
= reader.readUInt16LE();
43
compression
= reader.readUInt32BE();
44
imageSize
= reader.readUInt32LE();
45
horizontalResolution
= reader.readUInt32LE();
46
verticalResolution
= reader.readUInt32LE();
47
clrUsed
= reader.readUInt32LE();
48
clrImportant
= reader.readUInt32LE();
49
}
50
51
}
// namespace TagParser
bitmapinfoheader.h
TagParser::BitmapInfoHeader::horizontalResolution
std::uint32_t horizontalResolution
Definition
bitmapinfoheader.h:27
TagParser::BitmapInfoHeader::clrUsed
std::uint32_t clrUsed
Definition
bitmapinfoheader.h:29
TagParser::BitmapInfoHeader::verticalResolution
std::uint32_t verticalResolution
Definition
bitmapinfoheader.h:28
TagParser::BitmapInfoHeader::imageSize
std::uint32_t imageSize
Definition
bitmapinfoheader.h:26
TagParser::BitmapInfoHeader::width
std::uint32_t width
Definition
bitmapinfoheader.h:21
TagParser::BitmapInfoHeader::clrImportant
std::uint32_t clrImportant
Definition
bitmapinfoheader.h:30
TagParser::BitmapInfoHeader::height
std::uint32_t height
Definition
bitmapinfoheader.h:22
TagParser::BitmapInfoHeader::bitCount
std::uint16_t bitCount
Definition
bitmapinfoheader.h:24
TagParser::BitmapInfoHeader::BitmapInfoHeader
BitmapInfoHeader()
Constructs a new BitmapInfoHeader.
Definition
bitmapinfoheader.cpp:17
TagParser::BitmapInfoHeader::parse
void parse(CppUtilities::BinaryReader &reader)
Parses the BITMAPINFOHEADER structure using the specified reader.
Definition
bitmapinfoheader.cpp:36
TagParser::BitmapInfoHeader::compression
std::uint32_t compression
Definition
bitmapinfoheader.h:25
TagParser::BitmapInfoHeader::planes
std::uint16_t planes
Definition
bitmapinfoheader.h:23
TagParser::BitmapInfoHeader::size
std::uint32_t size
Definition
bitmapinfoheader.h:20
CppUtilities
Definition
abstractcontainer.h:16
TagParser
Contains all classes and functions of the TagInfo library.
Definition
aaccodebook.h:10
Generated on Sun Sep 22 2024 20:12:46 for Tag Parser by
1.12.0