-
Notifications
You must be signed in to change notification settings - Fork 7
/
maker_extern.h
536 lines (484 loc) · 29.2 KB
/
maker_extern.h
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
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
/* =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- */
/* EXIFPROBE - TIFF/JPEG/EXIF image file probe */
/* =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- */
/* Copyright (C) 2002 by Duane H. Hesser. All rights reserved. */
/* */
/* See the file LICENSE.EXIFPROBE for terms of use. */
/* =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- */
/* =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- */
/* @(#) $Id: maker_extern.h,v 1.3 2005/06/25 15:11:43 alex Exp $ */
/* =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- */
/* General definitions for makernotes */
#ifndef MAKER_EXTERN_INCLUDED
#define MAKER_EXTERN_INCLUDED
#include "maker_datadefs.h"
/* ====================== Maker functions ========================== */
/* Generic */
extern void print_makertagid(struct ifd_entry *,int,char *,int,int);
extern void print_makertaginfo(struct ifd_entry *,char *,int,int,int);
extern int maker_value_is_offset(struct ifd_entry *,int,int);
extern char *maker_tagname(unsigned short,int,int);
extern int check_makernote(FILE*,unsigned long);
extern void print_scheme(FILE *,struct maker_scheme *);
extern struct maker_scheme *retrieve_makerscheme();
extern void clear_makerscheme();
extern int maker_number(char *);
extern int model_number(int,char *,char *);
extern struct maker_scheme *find_makerscheme(FILE *,unsigned long,
unsigned long,
unsigned short,
unsigned long,
int,int);
extern unsigned long print_makerentry(FILE *,unsigned short,
struct ifd_entry *,
unsigned long,
struct image_summary *,
char *,int,int,int);
extern void print_makervalue(struct ifd_entry *,int,int,char *);
extern unsigned long print_offset_makervalue(FILE *,unsigned short,
struct ifd_entry *,
unsigned long,
struct image_summary *,
char *,char *,
int,int,int,int);
extern void print_generic_offset_makervalue(FILE *,unsigned short,
struct ifd_entry *,
unsigned long,
char *,char *,
int,int,int,int);
extern void print_camera_makes();
extern void print_camera_models(struct camera_id *,char *);
extern void find_maker_model(struct maker_scheme *,int,int);
extern void setnoteversion(int);
extern void setoptionnoteversion(int);
extern void setnotetagset(int);
extern int getnoteversion();
extern int getnotetagset();
/* Agfa */
extern char *maker_agfa_tagname(unsigned short,int);
extern char *maker_agfa1_tagname(unsigned short);
extern void print_agfa_makervalue(struct ifd_entry *,int,int,char *);
extern void print_agfa1_makervalue(struct ifd_entry *,int,int,char *);
extern void print_agfa_offset_makervalue(FILE *,unsigned short,
struct ifd_entry *,
unsigned long,
struct image_summary *,
char *,char *,
int,int,int,int);
extern void agfa1_offset_makervalue(FILE *,unsigned short,
struct ifd_entry *,
unsigned long,
struct image_summary *,
char *,char*,
int,int,int,int);
extern void agfa1_interpret_value(struct ifd_entry *);
extern void agfa1_interpret_offset_makervalue(FILE *,unsigned short,
struct ifd_entry *,
unsigned long);
extern int agfa_model_number(char *,char *);
/* Asahi/Pentax */
extern char *maker_asahi_tagname(unsigned short,int);
extern char *maker_asahi1_tagname(unsigned short,int);
extern char *maker_asahi2_tagname(unsigned short,int);
extern char *maker_asahi3_tagname(unsigned short,int);
extern void print_asahi_makervalue(struct ifd_entry *,int,int,char *);
extern void print_asahi1_makervalue(struct ifd_entry *,int,int,char *);
extern void print_asahi_offset_makervalue(FILE *,unsigned short,
struct ifd_entry *,
unsigned long,
struct image_summary *,
char *,char *,
int,int,int,int);
extern void asahi1_offset_makervalue(FILE *,unsigned short,
struct ifd_entry *,
unsigned long,
struct image_summary *,
char*,char *,
int,int,int,int);
extern void asahi2_offset_makervalue(FILE *,unsigned short,
struct ifd_entry *,
unsigned long,
struct image_summary *,
char*,char *,
int,int,int,int);
extern void asahi1_interpret_value(struct ifd_entry *);
extern void asahi2_interpret_value(struct ifd_entry *);
extern void asahi3_interpret_value(struct ifd_entry *);
extern int asahi_model_number(char *,char *);
extern int set_asahi_noteversion();
extern int maker_asahi_value_is_offset(struct ifd_entry *,int );
#include "canon_extern.h"
/* Casio */
extern char *maker_casio_tagname(unsigned short,int);
extern char *maker_casio1_tagname(unsigned short,int);
extern char *maker_casio2_tagname(unsigned short,int);
extern int set_casio_noteversion();
extern void print_casio_makervalue(struct ifd_entry *,int,int,char *);
extern void print_casio1_makervalue(struct ifd_entry *,int,int,char *);
extern void print_casio_offset_makervalue(FILE *,unsigned short,
struct ifd_entry *,
unsigned long,
struct image_summary *,
char *,char *,
int,int,int,int);
extern void casio1_offset_makervalue(FILE *,unsigned short,
struct ifd_entry *,
unsigned long,
struct image_summary *,
char *,char *,
int,int,int,int);
extern void casio2_offset_makervalue(FILE *,unsigned short,
struct ifd_entry *,
unsigned long,
struct image_summary *,
char *,char *,
int,int,int,int);
extern void casio1_interpret_value(struct ifd_entry *);
extern void casio2_interpret_value(struct ifd_entry *);
extern int casio_model_number(char *,char *);
extern int maker_casio_value_is_offset(struct ifd_entry *,int );
/* Epson */
extern char *maker_epson_tagname(unsigned short,int);
extern char *maker_epson1_tagname(unsigned short,int);
extern void print_epson_makervalue(struct ifd_entry *,int,int,char *);
extern void print_epson1_makervalue(struct ifd_entry *,int,int,char *);
extern void print_epson_offset_makervalue(FILE *,unsigned short,
struct ifd_entry *,
unsigned long,
struct image_summary *,
char *,char *,
int,int,int,int);
extern void epson1_offset_makervalue(FILE *,unsigned short,
struct ifd_entry *,
unsigned long,
struct image_summary *,
char *,char *,
int,int,int,int);
extern void epson1_interpret_value(struct ifd_entry *);
extern void epson1_interpret_offset_makervalue(FILE *,unsigned short,
struct ifd_entry *,
unsigned long);
extern int epson_model_number(char *,char *);
/* Fujifilm */
extern char *maker_fujifilm_tagname(unsigned short,int);
extern char *maker_fujifilm1_tagname(unsigned short,int);
extern void print_fujifilm_makervalue(struct ifd_entry *,int,int,char *);
extern void print_fujifilm1_makervalue(struct ifd_entry *,int,int,char *);
extern void print_fujifilm_offset_makervalue(FILE *,unsigned short,
struct ifd_entry *,
unsigned long,
struct image_summary *,
char *,char *,
int,int,int,int);
extern void fujifilm1_offset_makervalue(FILE *,unsigned short,
struct ifd_entry *,
unsigned long,
struct image_summary *,
char *,char *,
int,int,int,int);
extern void fujifilm1_interpret_value(struct ifd_entry *);
extern int fujifilm_model_number(char *,char *);
/* HP */
extern int hp_model_number(char *,char *);
/* Kodak */
extern int kodak_model_number(char *,char *);
/* Konica */
extern char *maker_konica_tagname(unsigned short,int);
/* extern char *maker_konica1_tagname(unsigned short,int); */
extern void print_konica_makervalue(struct ifd_entry *,int,int,char *);
extern void print_konica1_makervalue(struct ifd_entry *,int,int,char *);
extern void print_konica_offset_makervalue(FILE *,unsigned short,
struct ifd_entry *,
unsigned long,
struct image_summary *,
char *,char *,
int,int,int,int);
extern void konica1_offset_makervalue(FILE *,unsigned short,
struct ifd_entry *,
unsigned long,
struct image_summary *,
char *,char *,
int,int,int,int);
extern int konica_model_number(char *,char *);
/* Kyocera */
extern char *maker_kyocera_tagname(unsigned short,int);
extern void print_kyocera_makervalue(struct ifd_entry *,int,int,char *);
extern void print_kyocera1_makervalue(struct ifd_entry *,int,int,char *);
extern void print_kyocera_offset_makervalue(FILE *,unsigned short,
struct ifd_entry *,
unsigned long,
struct image_summary *,
char *,char *,
int,int,int,int);
extern void kyocera1_offset_makervalue(FILE *,unsigned short,
struct ifd_entry *,
unsigned long,
struct image_summary *,
char *,char *,
int,int,int,int);
extern int kyocera_model_number(char *,char *);
/* Leica */
extern char *maker_leica_tagname(unsigned short,int);
extern char *maker_leica1_tagname(unsigned short,int);
extern void print_leica_makervalue(struct ifd_entry *,int,int,char *);
extern void print_leica1_makervalue(struct ifd_entry *,int,int,char *);
extern void print_leica_offset_makervalue(FILE *,unsigned short,
struct ifd_entry *,
unsigned long,
struct image_summary *,
char *,char *,
int,int,int,int);
extern void leica1_offset_makervalue(FILE *,unsigned short,
struct ifd_entry *,
unsigned long,
struct image_summary *,
char *,char *,
int,int,int,int);
extern void leica1_interpret_value(struct ifd_entry *);
extern int leica_model_number(char *,char *);
/* Minolta */
extern char *maker_minolta_tagname(unsigned short,int);
extern char *maker_minolta1_tagname(unsigned short,int);
extern void print_minolta_makervalue(struct ifd_entry *,int,int,char *);
extern void print_minolta1_makervalue(struct ifd_entry *,int,int,char *);
extern void print_minolta_offset_makervalue(FILE *,unsigned short,
struct ifd_entry *,
unsigned long,
struct image_summary *,
char *,char *,
int,int,int,int);
extern void minolta1_offset_makervalue(FILE *,unsigned short,
struct ifd_entry *,
unsigned long,
struct image_summary *,
char *,char *,
int,int,int,int);
extern void minolta1_interpret_value(struct ifd_entry *,int model);
extern void minolta1_interpret_offset_makervalue(FILE *,unsigned short,
struct ifd_entry *,
unsigned long);
extern int minolta_model_number(char *,char *);
extern int maker_minolta_value_is_offset(struct ifd_entry *,int );
extern unsigned long minolta_camerasetting(FILE *,unsigned short,int,char *,
struct ifd_entry *,
unsigned long,int);
/* Nikon */
extern char *maker_nikon_tagname(unsigned short,int);
extern char *maker_nikon1_tagname(unsigned short,int);
extern char *maker_nikon2_tagname(unsigned short,int);
extern int set_nikon_noteversion();
extern void print_nikon_makervalue(struct ifd_entry *,int,int,char *);
extern void print_nikon_offset_makervalue(FILE *,unsigned short,
struct ifd_entry *,
unsigned long,
struct image_summary *,
char *,char *,
int,int,int,int);
extern void nikon1_offset_makervalue(FILE *,unsigned short,
struct ifd_entry *,
unsigned long,
struct image_summary *,
char *,char *,
int,int,int,int);
extern void nikon2_offset_makervalue(FILE *,unsigned short,
struct ifd_entry *,
unsigned long,
struct image_summary *,
char *,char *,
int,int,int,int);
extern void nikon1_interpret_value(struct ifd_entry *);
extern void nikon2_interpret_value(struct ifd_entry *);
extern void nikon2_interpret_offset_makervalue(FILE *,unsigned short,
struct ifd_entry *,
unsigned long,char *,
char *,int);
extern void nikon_colorbalance(FILE *,struct ifd_entry *,unsigned short,
unsigned long,int);
extern int nikon_model_number(char *,char *);
extern int maker_nikon_value_is_offset(struct ifd_entry *,int );
/* Olympus */
extern char *maker_olympus_tagname(unsigned short,int);
extern char *maker_olympus1_tagname(unsigned short,int);
extern void print_olympus_makervalue(struct ifd_entry *,int,int,char *);
extern void print_olympus1_makervalue(struct ifd_entry *,int,int,char *);
extern void print_olympus_offset_makervalue(FILE *,unsigned short,
struct ifd_entry *,
unsigned long,
struct image_summary *,
char *,char *,
int,int,int,int);
extern void olympus1_offset_makervalue(FILE *,unsigned short,
struct ifd_entry *,
unsigned long,
struct image_summary *,
char *,char *,
int,int,int,int);
extern void olympus1_interpret_value(struct ifd_entry *);
extern void olympus1_interpret_offset_makervalue(FILE *,unsigned short,
struct ifd_entry *,
unsigned long);
extern int olympus_model_number(char *,char *);
extern void olympus_interpret_pe_value(struct ifd_entry *,unsigned short,char *);
extern void olympus2010_interpret_value(struct ifd_entry *,char *);
extern void olympus2020_interpret_value(struct ifd_entry *,char *);
extern void olympus2030_interpret_value(struct ifd_entry *,char *);
extern void olympus2040_interpret_value(struct ifd_entry *,char *);
extern void olympus2050_interpret_value(struct ifd_entry *,char *);
extern void olympus_offset_pe_value(FILE *,unsigned short,struct ifd_entry *,
unsigned long,unsigned short,
struct image_summary *,
char *,char*,int,int,int,int);
extern void olympus1_offset_pe_value(FILE *,unsigned short,struct ifd_entry *,
unsigned long,unsigned short,
struct image_summary *,
char *,char*,int,int,int,int);
extern void olympus2010_offset_value(FILE *,unsigned short,struct ifd_entry *,
unsigned long,
struct image_summary *,
char *,char*,
int,int,int,int);
extern void olympus2020_offset_value(FILE *,unsigned short,struct ifd_entry *,
unsigned long,
struct image_summary *,
char *,char*,
int,int,int,int);
extern void olympus2030_offset_value(FILE *,unsigned short,struct ifd_entry *,
unsigned long,
struct image_summary *,
char *,char*,
int,int,int,int);
extern void olympus2040_offset_value(FILE *,unsigned short,struct ifd_entry *,
unsigned long,
struct image_summary *,
char *,char*,
int,int,int,int);
extern void olympus2050_offset_value(FILE *,unsigned short,struct ifd_entry *,
unsigned long,
struct image_summary *,
char *,char*,
int,int,int,int);
extern void olympus1_interpret_offset_pe_value(FILE *,unsigned short,
struct ifd_entry *,unsigned long,
unsigned short);
extern void olympus2010_interpret_offset_value(FILE *,unsigned short,
struct ifd_entry *,unsigned long);
extern void olympus2020_interpret_offset_value(FILE *,unsigned short,
struct ifd_entry *,unsigned long);
extern void olympus2030_interpret_offset_value(FILE *,unsigned short,
struct ifd_entry *,unsigned long);
extern void olympus2040_interpret_offset_value(FILE *,unsigned short,
struct ifd_entry *,unsigned long);
extern void olympus2050_interpret_offset_value(FILE *,unsigned short,
struct ifd_entry *,unsigned long);
extern char *olympus_private_tagname(unsigned short,unsigned short);
extern char *olympus_private_2010_tagname(unsigned short);
extern char *olympus_private_2020_tagname(unsigned short);
extern char *olympus_private_2030_tagname(unsigned short);
extern char *olympus_private_2040_tagname(unsigned short);
extern char *olympus_private_2050_tagname(unsigned short);
extern int olympus_private_value_is_offset(unsigned short,unsigned short);
extern int olympus2020_value_is_offset(unsigned short);
/* Panasonic */
extern char *maker_panasonic_tagname(unsigned short,int);
extern char *maker_panasonic1_tagname(unsigned short,int);
extern void print_panasonic_makervalue(struct ifd_entry *,int,int,char *);
extern void print_panasonic1_makervalue(struct ifd_entry *,int,int,char *);
extern void print_panasonic_offset_makervalue(FILE *,unsigned short,
struct ifd_entry *,
unsigned long,
struct image_summary *,
char *,char *,
int,int,int,int);
extern void panasonic1_offset_makervalue(FILE *,unsigned short,
struct ifd_entry *,
unsigned long,
struct image_summary *,
char *,char *,
int,int,int,int);
extern void panasonic1_interpret_value(struct ifd_entry *);
extern void panasonic1_interpret_offset_makervalue(FILE *,unsigned short,
struct ifd_entry *,
unsigned long);
extern int panasonic_model_number(char *,char *);
/* Ricoh */
extern int ricoh_model_number(char *,char *);
/* Sanyo */
extern char *maker_sanyo_tagname(unsigned short,int);
extern char *maker_sanyo1_tagname(unsigned short,int);
extern void print_sanyo_makervalue(struct ifd_entry *,int,int,char *);
extern void print_sanyo1_makervalue(struct ifd_entry *,int,int,char *);
extern void print_sanyo_offset_makervalue(FILE *,unsigned short,
struct ifd_entry *,
unsigned long,
struct image_summary *,
char *,char *,
int,int,int,int);
extern void sanyo1_offset_makervalue(FILE *,unsigned short,
struct ifd_entry *,
unsigned long,
struct image_summary *,
char *,char *,
int,int,int,int);
extern void sanyo1_interpret_value(struct ifd_entry *);
extern void sanyo1_interpret_offset_makervalue(FILE *,unsigned short,
struct ifd_entry *,
unsigned long);
extern int sanyo_model_number(char *,char *);
/* Sigma */
extern char *maker_sigma_tagname(unsigned short,int);
extern char *maker_sigma1_tagname(unsigned short,int);
extern void print_sigma_makervalue(struct ifd_entry *,int,int,char *);
extern void print_sigma1_makervalue(struct ifd_entry *,int,int,char *);
extern void print_sigma_offset_makervalue(FILE *,unsigned short,
struct ifd_entry *,
unsigned long,
struct image_summary *,
char *,char *,
int,int,int,int);
extern void sigma1_offset_makervalue(FILE *,unsigned short,
struct ifd_entry *,
unsigned long,
struct image_summary *,
char *,char *,
int,int,int,int);
extern int sigma_model_number(char *,char *);
/* Sony */
extern char *maker_sony_tagname(unsigned short,int);
/* extern char *maker_sony1_tagname(unsigned short,int); */
extern void print_sony_makervalue(struct ifd_entry *,int,int,char *);
extern void print_sony1_makervalue(struct ifd_entry *,int,int,char *);
extern void print_sony_offset_makervalue(FILE *,unsigned short,
struct ifd_entry *,
unsigned long,
struct image_summary *,
char *,char *,
int,int,int,int);
extern void sony1_offset_makervalue(FILE *,unsigned short,
struct ifd_entry *,
unsigned long,
struct image_summary *,
char *,char *,
int,int,int,int);
extern int sony_model_number(char *,char *);
/* Toshiba */
extern char *maker_toshiba_tagname(unsigned short,int);
/* extern char *maker_toshiba1_tagname(unsigned short,int); */
extern void print_toshiba_makervalue(struct ifd_entry *,int,int,char *);
extern void print_toshiba1_makervalue(struct ifd_entry *,int,int,char *);
extern void print_toshiba_offset_makervalue(FILE *,unsigned short,
struct ifd_entry *,
unsigned long,
struct image_summary *,
char *,char *,
int,int,int,int);
extern void toshiba1_offset_makervalue(FILE *,unsigned short,
struct ifd_entry *,
unsigned long,
struct image_summary *,
char *,char *,
int,int,int,int);
extern void toshiba1_interpret_value(struct ifd_entry *);
extern int toshiba_model_number(char *,char *);
/* Traveler */
extern int traveler_model_number(char *,char *);
#endif /* MAKER_EXTERN_INCLUDED */