BMP Module header structure.

Must be packed to exact 54 bytes.

Public Attributes#

uint16_t

Magic identifier: "BM" (for bmp files)

uint32_t

Size of the bmp file in bytes.

uint16_t

Reserved 1.

uint16_t

Reserved 2.

uint32_t

Data offset relative to the start of the bmp data.

uint32_t

Header size in bytes.

uint32_t

Width of bmp.

uint32_t

Height of bmp.

uint16_t

Color planes.

uint16_t

Color depth.

uint32_t

Compression type.

uint32_t

Size of raw BMP data.

uint32_t

Horizontal resolution (pixels per meter)

uint32_t

Vertical resolution (pixels per meter)

uint32_t

Number of color indices in the color table that are actually used by the bitmap.

uint32_t

Number of color indices that are required for displaying the bitmap.

Public Attribute Documentation#

magic#

uint16_t BMP_Header::magic

Magic identifier: "BM" (for bmp files)


Definition at line 115 of file platform/middleware/glib/glib/bmp.h

fileSize#

uint32_t BMP_Header::fileSize

Size of the bmp file in bytes.


Definition at line 117 of file platform/middleware/glib/glib/bmp.h

reserved1#

uint16_t BMP_Header::reserved1

Reserved 1.


Definition at line 119 of file platform/middleware/glib/glib/bmp.h

reserved2#

uint16_t BMP_Header::reserved2

Reserved 2.


Definition at line 121 of file platform/middleware/glib/glib/bmp.h

dataOffset#

uint32_t BMP_Header::dataOffset

Data offset relative to the start of the bmp data.


Definition at line 123 of file platform/middleware/glib/glib/bmp.h

headerSize#

uint32_t BMP_Header::headerSize

Header size in bytes.


Definition at line 125 of file platform/middleware/glib/glib/bmp.h

width#

uint32_t BMP_Header::width

Width of bmp.


Definition at line 127 of file platform/middleware/glib/glib/bmp.h

height#

uint32_t BMP_Header::height

Height of bmp.


Definition at line 129 of file platform/middleware/glib/glib/bmp.h

colorPlanes#

uint16_t BMP_Header::colorPlanes

Color planes.


Definition at line 131 of file platform/middleware/glib/glib/bmp.h

bitsPerPixel#

uint16_t BMP_Header::bitsPerPixel

Color depth.


Definition at line 133 of file platform/middleware/glib/glib/bmp.h

compressionType#

uint32_t BMP_Header::compressionType

Compression type.


Definition at line 135 of file platform/middleware/glib/glib/bmp.h

imageDataSize#

uint32_t BMP_Header::imageDataSize

Size of raw BMP data.


Definition at line 137 of file platform/middleware/glib/glib/bmp.h

hPixelsPerMeter#

uint32_t BMP_Header::hPixelsPerMeter

Horizontal resolution (pixels per meter)


Definition at line 139 of file platform/middleware/glib/glib/bmp.h

vPixelsPerMeter#

uint32_t BMP_Header::vPixelsPerMeter

Vertical resolution (pixels per meter)


Definition at line 141 of file platform/middleware/glib/glib/bmp.h

colorsUsed#

uint32_t BMP_Header::colorsUsed

Number of color indices in the color table that are actually used by the bitmap.


Definition at line 143 of file platform/middleware/glib/glib/bmp.h

colorsRequired#

uint32_t BMP_Header::colorsRequired

Number of color indices that are required for displaying the bitmap.


Definition at line 145 of file platform/middleware/glib/glib/bmp.h