]> code.delx.au - refind/blob - include/Bmp.h
Added note about Mac "retina" display problems to todo.html file.
[refind] / include / Bmp.h
1 /** @file
2 This file defines BMP file header data structures.
3
4 Copyright (c) 2006 - 2008, Intel Corporation. <BR>
5 All rights reserved. This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
9
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12
13 **/
14
15 #ifndef _BMP_H__
16 #define _BMP_H__
17
18 #pragma pack(1)
19
20 typedef struct {
21
22 UINT8 Blue;
23 UINT8 Green;
24 UINT8 Red;
25 UINT8 Reserved;
26
27 } BMP_COLOR_MAP;
28
29 typedef struct {
30
31 CHAR8 CharB;
32 CHAR8 CharM;
33 UINT32 Size;
34 UINT16 Reserved[2];
35 UINT32 ImageOffset;
36 UINT32 HeaderSize;
37 UINT32 PixelWidth;
38 UINT32 PixelHeight;
39 UINT16 Planes; ///> Must be 1
40 UINT16 BitPerPixel; ///> 1, 4, 8, or 24
41 UINT32 CompressionType;
42 UINT32 ImageSize; ///> Compressed image size in bytes
43 UINT32 XPixelsPerMeter;
44 UINT32 YPixelsPerMeter;
45 UINT32 NumberOfColors;
46 UINT32 ImportantColors;
47
48 } BMP_IMAGE_HEADER;
49
50 #pragma pack()
51
52 #endif