Backed out changeset ad0d9f62c29c (bug 206659) for B2G desktop mochitest orange.
[gecko.git] / image / src / ICOFileHeaders.h
blobf0bc73d238e61564f5ffd318ecee663f6bb6bba1
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #ifndef MOZILLA_IMAGELIB_ICOHEADERS_H_
7 #define MOZILLA_IMAGELIB_ICOHEADERS_H_
9 namespace mozilla {
10 namespace image {
12 #define ICONFILEHEADERSIZE 6
13 #define ICODIRENTRYSIZE 16
14 #define PNGSIGNATURESIZE 8
15 #define BMPFILEHEADERSIZE 14
17 struct IconFileHeader
19 uint16_t mReserved;
20 uint16_t mType;
21 uint16_t mCount;
24 struct IconDirEntry
26 uint8_t mWidth;
27 uint8_t mHeight;
28 uint8_t mColorCount;
29 uint8_t mReserved;
30 union {
31 uint16_t mPlanes; // ICO
32 uint16_t mXHotspot; // CUR
34 union {
35 uint16_t mBitCount; // ICO
36 uint16_t mYHotspot; // CUR
38 uint32_t mBytesInRes;
39 uint32_t mImageOffset;
43 } // namespace image
44 } // namespace mozilla
46 #endif