Bug 1572460 - Refactor `selection` out of the `InspectorFront`. r=yulia
[gecko.git] / image / BMPHeaders.h
blob0527f61932d538882fdb9c49808d0cc4f662188a
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/. */
5 #ifndef mozilla_image_BMPHeaders_h
6 #define mozilla_image_BMPHeaders_h
8 #include <stddef.h>
9 #include <stdint.h>
11 namespace mozilla {
12 namespace image {
13 namespace bmp {
15 // The length of the file header as defined in the BMP spec.
16 static const size_t FILE_HEADER_LENGTH = 14;
18 // This lengths of the info header for the different BMP versions.
19 struct InfoHeaderLength {
20 enum {
21 WIN_V2 = 12,
22 WIN_V3 = 40,
23 WIN_V4 = 108,
24 WIN_V5 = 124,
26 // OS2_V1 is omitted; it's the same as WIN_V2.
27 OS2_V2_MIN = 16, // Minimum allowed value for OS2v2.
28 OS2_V2_MAX = 64, // Maximum allowed value for OS2v2.
30 WIN_ICO = WIN_V3,
34 } // namespace bmp
35 } // namespace image
36 } // namespace mozilla
38 #endif // mozilla_image_BMPHeaders_h