]> code.delx.au - refind/commitdiff
Yet another new file for 0.4.3.
authorsrs5694 <srs5694@users.sourceforge.net>
Fri, 22 Jun 2012 02:19:52 +0000 (22:19 -0400)
committersrs5694 <srs5694@users.sourceforge.net>
Fri, 22 Jun 2012 02:19:52 +0000 (22:19 -0400)
include/Bmp.h [new file with mode: 0644]

diff --git a/include/Bmp.h b/include/Bmp.h
new file mode 100644 (file)
index 0000000..c7d81b0
--- /dev/null
@@ -0,0 +1,52 @@
+/** @file\r
+  This file defines BMP file header data structures.\r
+\r
+Copyright (c) 2006 - 2008, Intel Corporation. <BR>\r
+All rights reserved. This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution.  The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+\r
+**/\r
+\r
+#ifndef _BMP_H__\r
+#define _BMP_H__\r
+\r
+#pragma pack(1)\r
+\r
+typedef struct {\r
+\r
+  UINT8   Blue;\r
+  UINT8   Green;\r
+  UINT8   Red;\r
+  UINT8   Reserved;\r
+\r
+} BMP_COLOR_MAP;\r
+\r
+typedef struct {\r
+\r
+  CHAR8         CharB;\r
+  CHAR8         CharM;\r
+  UINT32        Size;\r
+  UINT16        Reserved[2];\r
+  UINT32        ImageOffset;\r
+  UINT32        HeaderSize;\r
+  UINT32        PixelWidth;\r
+  UINT32        PixelHeight;\r
+  UINT16        Planes;          ///> Must be 1\r
+  UINT16        BitPerPixel;     ///> 1, 4, 8, or 24\r
+  UINT32        CompressionType;\r
+  UINT32        ImageSize;       ///> Compressed image size in bytes\r
+  UINT32        XPixelsPerMeter;\r
+  UINT32        YPixelsPerMeter;\r
+  UINT32        NumberOfColors;\r
+  UINT32        ImportantColors;\r
+\r
+} BMP_IMAGE_HEADER;\r
+\r
+#pragma pack()\r
+\r
+#endif\r