]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdePkg: Move Bmp.h from IntelFrameworkModulePkg/Library/GenericBdsLib/ to MdePkg...
authorxdu2 <xdu2@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 4 Nov 2011 08:27:47 +0000 (08:27 +0000)
committerxdu2 <xdu2@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 4 Nov 2011 08:27:47 +0000 (08:27 +0000)
Signed-off-by: xdu2
Reviewed-by: mdkinney
Reviewed-by: lgao4
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12662 6f19259b-4bc3-4df7-8a09-765794883524

MdePkg/Include/IndustryStandard/Bmp.h [new file with mode: 0644]

diff --git a/MdePkg/Include/IndustryStandard/Bmp.h b/MdePkg/Include/IndustryStandard/Bmp.h
new file mode 100644 (file)
index 0000000..eaacc4a
--- /dev/null
@@ -0,0 +1,48 @@
+/** @file\r
+  This file defines BMP file header data structures.\r
+\r
+Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
+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
+  UINT8   Blue;\r
+  UINT8   Green;\r
+  UINT8   Red;\r
+  UINT8   Reserved;\r
+} BMP_COLOR_MAP;\r
+\r
+typedef struct {\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
+} BMP_IMAGE_HEADER;\r
+\r
+#pragma pack()\r
+\r
+#endif\r