diff options
Diffstat (limited to 'utils/wpseditor/screenshot/bmp.h')
-rw-r--r-- | utils/wpseditor/screenshot/bmp.h | 114 |
1 files changed, 0 insertions, 114 deletions
diff --git a/utils/wpseditor/screenshot/bmp.h b/utils/wpseditor/screenshot/bmp.h deleted file mode 100644 index 71d5a4a5bc..0000000000 --- a/utils/wpseditor/screenshot/bmp.h +++ /dev/null | |||
@@ -1,114 +0,0 @@ | |||
1 | /* $Id$ */ | ||
2 | #ifdef __cplusplus | ||
3 | extern "C" { | ||
4 | #endif | ||
5 | |||
6 | /* | ||
7 | gd_bmp.c | ||
8 | |||
9 | Bitmap format support for libgd | ||
10 | |||
11 | * Written 2007, Scott MacVicar | ||
12 | --------------------------------------------------------------------------- | ||
13 | |||
14 | Todo: | ||
15 | |||
16 | RLE4, RLE8 and Bitfield encoding | ||
17 | Add full support for Windows v4 and Windows v5 header formats | ||
18 | |||
19 | ---------------------------------------------------------------------------- | ||
20 | */ | ||
21 | |||
22 | #ifndef BMP_H | ||
23 | #define BMP_H 1 | ||
24 | |||
25 | #define BMP_PALETTE_3 1 | ||
26 | #define BMP_PALETTE_4 2 | ||
27 | |||
28 | #define BMP_WINDOWS_V3 40 | ||
29 | #define BMP_OS2_V1 12 | ||
30 | #define BMP_OS2_V2 64 | ||
31 | #define BMP_WINDOWS_V4 108 | ||
32 | #define BMP_WINDOWS_V5 124 | ||
33 | |||
34 | #define BMP_BI_RGB 0 | ||
35 | #define BMP_BI_RLE8 1 | ||
36 | #define BMP_BI_RLE4 2 | ||
37 | #define BMP_BI_BITFIELDS 3 | ||
38 | #define BMP_BI_JPEG 4 | ||
39 | #define BMP_BI_PNG 5 | ||
40 | |||
41 | #define BMP_RLE_COMMAND 0 | ||
42 | #define BMP_RLE_ENDOFLINE 0 | ||
43 | #define BMP_RLE_ENDOFBITMAP 1 | ||
44 | #define BMP_RLE_DELTA 2 | ||
45 | |||
46 | #define BMP_RLE_TYPE_RAW 0 | ||
47 | #define BMP_RLE_TYPE_RLE 1 | ||
48 | |||
49 | /* BMP header. */ | ||
50 | typedef struct | ||
51 | { | ||
52 | /* 16 bit - header identifying the type */ | ||
53 | signed short int magic; | ||
54 | |||
55 | /* 32bit - size of the file */ | ||
56 | int size; | ||
57 | |||
58 | /* 16bit - these two are in the spec but "reserved" */ | ||
59 | signed short int reserved1; | ||
60 | signed short int reserved2; | ||
61 | |||
62 | /* 32 bit - offset of the bitmap header from data in bytes */ | ||
63 | signed int off; | ||
64 | |||
65 | } bmp_hdr_t; | ||
66 | |||
67 | /* BMP info. */ | ||
68 | typedef struct | ||
69 | { | ||
70 | /* 16bit - Type, ie Windows or OS/2 for the palette info */ | ||
71 | signed short int type; | ||
72 | /* 32bit - The length of the bitmap information header in bytes. */ | ||
73 | signed int len; | ||
74 | |||
75 | /* 32bit - The width of the bitmap in pixels. */ | ||
76 | signed int width; | ||
77 | |||
78 | /* 32bit - The height of the bitmap in pixels. */ | ||
79 | signed int height; | ||
80 | |||
81 | /* 8 bit - The bitmap data is specified in top-down order. */ | ||
82 | signed char topdown; | ||
83 | |||
84 | /* 16 bit - The number of planes. This must be set to a value of one. */ | ||
85 | signed short int numplanes; | ||
86 | |||
87 | /* 16 bit - The number of bits per pixel. */ | ||
88 | signed short int depth; | ||
89 | |||
90 | /* 32bit - The type of compression used. */ | ||
91 | signed int enctype; | ||
92 | |||
93 | /* 32bit - The size of the image in bytes. */ | ||
94 | signed int size; | ||
95 | |||
96 | /* 32bit - The horizontal resolution in pixels/metre. */ | ||
97 | signed int hres; | ||
98 | |||
99 | /* 32bit - The vertical resolution in pixels/metre. */ | ||
100 | signed int vres; | ||
101 | |||
102 | /* 32bit - The number of color indices used by the bitmap. */ | ||
103 | signed int numcolors; | ||
104 | |||
105 | /* 32bit - The number of color indices important for displaying the bitmap. */ | ||
106 | signed int mincolors; | ||
107 | |||
108 | } bmp_info_t; | ||
109 | |||
110 | #endif | ||
111 | |||
112 | #ifdef __cplusplus | ||
113 | } | ||
114 | #endif | ||