1
/* xmp-schemas.h - standard schemas defined in the XMP specifications
3
* Copyright (C) 2004, Raphaël Quinet <raphael@gimp.org>
5
* This library is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU Lesser General Public
7
* License as published by the Free Software Foundation; either
8
* version 2 of the License, or (at your option) any later version.
10
* This library is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
* Lesser General Public License for more details.
15
* You should have received a copy of the GNU Lesser General Public
16
* License along with this library; if not, write to the
17
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18
* Boston, MA 02111-1307, USA.
26
/* known data types for XMP properties, as found in the XMP specification */
29
XMP_TYPE_BOOLEAN, /* TEXT */
30
XMP_TYPE_DATE, /* TEXT */
31
XMP_TYPE_DIMENSIONS, /* STRUCTURE */
32
XMP_TYPE_INTEGER, /* TEXT */
33
XMP_TYPE_INTEGER_SEQ, /* ORDERED_LIST */
34
XMP_TYPE_LANG_ALT, /* ALT_LANG */
35
XMP_TYPE_LOCALE_BAG, /* UNORDERED_LIST */
36
XMP_TYPE_REAL, /* TEXT */
37
XMP_TYPE_MIME_TYPE, /* TEXT */
38
XMP_TYPE_TEXT, /* TEXT */
39
XMP_TYPE_TEXT_BAG, /* UNORDERED_LIST */
40
XMP_TYPE_TEXT_SEQ, /* ORDERED_LIST */
41
XMP_TYPE_THUMBNAIL_ALT, /* ALT_THUMBS */
42
XMP_TYPE_URI, /* TEXT or RESOURCE (?) */
43
XMP_TYPE_XPATH_BAG, /* UNORDERED_LIST */
44
XMP_TYPE_RESOURCE_EVENT_SEQ, /* ORDERED_LIST */
45
XMP_TYPE_RESOURCE_REF, /* TEXT */
46
XMP_TYPE_JOB_BAG, /* UNORDERED_LIST */
47
XMP_TYPE_RATIONAL, /* TEXT */
48
XMP_TYPE_RATIONAL_SEQ, /* ORDERED_LIST */
49
XMP_TYPE_GPS_COORDINATE, /* (?) */
50
XMP_TYPE_FLASH, /* STRUCTURE */
51
XMP_TYPE_OECF_SFR, /* (?) */
52
XMP_TYPE_CFA_PATTERN, /* (?) */
53
XMP_TYPE_DEVICE_SETTINGS, /* (?) */
54
XMP_TYPE_CONTACT_INFO, /* STRUCTURE */
55
XMP_TYPE_GENERIC_STRUCTURE, /* STRUCTURE */
59
/* XMP properties referenced in the tree via COL_XMP_TYPE_XREF (depth 2) */
67
/* XMP schemas referenced in the tree via COL_XMP_TYPE_XREF (depth 1) */
73
XMPProperty *properties;
76
/* URIs of standard XMP schemas (as of January 2004) */
77
#define XMP_SCHEMA_DUBLIN_CORE "http://purl.org/dc/elements/1.1/"
78
#define XMP_SCHEMA_XMP_BASIC "http://ns.adobe.com/xap/1.0/"
79
#define XMP_SCHEMA_XMP_RIGHTS "http://ns.adobe.com/xap/1.0/rights/"
80
#define XMP_SCHEMA_XMP_MM "http://ns.adobe.com/xap/1.0/mm/"
81
#define XMP_SCHEMA_XMP_BJ "http://ns.adobe.com/xap/1.0/bj/"
82
#define XMP_SCHEMA_XMP_TPG "http://ns.adobe.com/xap/1.0/t/pg/"
83
#define XMP_SCHEMA_PDF "http://ns.adobe.com/pdf/1.3/"
84
#define XMP_SCHEMA_PHOTOSHOP "http://ns.adobe.com/photoshop/1.0/"
85
#define XMP_SCHEMA_TIFF "http://ns.adobe.com/tiff/1.0/"
86
#define XMP_SCHEMA_EXIF "http://ns.adobe.com/exif/1.0/"
87
/* Additional schemas published in March 2005 */
88
#define XMP_SCHEMA_XMP_PLUS "http://ns.adobe.com/xap/1.0/PLUS/"
89
#define XMP_SCHEMA_IPTC_CORE "http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/"
91
/* recommended prefixes for the schemas listed above */
92
#define XMP_PREFIX_DUBLIN_CORE "dc"
93
#define XMP_PREFIX_XMP_BASIC "xmp"
94
#define XMP_PREFIX_XMP_RIGHTS "xmpRights"
95
#define XMP_PREFIX_XMP_MM "xmpMM"
96
#define XMP_PREFIX_XMP_BJ "xmpBJ"
97
#define XMP_PREFIX_XMP_TPG "xmpTPg"
98
#define XMP_PREFIX_PDF "pdf"
99
#define XMP_PREFIX_PHOTOSHOP "photoshop"
100
#define XMP_PREFIX_TIFF "tiff"
101
#define XMP_PREFIX_EXIF "exif"
102
#define XMP_PREFIX_XMP_PLUS "xmpPLUS"
103
#define XMP_PREFIX_IPTC_CORE "Iptc4xmpCore"
105
/* List of known XMP schemas and their properties */
106
extern XMPSchema * const xmp_schemas;
110
#endif /* XMP_SCHEMAS_H */