Tag Parser
6.5.0
C++ library for reading and writing MP4 (iTunes), ID3, Vorbis, Opus, FLAC and Matroska tags
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
IoUtilities
;
6
7
namespace
Media
{
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
35
void
BitmapInfoHeader::parse
(BinaryReader &reader)
36
{
37
size
= reader.readUInt32LE();
38
width
= reader.readUInt32LE();
39
height
= reader.readUInt32LE();
40
planes
= reader.readUInt16LE();
41
bitCount
= reader.readUInt16LE();
42
compression
= reader.readUInt32BE();
43
imageSize
= reader.readUInt32LE();
44
horizontalResolution
= reader.readUInt32LE();
45
verticalResolution
= reader.readUInt32LE();
46
clrUsed
= reader.readUInt32LE();
47
clrImportant
= reader.readUInt32LE();
48
}
49
50
}
// namespace Media
51
Media::BitmapInfoHeader::height
uint32 height
Definition:
bitmapinfoheader.h:23
Media::BitmapInfoHeader::clrImportant
uint32 clrImportant
Definition:
bitmapinfoheader.h:31
Media::BitmapInfoHeader::planes
uint16 planes
Definition:
bitmapinfoheader.h:24
Media::BitmapInfoHeader::clrUsed
uint32 clrUsed
Definition:
bitmapinfoheader.h:30
Media::BitmapInfoHeader::bitCount
uint16 bitCount
Definition:
bitmapinfoheader.h:25
Media::BitmapInfoHeader::horizontalResolution
uint32 horizontalResolution
Definition:
bitmapinfoheader.h:28
Media::BitmapInfoHeader::compression
uint32 compression
Definition:
bitmapinfoheader.h:26
IoUtilities
Contains utility classes helping to read and write streams.
Definition:
abstractcontainer.h:15
bitmapinfoheader.h
Media::BitmapInfoHeader::verticalResolution
uint32 verticalResolution
Definition:
bitmapinfoheader.h:29
Media::BitmapInfoHeader::imageSize
uint32 imageSize
Definition:
bitmapinfoheader.h:27
Media::BitmapInfoHeader::width
uint32 width
Definition:
bitmapinfoheader.h:22
Media::BitmapInfoHeader::size
uint32 size
Definition:
bitmapinfoheader.h:21
Media
Contains all classes and functions of the TagInfo library.
Definition:
exceptions.h:9
Media::BitmapInfoHeader::parse
void parse(IoUtilities::BinaryReader &reader)
Parses the BITMAPINFOHEADER structure using the specified reader.
Definition:
bitmapinfoheader.cpp:35
Generated on Wed Nov 1 2017 22:05:42 for Tag Parser by
1.8.13