1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
|
/* GIMP - The GNU Image Manipulation Program
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
*
* file-darktable.c -- raw file format plug-in that uses darktable
* Copyright (C) 2016 Tobias Ellinghaus <me@houz.org>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
/* These are the raw formats that file-darktable will register */
typedef struct _FileFormat FileFormat;
struct _FileFormat
{
const gchar *file_type;
const gchar *mime_type;
const gchar *extensions;
const gchar *magic;
const gchar *load_proc_format;
const gchar *load_blurb_format;
const gchar *load_help_format;
};
/* some magic numbers taken from
* http://www.garykessler.net/library/file_sigs.html
*
* see also
* http://fileformats.archiveteam.org/wiki/Cameras_and_Digital_Image_Sensors
*/
static const FileFormat file_formats[] =
{
{
N_("Raw Canon"),
"image/x-canon-cr2,image/x-canon-crw,image/x-canon-cr3",
"cr2,crw,cr3",
"0,string,II*\\0\\020\\0\\0\\0CR," /* cr2 */
"0,string,II\\024\\0\\0\\0HEAPCCDR," /* crw */
"4,string,ftypcrx ", /* cr3 */
"file-%s-canon-load",
"Load files in the Canon raw formats via %s",
"This plug-in loads files in Canon's raw formats by calling %s."
},
{
N_("Raw Nikon"),
"image/x-nikon-nef,image/x-nikon-nrw",
"nef,nrw",
NULL,
"file-%s-nikon-load",
"Load files in the Nikon raw formats via %s",
"This plug-in loads files in Nikon's raw formats by calling %s."
},
{
N_("Raw Hasselblad"),
"image/x-hasselblad-3fr,image/x-hasselblad-fff",
"3fr,fff",
NULL,
"file-%s-hasselblad-load",
"Load files in the Hasselblad raw formats via %s",
"This plug-in loads files in Hasselblad's raw formats by calling %s."
},
{
N_("Raw Sony"),
"image/x-sony-arw,image/x-sony-srf,image/x-sony-sr2",
"arw,srf,sr2",
NULL,
"file-%s-sony-load",
"Load files in the Sony raw formats via %s",
"This plug-in loads files in Sony's raw formats by calling %s."
},
{
N_("Raw Casio BAY"),
"image/x-casio-bay",
"bay",
NULL,
"file-%s-bay-load",
"Load files in the BAY raw format via %s",
"This plug-in loads files in Casio's raw BAY format by calling %s."
},
{
N_("Raw Phantom Software CINE"),
"", /* FIXME: find a mime type */
"cine,cin",
NULL,
"file-%s-cine-load",
"Load files in the CINE raw format via %s",
"This plug-in loads files in Phantom Software's raw CINE format by calling %s."
},
{
N_("Raw Sinar"),
"", /* FIXME: find a mime type */
"cs1,ia,sti",
NULL,
"file-%s-sinar-load",
"Load files in the Sinar raw formats via %s",
"This plug-in loads files in Sinar's raw formats by calling %s."
},
{
N_("Raw Kodak"),
"image/x-kodak-dc2,image/x-kodak-dcr,image/x-kodak-kdc,image/x-kodak-k25,image/x-kodak-kc2",
"dc2,dcr,kdc,k25,kc2",
NULL,
"file-%s-kodak-load",
"Load files in the Kodak raw formats via %s",
"This plug-in loads files in Kodak's raw formats by calling %s."
},
{
N_("Raw Adobe DNG Digital Negative"),
"image/x-adobe-dng",
"dng",
NULL,
"file-%s-dng-load",
"Load files in the DNG raw format via %s",
"This plug-in loads files in the Adobe Digital Negative DNG format by calling %s."
},
{
N_("Raw Epson ERF"),
"image/x-epson-erf",
"erf",
NULL,
"file-%s-erf-load",
"Load files in the ERF raw format via %s",
"This plug-in loads files in Epson's raw ERF format by calling %s."
},
{
N_("Raw Phase One"),
"image/x-phaseone-cap,image/x-phaseone-iiq",
"cap,iiq",
NULL,
"file-%s-phaseone-load",
"Load files in the Phase One raw formats via %s",
"This plug-in loads files in Phase One's raw formats by calling %s."
},
{
N_("Raw Minolta"),
"image/x-minolta-mdc,image/x-minolta-mrw",
"mdc,mrw",
NULL,
"file-%s-minolta-load",
"Load files in the Minolta raw formats via %s",
"This plug-in loads files in Minolta's raw formats by calling %s."
},
{
N_("Raw Mamiya MEF"),
"image/x-mamiya-mef",
"mef", NULL,
"file-%s-mef-load",
"Load files in the MEF raw format via %s",
"This plug-in loads files in Mamiya's raw MEF format by calling %s."
},
{
N_("Raw Leaf MOS"),
"image/x-leaf-mos",
"mos",
NULL,
"file-%s-mos-load",
"Load files in the MOS raw format via %s",
"This plug-in loads files in Leaf's raw MOS format by calling %s."
},
{
N_("Raw Olympus ORF"),
"image/x-olympus-orf",
"orf",
"0,string,IIRO,0,string,MMOR,0,string,IIRS",
"file-%s-orf-load",
"Load files in the ORF raw format via %s",
"This plug-in loads files in Olympus' raw ORF format by calling %s."
},
{
N_("Raw Pentax PEF"),
"image/x-pentax-pef,image/x-pentax-raw",
"pef,raw",
NULL,
"file-%s-pef-load",
"Load files in the PEF raw format via %s",
"This plug-in loads files in Pentax' raw PEF format by calling %s."
},
{
N_("Raw Logitech PXN"),
"image/x-pxn", /* FIXME: is that the correct mime type? */
"pxn",
NULL,
"file-%s-pxn-load",
"Load files in the PXN raw format via %s",
"This plug-in loads files in Logitech's raw PXN format by calling %s."
},
{
N_("Raw Apple QuickTake QTK"),
"", /* FIXME: find a mime type */
"qtk",
NULL,
"file-%s-qtk-load",
"Load files in the QTK raw format via %s",
"This plug-in loads files in Apple's QuickTake QTK raw format by calling %s."
},
{
N_("Raw Fujifilm RAF"),
"image/x-fuji-raf",
"raf",
"0,string,FUJIFILMCCD-RAW",
"file-%s-raf-load",
"Load files in the RAF raw format via %s",
"This plug-in loads files in Fujifilm's raw RAF format by calling %s."
},
{
N_("Raw Panasonic"),
"image/x-panasonic-raw,image/x-panasonic-rw2",
"raw,rw2",
"0,string,IIU\\0",
"file-%s-panasonic-load",
"Load files in the Panasonic raw formats via %s",
"This plug-in loads files in Panasonic's raw formats by calling %s."
},
{
N_("Raw Digital Foto Maker RDC"),
"", /* FIXME: find a mime type */
"rdc",
NULL,
"file-%s-rdc-load",
"Load files in the RDC raw format via %s",
"This plug-in loads files in Digital Foto Maker's raw RDC format by calling %s."
},
{
N_("Raw Leica RWL"),
"image/x-leica-rwl",
"rwl",
NULL,
"file-%s-rwl-load",
"Load files in the RWL raw format via %s",
"This plug-in loads files in Leica's raw RWL format by calling %s."
},
{
N_("Raw Samsung SRW"),
"image/x-samsung-srw",
"srw",
NULL,
"file-%s-srw-load",
"Load files in the SRW raw format via %s",
"This plug-in loads files in Samsung's raw SRW format by calling %s."
},
{
N_("Raw Sigma X3F"),
"image/x-sigma-x3f",
"x3f",
"0,string,FOVb",
"file-%s-x3f-load",
"Load files in the X3F raw format via %s",
"This plug-in loads files in Sigma's raw X3F format by calling %s."
},
{
N_("Raw Arriflex ARI"),
"",
"ari",
NULL,
"file-%s-ari-load",
"Load files in the ARI raw format via %s",
"This plug-in loads files in Arriflex' raw ARI format by calling %s."
}
};
|