This repository has been archived by the owner on Feb 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakers.h
112 lines (89 loc) · 4.16 KB
/
makers.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
/*
* Copyright (c) 2001-2004, Eric M. Johnston <emj@postal.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* This product includes software developed by Eric M. Johnston.
* 4. Neither the name of the author nor the names of any co-contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: makers.h,v 1.18 2004/09/15 23:35:55 ejohnst Exp $
*/
/*
* Maker note module definitions.
*
* When adding a new module, include a #define, a property function,
* and, if applicable, an IFD reading function. These need to be included
* in the makers table found in makers.c.
*
*/
#ifndef _MAKERS_H
#define _MAKERS_H
#include "exifint.h"
/* Maker note function table. */
struct makerfun {
int val;
const char *name;
void (*propfun)(); /* Function to parse properties. */
struct ifd *(*ifdfun)(); /* Function to read IFD. */
};
extern struct makerfun makers[];
/* Maker note defines (must match makers[] in makers.c). */
#define EXIF_MKR_CANON 1
#define EXIF_MKR_OLYMPUS 2
#define EXIF_MKR_FUJI 3
#define EXIF_MKR_NIKON 4
#define EXIF_MKR_CASIO 5
#define EXIF_MKR_MINOLTA 6
#define EXIF_MKR_SANYO 7
#define EXIF_MKR_ASAHI 8
#define EXIF_MKR_PENTAX 9
#define EXIF_MKR_LEICA 10
#define EXIF_MKR_PANASONIC 11
#define EXIF_MKR_SIGMA 12
#define EXIF_MKR_UNKNOWN -1
/* Maker note functions. */
extern void canon_prop(struct exifprop *prop, struct exiftags *t);
extern struct ifd *canon_ifd(u_int32_t offset, struct tiffmeta *md);
extern void olympus_prop(struct exifprop *prop, struct exiftags *t);
extern struct ifd *olympus_ifd(u_int32_t offset, struct tiffmeta *md);
extern void fuji_prop(struct exifprop *prop, struct exiftags *t);
extern struct ifd *fuji_ifd(u_int32_t offset, struct tiffmeta *md);
extern void nikon_prop(struct exifprop *prop, struct exiftags *t);
extern struct ifd *nikon_ifd(u_int32_t offset, struct tiffmeta *md);
extern struct ifd *casio_ifd(u_int32_t offset, struct tiffmeta *md);
extern void minolta_prop(struct exifprop *prop, struct exiftags *t);
extern struct ifd *minolta_ifd(u_int32_t offset, struct tiffmeta *md);
extern void sanyo_prop(struct exifprop *prop, struct exiftags *t);
extern struct ifd *sanyo_ifd(u_int32_t offset, struct tiffmeta *t);
extern void asahi_prop(struct exifprop *prop, struct exiftags *t);
extern struct ifd *asahi_ifd(u_int32_t offset, struct tiffmeta *md);
extern void leica_prop(struct exifprop *prop, struct exiftags *t);
extern struct ifd *leica_ifd(u_int32_t offset, struct tiffmeta *md);
extern void panasonic_prop(struct exifprop *prop, struct exiftags *t);
extern struct ifd *panasonic_ifd(u_int32_t offset, struct tiffmeta *md);
extern void sigma_prop(struct exifprop *prop, struct exiftags *t);
extern struct ifd *sigma_ifd(u_int32_t offset, struct tiffmeta *md);
#endif