|
9 | 9 | const ModeData MODES[] = { |
10 | 10 | [IMAGING_MODE_UNKNOWN] = {""}, |
11 | 11 |
|
12 | | - [IMAGING_MODE_1] = { |
13 | | - .name = "1", |
14 | | - .arrow_band_format = "C", |
15 | | - .bands = 1, |
16 | | - .pixelsize = 1, |
17 | | - .band_names = {"1"}, |
18 | | - }, |
19 | | - [IMAGING_MODE_CMYK] = { |
20 | | - .name = "CMYK", |
21 | | - .bands = 4, |
22 | | - .pixelsize = 4, |
23 | | - .arrow_band_format = "C", |
24 | | - .band_names = {"C", "M", "Y", "K"}, |
25 | | - }, |
26 | | - [IMAGING_MODE_F] = { |
27 | | - .name = "F", |
28 | | - .bands = 1, |
29 | | - .pixelsize = 4, |
30 | | - .arrow_band_format = "f", |
31 | | - .band_names = {"F"}, |
32 | | - }, |
33 | | - [IMAGING_MODE_HSV] = { |
34 | | - .name = "HSV", |
35 | | - .bands = 3, |
36 | | - .pixelsize = 4, |
37 | | - .arrow_band_format = "C", |
38 | | - .band_names = {"H", "S", "V", "X"}, |
39 | | - }, |
40 | | - [IMAGING_MODE_I] = { |
41 | | - .name = "I", |
42 | | - .bands = 1, |
43 | | - .pixelsize = 4, |
44 | | - .arrow_band_format = "i", |
45 | | - .band_names = {"I"}, |
46 | | - }, |
47 | | - [IMAGING_MODE_L] = { |
48 | | - .name = "L", |
49 | | - .bands = 1, |
50 | | - .pixelsize = 1, |
51 | | - .arrow_band_format = "C", |
52 | | - .band_names = {"L"}, |
53 | | - }, |
54 | | - [IMAGING_MODE_LA] = { |
55 | | - .name = "LA", |
56 | | - .bands = 2, |
57 | | - .pixelsize = 4, |
58 | | - .arrow_band_format = "C", |
59 | | - .band_names = {"L", "X", "X", "A"}, |
60 | | - }, |
61 | | - [IMAGING_MODE_LAB] = { |
62 | | - .name = "LAB", |
63 | | - .bands = 3, |
64 | | - .pixelsize = 4, |
65 | | - .arrow_band_format = "C", |
66 | | - .band_names = {"L", "a", "b", "X"}, |
67 | | - }, |
68 | | - [IMAGING_MODE_La] = { |
69 | | - .name = "La", |
70 | | - .bands = 2, |
71 | | - .pixelsize = 4, |
72 | | - .arrow_band_format = "C", |
73 | | - .band_names = {"L", "X", "X", "a"}, |
74 | | - }, |
75 | | - [IMAGING_MODE_P] = { |
76 | | - .name = "P", |
77 | | - .bands = 1, |
78 | | - .pixelsize = 1, |
79 | | - .arrow_band_format = "C", |
80 | | - .band_names = {"P"}, |
81 | | - }, |
82 | | - [IMAGING_MODE_PA] = { |
83 | | - .name = "PA", |
84 | | - .bands = 2, |
85 | | - .pixelsize = 4, |
86 | | - .arrow_band_format = "C", |
87 | | - .band_names = {"P", "X", "X", "A"}, |
88 | | - }, |
89 | | - [IMAGING_MODE_RGB] = { |
90 | | - .name = "RGB", |
91 | | - .bands = 3, |
92 | | - .pixelsize = 4, |
93 | | - .arrow_band_format = "C", |
94 | | - .band_names = {"R", "G", "B", "X"}, |
95 | | - }, |
96 | | - [IMAGING_MODE_RGBA] = { |
97 | | - .name = "RGBA", |
98 | | - .bands = 4, |
99 | | - .pixelsize = 4, |
100 | | - .arrow_band_format = "C", |
101 | | - .band_names = {"R", "G", "B", "A"}, |
102 | | - }, |
103 | | - [IMAGING_MODE_RGBX] = { |
104 | | - .name = "RGBX", |
105 | | - .bands = 4, |
106 | | - .pixelsize = 4, |
107 | | - .arrow_band_format = "C", |
108 | | - .band_names = {"R", "G", "B", "X"}, |
109 | | - }, |
110 | | - [IMAGING_MODE_RGBa] = { |
111 | | - .name = "RGBa", |
112 | | - .bands = 4, |
113 | | - .pixelsize = 4, |
114 | | - .arrow_band_format = "C", |
115 | | - .band_names = {"R", "G", "B", "a"}, |
116 | | - }, |
117 | | - [IMAGING_MODE_YCbCr] = { |
118 | | - .name = "YCbCr", |
119 | | - .bands = 3, |
120 | | - .pixelsize = 4, |
121 | | - .arrow_band_format = "C", |
122 | | - .band_names = {"Y", "Cb", "Cr", "X"}, |
123 | | - }, |
| 12 | + [IMAGING_MODE_1] = |
| 13 | + { |
| 14 | + .name = "1", |
| 15 | + .arrow_band_format = "C", |
| 16 | + .bands = 1, |
| 17 | + .pixelsize = 1, |
| 18 | + .band_names = {"1"}, |
| 19 | + }, |
| 20 | + [IMAGING_MODE_CMYK] = |
| 21 | + { |
| 22 | + .name = "CMYK", |
| 23 | + .bands = 4, |
| 24 | + .pixelsize = 4, |
| 25 | + .arrow_band_format = "C", |
| 26 | + .band_names = {"C", "M", "Y", "K"}, |
| 27 | + }, |
| 28 | + [IMAGING_MODE_F] = |
| 29 | + { |
| 30 | + .name = "F", |
| 31 | + .bands = 1, |
| 32 | + .pixelsize = 4, |
| 33 | + .arrow_band_format = "f", |
| 34 | + .band_names = {"F"}, |
| 35 | + }, |
| 36 | + [IMAGING_MODE_HSV] = |
| 37 | + { |
| 38 | + .name = "HSV", |
| 39 | + .bands = 3, |
| 40 | + .pixelsize = 4, |
| 41 | + .arrow_band_format = "C", |
| 42 | + .band_names = {"H", "S", "V", "X"}, |
| 43 | + }, |
| 44 | + [IMAGING_MODE_I] = |
| 45 | + { |
| 46 | + .name = "I", |
| 47 | + .bands = 1, |
| 48 | + .pixelsize = 4, |
| 49 | + .arrow_band_format = "i", |
| 50 | + .band_names = {"I"}, |
| 51 | + }, |
| 52 | + [IMAGING_MODE_L] = |
| 53 | + { |
| 54 | + .name = "L", |
| 55 | + .bands = 1, |
| 56 | + .pixelsize = 1, |
| 57 | + .arrow_band_format = "C", |
| 58 | + .band_names = {"L"}, |
| 59 | + }, |
| 60 | + [IMAGING_MODE_LA] = |
| 61 | + { |
| 62 | + .name = "LA", |
| 63 | + .bands = 2, |
| 64 | + .pixelsize = 4, |
| 65 | + .arrow_band_format = "C", |
| 66 | + .band_names = {"L", "X", "X", "A"}, |
| 67 | + }, |
| 68 | + [IMAGING_MODE_LAB] = |
| 69 | + { |
| 70 | + .name = "LAB", |
| 71 | + .bands = 3, |
| 72 | + .pixelsize = 4, |
| 73 | + .arrow_band_format = "C", |
| 74 | + .band_names = {"L", "a", "b", "X"}, |
| 75 | + }, |
| 76 | + [IMAGING_MODE_La] = |
| 77 | + { |
| 78 | + .name = "La", |
| 79 | + .bands = 2, |
| 80 | + .pixelsize = 4, |
| 81 | + .arrow_band_format = "C", |
| 82 | + .band_names = {"L", "X", "X", "a"}, |
| 83 | + }, |
| 84 | + [IMAGING_MODE_P] = |
| 85 | + { |
| 86 | + .name = "P", |
| 87 | + .bands = 1, |
| 88 | + .pixelsize = 1, |
| 89 | + .arrow_band_format = "C", |
| 90 | + .band_names = {"P"}, |
| 91 | + }, |
| 92 | + [IMAGING_MODE_PA] = |
| 93 | + { |
| 94 | + .name = "PA", |
| 95 | + .bands = 2, |
| 96 | + .pixelsize = 4, |
| 97 | + .arrow_band_format = "C", |
| 98 | + .band_names = {"P", "X", "X", "A"}, |
| 99 | + }, |
| 100 | + [IMAGING_MODE_RGB] = |
| 101 | + { |
| 102 | + .name = "RGB", |
| 103 | + .bands = 3, |
| 104 | + .pixelsize = 4, |
| 105 | + .arrow_band_format = "C", |
| 106 | + .band_names = {"R", "G", "B", "X"}, |
| 107 | + }, |
| 108 | + [IMAGING_MODE_RGBA] = |
| 109 | + { |
| 110 | + .name = "RGBA", |
| 111 | + .bands = 4, |
| 112 | + .pixelsize = 4, |
| 113 | + .arrow_band_format = "C", |
| 114 | + .band_names = {"R", "G", "B", "A"}, |
| 115 | + }, |
| 116 | + [IMAGING_MODE_RGBX] = |
| 117 | + { |
| 118 | + .name = "RGBX", |
| 119 | + .bands = 4, |
| 120 | + .pixelsize = 4, |
| 121 | + .arrow_band_format = "C", |
| 122 | + .band_names = {"R", "G", "B", "X"}, |
| 123 | + }, |
| 124 | + [IMAGING_MODE_RGBa] = |
| 125 | + { |
| 126 | + .name = "RGBa", |
| 127 | + .bands = 4, |
| 128 | + .pixelsize = 4, |
| 129 | + .arrow_band_format = "C", |
| 130 | + .band_names = {"R", "G", "B", "a"}, |
| 131 | + }, |
| 132 | + [IMAGING_MODE_YCbCr] = |
| 133 | + { |
| 134 | + .name = "YCbCr", |
| 135 | + .bands = 3, |
| 136 | + .pixelsize = 4, |
| 137 | + .arrow_band_format = "C", |
| 138 | + .band_names = {"Y", "Cb", "Cr", "X"}, |
| 139 | + }, |
124 | 140 |
|
125 | | - [IMAGING_MODE_I_16] = { |
126 | | - .name = "I;16", |
127 | | - .bands = 1, |
128 | | - .pixelsize = 2, |
129 | | - .arrow_band_format = "s", |
130 | | - .band_names = {"I"}, |
131 | | - }, |
132 | | - [IMAGING_MODE_I_16L] = { |
133 | | - .name = "I;16L", |
134 | | - .bands = 1, |
135 | | - .pixelsize = 2, |
136 | | - .arrow_band_format = "s", |
137 | | - .band_names = {"I"}, |
138 | | - }, |
139 | | - [IMAGING_MODE_I_16B] = { |
140 | | - .name = "I;16B", |
141 | | - .bands = 1, |
142 | | - .pixelsize = 2, |
143 | | - .arrow_band_format = "s", |
144 | | - .band_names = {"I"}, |
145 | | - }, |
146 | | - [IMAGING_MODE_I_16N] = { |
147 | | - .name = "I;16N", |
148 | | - .bands = 1, |
149 | | - .pixelsize = 2, |
150 | | - .arrow_band_format = "s", |
151 | | - .band_names = {"I"}, |
152 | | - }, |
153 | | - [IMAGING_MODE_I_32L] = { |
154 | | - .name = "I;32L", |
155 | | - .bands = 1, |
156 | | - .pixelsize = 4, |
157 | | - .arrow_band_format = "i", |
158 | | - .band_names = {"I"}, |
159 | | - }, |
| 141 | + [IMAGING_MODE_I_16] = |
| 142 | + { |
| 143 | + .name = "I;16", |
| 144 | + .bands = 1, |
| 145 | + .pixelsize = 2, |
| 146 | + .arrow_band_format = "s", |
| 147 | + .band_names = {"I"}, |
| 148 | + }, |
| 149 | + [IMAGING_MODE_I_16L] = |
| 150 | + { |
| 151 | + .name = "I;16L", |
| 152 | + .bands = 1, |
| 153 | + .pixelsize = 2, |
| 154 | + .arrow_band_format = "s", |
| 155 | + .band_names = {"I"}, |
| 156 | + }, |
| 157 | + [IMAGING_MODE_I_16B] = |
| 158 | + { |
| 159 | + .name = "I;16B", |
| 160 | + .bands = 1, |
| 161 | + .pixelsize = 2, |
| 162 | + .arrow_band_format = "s", |
| 163 | + .band_names = {"I"}, |
| 164 | + }, |
| 165 | + [IMAGING_MODE_I_16N] = |
| 166 | + { |
| 167 | + .name = "I;16N", |
| 168 | + .bands = 1, |
| 169 | + .pixelsize = 2, |
| 170 | + .arrow_band_format = "s", |
| 171 | + .band_names = {"I"}, |
| 172 | + }, |
| 173 | + [IMAGING_MODE_I_32L] = |
| 174 | + { |
| 175 | + .name = "I;32L", |
| 176 | + .bands = 1, |
| 177 | + .pixelsize = 4, |
| 178 | + .arrow_band_format = "i", |
| 179 | + .band_names = {"I"}, |
| 180 | + }, |
160 | 181 | [IMAGING_MODE_I_32B] = { |
161 | 182 | .name = "I;32B", |
162 | 183 | .bands = 1, |
|
0 commit comments