1 /* -*- C++ -*-
2  * File: internal/libraw_cameraids.h
3  * Copyright 2008-2020 LibRaw LLC (info@libraw.org)
4  * Created: Sat Aug  17, 2020
5 
6 LibRaw is free software; you can redistribute it and/or modify
7 it under the terms of the one of two licenses as you choose:
8 
9 1. GNU LESSER GENERAL PUBLIC LICENSE version 2.1
10    (See file LICENSE.LGPL provided in LibRaw distribution archive for details).
11 
12 2. COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0
13    (See file LICENSE.CDDL provided in LibRaw distribution archive for details).
14 
15  */
16 
17 #ifndef LIBRAW_CONST_H
18 #define LIBRAW_CONST_H
19 
20 #define CanonID_EOS_M50            0x00000412ULL
21 #define CanonID_EOS_M6_Mark_II     0x00000811ULL
22 #define CanonID_EOS_M200           0x00000812ULL
23 #define CanonID_EOS_D30            0x01140000ULL
24 #define CanonID_EOS_D60            0x01668000ULL
25 #define CanonID_EOS_M3             0x03740000ULL
26 #define CanonID_EOS_M10            0x03840000ULL
27 #define CanonID_EOS_M5             0x03940000ULL
28 #define CanonID_EOS_M100           0x03980000ULL
29 #define CanonID_EOS_M6             0x04070000ULL
30 #define CanonID_EOS_1D            (0x80000000ULL + 0x001ULL)
31 #define CanonID_EOS_1DS           (0x80000000ULL + 0x167ULL)
32 #define CanonID_EOS_10D           (0x80000000ULL + 0x168ULL)
33 #define CanonID_EOS_1D_Mark_III   (0x80000000ULL + 0x169ULL)
34 #define CanonID_EOS_300D          (0x80000000ULL + 0x170ULL)
35 #define CanonID_EOS_1D_Mark_II    (0x80000000ULL + 0x174ULL)
36 #define CanonID_EOS_20D           (0x80000000ULL + 0x175ULL)
37 #define CanonID_EOS_450D          (0x80000000ULL + 0x176ULL)
38 #define CanonID_EOS_1Ds_Mark_II   (0x80000000ULL + 0x188ULL)
39 #define CanonID_EOS_350D          (0x80000000ULL + 0x189ULL)
40 #define CanonID_EOS_40D           (0x80000000ULL + 0x190ULL)
41 #define CanonID_EOS_5D            (0x80000000ULL + 0x213ULL)
42 #define CanonID_EOS_1Ds_Mark_III  (0x80000000ULL + 0x215ULL)
43 #define CanonID_EOS_5D_Mark_II    (0x80000000ULL + 0x218ULL)
44 #define CanonID_EOS_1D_Mark_II_N  (0x80000000ULL + 0x232ULL)
45 #define CanonID_EOS_30D           (0x80000000ULL + 0x234ULL)
46 #define CanonID_EOS_400D          (0x80000000ULL + 0x236ULL)
47 #define CanonID_EOS_7D            (0x80000000ULL + 0x250ULL)
48 #define CanonID_EOS_500D          (0x80000000ULL + 0x252ULL)
49 #define CanonID_EOS_1000D         (0x80000000ULL + 0x254ULL)
50 #define CanonID_EOS_50D           (0x80000000ULL + 0x261ULL)
51 #define CanonID_EOS_1D_X          (0x80000000ULL + 0x269ULL)
52 #define CanonID_EOS_550D          (0x80000000ULL + 0x270ULL)
53 #define CanonID_EOS_1D_Mark_IV    (0x80000000ULL + 0x281ULL)
54 #define CanonID_EOS_5D_Mark_III   (0x80000000ULL + 0x285ULL)
55 #define CanonID_EOS_600D          (0x80000000ULL + 0x286ULL)
56 #define CanonID_EOS_60D           (0x80000000ULL + 0x287ULL)
57 #define CanonID_EOS_1100D         (0x80000000ULL + 0x288ULL)
58 #define CanonID_EOS_7D_Mark_II    (0x80000000ULL + 0x289ULL)
59 #define CanonID_EOS_650D          (0x80000000ULL + 0x301ULL)
60 #define CanonID_EOS_6D            (0x80000000ULL + 0x302ULL)
61 #define CanonID_EOS_1D_C          (0x80000000ULL + 0x324ULL)
62 #define CanonID_EOS_70D           (0x80000000ULL + 0x325ULL)
63 #define CanonID_EOS_700D          (0x80000000ULL + 0x326ULL)
64 #define CanonID_EOS_1200D         (0x80000000ULL + 0x327ULL)
65 #define CanonID_EOS_1D_X_Mark_II  (0x80000000ULL + 0x328ULL)
66 #define CanonID_EOS_M             (0x80000000ULL + 0x331ULL)
67 #define CanonID_EOS_100D          (0x80000000ULL + 0x346ULL)
68 #define CanonID_EOS_760D          (0x80000000ULL + 0x347ULL)
69 #define CanonID_EOS_5D_Mark_IV    (0x80000000ULL + 0x349ULL)
70 #define CanonID_EOS_80D           (0x80000000ULL + 0x350ULL)
71 #define CanonID_EOS_M2            (0x80000000ULL + 0x355ULL)
72 #define CanonID_EOS_5DS           (0x80000000ULL + 0x382ULL)
73 #define CanonID_EOS_750D          (0x80000000ULL + 0x393ULL)
74 #define CanonID_EOS_5DS_R         (0x80000000ULL + 0x401ULL)
75 #define CanonID_EOS_1300D         (0x80000000ULL + 0x404ULL)
76 #define CanonID_EOS_800D          (0x80000000ULL + 0x405ULL)
77 #define CanonID_EOS_6D_Mark_II    (0x80000000ULL + 0x406ULL)
78 #define CanonID_EOS_77D           (0x80000000ULL + 0x408ULL)
79 #define CanonID_EOS_200D          (0x80000000ULL + 0x417ULL)
80 #define CanonID_EOS_3000D         (0x80000000ULL + 0x422ULL)
81 #define CanonID_EOS_R             (0x80000000ULL + 0x424ULL)
82 #define CanonID_EOS_1D_X_Mark_III (0x80000000ULL + 0x428ULL)
83 #define CanonID_EOS_1500D         (0x80000000ULL + 0x432ULL)
84 #define CanonID_EOS_RP            (0x80000000ULL + 0x433ULL)
85 #define CanonID_EOS_250D          (0x80000000ULL + 0x436ULL)
86 #define CanonID_EOS_90D           (0x80000000ULL + 0x437ULL)
87 
88 // CanonID_EOS_D2000C after Canon's TIFF2CR2 convertor:
89 #define CanonID_EOS_D2000C        (0x80000000ULL + 0x520ULL)
90 // CanonID_EOS_D6000C id after Canon's TIFF2CR2 convertor:
91 #define CanonID_EOS_D6000C        (0x80000000ULL + 0x560ULL)
92 
93 #define OlyID_str2hex(str) ((unsigned long long)str[0]<<32 | str[1]<<24 | str[2]<<16 | str[3]<<8 | str[4])
94 #define OlyID_E_20            OlyID_str2hex("D4029")
95 #define OlyID_E_1             OlyID_str2hex("D4040")
96 #define OlyID_E_300           OlyID_str2hex("D4041")
97 #define OlyID_SP_550UZ        OlyID_str2hex("D4321")
98 #define OlyID_SP_510UZ        OlyID_str2hex("D4322")
99 #define OlyID_SP_560UZ        OlyID_str2hex("D4355")
100 #define OlyID_SP_570UZ        OlyID_str2hex("D4364")
101 #define OlyID_SP_565UZ        OlyID_str2hex("D4374")
102 #define OlyID_XZ_1            OlyID_str2hex("D4401")
103 #define OlyID_XZ_2            OlyID_str2hex("D4531")
104 #define OlyID_XZ_10           OlyID_str2hex("D4546")
105 #define OlyID_STYLUS_1        OlyID_str2hex("D4572")
106 #define OlyID_SH_2            OlyID_str2hex("D4585")
107 #define OlyID_TG_4            OlyID_str2hex("D4586")
108 #define OlyID_TG_5            OlyID_str2hex("D4593")
109 #define OlyID_TG_6            OlyID_str2hex("D4603")
110 #define OlyID_E_10            OlyID_str2hex("D4842")
111 #define OlyID_AIR_A01         OlyID_str2hex("K0055")
112 #define OlyID_NORMA           OlyID_str2hex("NORMA")
113 #define OlyID_E_330           OlyID_str2hex("S0003")
114 #define OlyID_E_500           OlyID_str2hex("S0004")
115 #define OlyID_E_400           OlyID_str2hex("S0009")
116 #define OlyID_E_510           OlyID_str2hex("S0010")
117 #define OlyID_E_3             OlyID_str2hex("S0011")
118 #define OlyID_E_410           OlyID_str2hex("S0013")
119 #define OlyID_E_420           OlyID_str2hex("S0016")
120 #define OlyID_E_30            OlyID_str2hex("S0017")
121 #define OlyID_E_520           OlyID_str2hex("S0018")
122 #define OlyID_E_P1            OlyID_str2hex("S0019")
123 #define OlyID_E_620           OlyID_str2hex("S0023")
124 #define OlyID_E_P2            OlyID_str2hex("S0026")
125 #define OlyID_E_PL1           OlyID_str2hex("S0027")
126 #define OlyID_E_450           OlyID_str2hex("S0029")
127 #define OlyID_E_600           OlyID_str2hex("S0030")
128 #define OlyID_E_P3            OlyID_str2hex("S0032")
129 #define OlyID_E_5             OlyID_str2hex("S0033")
130 #define OlyID_E_PL2           OlyID_str2hex("S0034")
131 #define OlyID_E_M5            OlyID_str2hex("S0036")
132 #define OlyID_E_PL3           OlyID_str2hex("S0038")
133 #define OlyID_E_PM1           OlyID_str2hex("S0039")
134 #define OlyID_E_PL1s          OlyID_str2hex("S0040")
135 #define OlyID_E_PL5           OlyID_str2hex("S0042")
136 #define OlyID_E_PM2           OlyID_str2hex("S0043")
137 #define OlyID_E_P5            OlyID_str2hex("S0044")
138 #define OlyID_E_PL6           OlyID_str2hex("S0045")
139 #define OlyID_E_PL7           OlyID_str2hex("S0046")
140 #define OlyID_E_M1            OlyID_str2hex("S0047")
141 #define OlyID_E_M10           OlyID_str2hex("S0051")
142 #define OlyID_E_M5_Mark_II    OlyID_str2hex("S0052")
143 #define OlyID_E_M10_Mark_II   OlyID_str2hex("S0059")
144 #define OlyID_PEN_F           OlyID_str2hex("S0061")
145 #define OlyID_E_PL8           OlyID_str2hex("S0065")
146 #define OlyID_E_M1_Mark_II    OlyID_str2hex("S0067")
147 #define OlyID_E_M10_Mark_III  OlyID_str2hex("S0068")
148 #define OlyID_E_PL9           OlyID_str2hex("S0076")
149 #define OlyID_E_M1X           OlyID_str2hex("S0080")
150 #define OlyID_E_PL10          OlyID_str2hex("S0085")
151 #define OlyID_E_M5_Mark_III   OlyID_str2hex("S0089")
152 #define OlyID_E_M1_Mark_III   OlyID_str2hex("S0092")
153 #define OlyID_C_3030Z         OlyID_str2hex("SX351")
154 #define OlyID_C_5050Z         OlyID_str2hex("SX558")
155 #define OlyID_C_350Z          OlyID_str2hex("SX751")
156 #define OlyID_C_740UZ         OlyID_str2hex("SX754")
157 #define OlyID_C_5060WZ        OlyID_str2hex("SX756")
158 #define OlyID_C_8080WZ        OlyID_str2hex("SX757")
159 #define OlyID_C_770UZ         OlyID_str2hex("SX772")
160 #define OlyID_C_7070WZ        OlyID_str2hex("SX851")
161 #define OlyID_C_7000Z         OlyID_str2hex("SX852")
162 #define OlyID_SP_500UZ        OlyID_str2hex("SX853")
163 #define OlyID_SP_310          OlyID_str2hex("SX854")
164 #define OlyID_SP_350          OlyID_str2hex("SX855")
165 #define OlyID_SP_320          OlyID_str2hex("SX873")
166 
167 #define PentaxID_Optio_S      0x1296cULL
168 #define PentaxID_Optio_S_V101 0x12971ULL
169 #define PentaxID_staristD     0x12994ULL
170 #define PentaxID_Optio_33WR   0x129c6ULL
171 #define PentaxID_Optio_S4     0x129d5ULL
172 #define PentaxID_Optio_750Z   0x12a66ULL
173 #define PentaxID_staristDS    0x12aa2ULL
174 #define PentaxID_staristDL    0x12b1aULL
175 #define PentaxID_staristDS2   0x12b60ULL
176 #define PentaxID_GX_1S        0x12b62ULL
177 #define PentaxID_staristDL2   0x12b7eULL
178 #define PentaxID_GX_1L        0x12b80ULL
179 #define PentaxID_K100D        0x12b9cULL
180 #define PentaxID_K110D        0x12b9dULL
181 #define PentaxID_K100D_Super  0x12ba2ULL
182 #define PentaxID_K10D         0x12c1eULL
183 #define PentaxID_GX10         0x12c20ULL
184 #define PentaxID_K20D         0x12cd2ULL
185 #define PentaxID_GX20         0x12cd4ULL
186 #define PentaxID_K200D        0x12cfaULL
187 #define PentaxID_K2000        0x12d72ULL
188 #define PentaxID_K_m          0x12d73ULL
189 #define PentaxID_K_7          0x12db8ULL
190 #define PentaxID_K_x          0x12dfeULL
191 #define PentaxID_645D         0x12e08ULL
192 #define PentaxID_K_r          0x12e6cULL
193 #define PentaxID_K_5          0x12e76ULL
194 #define PentaxID_Q            0x12ee4ULL
195 #define PentaxID_K_01         0x12ef8ULL
196 #define PentaxID_K_30         0x12f52ULL
197 #define PentaxID_Q10          0x12f66ULL
198 #define PentaxID_K_5_II       0x12f70ULL
199 #define PentaxID_K_5_II_s     0x12f71ULL
200 #define PentaxID_Q7           0x12f7aULL
201 #define PentaxID_MX_1         0x12f84ULL
202 #define PentaxID_K_50         0x12fb6ULL
203 #define PentaxID_K_3          0x12fc0ULL
204 #define PentaxID_K_500        0x12fcaULL
205 #define PentaxID_645Z         0x13010ULL
206 #define PentaxID_K_S1         0x1301aULL
207 #define PentaxID_K_S2         0x13024ULL
208 #define PentaxID_Q_S1         0x1302eULL
209 #define PentaxID_K_1          0x13092ULL
210 #define PentaxID_K_3_II       0x1309cULL
211 #define PentaxID_GR_III       0x1320eULL
212 #define PentaxID_K_70         0x13222ULL
213 #define PentaxID_KP           0x1322cULL
214 #define PentaxID_K_1_Mark_II  0x13240ULL
215 
216 #define SonyID_DSC_R1           0x002ULL
217 #define SonyID_DSLR_A100        0x100ULL
218 #define SonyID_DSLR_A900        0x101ULL
219 #define SonyID_DSLR_A700        0x102ULL
220 #define SonyID_DSLR_A200        0x103ULL
221 #define SonyID_DSLR_A350        0x104ULL
222 #define SonyID_DSLR_A300        0x105ULL
223 #define SonyID_DSLR_A900_APSC   0x106ULL
224 #define SonyID_DSLR_A380        0x107ULL
225 #define SonyID_DSLR_A330        0x108ULL
226 #define SonyID_DSLR_A230        0x109ULL
227 #define SonyID_DSLR_A290        0x10aULL
228 #define SonyID_DSLR_A850        0x10dULL
229 #define SonyID_DSLR_A850_APSC   0x10eULL
230 #define SonyID_DSLR_A550        0x111ULL
231 #define SonyID_DSLR_A500        0x112ULL
232 #define SonyID_DSLR_A450        0x113ULL
233 #define SonyID_NEX_5            0x116ULL
234 #define SonyID_NEX_3            0x117ULL
235 #define SonyID_SLT_A33          0x118ULL
236 #define SonyID_SLT_A55          0x119ULL
237 #define SonyID_DSLR_A560        0x11aULL
238 #define SonyID_DSLR_A580        0x11bULL
239 #define SonyID_NEX_C3           0x11cULL
240 #define SonyID_SLT_A35          0x11dULL
241 #define SonyID_SLT_A65          0x11eULL
242 #define SonyID_SLT_A77          0x11fULL
243 #define SonyID_NEX_5N           0x120ULL
244 #define SonyID_NEX_7            0x121ULL
245 #define SonyID_NEX_VG20         0x122ULL
246 #define SonyID_SLT_A37          0x123ULL
247 #define SonyID_SLT_A57          0x124ULL
248 #define SonyID_NEX_F3           0x125ULL
249 #define SonyID_SLT_A99          0x126ULL
250 #define SonyID_NEX_6            0x127ULL
251 #define SonyID_NEX_5R           0x128ULL
252 #define SonyID_DSC_RX100        0x129ULL
253 #define SonyID_DSC_RX1          0x12aULL
254 #define SonyID_NEX_VG900        0x12bULL
255 #define SonyID_NEX_VG30         0x12cULL
256 #define SonyID_ILCE_3000        0x12eULL
257 #define SonyID_SLT_A58          0x12fULL
258 #define SonyID_NEX_3N           0x131ULL
259 #define SonyID_ILCE_7           0x132ULL
260 #define SonyID_NEX_5T           0x133ULL
261 #define SonyID_DSC_RX100M2      0x134ULL
262 #define SonyID_DSC_RX10         0x135ULL
263 #define SonyID_DSC_RX1R         0x136ULL
264 #define SonyID_ILCE_7R          0x137ULL
265 #define SonyID_ILCE_6000        0x138ULL
266 #define SonyID_ILCE_5000        0x139ULL
267 #define SonyID_DSC_RX100M3      0x13dULL
268 #define SonyID_ILCE_7S          0x13eULL
269 #define SonyID_ILCA_77M2        0x13fULL
270 #define SonyID_ILCE_5100        0x153ULL
271 #define SonyID_ILCE_7M2         0x154ULL
272 #define SonyID_DSC_RX100M4      0x155ULL
273 #define SonyID_DSC_RX10M2       0x156ULL
274 #define SonyID_DSC_RX1RM2       0x158ULL
275 #define SonyID_ILCE_QX1         0x15aULL
276 #define SonyID_ILCE_7RM2        0x15bULL
277 #define SonyID_ILCE_7SM2        0x15eULL
278 #define SonyID_ILCA_68          0x161ULL
279 #define SonyID_ILCA_99M2        0x162ULL
280 #define SonyID_DSC_RX10M3       0x163ULL
281 #define SonyID_DSC_RX100M5      0x164ULL
282 #define SonyID_ILCE_6300        0x165ULL
283 #define SonyID_ILCE_9           0x166ULL
284 #define SonyID_ILCE_6500        0x168ULL
285 #define SonyID_ILCE_7RM3        0x16aULL
286 #define SonyID_ILCE_7M3         0x16bULL
287 #define SonyID_DSC_RX0          0x16cULL
288 #define SonyID_DSC_RX10M4       0x16dULL
289 #define SonyID_DSC_RX100M6      0x16eULL
290 #define SonyID_DSC_HX99         0x16fULL
291 #define SonyID_DSC_RX100M5A     0x171ULL
292 #define SonyID_ILCE_6400        0x173ULL
293 #define SonyID_DSC_RX0M2        0x174ULL
294 #define SonyID_DSC_RX100M7      0x176ULL
295 #define SonyID_ILCE_7RM4        0x177ULL
296 #define SonyID_ILCE_9M2         0x178ULL
297 #define SonyID_ILCE_6600        0x17aULL
298 #define SonyID_ILCE_6100        0x17bULL
299 
300 #endif
301