__BMP_Header Struct Reference

BMP Module header structure. Must be packed to exact 54 bytes.

Definition at line 86 of file bmp.h.

#include <bmp.h>

Data Fields

uint16_t bitsPerPixel
 
uint16_t colorPlanes
 
uint32_t colorsRequired
 
uint32_t colorsUsed
 
uint32_t compressionType
 
uint32_t dataOffset
 
uint32_t fileSize
 
uint32_t headerSize
 
uint32_t height
 
uint32_t hPixelsPerMeter
 
uint32_t imageDataSize
 
uint16_t magic
 
uint16_t reserved1
 
uint16_t reserved2
 
uint32_t vPixelsPerMeter
 
uint32_t width
 

Field Documentation

uint16_t __BMP_Header::bitsPerPixel

Color depth

Definition at line 110 of file bmp.h.

Referenced by BMP_getBitsPerPixel(), BMP_readRawData(), BMP_readRgbData(), and BMP_reset().

uint16_t __BMP_Header::colorPlanes

Color planes

Definition at line 108 of file bmp.h.

uint32_t __BMP_Header::colorsRequired

Number of color indices that are required for displaying the bitmap

Definition at line 122 of file bmp.h.

uint32_t __BMP_Header::colorsUsed

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

Definition at line 120 of file bmp.h.

uint32_t __BMP_Header::compressionType

Compression type

Definition at line 112 of file bmp.h.

Referenced by BMP_getCompressionType(), BMP_readRawData(), BMP_readRgbData(), and BMP_reset().

uint32_t __BMP_Header::dataOffset

Data offset relative to the start of the bmp data

Definition at line 100 of file bmp.h.

Referenced by BMP_getDataOffset(), and BMP_reset().

uint32_t __BMP_Header::fileSize

Size of the bmp file in bytes

Definition at line 94 of file bmp.h.

Referenced by BMP_getFileSize(), and BMP_reset().

uint32_t __BMP_Header::headerSize

Header size in bytes

Definition at line 102 of file bmp.h.

Referenced by BMP_reset().

uint32_t __BMP_Header::height

Height of bmp

Definition at line 106 of file bmp.h.

Referenced by BMP_getHeight(), BMP_readRawData(), BMP_readRawData24bit(), BMP_readRawData8bit(), BMP_readRgbData(), and BMP_reset().

uint32_t __BMP_Header::hPixelsPerMeter

Horizontal resolution (pixels per meter)

Definition at line 116 of file bmp.h.

uint32_t __BMP_Header::imageDataSize

Size of raw BMP data

Definition at line 114 of file bmp.h.

Referenced by BMP_getImageDataSize(), BMP_readRawData(), BMP_readRawData24bit(), BMP_readRawData8bit(), BMP_readRgbData(), and BMP_reset().

uint16_t __BMP_Header::magic

Magic identifier: "BM" (for bmp files)

Definition at line 92 of file bmp.h.

Referenced by BMP_reset().

uint16_t __BMP_Header::reserved1

Reserved 1

Definition at line 96 of file bmp.h.

uint16_t __BMP_Header::reserved2

Reserved 2

Definition at line 98 of file bmp.h.

uint32_t __BMP_Header::vPixelsPerMeter

Vertical resolution (pixels per meter)

Definition at line 118 of file bmp.h.

uint32_t __BMP_Header::width

Width of bmp

Definition at line 104 of file bmp.h.

Referenced by BMP_getWidth(), BMP_readRawData(), BMP_readRawData24bit(), BMP_readRawData8bit(), and BMP_readRgbData().


The documentation for this struct was generated from the following file:
  • C:/HandsOn/super/platform/middleware/glib/glib/bmp.h