Project

General

Profile

Feature #937 » properties.cpp

DwC patched - Alan Pater, 21 Dec 2013 15:52

 
1
// ***************************************************************** -*- C++ -*-
2
/*
3
 * Copyright (C) 2004-2013 Andreas Huggel <ahuggel@gmx.net>
4
 *
5
 * This program is part of the Exiv2 distribution.
6
 *
7
 * This program is free software; you can redistribute it and/or
8
 * modify it under the terms of the GNU General Public License
9
 * as published by the Free Software Foundation; either version 2
10
 * of the License, or (at your option) any later version.
11
 *
12
 * This program is distributed in the hope that it will be useful,
13
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
 * GNU General Public License for more details.
16
 *
17
 * You should have received a copy of the GNU General Public License
18
 * along with this program; if not, write to the Free Software
19
 * Foundation, Inc., 51 Franklin Street, 5th Floor, Boston, MA 02110-1301 USA.
20
 */
21
/*
22
  File:      properties.cpp
23
  Version:   $Rev: 3101 $
24
  Author(s): Andreas Huggel (ahu) <ahuggel@gmx.net>
25
             Gilles Caulier (cgilles) <caulier dot gilles at gmail dot com>
26
  History:   13-July-07, ahu: created
27
 */
28
// *****************************************************************************
29
#include "rcsid_int.hpp"
30
EXIV2_RCSID("@(#) $Id: properties.cpp 3101 2013-07-29 15:42:14Z ahuggel $")
31

    
32
// *****************************************************************************
33
// included header files
34
#include "properties.hpp"
35
#include "tags_int.hpp"
36
#include "error.hpp"
37
#include "types.hpp"
38
#include "value.hpp"
39
#include "metadatum.hpp"
40
#include "i18n.h"                // NLS support.
41
#include "xmp.hpp"
42

    
43
#include <iostream>
44
#include <iomanip>
45
#include <sstream>
46
#include <cstring>
47
#include <cstdlib>
48
#include <cctype>
49

    
50
// *****************************************************************************
51
namespace {
52

    
53
    //! Struct used in the lookup table for pretty print functions
54
    struct XmpPrintInfo {
55
        //! Comparison operator for key
56
        bool operator==(const std::string& key) const
57
        {
58
            return 0 == strcmp(key_, key.c_str());
59
        }
60

    
61
        const char* key_;                      //!< XMP key
62
        Exiv2::PrintFct printFct_;             //!< Print function
63
    };
64

    
65
}
66

    
67
// *****************************************************************************
68
// class member definitions
69
namespace Exiv2 {
70

    
71
    using namespace Internal;
72

    
73
    //! @cond IGNORE
74
    extern const XmpPropertyInfo xmpDcInfo[];
75
    extern const XmpPropertyInfo xmpDigikamInfo[];
76
    extern const XmpPropertyInfo xmpKipiInfo[];
77
    extern const XmpPropertyInfo xmpXmpInfo[];
78
    extern const XmpPropertyInfo xmpXmpRightsInfo[];
79
    extern const XmpPropertyInfo xmpXmpMMInfo[];
80
    extern const XmpPropertyInfo xmpXmpBJInfo[];
81
    extern const XmpPropertyInfo xmpXmpTPgInfo[];
82
    extern const XmpPropertyInfo xmpXmpDMInfo[];
83
    extern const XmpPropertyInfo xmpMicrosoftInfo[];
84
    extern const XmpPropertyInfo xmpPdfInfo[];
85
    extern const XmpPropertyInfo xmpPhotoshopInfo[];
86
    extern const XmpPropertyInfo xmpCrsInfo[];
87
    extern const XmpPropertyInfo xmpTiffInfo[];
88
    extern const XmpPropertyInfo xmpExifInfo[];
89
    extern const XmpPropertyInfo xmpAuxInfo[];
90
    extern const XmpPropertyInfo xmpIptcInfo[];
91
    extern const XmpPropertyInfo xmpIptcExtInfo[];
92
    extern const XmpPropertyInfo xmpPlusInfo[];
93
    extern const XmpPropertyInfo xmpMediaProInfo[];
94
    extern const XmpPropertyInfo xmpExpressionMediaInfo[];
95
    extern const XmpPropertyInfo xmpMicrosoftPhotoInfo[];
96
    extern const XmpPropertyInfo xmpMicrosoftPhotoRegionInfoInfo[];
97
    extern const XmpPropertyInfo xmpMicrosoftPhotoRegionInfo[];
98
    extern const XmpPropertyInfo xmpMWGRegionsInfo[];
99
    extern const XmpPropertyInfo xmpVideoInfo[];
100
    extern const XmpPropertyInfo xmpAudioInfo[];
101
    extern const XmpPropertyInfo xmpDwCInfo[];
102

    
103
    extern const XmpNsInfo xmpNsInfo[] = {
104
        // Schemas   -   NOTE: Schemas which the XMP-SDK doesn't know must be registered in XmpParser::initialize - Todo: Automate this
105
        { "http://purl.org/dc/elements/1.1/",             "dc",             xmpDcInfo,        N_("Dublin Core schema")                        },
106
        { "http://www.digikam.org/ns/1.0/",               "digiKam",        xmpDigikamInfo,   N_("digiKam Photo Management schema")           },
107
        { "http://www.digikam.org/ns/kipi/1.0/",          "kipi",           xmpKipiInfo,      N_("KDE Image Program Interface schema")        },
108
        { "http://ns.adobe.com/xap/1.0/",                 "xmp",            xmpXmpInfo,       N_("XMP Basic schema")                          },
109
        { "http://ns.adobe.com/xap/1.0/rights/",          "xmpRights",      xmpXmpRightsInfo, N_("XMP Rights Management schema")              },
110
        { "http://ns.adobe.com/xap/1.0/mm/",              "xmpMM",          xmpXmpMMInfo,     N_("XMP Media Management schema")               },
111
        { "http://ns.adobe.com/xap/1.0/bj/",              "xmpBJ",          xmpXmpBJInfo,     N_("XMP Basic Job Ticket schema")               },
112
        { "http://ns.adobe.com/xap/1.0/t/pg/",            "xmpTPg",         xmpXmpTPgInfo,    N_("XMP Paged-Text schema")                     },
113
        { "http://ns.adobe.com/xmp/1.0/DynamicMedia/",    "xmpDM",          xmpXmpDMInfo,     N_("XMP Dynamic Media schema")                  },
114
        { "http://ns.microsoft.com/photo/1.0/",           "MicrosoftPhoto", xmpMicrosoftInfo, N_("Microsoft Photo schema")                    },
115
        { "http://ns.adobe.com/pdf/1.3/",                 "pdf",            xmpPdfInfo,       N_("Adobe PDF schema")                          },
116
        { "http://ns.adobe.com/photoshop/1.0/",           "photoshop",      xmpPhotoshopInfo, N_("Adobe photoshop schema")                    },
117
        { "http://ns.adobe.com/camera-raw-settings/1.0/", "crs",            xmpCrsInfo,       N_("Camera Raw schema")                         },
118
        { "http://ns.adobe.com/tiff/1.0/",                "tiff",           xmpTiffInfo,      N_("Exif Schema for TIFF Properties")           },
119
        { "http://ns.adobe.com/exif/1.0/",                "exif",           xmpExifInfo,      N_("Exif schema for Exif-specific Properties")  },
120
        { "http://ns.adobe.com/exif/1.0/aux/",            "aux",            xmpAuxInfo,       N_("Exif schema for Additional Exif Properties")},
121
        { "http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/",  "iptc",           xmpIptcInfo,      N_("IPTC Core schema")                          }, // NOTE: 'Iptc4xmpCore' is just too long, so make 'iptc'
122
        { "http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/",  "Iptc4xmpCore",   xmpIptcInfo,      N_("IPTC Core schema")                          }, // the default prefix. But provide the official one too.
123
        { "http://iptc.org/std/Iptc4xmpExt/2008-02-29/",  "iptcExt",        xmpIptcExtInfo,   N_("IPTC Extension schema")                     }, // NOTE: It really should be 'Iptc4xmpExt' but following
124
        { "http://iptc.org/std/Iptc4xmpExt/2008-02-29/",  "Iptc4xmpExt",    xmpIptcExtInfo,   N_("IPTC Extension schema")                     }, // example above, 'iptcExt' is the default, Iptc4xmpExt works too.
125
        { "http://ns.useplus.org/ldf/xmp/1.0/",           "plus",           xmpPlusInfo,      N_("PLUS License Data Format schema")           },
126
        { "http://ns.iview-multimedia.com/mediapro/1.0/", "mediapro",       xmpMediaProInfo,  N_("iView Media Pro schema")                    },
127
        { "http://ns.microsoft.com/expressionmedia/1.0/", "expressionmedia",xmpExpressionMediaInfo, N_("Expression Media schema")             },
128
        { "http://ns.microsoft.com/photo/1.2/",              "MP",    xmpMicrosoftPhotoInfo,           N_("Microsoft Photo 1.2 schema")       },
129
        { "http://ns.microsoft.com/photo/1.2/t/RegionInfo#", "MPRI",  xmpMicrosoftPhotoRegionInfoInfo, N_("Microsoft Photo RegionInfo schema")},
130
        { "http://ns.microsoft.com/photo/1.2/t/Region#",     "MPReg", xmpMicrosoftPhotoRegionInfo,     N_("Microsoft Photo Region schema")    },
131
        { "http://www.metadataworkinggroup.com/schemas/regions/", "mwg-rs", xmpMWGRegionsInfo,N_("Metadata Working Group Regions schema")     },
132
        { "http://www.video",                                  "video",          xmpVideoInfo,     N_("XMP Extended Video schema")                 },
133
        { "http://www.audio",                                  "audio",          xmpAudioInfo,     N_("XMP Extended Audio schema")                 },
134
        { "http://rs.tdwg.org/dwc/terms/",                     "dwc",            xmpDwCInfo,       N_("XMP Darwin Core schema")      },
135

    
136

    
137
        // Structures
138
        { "http://ns.adobe.com/xap/1.0/g/",                   "xapG",    0, N_("Colorant structure")           },
139
        { "http://ns.adobe.com/xap/1.0/sType/Dimensions#",    "stDim",   0, N_("Dimensions structure")         },
140
        { "http://ns.adobe.com/xap/1.0/sType/Font#",          "stFnt",   0, N_("Font structure")               },
141
        { "http://ns.adobe.com/xap/1.0/g/img/",               "xmpGImg", 0, N_("Thumbnail structure")          },
142
        { "http://ns.adobe.com/xap/1.0/sType/ResourceEvent#", "stEvt",   0, N_("Resource Event structure")     },
143
        { "http://ns.adobe.com/xap/1.0/sType/ResourceRef#",   "stRef",   0, N_("ResourceRef structure")        },
144
        { "http://ns.adobe.com/xap/1.0/sType/Version#",       "stVer",   0, N_("Version structure")            },
145
        { "http://ns.adobe.com/xap/1.0/sType/Job#",           "stJob",   0, N_("Basic Job/Workflow structure") },
146
        { "http://ns.adobe.com/xmp/sType/Area#",              "stArea",  0, N_("Area structure")               },
147

    
148
        // Qualifiers
149
        { "http://ns.adobe.com/xmp/Identifier/qual/1.0/", "xmpidq", 0, N_("Qualifier for xmp:Identifier") }
150
    };
151

    
152
    extern const XmpPropertyInfo xmpDcInfo[] = {
153
        { "contributor",      N_("Contributor"),      "bag ProperName",  xmpBag,       xmpExternal, N_("Contributors to the resource (other than the authors).")                               },
154
        { "coverage",         N_("Coverage"),         "Text",            xmpText,      xmpExternal, N_("The spatial or temporal topic of the resource, the spatial applicability of the "
155
                                                                                                       "resource, or the jurisdiction under which the resource is relevant.")                      },
156
        { "creator",          N_("Creator"),          "seq ProperName",  xmpSeq,       xmpExternal, N_("The authors of the resource (listed in order of precedence, if significant).")         },
157
        { "date",             N_("Date"),             "seq Date",        xmpSeq,       xmpExternal, N_("Date(s) that something interesting happened to the resource.")                         },
158
        { "description",      N_("Description"),      "Lang Alt",        langAlt,      xmpExternal, N_("A textual description of the content of the resource. Multiple values may be "
159
                                                                                                       "present for different languages.")                                                     },
160
        { "format",           N_("Format"),           "MIMEType",        xmpText,      xmpInternal, N_("The file format used when saving the resource. Tools and applications should set "
161
                                                                                                       "this property to the save format of the data. It may include appropriate qualifiers.") },
162
        { "identifier",       N_("Identifier"),       "Text",            xmpText,      xmpExternal, N_("Unique identifier of the resource. Recommended best practice is to identify the "
163
                                                                                                       "resource by means of a string conforming to a formal identification system.")              },
164
        { "language",         N_("Language"),         "bag Locale",      xmpBag,       xmpInternal, N_("An unordered array specifying the languages used in the resource.")                    },
165
        { "publisher",        N_("Publisher"),        "bag ProperName",  xmpBag,       xmpExternal, N_("An entity responsible for making the resource available. Examples of a Publisher "
166
                                                                                                       "include a person, an organization, or a service. Typically, the name of a Publisher "
167
                                                                                                       "should be used to indicate the entity.")                                               },
168
        { "relation",         N_("Relation"),         "bag Text",        xmpBag,       xmpInternal, N_("Relationships to other documents. Recommended best practice is to identify the "
169
                                                                                                       "related resource by means of a string conforming to a formal identification system.")      },
170
        { "rights",           N_("Rights"),           "Lang Alt",        langAlt,      xmpExternal, N_("Informal rights statement, selected by language. Typically, rights information "
171
                                                                                                       "includes a statement about various property rights associated with the resource, "
172
                                                                                                       "including intellectual property rights.")                                              },
173
        { "source",           N_("Source"),           "Text",            xmpText,      xmpExternal, N_("Unique identifier of the work from which this resource was derived.")                  },
174
        { "subject",          N_("Subject"),          "bag Text",        xmpBag,       xmpExternal, N_("An unordered array of descriptive phrases or keywords that specify the topic of the "
175
                                                                                                       "content of the resource.")                                                             },
176
        { "title",            N_("Title"),            "Lang Alt",        langAlt,      xmpExternal, N_("The title of the document, or the name given to the resource. Typically, it will be "
177
                                                                                                       "a name by which the resource is formally known.")                                      },
178
        { "type",             N_("Type"),             "bag open Choice", xmpBag,       xmpExternal, N_("A document type; for example, novel, poem, or working paper.")                         },
179
        // End of list marker
180
        { 0, 0, 0, invalidTypeId, xmpInternal, 0 }
181
    };
182

    
183
    extern const XmpPropertyInfo xmpDigikamInfo[] = {
184
        { "TagsList",               N_("Tags List"),                 "seq Text", xmpSeq,  xmpExternal, N_("The list of complete tags path as string. The path hierarchy is separated by '/' character (ex.: \"City/Paris/Monument/Eiffel Tower\".") },
185
        { "CaptionsAuthorNames",    N_("Captions Author Names"),     "Lang Alt", langAlt, xmpExternal, N_("The list of all captions author names for each language alternative captions set in standard XMP tags.") },
186
        { "CaptionsDateTimeStamps", N_("Captions Date Time Stamps"), "Lang Alt", langAlt, xmpExternal, N_("The list of all captions date time stamps for each language alternative captions set in standard XMP tags.") },
187
        { "ImageHistory",           N_("Image History"),             "Text",     xmpText, xmpExternal, N_("An XML based content to list all action processed on this image with image editor (as crop, rotate, color corrections, adjustements, etc.).") },
188
        { "LensCorrectionSettings", N_("Lens Correction Settings"),  "Text",     xmpText, xmpExternal, N_("The list of Lens Correction tools settings used to fix lens distorsion. This include Batch Queue Manager and Image editor tools based on LensFun library.") },
189
        { "ColorLabel",             N_("Color Label"),               "Text",     xmpText, xmpExternal, N_("The color label assigned to this item. Possible values are \"0\": no label; \"1\": Red; \"2\": Orange; \"3\": Yellow; \"4\": Green; \"5\": Blue; \"6\": Magenta; \"7\": Gray; \"8\": Black; \"9\": White.") },
190
        { "PickLabel",              N_("Pick Label"),                "Text",     xmpText, xmpExternal, N_("The pick label assigned to this item. Possible values are \"0\": no label; \"1\": item rejected; \"2\": item in pending validation; \"3\": item accepted.") },
191
        // End of list marker
192
        { 0, 0, 0, invalidTypeId, xmpInternal, 0 }
193
    };
194

    
195
    extern const XmpPropertyInfo xmpKipiInfo[] = {
196
        { "EnfuseInputFiles",       N_("Enfuse Input Files"),        "Text",     xmpText, xmpExternal, N_("The list of files processed with Enfuse program through ExpoBlending tool.") },
197
        { "EnfuseSettings",         N_("Enfuse Settings"),           "Text",     xmpText, xmpExternal, N_("The list of Enfuse settings used to blend image stack with ExpoBlending tool.") },
198
        { "picasawebGPhotoId",      N_("PicasaWeb Item ID"),         "Text",     xmpText, xmpExternal, N_("Item ID from PicasaWeb web service.") },
199
        { "yandexGPhotoId",         N_("Yandex Fotki Item ID"),      "Text",     xmpText, xmpExternal, N_("Item ID from Yandex Fotki web service.") },
200
        // End of list marker
201
        { 0, 0, 0, invalidTypeId, xmpInternal, 0 }
202
    };
203

    
204
    extern const XmpPropertyInfo xmpXmpInfo[] = {
205
        { "Advisory",         N_("Advisory"),         "bag XPath",                xmpBag,    xmpExternal, N_("An unordered array specifying properties that were edited outside the authoring "
206
                                                                                                             "application. Each item should contain a single namespace and XPath separated by "
207
                                                                                                             "one ASCII space (U+0020).") },
208
        { "BaseURL",          N_("Base URL"),         "URL",                      xmpText,   xmpInternal, N_("The base URL for relative URLs in the document content. If this document contains "
209
                                                                                                             "Internet links, and those links are relative, they are relative to this base URL. "
210
                                                                                                             "This property provides a standard way for embedded relative URLs to be interpreted "
211
                                                                                                             "by tools. Web authoring tools should set the value based on their notion of where "
212
                                                                                                             "URLs will be interpreted.") },
213
        { "CreateDate",       N_("Create Date"),      "Date",                     xmpText,   xmpInternal, N_("The date and time the resource was originally created.") },
214
        { "CreatorTool",      N_("Creator Tool"),     "AgentName",                xmpText,   xmpInternal, N_("The name of the first known tool used to create the resource. If history is "
215
                                                                                                             "present in the metadata, this value should be equivalent to that of "
216
                                                                                                             "xmpMM:History's softwareAgent property.") },
217
        { "Identifier",       N_("Identifier"),       "bag Text",                 xmpBag,    xmpExternal, N_("An unordered array of text strings that unambiguously identify the resource within "
218
                                                                                                             "a given context. An array item may be qualified with xmpidq:Scheme to denote the "
219
                                                                                                             "formal identification system to which that identifier conforms. Note: The "
220
                                                                                                             "dc:identifier property is not used because it lacks a defined scheme qualifier and "
221
                                                                                                             "has been defined in the XMP Specification as a simple (single-valued) property.") },
222
        { "Label",            N_("Label"),            "Text",                     xmpText,   xmpExternal, N_("A word or short phrase that identifies a document as a member of a user-defined "
223
                                                                                                             "collection. Used to organize documents in a file browser.") },
224
        { "MetadataDate",     N_("Metadata Date"),    "Date",                     xmpText,   xmpInternal, N_("The date and time that any metadata for this resource was last changed. It should "
225
                                                                                                             "be the same as or more recent than xmp:ModifyDate.") },
226
        { "ModifyDate",       N_("Modify Date"),      "Date",                     xmpText,   xmpInternal, N_("The date and time the resource was last modified. Note: The value of this property "
227
                                                                                                             "is not necessarily the same as the file's system modification date because it is "
228
                                                                                                             "set before the file is saved.") },
229
        { "Nickname",         N_("Nickname"),         "Text",                     xmpText,   xmpExternal, N_("A short informal name for the resource.") },
230
        { "Rating",           N_("Rating"),           "Closed Choice of Integer", xmpText,   xmpExternal, N_("A number that indicates a document's status relative to other documents, "
231
                                                                                                             "used to organize documents in a file browser. Values are user-defined within an "
232
                                                                                                             "application-defined range.") },
233
        { "Thumbnails",       N_("Thumbnails"),       "alt Thumbnail",            xmpText, xmpInternal, N_("An alternative array of thumbnail images for a file, which can differ in "
234
                                                                                                             "characteristics such as size or image encoding.") },
235
        // End of list marker
236
        { 0, 0, 0, invalidTypeId, xmpInternal, 0 }
237
    };
238

    
239
    extern const XmpPropertyInfo xmpXmpRightsInfo[] = {
240
        { "Certificate",      N_("Certificate"),   "URL",            xmpText,       xmpExternal, N_("Online rights management certificate.") },
241
        { "Marked",           N_("Marked"),        "Boolean",        xmpText,       xmpExternal, N_("Indicates that this is a rights-managed resource.") },
242
        { "Owner",            N_("Owner"),         "bag ProperName", xmpBag,        xmpExternal, N_("An unordered array specifying the legal owner(s) of a resource.") },
243
        { "UsageTerms",       N_("Usage Terms"),   "Lang Alt",       langAlt,       xmpExternal, N_("Text instructions on how a resource can be legally used.") },
244
        { "WebStatement",     N_("Web Statement"), "URL",            xmpText,       xmpExternal, N_("The location of a web page describing the owner and/or rights statement for this resource.") },
245
        // End of list marker
246
        { 0, 0, 0, invalidTypeId, xmpInternal, 0 }
247
    };
248

    
249
    extern const XmpPropertyInfo xmpXmpMMInfo[] = {
250
        { "DerivedFrom",      N_("Derived From"),      "ResourceRef",       xmpText,    xmpInternal, N_("A reference to the original document from which this one is derived. It is a "
251
                                                                                                        "minimal reference; missing components can be assumed to be unchanged. For example, "
252
                                                                                                        "a new version might only need to specify the instance ID and version number of the "
253
                                                                                                        "previous version, or a rendition might only need to specify the instance ID and "
254
                                                                                                        "rendition class of the original.") },
255
        { "DocumentID",       N_("Document ID"),       "URI",               xmpText,    xmpInternal, N_("The common identifier for all versions and renditions of a document. It should be "
256
                                                                                                        "based on a UUID; see Document and Instance IDs below.") },
257
        { "History",          N_("History"),           "seq ResourceEvent", xmpText,    xmpInternal, N_("An ordered array of high-level user actions that resulted in this resource. It is "
258
                                                                                                        "intended to give human readers a general indication of the steps taken to make the "
259
                                                                                                        "changes from the previous version to this one. The list should be at an abstract "
260
                                                                                                        "level; it is not intended to be an exhaustive keystroke or other detailed history.") },
261
        { "InstanceID",       N_("Instance ID"),       "URI",               xmpText,    xmpInternal, N_("An identifier for a specific incarnation of a document, updated each time a file "
262
                                                                                                        "is saved. It should be based on a UUID; see Document and Instance IDs below.") },
263
        { "ManagedFrom",      N_("Managed From"),      "ResourceRef",       xmpText,    xmpInternal, N_("A reference to the document as it was prior to becoming managed. It is set when a "
264
                                                                                                        "managed document is introduced to an asset management system that does not "
265
                                                                                                        "currently own it. It may or may not include references to different management systems.") },
266
        { "Manager",          N_("Manager"),           "AgentName",         xmpText,    xmpInternal, N_("The name of the asset management system that manages this resource. Along with "
267
                                                                                                        "xmpMM: ManagerVariant, it tells applications which asset management system to "
268
                                                                                                        "contact concerning this document.") },
269
        { "ManageTo",         N_("Manage To"),         "URI",               xmpText,    xmpInternal, N_("A URI identifying the managed resource to the asset management system; the presence "
270
                                                                                                        "of this property is the formal indication that this resource is managed. The form "
271
                                                                                                        "and content of this URI is private to the asset management system.") },
272
        { "ManageUI",         N_("Manage UI"),         "URI",               xmpText,    xmpInternal, N_("A URI that can be used to access information about the managed resource through a "
273
                                                                                                        "web browser. It might require a custom browser plug-in.") },
274
        { "ManagerVariant",   N_("Manager Variant"),   "Text",              xmpText,    xmpInternal, N_("Specifies a particular variant of the asset management system. The format of this "
275
                                                                                                        "property is private to the specific asset management system.") },
276
        { "RenditionClass",   N_("Rendition Class"),   "RenditionClass",    xmpText,    xmpInternal, N_("The rendition class name for this resource. This property should be absent or set "
277
                                                                                                        "to default for a document version that is not a derived rendition.") },
278
        { "RenditionParams",  N_("Rendition Params"),  "Text",              xmpText,    xmpInternal, N_("Can be used to provide additional rendition parameters that are too complex or "
279
                                                                                                        "verbose to encode in xmpMM: RenditionClass.") },
280
        { "VersionID",        N_("Version ID"),        "Text",              xmpText,    xmpInternal, N_("The document version identifier for this resource. Each version of a document gets "
281
                                                                                                        "a new identifier, usually simply by incrementing integers 1, 2, 3 . . . and so on. "
282
                                                                                                        "Media management systems can have other conventions or support branching which "
283
                                                                                                        "requires a more complex scheme.") },
284
        { "Versions",         N_("Versions"),          "seq Version",       xmpText,    xmpInternal, N_("The version history associated with this resource. Entry [1] is the oldest known "
285
                                                                                                        "version for this document, entry [last()] is the most recent version. Typically, a "
286
                                                                                                        "media management system would fill in the version information in the metadata on "
287
                                                                                                        "check-in. It is not guaranteed that a complete history  versions from the first to "
288
                                                                                                        "this one will be present in the xmpMM:Versions property. Interior version information "
289
                                                                                                        "can be compressed or eliminated and the version history can be truncated at some point.") },
290
        { "LastURL",          N_("Last URL"),          "URL",               xmpText,    xmpInternal, N_("Deprecated for privacy protection.") },
291
        { "RenditionOf",      N_("Rendition Of"),      "ResourceRef",       xmpText,    xmpInternal, N_("Deprecated in favor of xmpMM:DerivedFrom. A reference to the document of which this is "
292
                                                                                                        "a rendition.") },
293
        { "SaveID",           N_("Save ID"),           "Integer",           xmpText,    xmpInternal, N_("Deprecated. Previously used only to support the xmpMM:LastURL property.") },
294
        // End of list marker
295
        { 0, 0, 0, invalidTypeId, xmpInternal, 0 }
296
    };
297

    
298
    extern const XmpPropertyInfo xmpXmpBJInfo[] = {
299
        { "JobRef",           N_("Job Reference"),     "bag Job",   xmpText,    xmpExternal, N_("References an external job management file for a job process in which the document is being used. Use of job "
300
                                                                                                "names is under user control. Typical use would be to identify all documents that are part of a particular job or contract. "
301
                                                                                                "There are multiple values because there can be more than one job using a particular document at any time, and it can "
302
                                                                                                "also be useful to keep historical information about what jobs a document was part of previously.") },
303
        // End of list marker
304
        { 0, 0, 0, invalidTypeId, xmpInternal, 0 }
305
    };
306

    
307
    extern const XmpPropertyInfo xmpXmpTPgInfo[] = {
308
        { "MaxPageSize",      N_("Maximum Page Size"), "Dimensions",   xmpText,    xmpInternal, N_("The size of the largest page in the document (including any in contained documents).") },
309
        { "NPages",           N_("Number of Pages"),   "Integer",      xmpText,    xmpInternal, N_("The number of pages in the document (including any in contained documents).") },
310
        { "Fonts",            N_("Fonts"),             "bag Font",     xmpText,    xmpInternal, N_("An unordered array of fonts that are used in the document (including any in contained documents).") },
311
        { "Colorants",        N_("Colorants"),         "seq Colorant", xmpText,    xmpInternal, N_("An ordered array of colorants (swatches) that are used in the document (including any in contained documents).") },
312
        { "PlateNames",       N_("Plate Names"),       "seq Text",     xmpSeq,     xmpInternal, N_("An ordered array of plate names that are needed to print the document (including any in contained documents).") },
313
        // End of list marker
314
        { 0, 0, 0, invalidTypeId, xmpInternal, 0 }
315
    };
316

    
317
    extern const XmpPropertyInfo xmpXmpDMInfo[] = {
318
        { "projectRef",                   N_("Project Reference"),                "ProjectLink",           xmpText, xmpInternal, N_("A reference to the project that created this file.") },
319
        { "videoFrameRate",               N_("Video Frame Rate"),                 "open Choice of Text",   xmpText, xmpInternal, N_("The video frame rate. One of: 24, NTSC, PAL.") },
320
        { "videoFrameSize",               N_("Video Frame Size"),                 "Dimensions",            xmpText, xmpInternal, N_("The frame size. For example: w:720, h: 480, unit:pixels") },
321
        { "videoPixelAspectRatio",        N_("Video Pixel Aspect Ratio"),         "Rational",              xmpText, xmpInternal, N_("The aspect ratio, expressed as ht/wd. For example: \"648/720\" = 0.9") },
322
        { "videoPixelDepth",              N_("Video Pixel Depth"),                "closed Choice of Text", xmpText, xmpInternal, N_("The size in bits of each color component of a pixel. Standard Windows 32-bit "
323
                                                                                                                                    "pixels have 8 bits per component. One of: 8Int, 16Int, 32Int, 32Float.") },
324
        { "videoColorSpace",              N_("Video Color Space"),                "closed Choice of Text", xmpText, xmpInternal, N_("The color space. One of: sRGB (used by Photoshop), CCIR-601 (used for NTSC), "
325
                                                                                                                                    "CCIR-709 (used for HD).") },
326
        { "videoAlphaMode",               N_("Video Alpha Mode"),                 "closed Choice of Text", xmpText, xmpExternal, N_("The alpha mode. One of: straight, pre-multiplied.") },
327
        { "videoAlphaPremultipleColor",   N_("Video Alpha Premultiple Color"),    "Colorant",              xmpText, xmpExternal, N_("A color in CMYK or RGB to be used as the pre-multiple color when "
328
                                                                                                                                    "alpha mode is pre-multiplied.") },
329
        { "videoAlphaUnityIsTransparent", N_("Video Alpha Unity Is Transparent"), "Boolean",               xmpText, xmpInternal, N_("When true, unity is clear, when false, it is opaque.") },
330
        { "videoCompressor",              N_("Video Compressor"),                 "Text",                  xmpText, xmpInternal, N_("Video compression used. For example, jpeg.") },
331
        { "videoFieldOrder",              N_("Video Field Order"),                "closed Choice of Text", xmpText, xmpInternal, N_("The field order for video. One of: Upper, Lower, Progressive.") },
332
        { "pullDown",                     N_("Pull Down"),                        "closed Choice of Text", xmpText, xmpInternal, N_("The sampling phase of film to be converted to video (pull-down). One of: "
333
                                                                                                                                    "WSSWW, SSWWW, SWWWS, WWWSS, WWSSW, WSSWW_24p, SSWWW_24p, SWWWS_24p, WWWSS_24p, WWSSW_24p.") },
334
        { "audioSampleRate",              N_("Audio Sample Rate"),                "Integer",               xmpText, xmpInternal, N_("The audio sample rate. Can be any value, but commonly 32000, 41100, or 48000.") },
335
        { "audioSampleType",              N_("Audio Sample Type"),                "closed Choice of Text", xmpText, xmpInternal, N_("The audio sample type. One of: 8Int, 16Int, 32Int, 32Float.") },
336
        { "audioChannelType",             N_("Audio Channel Type"),               "closed Choice of Text", xmpText, xmpInternal, N_("The audio channel type. One of: Mono, Stereo, 5.1, 7.1.") },
337
        { "audioCompressor",              N_("Audio Compressor"),                 "Text",                  xmpText, xmpInternal, N_("The audio compression used. For example, MP3.") },
338
        { "speakerPlacement",             N_("Speaker Placement"),                "Text",                  xmpText, xmpExternal, N_("A description of the speaker angles from center front in degrees. For example: "
339
                                                                                                                                    "\"Left = -30, Right = 30, Center = 0, LFE = 45, Left Surround = -110, Right Surround = 110\"") },
340
        { "fileDataRate",                 N_("File Data Rate"),                   "Rational",              xmpText, xmpInternal, N_("The file data rate in megabytes per second. For example: \"36/10\" = 3.6 MB/sec") },
341
        { "tapeName",                     N_("Tape Name"),                        "Text",                  xmpText, xmpExternal, N_("The name of the tape from which the clip was captured, as set during the capture process.") },
342
        { "altTapeName",                  N_("Alternative Tape Name"),            "Text",                  xmpText, xmpExternal, N_("An alternative tape name, set via the project window or timecode dialog in Premiere. "
343
                                                                                                                                    "If an alternative name has been set and has not been reverted, that name is displayed.") },
344
        { "startTimecode",                N_("Start Time Code"),                  "Timecode",              xmpText, xmpInternal, N_("The timecode of the first frame of video in the file, as obtained from the device control.") },
345
        { "altTimecode",                  N_("Alternative Time code"),            "Timecode",              xmpText, xmpExternal, N_("A timecode set by the user. When specified, it is used instead of the startTimecode.") },
346
        { "duration",                     N_("Duration"),                         "Time",                  xmpText, xmpInternal, N_("The duration of the media file.") },
347
        { "scene",                        N_("Scene"),                            "Text",                  xmpText, xmpExternal, N_("The name of the scene.") },
348
        { "shotName",                     N_("Shot Name"),                        "Text",                  xmpText, xmpExternal, N_("The name of the shot or take.") },
349
        { "shotDate",                     N_("Shot Date"),                        "Date",                  xmpText, xmpExternal, N_("The date and time when the video was shot.") },
350
        { "shotLocation",                 N_("Shot Location"),                    "Text",                  xmpText, xmpExternal, N_("The name of the location where the video was shot. For example: \"Oktoberfest, Munich Germany\" "
351
                                                                                                                                    "For more accurate positioning, use the EXIF GPS values.") },
352
        { "logComment",                   N_("Log Comment"),                      "Text",                  xmpText, xmpExternal, N_("User's log comments.") },
353
        { "markers",                      N_("Markers"),                          "seq Marker",            xmpText, xmpInternal, N_("An ordered list of markers") },
354
        { "contributedMedia",             N_("Contributed Media"),                "bag Media",             xmpText, xmpInternal, N_("An unordered list of all media used to create this media.") },
355
        { "absPeakAudioFilePath",         N_("Absolute Peak Audio File Path"),    "URI",                   xmpText, xmpInternal, N_("The absolute path to the file's peak audio file. If empty, no peak file exists.") },
356
        { "relativePeakAudioFilePath",    N_("Relative Peak Audio File Path"),    "URI",                   xmpText, xmpInternal, N_("The relative path to the file's peak audio file. If empty, no peak file exists.") },
357
        { "videoModDate",                 N_("Video Modified Date"),              "Date",                  xmpText, xmpInternal, N_("The date and time when the video was last modified.") },
358
        { "audioModDate",                 N_("Audio Modified Date"),              "Date",                  xmpText, xmpInternal, N_("The date and time when the audio was last modified.") },
359
        { "metadataModDate",              N_("Metadata Modified Date"),           "Date",                  xmpText, xmpInternal, N_("The date and time when the metadata was last modified.") },
360
        { "artist",                       N_("Artist"),                           "Text",                  xmpText, xmpExternal, N_("The name of the artist or artists.") },
361
        { "album",                        N_("Album"),                            "Text",                  xmpText, xmpExternal, N_("The name of the album.") },
362
        { "trackNumber",                  N_("Track Number"),                     "Integer",               xmpText, xmpExternal, N_("A numeric value indicating the order of the audio file within its original recording.") },
363
        { "genre",                        N_("Genre"),                            "Text",                  xmpText, xmpExternal, N_("The name of the genre.") },
364
        { "copyright",                    N_("Copyright"),                        "Text",                  xmpText, xmpExternal, N_("The copyright information.") },
365
        { "releaseDate",                  N_("Release Date"),                     "Date",                  xmpText, xmpExternal, N_("The date the title was released.") },
366
        { "composer",                     N_("Composer"),                         "Text",                  xmpText, xmpExternal, N_("The composer's name.") },
367
        { "engineer",                     N_("Engineer"),                         "Text",                  xmpText, xmpExternal, N_("The engineer's name.") },
368
        { "tempo",                        N_("Tempo"),                            "Real",                  xmpText, xmpInternal, N_("The audio's tempo.") },
369
        { "instrument",                   N_("Instrument"),                       "Text",                  xmpText, xmpExternal, N_("The musical instrument.") },
370
        { "introTime",                    N_("Intro Time"),                       "Time",                  xmpText, xmpInternal, N_("The duration of lead time for queuing music.") },
371
        { "outCue",                       N_("Out Cue"),                          "Time",                  xmpText, xmpInternal, N_("The time at which to fade out.") },
372
        { "relativeTimestamp",            N_("Relative Timestamp"),               "Time",                  xmpText, xmpInternal, N_("The start time of the media inside the audio project.") },
373
        { "loop",                         N_("Loop"),                             "Boolean",               xmpText, xmpInternal, N_("When true, the clip can be looped seemlessly.") },
374
        { "numberOfBeats",                N_("Number Of Beats"),                  "Real",                  xmpText, xmpInternal, N_("The number of beats.") },
375
        { "key",                          N_("Key"),                              "closed Choice of Text", xmpText, xmpInternal, N_("The audio's musical key. One of: C, C#, D, D#, E, F, F#, G, G#, A, A#, B.") },
376
        { "stretchMode",                  N_("Stretch Mode"),                     "closed Choice of Text", xmpText, xmpInternal, N_("The audio stretch mode. One of: Fixed length, Time-Scale, Resample, Beat Splice, Hybrid.") },
377
        { "timeScaleParams",              N_("Time Scale Parameters"),            "timeScaleStretch",      xmpText, xmpInternal, N_("Additional parameters for Time-Scale stretch mode.") },
378
        { "resampleParams",               N_("Resample Parameters"),              "resampleStretch",       xmpText, xmpInternal, N_("Additional parameters for Resample stretch mode.") },
379
        { "beatSpliceParams",             N_("Beat Splice Parameters"),           "beatSpliceStretch",     xmpText, xmpInternal, N_("Additional parameters for Beat Splice stretch mode.") },
380
        { "timeSignature",                N_("Time Signature"),                   "closed Choice of Text", xmpText, xmpInternal, N_("The time signature of the music. One of: 2/4, 3/4, 4/4, 5/4, 7/4, 6/8, 9/8, 12/8, other.") },
381
        { "scaleType",                    N_("Scale Type"),                       "closed Choice of Text", xmpText, xmpInternal, N_("The musical scale used in the music. One of: Major, Minor, Both, Neither. "
382
                                                                                                                                    "Neither is most often used for instruments with no associated scale, such as drums.") },
383
        // End of list marker
384
        { 0, 0, 0, invalidTypeId, xmpInternal, 0 }
385
    };
386

    
387
    extern const XmpPropertyInfo xmpMicrosoftInfo[] = {
388
        { "CameraSerialNumber", N_("Camera Serial Number"), "Text",     xmpText, xmpExternal, N_("Camera Serial Number.") },
389
        { "DateAcquired",       N_("Date Acquired"),        "Date",     xmpText, xmpExternal, N_("Date Acquired.")        },
390
        { "FlashManufacturer",  N_("Flash Manufacturer"),   "Text",     xmpText, xmpExternal, N_("Flash Manufacturer.")   },
391
        { "FlashModel",         N_("Flash Model"),          "Text",     xmpText, xmpExternal, N_("Flash Model.")          },
392
        { "LastKeywordIPTC",    N_("Last Keyword IPTC"),    "bag Text", xmpBag,  xmpExternal, N_("Last Keyword IPTC.")    },
393
        { "LastKeywordXMP",     N_("Last Keyword XMP"),     "bag Text", xmpBag,  xmpExternal, N_("Last Keyword XMP.")     },
394
        { "LensManufacturer",   N_("Lens Manufacturer"),    "Text",     xmpText, xmpExternal, N_("Lens Manufacturer.")    },
395
        { "LensModel",          N_("Lens Model"),           "Text",     xmpText, xmpExternal, N_("Lens Model.")           },
396
        { "Rating",             N_("Rating Percent"),       "Text",     xmpText, xmpExternal, N_("Rating Percent.")       },
397
        // End of list marker
398
        { 0, 0, 0, invalidTypeId, xmpInternal, 0 }
399
    };
400

    
401
    extern const XmpPropertyInfo xmpPdfInfo[] = {
402
        { "Keywords",   N_("Keywords"),    "Text",      xmpText, xmpExternal, N_("Keywords.") },
403
        { "PDFVersion", N_("PDF Version"), "Text",      xmpText, xmpInternal, N_("The PDF file version (for example: 1.0, 1.3, and so on).") },
404
        { "Producer",   N_("Producer"),    "AgentName", xmpText, xmpInternal, N_("The name of the tool that created the PDF document.") },
405
        // End of list marker
406
        { 0, 0, 0, invalidTypeId, xmpInternal, 0 }
407
    };
408

    
409
    extern const XmpPropertyInfo xmpPhotoshopInfo[] = {
410
        { "AuthorsPosition",        N_("Authors Position"),        "Text",       xmpText, xmpExternal, N_("By-line title.") },
411
        { "CaptionWriter",          N_("Caption Writer"),          "ProperName", xmpText, xmpExternal, N_("Writer/editor.") },
412
        { "Category",               N_("Category"),                "Text",       xmpText, xmpExternal, N_("Category. Limited to 3 7-bit ASCII characters.") },
413
        { "City",                   N_("City"),                    "Text",       xmpText, xmpExternal, N_("City.") },
414
        { "Country",                N_("Country"),                 "Text",       xmpText, xmpExternal, N_("Country/primary location.") },
415
        { "Credit",                 N_("Credit"),                  "Text",       xmpText, xmpExternal, N_("Credit.") },
416
        { "DateCreated",            N_("Date Created"),            "Date",       xmpText, xmpExternal, N_("The date the intellectual content of the document was created (rather than the creation "
417
                                                                                                          "date of the physical representation), following IIM conventions. For example, a photo "
418
                                                                                                          "taken during the American Civil War would have a creation date during that epoch "
419
                                                                                                          "(1861-1865) rather than the date the photo was digitized for archiving.") },
420
        { "Headline",               N_("Headline"),                "Text",       xmpText, xmpExternal, N_("Headline.") },
421
        { "Instructions",           N_("Instructions"),            "Text",       xmpText, xmpExternal, N_("Special instructions.") },
422
        { "Source",                 N_("Source"),                  "Text",       xmpText, xmpExternal, N_("Source.") },
423
        { "State",                  N_("State"),                   "Text",       xmpText, xmpExternal, N_("Province/state.") },
424
        { "SupplementalCategories", N_("Supplemental Categories"), "bag Text",   xmpBag,  xmpExternal, N_("Supplemental category.") },
425
        { "TransmissionReference",  N_("Transmission Reference"),  "Text",       xmpText, xmpExternal, N_("Original transmission reference.") },
426
        { "Urgency",                N_("Urgency"),                 "Integer",    xmpText, xmpExternal, N_("Urgency. Valid range is 1-8.") },
427
        // End of list marker
428
        { 0, 0, 0, invalidTypeId, xmpInternal, 0 }
429
    };
430

    
431
    //! XMP crs:CropUnits
432
    extern const TagDetails crsCropUnits[] = {
433
        { 0, N_("pixels") },
434
        { 1, N_("inches") },
435
        { 2, N_("cm")     }
436
    };
437

    
438
    extern const XmpPropertyInfo xmpCrsInfo[] = {
439
        { "AutoBrightness",       N_("Auto Brightness"),           "Boolean",                          xmpText, xmpExternal, N_("When true, \"Brightness\" is automatically adjusted.") },
440
        { "AutoContrast",         N_("Auto Contrast"),             "Boolean",                          xmpText, xmpExternal, N_("When true, \"Contrast\" is automatically adjusted.") },
441
        { "AutoExposure",         N_("Auto Exposure"),             "Boolean",                          xmpText, xmpExternal, N_("When true, \"Exposure\" is automatically adjusted.") },
442
        { "AutoShadows",          N_("Auto Shadows"),              "Boolean",                          xmpText, xmpExternal, N_("When true,\"Shadows\" is automatically adjusted.") },
443
        { "BlueHue",              N_("Blue Hue"),                  "Integer",                          xmpText, xmpExternal, N_("\"Blue Hue\" setting. Range -100 to 100.") },
444
        { "BlueSaturation",       N_("Blue Saturation"),           "Integer",                          xmpText, xmpExternal, N_("\"Blue Saturation\" setting. Range -100 to +100.") },
445
        { "Brightness",           N_("Brightness"),                "Integer",                          xmpText, xmpExternal, N_("\"Brightness\" setting. Range 0 to +150.") },
446
        { "CameraProfile",        N_("Camera Profile"),            "Text",                             xmpText, xmpExternal, N_("\"Camera Profile\" setting.") },
447
        { "ChromaticAberrationB", N_("Chromatic Aberration Blue"), "Integer",                          xmpText, xmpExternal, N_("\"Chromatic Aberration, Fix Blue/Yellow Fringe\" setting. Range -100 to +100.") },
448
        { "ChromaticAberrationR", N_("Chromatic Aberration Red"),  "Integer",                          xmpText, xmpExternal, N_("\"Chromatic Aberration, Fix Red/Cyan Fringe\" setting. Range -100 to +100.") },
449
        { "ColorNoiseReduction",  N_("Color Noise Reduction"),     "Integer",                          xmpText, xmpExternal, N_("\"Color Noise Reducton\" setting. Range 0 to +100.") },
450
        { "Contrast",             N_("Contrast"),                  "Integer",                          xmpText, xmpExternal, N_("\"Contrast\" setting. Range -50 to +100.") },
451
        { "CropTop",              N_("Crop Top"),                  "Real",                             xmpText, xmpExternal, N_("When \"Has Crop\" is true, top of crop rectangle") },
452
        { "CropLeft",             N_("Crop Left"),                 "Real",                             xmpText, xmpExternal, N_("When \"Has Crop\" is true, left of crop rectangle.") },
453
        { "CropBottom",           N_("Crop Bottom"),               "Real",                             xmpText, xmpExternal, N_("When \"Has Crop\" is true, bottom of crop rectangle.") },
454
        { "CropRight",            N_("Crop Right"),                "Real",                             xmpText, xmpExternal, N_("When \"Has Crop\" is true, right of crop rectangle.") },
455
        { "CropAngle",            N_("Crop Angle"),                "Real",                             xmpText, xmpExternal, N_("When \"Has Crop\" is true, angle of crop rectangle.") },
456
        { "CropWidth",            N_("Crop Width"),                "Real",                             xmpText, xmpExternal, N_("Width of resulting cropped image in CropUnits units.") },
457
        { "CropHeight",           N_("Crop Height"),               "Real",                             xmpText, xmpExternal, N_("Height of resulting cropped image in CropUnits units.") },
458
        { "CropUnits",            N_("Crop Units"),                "Integer",                          xmpText, xmpExternal, N_("Units for CropWidth and CropHeight. 0=pixels, 1=inches, 2=cm") },
459
        { "Exposure",             N_("Exposure"),                  "Real",                             xmpText, xmpExternal, N_("\"Exposure\" setting. Range -4.0 to +4.0.") },
460
        { "GreenHue",             N_("GreenHue"),                  "Integer",                          xmpText, xmpExternal, N_("\"Green Hue\" setting. Range -100 to +100.") },
461
        { "GreenSaturation",      N_("Green Saturation"),          "Integer",                          xmpText, xmpExternal, N_("\"Green Saturation\" setting. Range -100 to +100.") },
462
        { "HasCrop",              N_("Has Crop"),                  "Boolean",                          xmpText, xmpExternal, N_("When true, image has a cropping rectangle.") },
463
        { "HasSettings",          N_("Has Settings"),              "Boolean",                          xmpText, xmpExternal, N_("When true, non-default camera raw settings.") },
464
        { "LuminanceSmoothing",   N_("Luminance Smoothing"),       "Integer",                          xmpText, xmpExternal, N_("\"Luminance Smoothing\" setting. Range 0 to +100.") },
465
        { "RawFileName",          N_("Raw File Name"),             "Text",                             xmpText, xmpInternal, N_("File name of raw file (not a complete path).") },
466
        { "RedHue",               N_("Red Hue"),                   "Integer",                          xmpText, xmpExternal, N_("\"Red Hue\" setting. Range -100 to +100.") },
467
        { "RedSaturation",        N_("Red Saturation"),            "Integer",                          xmpText, xmpExternal, N_("\"Red Saturation\" setting. Range -100 to +100.") },
468
        { "Saturation",           N_("Saturation"),                "Integer",                          xmpText, xmpExternal, N_("\"Saturation\" setting. Range -100 to +100.") },
469
        { "Shadows",              N_("Shadows"),                   "Integer",                          xmpText, xmpExternal, N_("\"Shadows\" setting. Range 0 to +100.") },
470
        { "ShadowTint",           N_("Shadow Tint"),               "Integer",                          xmpText, xmpExternal, N_("\"Shadow Tint\" setting. Range -100 to +100.") },
471
        { "Sharpness",            N_("Sharpness"),                 "Integer",                          xmpText, xmpExternal, N_("\"Sharpness\" setting. Range 0 to +100.") },
472
        { "Temperature",          N_("Temperature"),               "Integer",                          xmpText, xmpExternal, N_("\"Temperature\" setting. Range 2000 to 50000.") },
473
        { "Tint",                 N_("Tint"),                      "Integer",                          xmpText, xmpExternal, N_("\"Tint\" setting. Range -150 to +150.") },
474
        { "ToneCurve",            N_("Tone Curve"),                "Seq of points (Integer, Integer)", xmpText, xmpExternal, N_("Array of points (Integer, Integer) defining a \"Tone Curve\".") },
475
        { "ToneCurveName",        N_("Tone Curve Name"),           "Choice Text",                      xmpText, xmpInternal, N_("The name of the Tone Curve described by ToneCurve. One of: Linear, Medium Contrast, "
476
                                                                                                                                "Strong Contrast, Custom or a user-defined preset name.") },
477
        { "Version",              N_("Version"),                   "Text",                             xmpText, xmpInternal, N_("Version of Camera Raw plugin.") },
478
        { "VignetteAmount",       N_("Vignette Amount"),           "Integer",                          xmpText, xmpExternal, N_("\"Vignetting Amount\" setting. Range -100 to +100.") },
479
        { "VignetteMidpoint",     N_("Vignette Midpoint"),         "Integer",                          xmpText, xmpExternal, N_("\"Vignetting Midpoint\" setting. Range 0 to +100.") },
480
        { "WhiteBalance",         N_("White Balance"),             "Closed Choice Text",               xmpText, xmpExternal, N_("\"White Balance\" setting. One of: As Shot, Auto, Daylight, Cloudy, Shade, Tungsten, "
481
                                                                                                                                "Fluorescent, Flash, Custom") },
482
        // End of list marker
483
        { 0, 0, 0, invalidTypeId, xmpInternal, 0 }
484
    };
485

    
486
    extern const XmpPropertyInfo xmpTiffInfo[] = {
487
        { "ImageWidth",                N_("Image Width"),                "Integer",                      xmpText, xmpInternal, N_("TIFF tag 256, 0x100. Image width in pixels.") },
488
        { "ImageLength",               N_("Image Length"),               "Integer",                      xmpText, xmpInternal, N_("TIFF tag 257, 0x101. Image height in pixels.") },
489
        { "BitsPerSample",             N_("Bits Per Sample"),            "seq Integer",                  xmpSeq,  xmpInternal, N_("TIFF tag 258, 0x102. Number of bits per component in each channel.") },
490
        { "Compression",               N_("Compression"),                "Closed Choice of Integer",     xmpText, xmpInternal, N_("TIFF tag 259, 0x103. Compression scheme: 1 = uncompressed; 6 = JPEG.") },
491
        { "PhotometricInterpretation", N_("Photometric Interpretation"), "Closed Choice of Integer",     xmpText, xmpInternal, N_("TIFF tag 262, 0x106. Pixel Composition: 2 = RGB; 6 = YCbCr.") },
492
        { "Orientation",               N_("Orientation"),                "Closed Choice of Integer",     xmpText, xmpInternal, N_("TIFF tag 274, 0x112. Orientation:"
493
                                                                                                                                  "1 = 0th row at top, 0th column at left "
494
                                                                                                                                  "2 = 0th row at top, 0th column at right "
495
                                                                                                                                  "3 = 0th row at bottom, 0th column at right "
496
                                                                                                                                  "4 = 0th row at bottom, 0th column at left "
497
                                                                                                                                  "5 = 0th row at left, 0th column at top "
498
                                                                                                                                  "6 = 0th row at right, 0th column at top "
499
                                                                                                                                  "7 = 0th row at right, 0th column at bottom "
500
                                                                                                                                  "8 = 0th row at left, 0th column at bottom") },
501
        { "SamplesPerPixel",           N_("Samples Per Pixel"),          "Integer",                      xmpText, xmpInternal, N_("TIFF tag 277, 0x115. Number of components per pixel.") },
502
        { "PlanarConfiguration",       N_("Planar Configuration"),       "Closed Choice of Integer",     xmpText, xmpInternal, N_("TIFF tag 284, 0x11C. Data layout:1 = chunky; 2 = planar.") },
503
        { "YCbCrSubSampling",          N_("YCbCr Sub Sampling"),         "Closed Choice of seq Integer", xmpSeq,  xmpInternal, N_("TIFF tag 530, 0x212. Sampling ratio of chrominance "
504
                                                                                                                                  "components: [2, 1] = YCbCr4:2:2; [2, 2] = YCbCr4:2:0") },
505
        { "YCbCrPositioning",          N_("YCbCr Positioning"),          "Closed Choice of Integer",     xmpText, xmpInternal, N_("TIFF tag 531, 0x213. Position of chrominance vs. "
506
                                                                                                                                  "luminance components: 1 = centered; 2 = co-sited.") },
507
        { "XResolution",               N_("X Resolution"),               "Rational",                     xmpText, xmpInternal, N_("TIFF tag 282, 0x11A. Horizontal resolution in pixels per unit.") },
508
        { "YResolution",               N_("Y Resolution"),               "Rational",                     xmpText, xmpInternal, N_("TIFF tag 283, 0x11B. Vertical resolution in pixels per unit.") },
509
        { "ResolutionUnit",            N_("Resolution Unit"),            "Closed Choice of Integer",     xmpText, xmpInternal, N_("TIFF tag 296, 0x128. Unit used for XResolution and "
510
                                                                                                                                  "YResolution. Value is one of: 2 = inches; 3 = centimeters.") },
511
        { "TransferFunction",          N_("Transfer Function"),          "seq Integer",                  xmpSeq,  xmpInternal, N_("TIFF tag 301, 0x12D. Transfer function for image "
512
                                                                                                                                  "described in tabular style with 3 * 256 entries.") },
513
        { "WhitePoint",                N_("White Point"),                "seq Rational",                 xmpSeq,  xmpInternal, N_("TIFF tag 318, 0x13E. Chromaticity of white point.") },
514
        { "PrimaryChromaticities",     N_("Primary Chromaticities"),     "seq Rational",                 xmpSeq,  xmpInternal, N_("TIFF tag 319, 0x13F. Chromaticity of the three primary colors.") },
515
        { "YCbCrCoefficients",         N_("YCbCr Coefficients"),         "seq Rational",                 xmpSeq,  xmpInternal, N_("TIFF tag 529, 0x211. Matrix coefficients for RGB to YCbCr transformation.") },
516
        { "ReferenceBlackWhite",       N_("Reference Black White"),      "seq Rational",                 xmpSeq,  xmpInternal, N_("TIFF tag 532, 0x214. Reference black and white point values.") },
517
        { "DateTime",                  N_("Date and Time"),              "Date",                         xmpText, xmpInternal, N_("TIFF tag 306, 0x132 (primary) and EXIF tag 37520, "
518
                                                                                                                                  "0x9290 (subseconds). Date and time of image creation "
519
                                                                                                                                  "(no time zone in EXIF), stored in ISO 8601 format, not "
520
                                                                                                                                  "the original EXIF format. This property includes the "
521
                                                                                                                                  "value for the EXIF SubSecTime attribute. "
522
                                                                                                                                  "NOTE: This property is stored in XMP as xmp:ModifyDate.") },
523
        { "ImageDescription",          N_("Image Description"),          "Lang Alt",                     langAlt, xmpExternal, N_("TIFF tag 270, 0x10E. Description of the image. Note: This property is stored in XMP as dc:description.") },
524
        { "Make",                      N_("Make"),                       "ProperName",                   xmpText, xmpInternal, N_("TIFF tag 271, 0x10F. Manufacturer of recording equipment.") },
525
        { "Model",                     N_("Model"),                      "ProperName",                   xmpText, xmpInternal, N_("TIFF tag 272, 0x110. Model name or number of equipment.") },
526
        { "Software",                  N_("Software"),                   "AgentName",                    xmpText, xmpInternal, N_("TIFF tag 305, 0x131. Software or firmware used to generate image. "
527
                                                                                                                                  "Note: This property is stored in XMP as xmp:CreatorTool. ") },
528
        { "Artist",                    N_("Artist"),                     "ProperName",                   xmpText, xmpExternal, N_("TIFF tag 315, 0x13B. Camera owner, photographer or image creator. "
529
                                                                                                                                  "Note: This property is stored in XMP as the first item in the dc:creator array.") },
530
        { "Copyright",                 N_("Copyright"),                  "Lang Alt",                     langAlt, xmpExternal, N_("TIFF tag 33432, 0x8298. Copyright information. "
531
                                                                                                                                  "Note: This property is stored in XMP as dc:rights.") },
532
        // End of list marker
533
        { 0, 0, 0, invalidTypeId, xmpInternal, 0 }
534
    };
535

    
536
    extern const XmpPropertyInfo xmpExifInfo[] = {
537
        { "ExifVersion",              N_("Exif Version"),                        "Closed Choice of Text",        xmpText, xmpInternal, N_("EXIF tag 36864, 0x9000. EXIF version number.") },
538
        { "FlashpixVersion",          N_("Flashpix Version"),                    "Closed Choice of Text",        xmpText, xmpInternal, N_("EXIF tag 40960, 0xA000. Version of FlashPix.") },
539
        { "ColorSpace",               N_("Color Space"),                         "Closed Choice of Integer",     xmpText, xmpInternal, N_("EXIF tag 40961, 0xA001. Color space information") },
540
        { "ComponentsConfiguration",  N_("Components Configuration"),            "Closed Choice of seq Integer", xmpSeq,  xmpInternal, N_("EXIF tag 37121, 0x9101. Configuration of components in data: 4 5 6 0 (if RGB compressed data), "
541
                                                                                                                                          "1 2 3 0 (other cases).") },
542
        { "CompressedBitsPerPixel",   N_("Compressed Bits Per Pixel"),           "Rational",                     xmpText, xmpInternal, N_("EXIF tag 37122, 0x9102. Compression mode used for a compressed image is indicated "
543
                                                                                                                                          "in unit bits per pixel.") },
544
        { "PixelXDimension",          N_("Pixel X Dimension"),                   "Integer",                      xmpText, xmpInternal, N_("EXIF tag 40962, 0xA002. Valid image width, in pixels.") },
545
        { "PixelYDimension",          N_("Pixel Y Dimension"),                   "Integer",                      xmpText, xmpInternal, N_("EXIF tag 40963, 0xA003. Valid image height, in pixels.") },
546
        { "UserComment",              N_("User Comment"),                        "Lang Alt",                     langAlt, xmpExternal, N_("EXIF tag 37510, 0x9286. Comments from user.") },
547
        { "RelatedSoundFile",         N_("Related Sound File"),                  "Text",                         xmpText, xmpInternal, N_("EXIF tag 40964, 0xA004. An \"8.3\" file name for the related sound file.") },
548
        { "DateTimeOriginal",         N_("Date and Time Original"),              "Date",                         xmpText, xmpInternal, N_("EXIF tags 36867, 0x9003 (primary) and 37521, 0x9291 (subseconds). "
549
                                                                                                                                          "Date and time when original image was generated, in ISO 8601 format. "
550
                                                                                                                                          "Includes the EXIF SubSecTimeOriginal data.") },
551
        { "DateTimeDigitized",        N_("Date and Time Digitized"),             "Date",                         xmpText, xmpInternal, N_("EXIF tag 36868, 0x9004 (primary) and 37522, 0x9292 (subseconds). Date and time when "
552
                                                                                                                                          "image was stored as digital data, can be the same as DateTimeOriginal if originally "
553
                                                                                                                                          "stored in digital form. Stored in ISO 8601 format. Includes the EXIF "
554
                                                                                                                                          "SubSecTimeDigitized data.") },
555
        { "ExposureTime",             N_("Exposure Time"),                       "Rational",                     xmpText, xmpInternal, N_("EXIF tag 33434, 0x829A. Exposure time in seconds.") },
556
        { "FNumber",                  N_("F Number"),                            "Rational",                     xmpText, xmpInternal, N_("EXIF tag 33437, 0x829D. F number.") },
557
        { "ExposureProgram",          N_("Exposure Program"),                    "Closed Choice of Integer",     xmpText, xmpInternal, N_("EXIF tag 34850, 0x8822. Class of program used for exposure.") },
558
        { "SpectralSensitivity",      N_("Spectral Sensitivity"),                "Text",                         xmpText, xmpInternal, N_("EXIF tag 34852, 0x8824. Spectral sensitivity of each channel.") },
559
        { "ISOSpeedRatings",          N_("ISOSpeedRatings"),                     "seq Integer",                  xmpSeq,  xmpInternal, N_("EXIF tag 34855, 0x8827. ISO Speed and ISO Latitude of the input device as "
560
                                                                                                                                          "specified in ISO 12232.") },
561
        { "OECF",                     N_("OECF"),                                "OECF/SFR",                     xmpText, xmpInternal, N_("EXIF tag 34856, 0x8828. Opto-Electoric Conversion Function as specified in ISO 14524.") },
562
        { "ShutterSpeedValue",        N_("Shutter Speed Value"),                 "Rational",                     xmpText, xmpInternal, N_("EXIF tag 37377, 0x9201. Shutter speed, unit is APEX. See Annex C of the EXIF specification.") },
563
        { "ApertureValue",            N_("Aperture Value"),                      "Rational",                     xmpText, xmpInternal, N_("EXIF tag 37378, 0x9202. Lens aperture, unit is APEX.") },
564
        { "BrightnessValue",          N_("Brightness Value"),                    "Rational",                     xmpText, xmpInternal, N_("EXIF tag 37379, 0x9203. Brightness, unit is APEX.") },
565
        { "ExposureBiasValue",        N_("Exposure Bias Value"),                 "Rational",                     xmpText, xmpInternal, N_("EXIF tag 37380, 0x9204. Exposure bias, unit is APEX.") },
566
        { "MaxApertureValue",         N_("Maximum Aperture Value"),              "Rational",                     xmpText, xmpInternal, N_("EXIF tag 37381, 0x9205. Smallest F number of lens, in APEX.") },
567
        { "SubjectDistance",          N_("Subject Distance"),                    "Rational",                     xmpText, xmpInternal, N_("EXIF tag 37382, 0x9206. Distance to subject, in meters.") },
568
        { "MeteringMode",             N_("Metering Mode"),                       "Closed Choice of Integer",     xmpText, xmpInternal, N_("EXIF tag 37383, 0x9207. Metering mode.") },
569
        { "LightSource",              N_("Light Source"),                        "Closed Choice of Integer",     xmpText, xmpInternal, N_("EXIF tag 37384, 0x9208. Light source.") },
570
        { "Flash",                    N_("Flash"),                               "Flash",                        xmpText, xmpInternal, N_("EXIF tag 37385, 0x9209. Strobe light (flash) source data.") },
571
        { "FocalLength",              N_("Focal Length"),                        "Rational",                     xmpText, xmpInternal, N_("EXIF tag 37386, 0x920A. Focal length of the lens, in millimeters.") },
572
        { "SubjectArea",              N_("Subject Area"),                        "seq Integer",                  xmpSeq,  xmpInternal, N_("EXIF tag 37396, 0x9214. The location and area of the main subject in the overall scene.") },
573
        { "FlashEnergy",              N_("Flash Energy"),                        "Rational",                     xmpText, xmpInternal, N_("EXIF tag 41483, 0xA20B. Strobe energy during image capture.") },
574
        { "SpatialFrequencyResponse", N_("Spatial Frequency Response"),          "OECF/SFR",                     xmpText, xmpInternal, N_("EXIF tag 41484, 0xA20C. Input device spatial frequency table and SFR values as "
575
                                                                                                                                          "specified in ISO 12233.") },
576
        { "FocalPlaneXResolution",    N_("Focal Plane X Resolution"),            "Rational",                     xmpText, xmpInternal, N_("EXIF tag 41486, 0xA20E. Horizontal focal resolution, measured pixels per unit.") },
577
        { "FocalPlaneYResolution",    N_("Focal Plane Y Resolution"),            "Rational",                     xmpText, xmpInternal, N_("EXIF tag 41487, 0xA20F. Vertical focal resolution, measured in pixels per unit.") },
578
        { "FocalPlaneResolutionUnit", N_("Focal Plane Resolution Unit"),         "Closed Choice of Integer",     xmpText, xmpInternal, N_("EXIF tag 41488, 0xA210. Unit used for FocalPlaneXResolution and FocalPlaneYResolution.") },
579
        { "SubjectLocation",          N_("Subject Location"),                    "seq Integer",                  xmpSeq,  xmpInternal, N_("EXIF tag 41492, 0xA214. Location of the main subject of the scene. The first value is the "
580
                                                                                                                                          "horizontal pixel and the second value is the vertical pixel at which the "
581
                                                                                                                                          "main subject appears.") },
582
        { "ExposureIndex",            N_("Exposure Index"),                      "Rational",                     xmpText, xmpInternal, N_("EXIF tag 41493, 0xA215. Exposure index of input device.") },
583
        { "SensingMethod",            N_("Sensing Method"),                      "Closed Choice of Integer",     xmpText, xmpInternal, N_("EXIF tag 41495, 0xA217. Image sensor type on input device.") },
584
        { "FileSource",               N_("File Source"),                         "Closed Choice of Integer",     xmpText, xmpInternal, N_("EXIF tag 41728, 0xA300. Indicates image source.") },
585
        { "SceneType",                N_("Scene Type"),                          "Closed Choice of Integer",     xmpText, xmpInternal, N_("EXIF tag 41729, 0xA301. Indicates the type of scene.") },
586
        { "CFAPattern",               N_("CFA Pattern"),                         "CFAPattern",                   xmpText, xmpInternal, N_("EXIF tag 41730, 0xA302. Color filter array geometric pattern of the image sense.") },
587
        { "CustomRendered",           N_("Custom Rendered"),                     "Closed Choice of Integer",     xmpText, xmpInternal, N_("EXIF tag 41985, 0xA401. Indicates the use of special processing on image data.") },
588
        { "ExposureMode",             N_("Exposure Mode"),                       "Closed Choice of Integer",     xmpText, xmpInternal, N_("EXIF tag 41986, 0xA402. Indicates the exposure mode set when the image was shot.") },
589
        { "WhiteBalance",             N_("White Balance"),                       "Closed Choice of Integer",     xmpText, xmpInternal, N_("EXIF tag 41987, 0xA403. Indicates the white balance mode set when the image was shot.") },
590
        { "DigitalZoomRatio",         N_("Digital Zoom Ratio"),                  "Rational",                     xmpText, xmpInternal, N_("EXIF tag 41988, 0xA404. Indicates the digital zoom ratio when the image was shot.") },
591
        { "FocalLengthIn35mmFilm",    N_("Focal Length In 35mm Film"),           "Integer",                      xmpText, xmpInternal, N_("EXIF tag 41989, 0xA405. Indicates the equivalent focal length assuming a 35mm film "
592
                                                                                                                                          "camera, in mm. A value of 0 means the focal length is unknown. Note that this tag "
593
                                                                                                                                          "differs from the FocalLength tag.") },
594
        { "SceneCaptureType",         N_("Scene Capture Type"),                  "Closed Choice of Integer",     xmpText, xmpInternal, N_("EXIF tag 41990, 0xA406. Indicates the type of scene that was shot.") },
595
        { "GainControl",              N_("Gain Control"),                        "Closed Choice of Integer",     xmpText, xmpInternal, N_("EXIF tag 41991, 0xA407. Indicates the degree of overall image gain adjustment.") },
596
        { "Contrast",                 N_("Contrast"),                            "Closed Choice of Integer",     xmpText, xmpInternal, N_("EXIF tag 41992, 0xA408. Indicates the direction of contrast processing applied by the camera.") },
597
        { "Saturation",               N_("Saturation"),                          "Closed Choice of Integer",     xmpText, xmpInternal, N_("EXIF tag 41993, 0xA409. Indicates the direction of saturation processing applied by the camera.") },
598
        { "Sharpness",                N_("Sharpness"),                           "Closed Choice of Integer",     xmpText, xmpInternal, N_("EXIF tag 41994, 0xA40A. Indicates the direction of sharpness processing applied by the camera.") },
599
        { "DeviceSettingDescription", N_("Device Setting Description"),          "DeviceSettings",               xmpText, xmpInternal, N_("EXIF tag 41995, 0xA40B. Indicates information on the picture-taking conditions of a particular camera model.") },
600
        { "SubjectDistanceRange",     N_("Subject Distance Range"),              "Closed Choice of Integer",     xmpText, xmpInternal, N_("EXIF tag 41996, 0xA40C. Indicates the distance to the subject.") },
601
        { "ImageUniqueID",            N_("Image Unique ID"),                     "Text",                         xmpText, xmpInternal, N_("EXIF tag 42016, 0xA420. An identifier assigned uniquely to each image. It is recorded as a 32 "
602
                                                                                                                                          "character ASCII string, equivalent to hexadecimal notation and 128-bit fixed length.") },
603
        { "GPSVersionID",             N_("GPS Version ID"),                      "Text",                         xmpText, xmpInternal, N_("GPS tag 0, 0x00. A decimal encoding of each of the four EXIF bytes with period separators. "
604
                                                                                                                                          "The current value is \"2.0.0.0\".") },
605
        { "GPSLatitude",              N_("GPS Latitude"),                        "GPSCoordinate",                xmpText, xmpInternal, N_("GPS tag 2, 0x02 (position) and 1, 0x01 (North/South). Indicates latitude.") },
606
        { "GPSLongitude",             N_("GPS Longitude"),                       "GPSCoordinate",                xmpText, xmpInternal, N_("GPS tag 4, 0x04 (position) and 3, 0x03 (East/West). Indicates longitude.") },
607
        { "GPSAltitudeRef",           N_("GPS Altitude Reference"),              "Closed Choice of Integer",     xmpText, xmpInternal, N_("GPS tag 5, 0x05. Indicates whether the altitude is above or below sea level.") },
608
        { "GPSAltitude",              N_("GPS Altitude"),                        "Rational",                     xmpText, xmpInternal, N_("GPS tag 6, 0x06. Indicates altitude in meters.") },
609
        { "GPSTimeStamp",             N_("GPS Time Stamp"),                      "Date",                         xmpText, xmpInternal, N_("GPS tag 29 (date), 0x1D, and, and GPS tag 7 (time), 0x07. Time stamp of GPS data, "
610
                                                                                                                                          "in Coordinated Universal Time. Note: The GPSDateStamp tag is new in EXIF 2.2. "
611
                                                                                                                                          "The GPS timestamp in EXIF 2.1 does not include a date. If not present, "
612
                                                                                                                                          "the date component for the XMP should be taken from exif:DateTimeOriginal, or if that is "
613
                                                                                                                                          "also lacking from exif:DateTimeDigitized. If no date is available, do not write "
614
                                                                                                                                          "exif:GPSTimeStamp to XMP.") },
615
        { "GPSSatellites",            N_("GPS Satellites"),                      "Text",                         xmpText, xmpInternal, N_("GPS tag 8, 0x08. Satellite information, format is unspecified.") },
616
        { "GPSStatus",                N_("GPS Status"),                          "Closed Choice of Text",        xmpText, xmpInternal, N_("GPS tag 9, 0x09. Status of GPS receiver at image creation time.") },
617
        { "GPSMeasureMode",           N_("GPS Measure Mode"),                    "Text",                         xmpText, xmpInternal, N_("GPS tag 10, 0x0A. GPS measurement mode, Text type.") },
618
        { "GPSDOP",                   N_("GPS DOP"),                             "Rational",                     xmpText, xmpInternal, N_("GPS tag 11, 0x0B. Degree of precision for GPS data.") },
619
        { "GPSSpeedRef",              N_("GPS Speed Reference"),                 "Closed Choice of Text",        xmpText, xmpInternal, N_("GPS tag 12, 0x0C. Units used to speed measurement.") },
620
        { "GPSSpeed",                 N_("GPS Speed"),                           "Rational",                     xmpText, xmpInternal, N_("GPS tag 13, 0x0D. Speed of GPS receiver movement.") },
621
        { "GPSTrackRef",              N_("GPS Track Reference"),                 "Closed Choice of Text",        xmpText, xmpInternal, N_("GPS tag 14, 0x0E. Reference for movement direction.") },
622
        { "GPSTrack",                 N_("GPS Track"),                           "Rational",                     xmpText, xmpInternal, N_("GPS tag 15, 0x0F. Direction of GPS movement, values range from 0 to 359.99.") },
623
        { "GPSImgDirectionRef",       N_("GPS Image Direction Reference"),       "Closed Choice of Text",        xmpText, xmpInternal, N_("GPS tag 16, 0x10. Reference for image direction.") },
624
        { "GPSImgDirection",          N_("GPS Image Direction"),                 "Rational",                     xmpText, xmpInternal, N_("GPS tag 17, 0x11. Direction of image when captured, values range from 0 to 359.99.") },
625
        { "GPSMapDatum",              N_("GPS Map Datum"),                       "Text",                         xmpText, xmpInternal, N_("GPS tag 18, 0x12. Geodetic survey data.") },
626
        { "GPSDestLatitude",          N_("GPS Destination Latitude"),            "GPSCoordinate",                xmpText, xmpInternal, N_("GPS tag 20, 0x14 (position) and 19, 0x13 (North/South). Indicates destination latitude.") },
627
        { "GPSDestLongitude",         N_("GPS Destination Longitude"),           "GPSCoordinate",                xmpText, xmpInternal, N_("GPS tag 22, 0x16 (position) and 21, 0x15 (East/West). Indicates destination longitude.") },
628
        { "GPSDestBearingRef",        N_("GPS Destination Bearing Reference"),   "Closed Choice of Text",        xmpText, xmpInternal, N_("GPS tag 23, 0x17. Reference for movement direction.") },
629
        { "GPSDestBearing",           N_("GPS Destination Bearing"),             "Rational",                     xmpText, xmpInternal, N_("GPS tag 24, 0x18. Destination bearing, values from 0 to 359.99.") },
630
        { "GPSDestDistanceRef",       N_("GPS Destination Distance Refefrence"), "Closed Choice  of Text",       xmpText, xmpInternal, N_("GPS tag 25, 0x19. Units used for speed measurement.") },
631
        { "GPSDestDistance",          N_("GPS Destination Distance"),            "Rational",                     xmpText, xmpInternal, N_("GPS tag 26, 0x1A. Distance to destination.") },
632
        { "GPSProcessingMethod",      N_("GPS Processing Method"),               "Text",                         xmpText, xmpInternal, N_("GPS tag 27, 0x1B. A character string recording the name of the method used for location finding.") },
633
        { "GPSAreaInformation",       N_("GPS Area Information"),                "Text",                         xmpText, xmpInternal, N_("GPS tag 28, 0x1C. A character string recording the name of the GPS area.") },
634
        { "GPSDifferential",          N_("GPS Differential"),                    "Closed Choice of Integer",     xmpText, xmpInternal, N_("GPS tag 30, 0x1E. Indicates whether differential correction is applied to the GPS receiver.") },
635
        // End of list marker
636
        { 0, 0, 0, invalidTypeId, xmpInternal, 0 }
637
    };
638

    
639
    extern const XmpPropertyInfo xmpAuxInfo[] = {
640
        { "Lens",             N_("Lens"),             "Text",        xmpText,          xmpInternal, N_("A description of the lens used to take the photograph. For example, \"70-200 mm f/2.8-4.0\".") },
641
        { "SerialNumber",     N_("SerialNumber"),     "Text",        xmpText,          xmpInternal, N_("The serial number of the camera or camera body used to take the photograph.") },
642
        // End of list marker
643
        { 0, 0, 0, invalidTypeId, xmpInternal, 0 }
644
    };
645

    
646
    extern const XmpPropertyInfo xmpIptcInfo[] = {
647
        { "CiAdrCity",          N_("Contact Info-City"),           "Text",                      xmpText, xmpExternal, N_("The contact information city part.") },
648
        { "CiAdrCtry",          N_("Contact Info-Country"),        "Text",                      xmpText, xmpExternal, N_("The contact information country part.") },
649
        { "CiAdrExtadr",        N_("Contact Info-Address"),        "Text",                      xmpText, xmpExternal, N_("The contact information address part. Comprises an optional company name and all required "
650
                                                                                                                         "information to locate the building or postbox to which mail should be sent.") },
651
        { "CiAdrPcode",         N_("Contact Info-Postal Code"),    "Text",                      xmpText, xmpExternal, N_("The contact information part denoting the local postal code.") },
652
        { "CiAdrRegion",        N_("Contact Info-State/Province"), "Text",                      xmpText, xmpExternal, N_("The contact information part denoting regional information like state or province.") },
653
        { "CiEmailWork",        N_("Contact Info-Email"),          "Text",                      xmpText, xmpExternal, N_("The contact information email address part.") },
654
        { "CiTelWork",          N_("Contact Info-Phone"),          "Text",                      xmpText, xmpExternal, N_("The contact information phone number part.") },
655
        { "CiUrlWork",          N_("Contact Info-Web URL"),        "Text",                      xmpText, xmpExternal, N_("The contact information web address part.") },
656
        { "CountryCode",        N_("Country Code"),                "closed Choice of Text",     xmpText, xmpExternal, N_("Code of the country the content is focussing on -- either the country shown in visual "
657
                                                                                                                         "media or referenced in text or audio media. This element is at the top/first level of "
658
                                                                                                                         "a top-down geographical hierarchy. The code should be taken from ISO 3166 two or three "
659
                                                                                                                         "letter code. The full name of a country should go to the \"Country\" element.") },
660
        { "CreatorContactInfo", N_("Creator's Contact Info"),      "ContactInfo",               xmpText, xmpExternal, N_("The creator's contact information provides all necessary information to get in contact "
661
                                                                                                                         "with the creator of this news object and comprises a set of sub-properties for proper addressing.") },
662
        { "IntellectualGenre",  N_("Intellectual Genre"),          "Text",                      xmpText, xmpExternal, N_("Describes the nature, intellectual or journalistic characteristic of a news object, not "
663
                                                                                                                         "specifically its content.") },
664
        { "Location",           N_("Location"),                    "Text",                      xmpText, xmpExternal, N_("Name of a location the content is focussing on -- either the location shown in visual "
665
                                                                                                                         "media or referenced by text or audio media. This location name could either be the name "
666
                                                                                                                         "of a sublocation to a city or the name of a well known location or (natural) monument "
667
                                                                                                                         "outside a city. In the sense of a sublocation to a city this element is at the fourth "
668
                                                                                                                         "level of a top-down geographical hierarchy.") },
669
        { "Scene",              N_("IPTC Scene"),                  "bag closed Choice of Text", xmpBag, xmpExternal, N_("Describes the scene of a photo content. Specifies one or more terms from the IPTC "
670
                                                                                                                        "\"Scene-NewsCodes\". Each Scene is represented as a string of 6 digits in an unordered list.") },
671
        { "SubjectCode",        N_("IPTC Subject Code"),           "bag closed Choice of Text", xmpBag, xmpExternal, N_("Specifies one or more Subjects from the IPTC \"Subject-NewsCodes\" taxonomy to "
672
                                                                                                                        "categorize the content. Each Subject is represented as a string of 8 digits in an unordered list.") },
673
        // End of list marker
674
        { 0, 0, 0, invalidTypeId, xmpInternal, 0 }
675
    };
676

    
677
    extern const XmpPropertyInfo xmpIptcExtInfo[] = {
678
        { "AddlModelInfo",           N_("Additional model info"),           "Text",                       xmpText, xmpExternal, N_("Information about the ethnicity and other facts of the model(s) in a model-released image.") },
679
        { "OrganisationInImageCode", N_("Code of featured Organisation"),   "bag Text",                   xmpBag,  xmpExternal, N_("Code from controlled vocabulary for identyfing the organisation or company which is featured in the image.") },
680
        { "CVterm",                  N_("Controlled Vocabulary Term"),      "bag URI",                    xmpBag,  xmpExternal, N_("A term to describe the content of the image by a value from a Controlled Vocabulary.") },
681
        { "ModelAge",                N_("Model age"),                       "bag Integer",                xmpBag,  xmpExternal, N_("Age of the human model(s) at the time this image was taken in a model released image.") },
682
        { "OrganisationInImageName", N_("Name of featured Organisation"),   "bag Text",                   xmpBag,  xmpExternal, N_("Name of the organisation or company which is featured in the image.") },
683
        { "PersonInImage",           N_("Person shown"),                    "bag Text",                   xmpBag,  xmpExternal, N_("Name of a person shown in the image.") },
684
        { "DigImageGUID",            N_("Digital Image Identifier"),        "Text",                       xmpText, xmpExternal, N_("Globally unique identifier for this digital image. It is created and applied by the creator of the digital image at the time of its creation. this value shall not be changed after that time.") },
685
        { "DigitalSourcefileType",   N_("Physical type of original photo"), "URI",                        xmpText, xmpExternal, N_("The type of the source digital file.") },
686
        { "Event",                   N_("Event"),                           "Lang Alt",                   langAlt, xmpExternal, N_("Names or describes the specific event at which the photo was taken.") },
687
        { "MaxAvailHeight",          N_("Maximum available height"),        "Integer",                    xmpText, xmpExternal, N_("The maximum available height in pixels of the original photo from which this photo has been derived by downsizing.") },
688
        { "MaxAvailWidth",           N_("Maximum available width"),         "Integer",                    xmpText, xmpExternal, N_("The maximum available width in pixels of the original photo from which this photo has been derived by downsizing.") },
689
        { "RegistryId",              N_("Registry Entry"),                  "bag RegistryEntryDetails",   xmpBag,  xmpExternal, N_("Both a Registry Item Id and a Registry Organisation Id to record any registration of this digital image with a registry.") },
690
        { "RegItemId",               N_("Registry Entry-Item Identifier"),  "Text",                       xmpText, xmpExternal, N_("A unique identifier created by a registry and applied by the creator of the digital image. This value shall not be changed after being applied. This identifier is linked to a corresponding Registry Organisation Identifier.") },
691
        { "RegOrgId",                N_("Registry Entry-Organisation Identifier"), "Text",                xmpText, xmpExternal, N_("An identifier for the registry which issued the corresponding Registry Image Id.") },
692
        { "IptcLastEdited",          N_("IPTC Fields Last Edited"),         "Date",                       xmpText, xmpExternal, N_("The date and optionally time when any of the IPTC photo metadata fields has been last edited.") },
693
        { "LocationShown",           N_("Location shown"),                  "bag LocationDetails",        xmpBag,  xmpExternal, N_("A location shown in the image.") },
694
        { "LocationCreated",         N_("Location Created"),                "bag LocationDetails",        xmpBag,  xmpExternal, N_("The location the photo was taken.") },
695
        { "City",                    N_("Location-City"),                   "Text",                       xmpText, xmpExternal, N_("Name of the city of a location.") },
696
        { "CountryCode",             N_("Location-Country ISO-Code"),       "Text",                       xmpText, xmpExternal, N_("The ISO code of a country of a location.") },
697
        { "CountryName",             N_("Location-Country Name"),           "Text",                       xmpText, xmpExternal, N_("The name of a country of a location.") },
698
        { "ProvinceState",           N_("Location-Province/State"),         "Text",                       xmpText, xmpExternal, N_("The name of a subregion of a country - a province or state - of a location.") },
699
        { "Sublocation",             N_("Location-Sublocation"),            "Text",                       xmpText, xmpExternal, N_("Name of a sublocation. This sublocation name could either be the name of a sublocation to a city or the name of a well known location or (natural) monument outside a city.") },
700
        { "WorldRegion",             N_("Location-World Region"),           "Text",                       xmpText, xmpExternal, N_("The name of a world region of a location.") },
701
        { "ArtworkOrObject",         N_("Artwork or object in the image"),  "bag ArtworkOrObjectDetails", xmpBag,  xmpExternal, N_("A set of metadata about artwork or an object in the image.") },
702
        { "AOCopyrightNotice",       N_("Artwork or object-Copyright notice"), "Text",                    xmpText, xmpExternal, N_("Contains any necessary copyright notice for claiming the intellectual property for artwork or an object in the image and should identify the current owner of the copyright of this work with associated intellectual property rights.") },
703
        { "AOCreator",               N_("Artwork or object-Creator"),       "seq ProperName",             xmpSeq,  xmpExternal, N_("Contains the name of the artist who has created artwork or an object in the image. In cases where the artist could or should not be identified the name of a company or organisation may be appropriate.") },
704
        { "AODateCreated",           N_("Artwork or object-Date Created"),  "Date",                       xmpText, xmpExternal, N_("Designates the date and optionally the time the artwork or object in the image was created. This relates to artwork or objects with associated intellectual property rights.") },
705
        { "AOSource",                N_("Artwork or object-Source"),        "Text",                       xmpText, xmpExternal, N_("The organisation or body holding and registering the artwork or object in the image for inventory purposes.") },
706
        { "AOSourceInvNo",           N_("Artwork or object-Source inventory number"), "Text",             xmpText, xmpExternal, N_("The inventory number issued by the organisation or body holding and registering the artwork or object in the image.") },
707
        { "AOTitle",                 N_("Artwork or object-Title"),         "Lang Alt",                   langAlt, xmpExternal, N_("A reference for the artwork or object in the image.") },
708
        // End of list marker
709
        { 0, 0, 0, invalidTypeId, xmpInternal, 0 }
710
    };
711

    
712
    //! XMP iptcExt:DigitalSourcefileType
713
    extern const TagVocabulary iptcExtDigitalSourcefileType[] = {
714
        { "scanfilm",         N_("Scan from film")                           },
715
        { "scantransparency", N_("Scan from transparency (including slide)") },
716
        { "scanprint",        N_("Scan from print")                          },
717
        { "cameraraw",        N_("Camera RAW")                               },
718
        { "cameratiff",       N_("Camera TIFF")                              },
719
        { "camerajpeg",       N_("Camera JPEG")                              }
720
    };
721

    
722
    extern const XmpPropertyInfo xmpPlusInfo[] = {
723
        // PLUS Version 1.2.0
724
        { "Version", N_("PLUS Version"), "Text", xmpText, xmpExternal, N_("The version number of the PLUS standards in place at the time of the transaction.") },
725
        { "Licensee", N_("Licensee"), "seq LicenseeDetail", xmpSeq, xmpExternal, N_("Party or parties to whom the license is granted by the Licensor/s under the license transaction.") },
726
        { "LicenseeID", N_("Licensee ID"), "Text", xmpText, xmpExternal, N_("Optional PLUS-ID identifying each Licensee.") },
727
        { "LicenseeName", N_("Licensee Name"), "ProperName", xmpText, xmpExternal, N_("Name of each Licensee.") },
728
        { "EndUser", N_("End User"), "seq EndUserDetail", xmpSeq, xmpExternal, N_("Party or parties ultimately making use of the image under the license.") },
729
        { "EndUserID", N_("End User ID"), "Text", xmpText, xmpExternal, N_("Optional PLUS-ID identifying each End User.") },
730
        { "EndUserName", N_("End User Name"), "ProperName", xmpText, xmpExternal, N_("Name of each End User.") },
731
        { "Licensor", N_("Licensor"), "seq LicensorDetail", xmpSeq, xmpExternal, N_("Party or parties granting the license to the Licensee.") },
732
        { "LicensorID", N_("Licensor ID"), "Text", xmpText, xmpExternal, N_("Optional PLUS-ID identifying each Licensor.") },
733
        { "LicensorName", N_("Licensor Name"), "ProperName", xmpText, xmpExternal, N_("Name of each Licensor.") },
734
        { "LicensorStreetAddress", N_("Licensor Address"), "Text", xmpText, xmpExternal, N_("Licensor street address.") },
735
        { "LicensorExtendedAddress", N_("Licensor Address Detail"), "Text", xmpText, xmpExternal, N_("Additional Licensor mailing address details.") },
736
        { "LicensorCity", N_("Licensor City"), "Text", xmpText, xmpExternal, N_("Licensor City name.") },
737
        { "LicensorRegion", N_("Licensor State or Province"), "Text", xmpText, xmpExternal, N_("Licensor State or Province name.") },
738
        { "LicensorPostalCode", N_("Licensor Postal Code"), "Text", xmpText, xmpExternal, N_("Licensor Postal Code or Zip Code.") },
739
        { "LicensorCountry", N_("Licensor Country"), "Text", xmpText, xmpExternal, N_("Licensor Country name.") },
740
        { "LicensorTelephoneType1", N_("Licensor Telephone Type 1"), "URL", xmpText, xmpExternal, N_("Licensor Telephone Type 1.") },
741
        { "LicensorTelephone1", N_("Licensor Telephone 1"), "Text", xmpText, xmpExternal, N_("Licensor Telephone number 1.") },
742
        { "LicensorTelephoneType2", N_("Licensor Telephone Type 2"), "URL", xmpText, xmpExternal, N_("Licensor Telephone Type 2.") },
743
        { "LicensorTelephone2", N_("Licensor Telephone 2"), "Text", xmpText, xmpExternal, N_("Licensor Telephone number 2.") },
744
        { "LicensorEmail", N_("Licensor Email"), "Text", xmpText, xmpExternal, N_("Licensor Email address.") },
745
        { "LicensorURL", N_("Licensor URL"), "URL", xmpText, xmpExternal, N_("Licensor world wide web address.") },
746
        { "LicensorNotes", N_("Licensor Notes"), "Lang Alt", langAlt, xmpExternal, N_("Supplemental information for use in identifying and contacting the Licensor/s.") },
747
        { "MediaSummaryCode", N_("PLUS Media Summary Code"), "Text", xmpText, xmpExternal, N_("A PLUS-standardized alphanumeric code string summarizing the media usages included in the license.") },
748
        { "LicenseStartDate", N_("License Start Date"), "Date", xmpText, xmpExternal, N_("The date on which the license takes effect.") },
749
        { "LicenseEndDate", N_("License End Date"), "Date", xmpText, xmpExternal, N_("The date on which the license expires.") },
750
        { "MediaConstraints", N_("Media Constraints"), "Lang Alt", langAlt, xmpExternal, N_("Constraints limiting the scope of PLUS Media Usage/s included in the license to particular named media or to media not yet specifically defined in the PLUS Media Matrix.") },
751
        { "RegionConstraints", N_("Region Constraints"), "Lang Alt", langAlt, xmpExternal, N_("Constraints limiting the scope of geographic distribution to specific cities, states, provinces or other areas to be included in or excluded from the PLUS Regions specified in the Media Usages specified in the license.") },
752
        { "ProductOrServiceConstraints", N_("Product or Service Constraints"), "Lang Alt", langAlt, xmpExternal, N_("Constraints limiting usage of the image to promotion of/association with a named product or service.") },
753
        { "ImageFileConstraints", N_("Image File Constraints"), "bag URL", xmpBag, xmpExternal, N_("Constraints on the changing of the image file name, metadata or file type.") },
754
        { "ImageAlterationConstraints", N_("Image Alteration Constraints"), "bag URL", xmpBag, xmpExternal, N_("Constraints on alteration of the image by cropping, flipping, retouching, colorization, de-colorization or merging.") },
755
        { "ImageDuplicationConstraints", N_("Image Duplication Constraints"), "URL", xmpText, xmpExternal, N_("Constraints on the creation of duplicates of the image.") },
756
        { "ModelReleaseStatus", N_("Model Release Status"), "URL", xmpText, xmpExternal, N_("Summarizes the availability and scope of model releases authorizing usage of the likenesses of persons appearing in the photograph.") },
757
        { "ModelReleaseID", N_("Model Release ID"), "bag Text", xmpBag, xmpExternal, N_("Optional identifier associated with each Model Release.") },
758
        { "MinorModelAgeDisclosure", N_("Minor Model Age Disclosure"), "URL", xmpText, xmpExternal, N_("Age of the youngest model pictured in the image, at the time that the image was made.") },
759
        { "PropertyReleaseStatus", N_("Property Release Status"), "URL", xmpText, xmpExternal, N_("Summarizes the availability and scope of property releases authorizing usage of the properties appearing in the photograph.") },
760
        { "PropertyReleaseID", N_("Property Release ID"), "bag Text", xmpBag, xmpExternal, N_("Optional identifier associated with each Property Release.") },
761
        { "OtherConstraints", N_("Other Constraints"), "Lang Alt", langAlt, xmpExternal, N_("Additional constraints on the license.") },
762
        { "CreditLineRequired", N_("Credit Line Required"), "URL", xmpText, xmpExternal, N_("Attribution requirements, if any.") },
763
        { "AdultContentWarning", N_("Adult Content Warning"), "URL", xmpText, xmpExternal, N_("Warning indicating the presence of content not suitable for minors.") },
764
        { "OtherLicenseRequirements", N_("Other License Requirements"), "Lang Alt", langAlt, xmpExternal, N_("Additional license requirements.") },
765
        { "TermsAndConditionsText", N_("Terms and Conditions Text"), "Lang Alt", langAlt, xmpExternal, N_("Terms and Conditions applying to the license.") },
766
        { "TermsAndConditionsURL", N_("Terms and Conditions URL"), "URL", xmpText, xmpExternal, N_("URL for Terms and Conditions applying to the license.") },
767
        { "OtherConditions", N_("Other License Conditions"), "Lang Alt", langAlt, xmpExternal, N_("Additional license conditions.") },
768
        { "ImageType", N_("Image Type"), "URL", xmpText, xmpExternal, N_("Identifies the type of image delivered.") },
769
        { "LicensorImageID", N_("Licensor Image ID"), "Text", xmpText, xmpExternal, N_("Optional identifier assigned by the Licensor to the image.") },
770
        { "FileNameAsDelivered", N_("Image File Name As Delivered"), "Text", xmpText, xmpExternal, N_("Name of the image file delivered to the Licensee for use under the license.") },
771
        { "ImageFileFormatAsDelivered", N_("Image File Format As Delivered"), "URL", xmpText, xmpExternal, N_("File format of the image file delivered to the Licensee for use under the license.") },
772
        { "ImageFileSizeAsDelivered", N_("Image File Size As Delivered"), "URL", xmpText, xmpExternal, N_("Size of the image file delivered to the Licensee.") },
773
        { "CopyrightStatus", N_("Copyright Status"), "URL", xmpText, xmpExternal, N_("Copyright status of the image.") },
774
        { "CopyrightRegistrationNumber", N_("Copyright Registration Number"), "Text", xmpText, xmpExternal, N_("Copyright Registration Number, if any, applying to the licensed image.") },
775
        { "FirstPublicationDate", N_("First Publication Date"), "Date", xmpText, xmpExternal, N_("The date on which the image was first published.") },
776
        { "CopyrightOwner", N_("Copyright Owner"), "seq CopyrightOwnerDetail", xmpSeq, xmpExternal, N_("Owner or owners of the copyright in the licensed image.") },
777
        { "CopyrightOwnerID", N_("Copyright Owner ID"), "Text", xmpText, xmpExternal, N_("Optional PLUS-ID identifying each Copyright Owner.") },
778
        { "CopyrightOwnerName", N_("Copyright Owner Name"), "ProperName", xmpText, xmpExternal, N_("Name of Copyright Owner.") },
779
        { "CopyrightOwnerImageID", N_("Copyright Owner Image ID"), "Text", xmpText, xmpExternal, N_("Optional identifier assigned by the Copyright Owner to the image.") },
780
        { "ImageCreator", N_("Image Creator"), "seq ImageCreatorDetail", xmpSeq, xmpExternal, N_("Creator/s of the image.") },
781
        { "ImageCreatorID", N_("Image Creator ID"), "Text", xmpText, xmpExternal, N_("Optional PLUS-ID identifying each Image Creator.") },
782
        { "ImageCreatorName", N_("Image Creator Name"), "ProperName", xmpText, xmpExternal, N_("Name of Image Creator.") },
783
        { "ImageCreatorImageID", N_("Image Creator Image ID"), "Text", xmpText, xmpExternal, N_("Optional identifier assigned by the Image Creator to the image.") },
784
        { "ImageSupplierID", N_("Image Supplier ID"), "Text", xmpText, xmpExternal, N_("Optional PLUS-ID identifying the Image Supplier.") },
785
        { "ImageSupplierName", N_("Image Supplier Name"), "ProperName", xmpText, xmpExternal, N_("Name of Image Supplier.") },
786
        { "ImageSupplierImageID", N_("Image Supplier Image ID"), "Text", xmpText, xmpExternal, N_("Optional identifier assigned by the Image Supplier to the image.") },
787
        { "LicenseeImageID", N_("Licensee Image ID"), "Text", xmpText, xmpExternal, N_("Optional identifier assigned by the Licensee to the image.") },
788
        { "LicenseeImageNotes", N_("Licensee Image Notes"), "Lang Alt", langAlt, xmpExternal, N_("Notes added by Licensee.") },
789
        { "OtherImageInfo", N_("Other Image Info"), "Lang Alt", langAlt, xmpExternal, N_("Additional image information.") },
790
        { "LicenseID", N_("License ID"), "Text", xmpText, xmpExternal, N_("Optional PLUS-ID assigned by the Licensor to the License.") },
791
        { "LicensorTransactionID", N_("Licensor Transaction ID"), "bag Text", xmpBag, xmpExternal, N_("Identifier assigned by Licensor for Licensor's reference and internal use.") },
792
        { "LicenseeTransactionID", N_("Licensee Transaction ID"), "bag Text", xmpBag, xmpExternal, N_("Identifier assigned by Licensee for Licensee's reference and internal use.") },
793
        { "LicenseeProjectReference", N_("Licensee Project Reference"), "bag Text", xmpBag, xmpExternal, N_("Project reference name or description assigned by Licensee.") },
794
        { "LicenseTransactionDate", N_("License Transaction Date"), "Date", xmpText, xmpExternal, N_("The date of the License Transaction.") },
795
        { "Reuse", N_("Reuse"), "URL", xmpText, xmpExternal, N_("Indicates whether a license is a repeat or an initial license.  Reuse may require that licenses stored in files previously delivered to the customer be updated.") },
796
        { "OtherLicenseDocuments", N_("Other License Documents"), "bag Text", xmpBag, xmpExternal, N_("Reference information for additional documents associated with the license.") },
797
        { "OtherLicenseInfo", N_("Other License Info"), "Lang Alt", langAlt, xmpExternal, N_("Additional license information.") },
798
        { "Custom1", N_("Custom 1"), "bag Lang Alt", xmpBag, xmpExternal, N_("Optional field for use at Licensor's discretion.") },
799
        { "Custom2", N_("Custom 2"), "bag Lang Alt", xmpBag, xmpExternal, N_("Optional field for use at Licensor's discretion.") },
800
        { "Custom3", N_("Custom 3"), "bag Lang Alt", xmpBag, xmpExternal, N_("Optional field for use at Licensor's discretion.") },
801
        { "Custom4", N_("Custom 4"), "bag Lang Alt", xmpBag, xmpExternal, N_("Optional field for use at Licensor's discretion.") },
802
        { "Custom5", N_("Custom 5"), "bag Lang Alt", xmpBag, xmpExternal, N_("Optional field for use at Licensor's discretion.") },
803
        { "Custom6", N_("Custom 6"), "bag Lang Alt", xmpBag, xmpExternal, N_("Optional field for use at Licensee's discretion.") },
804
        { "Custom7", N_("Custom 7"), "bag Lang Alt", xmpBag, xmpExternal, N_("Optional field for use at Licensee's discretion.") },
805
        { "Custom8", N_("Custom 8"), "bag Lang Alt", xmpBag, xmpExternal, N_("Optional field for use at Licensee's discretion.") },
806
        { "Custom9", N_("Custom 9"), "bag Lang Alt", xmpBag, xmpExternal, N_("Optional field for use at Licensee's discretion.") },
807
        { "Custom10", N_("Custom 10"), "bag Lang Alt", xmpBag, xmpExternal, N_("Optional field for use at Licensee's discretion.") },
808
        // End of list marker
809
        { 0, 0, 0, invalidTypeId, xmpInternal, 0 }
810
    };
811

    
812
    //! XMP plus:AdultContentWarning
813
    extern const TagVocabulary plusAdultContentWarning[] = {
814
        { "CW-AWR", N_("Adult Content Warning Required") },
815
        { "CW-NRQ", N_("Not Required")                   },
816
        { "CW-UNK", N_("Unknown")                        }
817
    };
818

    
819
    //! XMP plus:CopyrightStatus
820
    extern const TagVocabulary plusCopyrightStatus[] = {
821
        { "CS-PRO", N_("Protected")     },
822
        { "CS-PUB", N_("Public Domain") },
823
        { "CS-UNK", N_("Unknown")       }
824
    };
825

    
826
    //! XMP plus:CreditLineRequired
827
    extern const TagVocabulary plusCreditLineRequired[] = {
828
        { "CR-CAI", N_("Credit Adjacent To Image") },
829
        { "CR-CCA", N_("Credit in Credits Area")   },
830
        { "CR-COI", N_("Credit on Image")          },
831
        { "CR-NRQ", N_("Not Require")              }
832
    };
833

    
834
    //! XMP plus:ImageAlterationConstraints
835
    extern const TagVocabulary plusImageAlterationConstraints[] = {
836
        { "AL-CLR", N_("No Colorization")    },
837
        { "AL-CRP", N_("No Cropping")        },
838
        { "AL-DCL", N_("No De-Colorization") },
839
        { "AL-FLP", N_("No Flipping")        },
840
        { "AL-MRG", N_("No Merging")         },
841
        { "AL-RET", N_("No Retouching")      }
842
    };
843

    
844
    //! XMP plus:ImageDuplicationConstraints
845
    extern const TagVocabulary plusImageDuplicationConstraints[] = {
846
        { "DP-LIC", N_("Duplication Only as Necessary Under License") },
847
        { "DP-NDC", N_("No Duplication Constraints")                  },
848
        { "DP-NOD", N_("No Duplication")                              }
849
    };
850

    
851
    //! XMP plus:ImageFileConstraints
852
    extern const TagVocabulary plusImageFileConstraints[] = {
853
        { "IF-MFN", N_("Maintain File Name")       },
854
        { "IF-MFT", N_("Maintain File Type")       },
855
        { "IF-MID", N_("Maintain ID in File Name") },
856
        { "IF-MMD", N_("Maintain Metadata")        }
857
    };
858

    
859
    //! XMP plus:ImageFileFormatAsDelivered
860
    extern const TagVocabulary plusImageFileFormatAsDelivered[] = {
861
        { "FF-BMP", N_("Windows Bitmap (BMP)")                      },
862
        { "FF-DNG", N_("Digital Negative (DNG)")                    },
863
        { "FF-EPS", N_("Encapsulated PostScript (EPS)")             },
864
        { "FF-GIF", N_("Graphics Interchange Format (GIF)")         },
865
        { "FF-JPG", N_("JPEG Interchange Formats (JPG, JIF, JFIF)") },
866
        { "FF-OTR", N_("Other")                                     },
867
        { "FF-PIC", N_("Macintosh Picture (PICT)")                  },
868
        { "FF-PNG", N_("Portable Network Graphics (PNG)")           },
869
        { "FF-PSD", N_("Photoshop Document (PSD)")                  },
870
        { "FF-RAW", N_("Proprietary RAW Image Format")              },
871
        { "FF-TIF", N_("Tagged Image File Format (TIFF)")           },
872
        { "FF-WMP", N_("Windows Media Photo (HD Photo)")            }
873
    };
874

    
875
    //! XMP plus:ImageFileSizeAsDelivered
876
    extern const TagVocabulary plusImageFileSizeAsDelivered[] = {
877
        { "SZ-G50", N_("Greater than 50 MB") },
878
        { "SZ-U01", N_("Up to 1 MB")         },
879
        { "SZ-U10", N_("Up to 10 MB")        },
880
        { "SZ-U30", N_("Up to 30 MB")        },
881
        { "SZ-U50", N_("Up to 50 MB")        }
882
    };
883

    
884
    //! XMP plus:ImageType
885
    extern const TagVocabulary plusImageType[] = {
886
        { "TY-ILL", N_("Illustrated Image")              },
887
        { "TY-MCI", N_("Multimedia or Composited Image") },
888
        { "TY-OTR", N_("Other")                          },
889
        { "TY-PHO", N_("Photographic Image")             },
890
        { "TY-VID", N_("Video")                          }
891
    };
892

    
893
    //! XMP plus:LicensorTelephoneType
894
    extern const TagVocabulary plusLicensorTelephoneType[] = {
895
        { "cell",  N_("Cell")  },
896
        { "fax",   N_("FAX")   },
897
        { "home",  N_("Home")  },
898
        { "pager", N_("Pager") },
899
        { "work",  N_("Work")  }
900
    };
901

    
902
    //! XMP plus:MinorModelAgeDisclosure
903
    extern const TagVocabulary plusMinorModelAgeDisclosure[] = {
904
        { "AG-UNK", N_("Age Unknown")     },
905
        { "AG-A25", N_("Age 25 or Over")  },
906
        { "AG-A24", N_("Age 24")          },
907
        { "AG-A23", N_("Age 23")          },
908
        { "AG-A22", N_("Age 22")          },
909
        { "AG-A21", N_("Age 21")          },
910
        { "AG-A20", N_("Age 20")          },
911
        { "AG-A19", N_("Age 19")          },
912
        { "AG-A18", N_("Age 18")          },
913
        { "AG-A17", N_("Age 17")          },
914
        { "AG-A16", N_("Age 16")          },
915
        { "AG-A15", N_("Age 15")          },
916
        { "AG-U14", N_("Age 14 or Under") }
917
    };
918

    
919
    //! XMP plus:ModelReleaseStatus
920
    extern const TagVocabulary plusModelReleaseStatus[] = {
921
        { "MR-NON", N_("None")                                 },
922
        { "MR-NAP", N_("Not Applicable")                       },
923
        { "MR-UMR", N_("Unlimited Model Releases")             },
924
        { "MR-LMR", N_("Limited or Incomplete Model Releases") }
925
    };
926

    
927
    //! XMP plus:PropertyReleaseStatus
928
    extern const TagVocabulary plusPropertyReleaseStatus[] = {
929
        { "PR-NON", N_("None")                                    },
930
        { "PR-NAP", N_("Not Applicable")                          },
931
        { "PR-UPR", N_("Unlimited Property Releases")             },
932
        { "PR-LPR", N_("Limited or Incomplete Property Releases") }
933
    };
934

    
935
    //! XMP plus:Reuse
936
    extern const TagVocabulary plusReuse[] = {
937
        { "RE-NAP", N_("Not Applicable") },
938
        { "RE-REU", N_("Repeat Use")     }
939
    };
940

    
941
    extern const XmpPropertyInfo xmpMediaProInfo[] = {
942
        { "Event",       N_("Event"),       "Text",     xmpText, xmpExternal, N_("Fixture Identification")                          },
943
        { "Status",      N_("Status"),      "Text",     xmpText, xmpExternal, N_("A notation making the image unique")              },
944
        { "People",      N_("People"),      "bag Text", xmpBag,  xmpExternal, N_("Contact")                                         },
945
        { "CatalogSets", N_("CatalogSets"), "bag Text", xmpBag,  xmpExternal, N_("Descriptive markers of catalog items by content") },
946
        // End of list marker
947
        { 0, 0, 0, invalidTypeId, xmpInternal, 0 }
948
    };
949

    
950
    extern const XmpPropertyInfo xmpExpressionMediaInfo[] = {
951
        { "Event",       N_("Event"),       "Text",     xmpText, xmpExternal, N_("Fixture Identification")                          },
952
        { "Status",      N_("Status"),      "Text",     xmpText, xmpExternal, N_("A notation making the image unique")              },
953
        { "People",      N_("People"),      "bag Text", xmpBag,  xmpExternal, N_("Contact")                                         },
954
        { "CatalogSets", N_("CatalogSets"), "bag Text", xmpBag,  xmpExternal, N_("Descriptive markers of catalog items by content") },
955
        // End of list marker
956
        { 0, 0, 0, invalidTypeId, xmpInternal, 0 }
957
    };
958

    
959
    extern const XmpPropertyInfo xmpMicrosoftPhotoInfo[] = {
960
        { "RegionInfo", N_("RegionInfo"), "RegionInfo", xmpText, xmpInternal, N_("Microsoft Photo people-tagging metadata root") },
961
        // End of list marker
962
        { 0, 0, 0, invalidTypeId, xmpInternal, 0 }
963
    };
964

    
965
    extern const XmpPropertyInfo xmpMicrosoftPhotoRegionInfoInfo[] = {
966
        { "DateRegionsValid", N_("DateRegionsValid"), "Date",       xmpText, xmpExternal, N_("Date the last region was created")  },
967
        { "Regions",          N_("Regions"),          "bag Region", xmpBag,  xmpExternal, N_("Contains Regions/person tags") },
968
        // End of list marker
969
        { 0, 0, 0, invalidTypeId, xmpInternal, 0 }
970
    };
971

    
972
    extern const XmpPropertyInfo xmpMicrosoftPhotoRegionInfo[] = {
973
        { "PersonDisplayName", N_("PersonDisplayName"), "Text", xmpText, xmpExternal, N_("Name of the person (in the given rectangle)")                               },
974
        { "Rectangle",         N_("Rectangle"),         "Text", xmpText, xmpExternal, N_("Rectangle that identifies the person within the photo")                     },
975
        { "PersonEmailDigest", N_("PersonEmailDigest"), "Text", xmpText, xmpExternal, N_("SHA-1 encrypted message hash of the person's Windows Live e-mail address"), },
976
        { "PersonLiveCID",     N_("PersonLiveCID"),     "Text", xmpText, xmpExternal, N_("Signed decimal representation of the person's Windows Live CID")            },
977
        // End of list marker
978
        { 0, 0, 0, invalidTypeId, xmpInternal, 0 }
979
    };
980

    
981
    extern const XmpPropertyInfo xmpMWGRegionsInfo[] = {
982
        { "Regions",             N_("Regions"),             "RegionInfo",       xmpText, xmpInternal,        N_("Main structure containing region based information")   },
983
        { "AppliedToDimensions", N_("AppliedToDimensions"), "Dimensions",       xmpText, xmpExternal,        N_("Width and height of image when storing region data")   },
984
        { "RegionList",          N_("RegionList"),          "bag RegionStruct", xmpBag,  xmpExternal,        N_("List of Region structures")                            },
985
        { "Area",                N_("Area"),                "Area",             xmpText, xmpExternal,        N_("Descriptive markers of catalog items by content")      },
986
        { "Type",                N_("Type"),                "closed Choice of Text", xmpText, xmpExternal,   N_("Type purpose of region (Face|Pet|Focus|BarCode)")      },
987
        { "Name",                N_("Name"),                "Text",             xmpText, xmpExternal,        N_("Name/ short description of content in image region")   },
988
        { "Description",         N_("Description"),         "Text",             xmpText, xmpExternal,        N_("Usage scenario for a given focus area (EvaluatedUsed|EvaluatedNotUsed|NotEvaluatedNotUsed)") },
989
        { "FocusUsage",          N_("FocusUsage"),          "closed Choice of Text", xmpText, xmpExternal,   N_("Descriptive markers of catalog items by content")      },
990
        { "BarCodeValue",        N_("BarCodeValue"),        "Text",             xmpText, xmpExternal,        N_("Decoded BarCode value string")                         },
991
        { "Extensions",          N_("Extensions"),          "Text",             xmpText, xmpInternal, N_("Any top level XMP property to describe the region content") },
992
        // End of list marker
993
        { 0, 0, 0, invalidTypeId, xmpInternal, 0 }
994
    };
995

    
996
    extern const XmpPropertyInfo xmpVideoInfo[] = {
997
        { "Album",                  N_("Album"),                            "Text",                     xmpText, xmpExternal, N_("The name of the album.")   },
998
        { "ArchivalLocation",       N_("Archival Location"),                "Text",                     xmpText, xmpExternal, N_("Information about the Archival Location.")   },
999
        { "Arranger",               N_("Arranger"),                         "Text",                     xmpText, xmpExternal, N_("Information about the Arranger.")   },
1000
        { "ArrangerKeywords",       N_("Arranger Keywords"),                "Text",                     xmpText, xmpExternal, N_("Information about the Arranger Keywords.")   },
1001
        { "Artist",                 N_("Artist"),                           "Text",                     xmpText, xmpExternal, N_("The name of the artist or artists.")   },
1002
        { "AspectRatio",            N_("Video Aspect Ratio"),               "Ratio",                    xmpText, xmpExternal, N_("Ratio of Width:Height, helps to determine how a video would be displayed on a screen")   },
1003
        { "AspectRatioType",        N_("Video Aspect Ratio Type"),          "Text",                     xmpText, xmpExternal, N_("Aspect Ratio Type. Eg - Free-Resizing or Fixed")   },
1004
        { "AttachFileData",         N_("Attached File Data"),               "Text",                     xmpText, xmpExternal, N_("Attached File Data")   },
1005
        { "AttachFileDesc",         N_("Attached File Description"),        "Text",                     xmpText, xmpExternal, N_("Attached File Description")   },
1006
        { "AttachFileMIME",         N_("Attached File MIME Type"),          "Text",                     xmpText, xmpExternal, N_("Attached File MIME Type")   },
1007
        { "AttachFileName",         N_("Attached File Name"),               "Text",                     xmpText, xmpExternal, N_("Attached File Name")   },
1008
        { "AttachFileUID",          N_("Attached File UID"),                "Integer",                  xmpText, xmpExternal, N_("Attached File Universal ID")   },
1009
        { "BaseURL",                N_("Base URL"),                         "Text",                     xmpText, xmpExternal, N_("A C string that specifies a Base URL.")   },
1010
        { "BitDepth",               N_("Bit Depth"),                        "Integer",                  xmpText, xmpExternal, N_("A 16-bit integer that indicates the pixel depth of the compressed image. Values of 1, 2, 4, 8 , 16, 24, and 32 indicate the depth of color images")   },
1011
        { "Brightness",             N_("Brightness"),                       "Integer",                  xmpText, xmpExternal, N_("Brightness setting.") },
1012
        { "CameraByteOrder",        N_("Camera Byte Order"),                "Text",                     xmpText, xmpExternal, N_("Byte Order used by the Video Capturing device.")   },
1013
        { "Cinematographer",        N_("Video Cinematographer"),            "Text",                     xmpText, xmpExternal, N_("The video Cinematographer information.")   },
1014
        { "CleanApertureWidth",     N_("Clean Aperture Width"),             "Integer",                  xmpText, xmpExternal, N_("Clean aperture width in pixels")   },
1015
        { "CleanApertureHeight",    N_("Clean Aperture Height"),            "Integer",                  xmpText, xmpExternal, N_("Clean aperture height in pixels")   },
1016
        { "Codec",                  N_("Video Codec"),                      "Text",                     xmpText, xmpExternal, N_("The video codec information. Informs about the encoding algorithm of video. Codec Info is required for video playback.")   },
1017
        { "CodecDecodeAll",         N_("Video Codec Decode Info"),          "Text",                     xmpText, xmpExternal, N_("Contains information the video Codec Decode All, i.e. Enabled/Disabled")   },
1018
        { "CodecDescription",       N_("Video Codec Description"),          "Text",                     xmpText, xmpExternal, N_("Contains description the codec.")   },
1019
        { "CodecInfo",              N_("Video Codec Information"),          "Text",                     xmpText, xmpExternal, N_("Contains information the codec needs before decoding can be started.")   },
1020
        { "CodecDownloadUrl",       N_("Video Codec Download URL"),         "Text",                     xmpText, xmpExternal, N_("Video Codec Download URL.")   },
1021
        { "CodecSettings",          N_("Video Codec Settings"),             "Text",                     xmpText, xmpExternal, N_("Contains settings the codec needs before decoding can be started.")   },
1022
        { "ColorMode",              N_("Color Mode"),                       "Text",                     xmpText, xmpExternal, N_("Color Mode")   },
1023
        { "ColorNoiseReduction",    N_("Color Noise Reduction"),            "Integer",                  xmpText, xmpExternal, N_("\"Color Noise Reducton\" setting. Range 0 to +100.") },
1024
        { "ColorSpace",             N_("Video Color Space"),                "closed Choice of Text",    xmpText, xmpInternal, N_("The color space. One of: sRGB (used by Photoshop), CCIR-601 (used for NTSC), "
1025
                                                                                                                                 "CCIR-709 (used for HD).") },
1026
        { "Comment",                N_("Comment"),                          "Text",                     xmpText, xmpExternal, N_("Information about the Comment.")   },
1027
        { "Commissioned",           N_("Commissioned"),                     "Text",                     xmpText, xmpExternal, N_("Commissioned.")   },
1028
        { "CompatibleBrands",       N_("QTime Compatible FileType Brand"),  "Text",                     xmpText, xmpExternal, N_("Other QuickTime Compatible FileType Brand")   },
1029
        { "Composer",               N_("Composer"),                         "Text",                     xmpText, xmpExternal, N_("Information about the Composer.")   },
1030
        { "ComposerKeywords",       N_("Composer Keywords"),                "Text",                     xmpText, xmpExternal, N_("Information about the Composer Keywords.")   },
1031
        { "Compressor",             N_("Compressor"),                       "Text",                     xmpText, xmpExternal, N_("Video Compression Library Used")   },
1032
        { "CompressorID",           N_("Video Compressor ID"),              "Text",                     xmpText, xmpExternal, N_("Video Compression ID of Technology/Codec Used")   },
1033
        { "CompressorVersion",      N_("Compressor Version"),               "Text",                     xmpText, xmpExternal, N_("Information about the Compressor Version.")   },
1034
        { "Container",              N_("Container Type"),                   "Text",                     xmpText, xmpExternal, N_("Primary Metadata Container")   },
1035
        { "ContentCompressAlgo",    N_("Content Compression Algorithm"),    "Text",                     xmpText, xmpExternal, N_("Content Compression Algorithm. Eg: zlib")   },
1036
        { "ContentEncodingType",    N_("Content Encoding Type"),            "Text",                     xmpText, xmpExternal, N_("Content Encoding Type. Eg: Encryption or Compression")   },
1037
        { "ContentEncryptAlgo",     N_("Content Encryption Algorithm"),     "Text",                     xmpText, xmpExternal, N_("Content Encryption Algorithm. Eg: Blowfish")   },
1038
        { "ContentSignAlgo",        N_("Content Signature Algorithm"),      "Text",                     xmpText, xmpExternal, N_("Content Signature Algorithm. Eg: RSA")   },
1039
        { "ContentSignHashAlgo",    N_("Content Sign Hash Algorithm"),      "Text",                     xmpText, xmpExternal, N_("Content Signature Hash Algorithm. Eg: SHA1-160 or MD5")   },
1040
        { "Contrast",               N_("Contrast"),                         "Closed Choice of Integer", xmpText, xmpInternal, N_("Indicates the direction of contrast processing applied by the camera.") },
1041
        { "Copyright",              N_("Copyright"),                        "Text",                     xmpText, xmpExternal, N_("Copyright, can be name of an organization or an individual.")   },
1042
        { "CostumeDesigner",        N_("Costume Designer"),                 "Text",                     xmpText, xmpExternal, N_("Costume Designer associated with the video.")   },
1043
        { "Country",                N_("Country"),                          "Text",                     xmpText, xmpExternal, N_("Name of the country where the video was created.")   },
1044
        { "CreationDate",           N_("Creation Date"),                    "Integer",                  xmpText, xmpExternal, N_("Specifies the date and time of the initial creation of the file. The value is given as the "
1045
                                                                                                                                 "number of 100-nanosecond intervals since January 1, 1601, according to Coordinated Universal Time (Greenwich Mean Time).")   },
1046
        { "CropBottom",             N_("Pixel Crop Bottom"),                "Integer",                  xmpText, xmpExternal, N_("Number of Pixels to be cropped from the bottom.")   },
1047
        { "CropLeft",               N_("Pixel Crop Left"),                  "Integer",                  xmpText, xmpExternal, N_("Number of Pixels to be cropped from the left.")   },
1048
        { "CropRight",              N_("Pixel Crop Right"),                 "Integer",                  xmpText, xmpExternal, N_("Number of Pixels to be cropped from the right.")   },
1049
        { "Cropped",                N_("Cropped"),                          "Integer",                  xmpText, xmpExternal, N_("Field that indicates if a video is cropped.")   },
1050
        { "CropTop",                N_("Pixel Crop Top"),                   "Integer",                  xmpText, xmpExternal, N_("Number of Pixels to be cropped from the top.")   },
1051
        { "CurrentTime",            N_("Current Time"),                     "Integer",                  xmpText, xmpExternal, N_("The time value for current time position within the movie.") },
1052
        { "DataPackets",            N_("Data Packets"),                     "Integer",                  xmpText, xmpExternal, N_("Specifies the number of Data Packet entries that exist within the Data Object.")   },
1053
        { "DateTimeOriginal",       N_("Date and Time Original"),           "Date",                     xmpText, xmpInternal, N_("Date and time when original video was generated, in ISO 8601 format. ") },
1054
        { "DateTimeDigitized",      N_("Date and Time Digitized"),          "Date",                     xmpText, xmpInternal, N_("Date and time when video was stored as digital data, can be the same "
1055
                                                                                                                                 "as DateTimeOriginal if originally stored in digital form. Stored in ISO 8601 format.") },
1056
        { "DateUTC",                N_("Date-Time Original"),               "Text",                     xmpText, xmpExternal, N_("Contains the production date")   },
1057
        { "DefaultOn",              N_("Video Track Default On"),           "Text",                     xmpText, xmpExternal, N_("Video Track Default On , i.e. Enabled/Disabled")   },
1058
        { "DigitalZoomRatio",       N_("Digital Zoom Ratio"),               "Rational",                 xmpText, xmpInternal, N_("Indicates the digital zoom ratio when the video was shot.") },
1059
        { "Dimensions",             N_("Dimensions"),                       "Text",                     xmpText, xmpExternal, N_("Information about the Dimensions of the video frame.")   },
1060
        { "Director",               N_("Director"),                         "Text",                     xmpText, xmpExternal, N_("Information about the Director.")   },
1061
        { "DisplayUnit",            N_("Video Display Unit"),               "Text",                     xmpText, xmpExternal, N_("Video display unit. Eg - cm, pixels, inch")   },
1062
        { "DistributedBy",          N_("Distributed By"),                   "Text",                     xmpText, xmpExternal, N_("Distributed By, i.e. name of person or organization.")   },
1063
        { "DocType",                N_("Doc Type"),                         "Text",                     xmpText, xmpExternal, N_("Describes the contents of the file. In the case of a MATROSKA file, its value is 'matroska'")   },
1064
        { "DocTypeReadVersion",     N_("Doc Type Read Version"),            "Integer",                  xmpText, xmpExternal, N_("A Matroska video specific property, helps in determining the compatibility of file with a particular version of a video player")   },
1065
        { "DocTypeVersion",         N_("Doc Type Version"),                 "Integer",                  xmpText, xmpExternal, N_("A Matroska video specific property, indicated the version of filetype, helps in determining the compatibility")   },
1066
        { "DotsPerInch",            N_("Dots Per Inch"),                    "Integer",                  xmpText, xmpExternal, N_("Dots Per Inch")   },
1067
        { "duration",               N_("Duration"),                         "Integer",                  xmpText, xmpExternal, N_("The duration of the media file. Measured in milli-seconds.")   },
1068
        { "EBMLReadVersion",        N_("EBML Read Version"),                "Integer",                  xmpText, xmpExternal, N_("Extensible Binary Meta Language Read Version")   },
1069
        { "EBMLVersion",            N_("EBML Version"),                     "Integer",                  xmpText, xmpExternal, N_("Extensible Binary Meta Language Version")   },
1070
        { "Edit1",                  N_("Edit Block 1 / Language"),          "Text",                     xmpText, xmpExternal, N_("Information about the Edit / Language.")   },
1071
        { "Edit2",                  N_("Edit Block 2 / Language"),          "Text",                     xmpText, xmpExternal, N_("Information about the Edit / Language.")   },
1072
        { "Edit3",                  N_("Edit Block 3 / Language"),          "Text",                     xmpText, xmpExternal, N_("Information about the Edit / Language.")   },
1073
        { "Edit4",                  N_("Edit Block 4 / Language"),          "Text",                     xmpText, xmpExternal, N_("Information about the Edit / Language.")   },
1074
        { "Edit5",                  N_("Edit Block 5 / Language"),          "Text",                     xmpText, xmpExternal, N_("Information about the Edit / Language.")   },
1075
        { "Edit6",                  N_("Edit Block 6 / Language"),          "Text",                     xmpText, xmpExternal, N_("Information about the Edit / Language.")   },
1076
        { "Edit7",                  N_("Edit Block 7 / Language"),          "Text",                     xmpText, xmpExternal, N_("Information about the Edit / Language.")   },
1077
        { "Edit8",                  N_("Edit Block 8 / Language"),          "Text",                     xmpText, xmpExternal, N_("Information about the Edit / Language.")   },
1078
        { "Edit9",                  N_("Edit Block 9 / Language"),          "Text",                     xmpText, xmpExternal, N_("Information about the Edit / Language.")   },
1079
        { "EditedBy",               N_("Edited By"),                        "Text",                     xmpText, xmpExternal, N_("Edited By, i.e. name of person or organization.")   },
1080
        { "Enabled",                N_("Video Track Enabled"),              "Text",                     xmpText, xmpExternal, N_("Status of Video Track, i.e. Enabled/Disabled")   },
1081
        { "EncodedBy",              N_("Encoded By"),                       "Text",                     xmpText, xmpExternal, N_("Encoded By, i.e. name of person or organization.")   },
1082
        { "EncodedPixelsWidth",     N_("Encoded Pixels Width"),             "Integer",                  xmpText, xmpExternal, N_("Encoded Pixels width in pixels")   },
1083
        { "EncodedPixelsHeight",    N_("Encoded Pixels Height"),            "Integer",                  xmpText, xmpExternal, N_("Encoded Pixels height in pixels")   },
1084
        { "Encoder",                N_("Encoder"),                          "Text",                     xmpText, xmpExternal, N_("Information about the Encoder.")   },
1085
        { "EndTimecode",            N_("End Timecode"),                     "Integer",                  xmpText, xmpExternal, N_("End Timecode")   },
1086
        { "Engineer",               N_("Engineer"),                         "Text",                     xmpText, xmpExternal, N_("Engineer, in most cases name of person.")   },
1087
        { "Equipment",              N_("Equipment"),                        "Text",                     xmpText, xmpExternal, N_("Information about the Equipment used for recording Video.")   },
1088
        { "ExposureCompensation",   N_("Exposure Compensation"),            "Text",                     xmpText, xmpExternal, N_("Exposure Compensation Information.")   },
1089
        { "ExposureProgram",        N_("Exposure Program"),                 "Text",                     xmpText, xmpExternal, N_("Exposure Program Information.")   },
1090
        { "ExposureTime",           N_("Exposure Time"),                    "Rational",                 xmpText, xmpInternal, N_("Exposure time in seconds.") },
1091
        { "ExtendedContentDescription",N_("Extended Content Description"),  "Text",                     xmpSeq,  xmpExternal, N_("Extended Content Description,ususally found in ASF type files.")   },
1092
        { "FileDataRate",           N_("File Data Rate"),                   "Rational",                 xmpText, xmpExternal, N_("The file data rate in megabytes per second. For example: \"36/10\" = 3.6 MB/sec") },
1093
        { "FileID",                 N_("File ID"),                          "Text",                     xmpText, xmpExternal, N_("File ID.")   },
1094
        { "FileLength",             N_("File Length"),                      "Integer",                  xmpText, xmpInternal, N_("File length.") },
1095
        { "FileName",               N_("File Name"),                        "Text",                     xmpText, xmpExternal, N_("File Name or Absolute File Path")   },
1096
        { "FileSize",               N_("File Size"),                        "Integer",                  xmpText, xmpExternal, N_("File Size, in MB")   },
1097
        { "FileType",               N_("File Type"),                        "Text",                     xmpText, xmpExternal, N_("Extension of File or Type of File")   },
1098
        { "FilterEffect",           N_("Filter Effect"),                    "Text",                     xmpText, xmpExternal, N_("Filter Effect Settings Applied.")   },
1099
        { "FirmwareVersion",        N_("Firmware Version"),                 "Text",                     xmpText, xmpExternal, N_("Firmware Version of the Camera/Video device.")   },
1100
        { "FNumber",                N_("F Number"),                         "Rational",                 xmpText, xmpInternal, N_("F number. Camera Lens specific data.") },
1101
        { "FocalLength",            N_("Focal Length"),                     "Rational",                 xmpText, xmpInternal, N_("Focal length of the lens, in millimeters.") },
1102
        { "FocusMode",              N_("Focus Mode"),                       "Text",                     xmpText, xmpExternal, N_("Focus Mode of the Lens. Eg - AF for Auto Focus")   },
1103
        { "Format",                 N_("Format"),                           "Text",                     xmpText, xmpExternal, N_("Indication of movie format (computer-generated, digitized, and so on).")   },
1104
        { "FrameCount",             N_("Frame Count"),                      "Integer",                  xmpText, xmpExternal, N_("Total number of frames in a video")   },
1105
        { "FrameHeight",            N_("Frame Height"),                     "Integer",                  xmpText, xmpExternal, N_("Height of frames in a video")   },
1106
        { "FrameRate",              N_("Video Frame Rate"),                 "Frames per Second",        xmpText, xmpExternal, N_("Rate at which frames are presented in a video (Expressed in fps(Frames per Second))")   },
1107
        { "FrameSize",              N_("Video Frame Size"),                 "Dimensions",               xmpText, xmpExternal, N_("The frame size. For example: w:720, h: 480, unit:pixels") },
1108
        { "FrameWidth",             N_("Frame Width"),                      "Integer",                  xmpText, xmpExternal, N_("Width of frames in a video")   },
1109
        { "Genre",                  N_("Genre"),                            "Text",                     xmpText, xmpExternal, N_("The name of the genre.")   },
1110
        { "GPSAltitude",            N_("GPS Altitude"),                     "Rational",                 xmpText, xmpInternal, N_("GPS tag 6, 0x06. Indicates altitude in meters.") },
1111
        { "GPSAltitudeRef",         N_("GPS Altitude Reference"),           "Closed Choice of Integer", xmpText, xmpInternal, N_("GPS tag 5, 0x05. Indicates whether the altitude is above or below sea level.") },
1112
        { "GPSCoordinates",         N_("GPS Coordinates"),                  "Text",                     xmpText, xmpExternal, N_("Information about the GPS Coordinates.")   },
1113
        { "GPSDateStamp",           N_("GPS Time Stamp"),                   "Date",                     xmpText, xmpInternal, N_("Date stamp of GPS data, ") },
1114
        { "GPSImgDirection",        N_("GPS Image Direction"),              "Rational",                 xmpText, xmpInternal, N_("Direction of image when captured, values range from 0 to 359.99.") },
1115
        { "GPSImgDirectionRef",     N_("GPS Image Direction Reference"),    "Closed Choice of Text",    xmpText, xmpInternal, N_("Reference for image direction.") },
1116
        { "GPSLatitude",            N_("GPS Latitude"),                     "GPSCoordinate",            xmpText, xmpInternal, N_("(North/South). Indicates latitude.") },
1117
        { "GPSLongitude",           N_("GPS Longitude"),                    "GPSCoordinate",            xmpText, xmpInternal, N_("(East/West). Indicates longitude.") },
1118
        { "GPSMapDatum",            N_("GPS Map Datum"),                    "Text",                     xmpText, xmpInternal, N_("Geodetic survey data.") },
1119
        { "GPSSatellites",          N_("GPS Satellites"),                   "Text",                     xmpText, xmpInternal, N_("Satellite information, format is unspecified.") },
1120
        { "GPSTimeStamp",           N_("GPS Time Stamp"),                   "Date",                     xmpText, xmpInternal, N_("Time stamp of GPS data, ") },
1121
        { "GPSVersionID",           N_("GPS Version ID"),                   "Text",                     xmpText, xmpInternal, N_("A decimal encoding with period separators. ") },
1122
        { "GraphicsMode",           N_("Graphcs Mode"),                     "Text",                     xmpText, xmpExternal, N_("A 16-bit integer that specifies the transfer mode. The transfer mode specifies which Boolean"
1123
                                                                                                                                 "operation QuickDraw should performwhen drawing ortransferring an image fromone location to another.")   },
1124
        { "Grouping",               N_("Grouping"),                         "Text",                     xmpText, xmpExternal, N_("Information about the Grouping.")   },
1125
        { "HandlerClass",           N_("Handler Class"),                    "Text",                     xmpText, xmpExternal, N_("A four-character code that identifies the type of the handler. Only two values are valid for this field: 'mhlr' for media handlers and 'dhlr' for data handlers.")   },
1126
        { "HandlerDescription",     N_("Handler Description"),              "Text",                     xmpText, xmpExternal, N_("A (counted) string that specifies the name of the component-that is, the media handler used when this media was created..")   },
1127
        { "HandlerType",            N_("Handler Type"),                     "Text",                     xmpText, xmpExternal, N_("A four-character code that identifies the type of the media handler or data handler.")   },
1128
        { "HandlerVendorID",        N_("Handler Vendor ID"),                "Text",                     xmpText, xmpExternal, N_("Component manufacturer.")   },
1129
        { "Height",                 N_("Video Height"),                     "Integer",                  xmpText, xmpExternal, N_("Video height in pixels")   },
1130
        { "HueAdjustment",          N_("Hue Adjustment"),                   "Integer",                  xmpText, xmpExternal, N_("Hue Adjustment Settings Information.")   },
1131
        { "ImageLength",            N_("Image Length"),                     "Integer",                  xmpText, xmpExternal, N_("Image Length, a property inherited from BitMap format") },
1132
        { "InfoBannerImage",        N_("Info Banner Image"),                "Text",                     xmpText, xmpExternal, N_("Information Banner Image.")   },
1133
        { "InfoBannerURL",          N_("Info Banner URL"),                  "Text",                     xmpText, xmpExternal, N_("Information Banner URL.")   },
1134
        { "Information",            N_("Information"),                      "Text",                     xmpText, xmpExternal, N_("Additional Movie Information.")   },
1135
        { "InfoText",               N_("Info Text"),                        "Text",                     xmpText, xmpExternal, N_("Information Text.")   },
1136
        { "InfoURL",                N_("Info URL"),                         "Text",                     xmpText, xmpExternal, N_("Information URL.")   },
1137
        { "ISO",                    N_("ISO Setting"),                      "Integer",                  xmpText, xmpExternal, N_("Information about the ISO Setting.")   },
1138
        { "ISRCCode",               N_("ISRC Code"),                        "Text",                     xmpText, xmpExternal, N_("Information about the ISRC Code.")   },
1139
        { "Junk",                   N_("Junk Data"),                        "Text",                     xmpText, xmpExternal, N_("Video Junk data")   },
1140
        { "Language",               N_("Language"),                         "Text",                     xmpText, xmpExternal, N_("Language.")  },
1141
        { "Length",                 N_("Length"),                           "Integer",                  xmpText, xmpExternal, N_("The length of the media file.")   },
1142
        { "LensModel",              N_("Lens Model"),                       "Text",                     xmpText, xmpExternal, N_("Lens Model.")  },
1143
        { "LensType",               N_("Lens Type"),                        "Text",                     xmpText, xmpExternal, N_("Lens Type.")  },
1144
        { "Lightness",              N_("Lightness"),                        "Text",                     xmpText, xmpExternal, N_("Lightness.")  },
1145
        { "LocationInfo",           N_("Location Information"),             "Text",                     xmpText, xmpExternal, N_("Location Information.")  },
1146
        { "LogoIconURL",            N_("Logo Icon URL"),                    "Text",                     xmpText, xmpExternal, N_("A C string that specifies Logo Icon URL.")   },
1147
        { "LogoURL",                N_("Logo URL"),                         "Text",                     xmpText, xmpExternal, N_("A C string that specifies a Logo URL.")   },
1148
        { "Lyrics",                 N_("Lyrics"),                           "Text",                     xmpText, xmpExternal, N_("Lyrics of a Song/Video.")   },
1149
        { "MajorBrand",             N_("QTime Major FileType Brand"),       "Text",                     xmpText, xmpExternal, N_("QuickTime Major File Type Brand")   },
1150
        { "Make",                   N_("Equipment Make"),                   "Text",                     xmpText, xmpExternal, N_("Manufacturer of recording equipment")   },
1151
        { "MakerNoteType",          N_("Camera Maker Note Type"),           "Text",                     xmpText, xmpExternal, N_("Maker Note Type of the camera.")   },
1152
        { "MakerNoteVersion",       N_("Camera Maker Note Version"),        "Text",                     xmpText, xmpExternal, N_("Maker Note Version of the camera.")   },
1153
        { "MakerURL",               N_("Maker URL"),                        "Text",                     xmpText, xmpExternal, N_("Camera Manufacturer's URL.")   },
1154
        { "MaxApertureValue",       N_("Maximum Aperture Value"),           "Rational",                 xmpText, xmpInternal, N_("Smallest F number of lens, in APEX.") },
1155
        { "MaxBitRate",             N_("Maximum Bit Rate"),                 "Integer",                  xmpText, xmpExternal, N_("Specifies the maximum instantaneous bit rate in bits per second for the entire file. This shall equal the sum of the bit rates of the individual digital media streams.")   },
1156
        { "MaxDataRate",            N_("Maximum Data Rate"),                "kiloBytes per Second",     xmpText, xmpExternal, N_("Peak rate at which data is presented in a video (Expressed in kB/s(kiloBytes per Second))")   },
1157
        { "MediaCreateDate",        N_("Media Track Create Date"),          "Integer",                  xmpText, xmpExternal, N_("A 32-bit integer that indicates (in seconds since midnight, January 1, 1904) when the media header was created.")   },
1158
        { "MediaDuration",          N_("Media Track Duration"),             "Integer",                  xmpText, xmpExternal, N_("A time value that indicates the duration of this media (in the movie's time coordinate system).")   },
1159
        { "MediaHeaderVersion",     N_("Media Header Version"),             "Text",                     xmpText, xmpExternal, N_("A 1-byte specification of the version of this media header")   },
1160
        { "MediaLangCode",          N_("Media Language Code"),              "Integer",                  xmpText, xmpExternal, N_("A 16-bit integer that specifies the language code for this media.")   },
1161
        { "MediaModifyDate",        N_("Media Track Modify Date"),          "Integer",                  xmpText, xmpExternal, N_("A 32-bit integer that indicates (in seconds since midnight, January 1, 1904) when the media header was last modified.")   },
1162
        { "MediaTimeScale",         N_("Media Time Scale"),                 "Integer",                  xmpText, xmpExternal, N_("A time value that indicates the time scale for this media-that is, the number of time units that pass per second in its time coordinate system." )   },
1163
        { "Medium",                 N_("Medium"),                           "Text",                     xmpSeq,  xmpExternal, N_("Medium.")   },
1164
        { "Metadata",               N_("Metadata"),                         "Text",                     xmpSeq,  xmpExternal, N_("An array of Unknown / Unregistered Metadata Tags and their values.")   },
1165
        { "MetadataLibrary",        N_("Metadata Library"),                 "Text",                     xmpSeq,  xmpExternal, N_("An array of Unregistered Metadata Library Tags and their values.")   },
1166
        { "MeteringMode",           N_("Metering Mode"),                    "Closed Choice of Integer", xmpText, xmpInternal, N_("Metering mode.") },
1167
        { "MicroSecPerFrame",       N_("Micro Seconds Per Frame"),          "Integer",                  xmpText, xmpExternal, N_("Number of micro seconds per frame, or frame rate")   },
1168
        { "MimeType",               N_("Mime Type"),                        "Text",                     xmpText, xmpExternal, N_("Tells about the video format")   },
1169
        { "MinorVersion",           N_("QTime Minor FileType Version"),     "Text",                     xmpText, xmpExternal, N_("QuickTime Minor File Type Version")   },
1170
        { "Model",                  N_("Equipment Model"),                  "Text",                     xmpText, xmpExternal, N_("Model name or number of equipment.")   },
1171
        { "ModificationDate",       N_("Modification Date-Time"),           "Text",                     xmpText, xmpExternal, N_("Contains the modification date of the video")   },
1172
        { "MovieHeaderVersion",     N_("Movie Header Version"),             "Integer",                  xmpText, xmpExternal, N_("Movie Header Version")   },
1173
        { "MusicBy",                N_("Music By"),                         "Text",                     xmpText, xmpExternal, N_("Music By, i.e. name of person or organization.")   },
1174
        { "MuxingApp",              N_("Muxing App"),                       "Text",                     xmpText, xmpExternal, N_("Contains the name of the library that has been used to create the file (like \"libmatroska 0.7.0\")")   },
1175
        { "Name",                   N_("Name"),                             "Text",                     xmpText, xmpExternal, N_("Name of song or the event.")   },
1176
        { "NextTrackID",            N_("Next Track ID"),                    "Integer",                  xmpText, xmpExternal, N_("A 32-bit integer that indicates a value to use for the track ID number of the next track added to this movie. Note that 0 is not a valid track ID value.")   },
1177
        { "NumOfColours",           N_("Number Of Colours"),                "Integer/Text",             xmpText, xmpExternal, N_("Total number of colours used") },
1178
        { "NumOfImpColours",        N_("Number Of Important Colours"),      "Integer/Text",             xmpText, xmpExternal, N_("Number Of Important Colours, a property inherited from BitMap format")   },
1179
        { "NumOfParts",             N_("Number Of Parts"),                  "Integer",                  xmpText, xmpExternal, N_("Total number of parts in the video.") },
1180
        { "OpColor",                N_("Operation Colours"),                "Integer/Text",             xmpText, xmpExternal, N_("Three 16-bit values that specify the red, green, and blue colors for the transfer mode operation indicated in the graphics mode field.")   },
1181
        { "Organization",           N_("Organization"),                     "Text",                     xmpText, xmpExternal, N_("Name of organization associated with the video.")   },
1182
        { "Orientation",            N_("Orientation"),                      "Closed Choice of Integer", xmpText, xmpInternal, N_("Video Orientation:"
1183
                                                                                                                                  "1 = Horizontal (normal) "
1184
                                                                                                                                  "2 = Mirror horizontal "
1185
                                                                                                                                  "3 = Rotate 180 "
1186
                                                                                                                                  "4 = Mirror vertical "
1187
                                                                                                                                  "5 = Mirror horizontal and rotate 270 CW "
1188
                                                                                                                                  "6 = Rotate 90 CW "
1189
                                                                                                                                  "7 = Mirror horizontal and rotate 90 CW "
1190
                                                                                                                                  "8 = Rotate 270 CW") },
1191
        { "Part",                   N_("Part"),                             "Text",                     xmpText, xmpExternal, N_("Part.")   },
1192
        { "Performers",             N_("Performers"),                       "Text",                     xmpText, xmpExternal, N_("Performers involved in the video.")   },
1193
        { "PerformerKeywords",      N_("Performer Keywords"),               "Text",                     xmpText, xmpExternal, N_("Performer Keywords.")   },
1194
        { "PerformerURL",           N_("Performer URL"),                    "Text",                     xmpText, xmpExternal, N_("Performer's dedicated URL.")   },
1195
        { "PictureControlData",     N_("Picture Control Data"),             "Text",                     xmpText, xmpExternal, N_("Picture Control Data.")   },
1196
        { "PictureControlVersion",  N_("Picture Control Version"),          "Text",                     xmpText, xmpExternal, N_("Picture Control Data Version.")   },
1197
        { "PictureControlName",     N_("Picture Control Name"),             "Text",                     xmpText, xmpExternal, N_("Picture Control Name.")   },
1198
        { "PictureControlBase",     N_("Picture Control Base"),             "Text",                     xmpText, xmpExternal, N_("Picture Control Data Base.")   },
1199
        { "PictureControlAdjust",   N_("Picture Control Adjust"),           "Text",                     xmpText, xmpExternal, N_("Picture Control Adjust Information.")   },
1200
        { "PictureControlQuickAdjust",N_("Picture Control Quick Adjust"),   "Text",                     xmpText, xmpExternal, N_("Picture Control Quick Adjustment Settings.")   },
1201
        { "PlaySelection",          N_("Play Selection"),                   "Text",                     xmpText, xmpExternal, N_("Play Selection.")   },
1202
        { "PlayMode",               N_("PlayMode"),                         "Text",                     xmpText, xmpExternal, N_("Information about the Play Mode.")   },
1203
        { "PhysicalEquivalent",     N_("Chapter Physical Equivalent"),      "Text",                     xmpText, xmpExternal, N_("Contains the information of External media.")   },
1204
        { "PixelDepth",             N_("Video Pixel Depth"),                "closed Choice of Text",    xmpText, xmpExternal, N_("The size in bits of each color component of a pixel. Standard Windows 32-bit "
1205
                                                                                                                                 "pixels have 8 bits per component. One of: 8Int, 16Int, 32Int, 32Float.") },
1206
        { "PixelPerMeterX",         N_("Pixels Per Meter X"),               "Integer",                  xmpText, xmpExternal, N_("Pixels Per Meter X, a property inherited from BitMap format")   },
1207
        { "PixelPerMeterY",         N_("Pixels Per Meter Y"),               "Integer",                  xmpText, xmpExternal, N_("Pixels Per Meter Y, a property inherited from BitMap format")   },
1208
        { "Planes",                 N_("Planes"),                           "Integer",                  xmpText, xmpExternal, N_("The number of Image Planes in the video") },
1209
        { "PosterTime",             N_("Poster Time"),                      "Integer",                  xmpText, xmpExternal, N_("The time value of the time of the movie poster.") },
1210
        { "PreferredRate",          N_("Preferred Rate"),                   "Rational",                 xmpText, xmpExternal, N_("A 32-bit fixed-point number that specifies the rate at which to play this movie. A value of 1.0 indicates normal rate.") },
1211
        { "PreferredVolume",        N_("Preferred Volume"),                 "Rational",                 xmpText, xmpExternal, N_("A 16-bit fixed-point number that specifies how loud to play this movie's sound. A value of 1.0 indicates full volume.") },
1212
        { "Preroll",                N_("Preroll"),                          "Integer",                  xmpText, xmpExternal, N_("Specifies the amount of time to buffer data before starting to play the file, in millisecond units. If this value is nonzero,"
1213
                                                                                                                                 "the Play Duration field and all of the payload Presentation Time fields have been offset by this amount. Therefore, player software "
1214
                                                                                                                                 "must subtract the value in the preroll field from the play duration and presentation times to calculate their actual values.") },
1215
        { "PreviewAtomType",        N_("Preview Atom Type"),                "Text",                     xmpText, xmpExternal, N_("Indicates the type of atom that contains the preview data") },
1216
        { "PreviewDate",            N_("Preview Date"),                     "Integer",                  xmpText, xmpExternal, N_("The date of the movie preview in local time converted from UTC") },
1217
        { "PreviewDuration",        N_("Preview Duration"),                 "Integer",                  xmpText, xmpExternal, N_("The duration of the movie preview in movie time scale units") },
1218
        { "PreviewTime",            N_("Preview Time"),                     "Integer",                  xmpText, xmpExternal, N_("The time value in the movie at which the preview begins.") },
1219
        { "PreviewVersion",         N_("Preview Version"),                  "Integer",                  xmpText, xmpExternal, N_("The version of the movie preview ") },
1220
        { "ProducedBy",             N_("Produced By"),                      "Text",                     xmpText, xmpExternal, N_("Produced By, i.e. name of person or organization.")   },
1221
        { "Producer",               N_("Producer"),                         "Text",                     xmpText, xmpExternal, N_("Producer involved with the video.")   },
1222
        { "ProducerKeywords",       N_("Producer Keywords"),                "Text",                     xmpText, xmpExternal, N_("Information about the Producer Keywords.")   },
1223
        { "ProductionApertureWidth",N_("Production Aperture Width"),        "Integer",                  xmpText, xmpExternal, N_("Production aperture width in pixels")   },
1224
        { "ProductionApertureHeight",N_("Production Aperture Height"),      "Integer",                  xmpText, xmpExternal, N_("Production aperture height in pixels")   },
1225
        { "ProductionDesigner",     N_("Production Designer"),              "Text",                     xmpText, xmpExternal, N_("Information about the Production Designer.")   },
1226
        { "ProductionStudio",       N_("Production Studio"),                "Text",                     xmpText, xmpExternal, N_("Information about the Production Studio.")   },
1227
        { "Product",                N_("Product"),                          "Text",                     xmpText, xmpExternal, N_("Product.")   },
1228
        { "ProjectRef",             N_("Project Reference"),                "ProjectLink",              xmpText, xmpExternal, N_("A reference to the project that created this file.") },
1229
        { "Rate",                   N_("Rate"),                             "Integer",                  xmpText, xmpExternal, N_("Rate.")   },
1230
        { "Rated",                  N_("Rated"),                            "Text",                     xmpText, xmpExternal, N_("The age circle required for viewing the video.")   },
1231
        { "Rating",                 N_("Rating"),                           "Text",                     xmpText, xmpExternal, N_("Rating, eg. 7  or 8 (generally out of 10).")   },
1232
        { "RecordLabelName",        N_("Record Label Name"),                "Text",                     xmpText, xmpExternal, N_("Record Label Name, or the name of the organization recording the video.")   },
1233
        { "RecordLabelURL",         N_("Record Label URL"),                 "Text",                     xmpText, xmpExternal, N_("Record Label URL.")   },
1234
        { "RecordingCopyright",     N_("Recording Copyright"),              "Text",                     xmpText, xmpExternal, N_("Recording Copyright.")   },
1235
        { "Requirements",           N_("Requirements"),                     "Text",                     xmpText, xmpExternal, N_("Information about the Requirements.")   },
1236
        { "ResolutionUnit",         N_("Resolution Unit"),                  "Closed Choice of Integer", xmpText, xmpInternal, N_("Unit used for XResolution and YResolution. Value is one of: 2 = inches; 3 = centimeters.") },
1237
        { "RippedBy",               N_("Ripped By"),                        "Text",                     xmpText, xmpExternal, N_("Ripped By, i.e. name of person or organization.")   },
1238
        { "Saturation",             N_("Saturation"),                       "Closed Choice of Integer", xmpText, xmpInternal, N_("Indicates the direction of saturation processing applied by the camera.") },
1239
        { "SecondaryGenre",         N_("Secondary Genre"),                  "Text",                     xmpText, xmpExternal, N_("The name of the secondary genre..")   },
1240
        { "SelectionTime",          N_("Selection Time"),                   "Integer",                  xmpText, xmpExternal, N_("The time value for the start time of the current selection.") },
1241
        { "SelectionDuration",      N_("Selection Duration"),               "Integer",                  xmpText, xmpExternal, N_("The duration of the current selection in movie time scale units.") },
1242
        { "SendDuration",           N_("Send Duration"),                    "Integer",                  xmpText, xmpExternal, N_("Specifies the time needed to send the file in 100-nanosecond units. This value should "
1243
                                                                                                                                 "include the duration of the last packet in the content.")   },
1244
        { "Sharpness",              N_("Sharpness"),                        "Integer",                  xmpText, xmpExternal, N_("\"Sharpness\" setting. Range 0 to +100.") },
1245
        { "Software",               N_("Software"),                         "Text",                     xmpText, xmpExternal, N_("Software used to generate / create Video data.")   },
1246
        { "SoftwareVersion",        N_("Software Version"),                 "Text",                     xmpText, xmpExternal, N_("The Version of the software used.")   },
1247
        { "SongWriter",             N_("Song Writer"),                      "Text",                     xmpText, xmpExternal, N_("The name of the song writer.")   },
1248
        { "SongWriterKeywords",     N_("Song Writer Keywords"),             "Text",                     xmpText, xmpExternal, N_("Song Writer Keywords.")   },
1249
        { "Source",                 N_("Source"),                           "Text",                     xmpText, xmpExternal, N_("Source.")   },
1250
        { "SourceCredits",          N_("Source Credits"),                   "Text",                     xmpText, xmpExternal, N_("Source Credits.")   },
1251
        { "SourceForm",             N_("Source Form"),                      "Text",                     xmpText, xmpExternal, N_("Source Form.")   },
1252
        { "SourceImageHeight",      N_("Source Image Height"),              "Integer",                  xmpText, xmpExternal, N_("Video height in pixels")   },
1253
        { "SourceImageWidth",       N_("Source Image Width"),               "Integer",                  xmpText, xmpExternal, N_("Video width in pixels")   },
1254
        { "Starring",               N_("Starring"),                         "Text",                     xmpText, xmpExternal, N_("Starring, name of famous people appearing in the video.")   },
1255
        { "StartTimecode",          N_("Start Timecode"),                   "Integer",                  xmpText, xmpExternal, N_("Start Timecode")   },
1256
        { "Statistics",             N_("Statistics"),                       "Text",                     xmpText, xmpExternal, N_("Statistics.")   },
1257
        { "StreamCount",            N_("Stream Count"),                     "Integer",                  xmpText, xmpExternal, N_("Total Number Of Streams")   },
1258
        { "StreamName",             N_("Stream Name"),                      "Text",                     xmpText, xmpExternal, N_("Describes the Stream Name. Eg - FUJIFILM AVI STREAM 0100")   },
1259
        { "StreamQuality",          N_("Stream Quality"),                   "Integer",                  xmpText, xmpExternal, N_("Generral Stream Quality")   },
1260
        { "StreamSampleRate",       N_("Stream Sample Rate"),               "Rational",                 xmpText, xmpExternal, N_("Stream Sample Rate")   },
1261
        { "StreamSampleCount",      N_("Stream Sample Count"),              "Integer",                  xmpText, xmpExternal, N_("Stream Sample Count")   },
1262
        { "StreamSampleSize",       N_("Stream Sample Size"),               "Integer",                  xmpText, xmpExternal, N_("General Stream Sample Size")   },
1263
        { "StreamType",             N_("Stream Type"),                      "Text",                     xmpText, xmpExternal, N_("Describes the Stream Type. Eg - Video, Audio or Subtitles")   },
1264
        { "SubTCodec",              N_("Subtitles Codec"),                  "Text",                     xmpText, xmpExternal, N_("Subtitles stream codec, for general purpose")   },
1265
        { "SubTCodecDecodeAll",     N_("Subtitle Codec Decode Info"),       "Text",                     xmpText, xmpExternal, N_("Contains information the Subtitles codec decode all, i.e. Enabled/Disabled")   },
1266
        { "SubTCodecInfo",          N_("Subtitles Codec Information"),      "Text",                     xmpText, xmpExternal, N_("Contains additional information about subtitles.")   },
1267
        { "SubTCodecDownloadUrl",   N_("Subtitle Codec Download URL"),      "Text",                     xmpText, xmpExternal, N_("Video Subtitle Codec Download URL.")   },
1268
        { "SubTCodecSettings",      N_("Subtitle Codec Settings"),          "Text",                     xmpText, xmpExternal, N_("Contains settings the codec needs before decoding can be started.")   },
1269
        { "SubTDefaultOn",          N_("Subtitle Track Default On"),        "Text",                     xmpText, xmpExternal, N_("Subtitles Track Default On , i.e. Enabled/Disabled")   },
1270
        { "SubTEnabled",            N_("Subtitle Track Enabled"),           "Text",                     xmpText, xmpExternal, N_("Status of Subtitles Track, i.e. Enabled/Disabled")   },
1271
        { "Subtitle",               N_("Subtitle"),                         "Text",                     xmpText, xmpExternal, N_("Subtitle of the video.")   },
1272
        { "SubtitleKeywords",       N_("Subtitle Keywords"),                "Text",                     xmpText, xmpExternal, N_("Subtitle Keywords.")   },
1273
        { "SubTLang",               N_("Subtitles Language"),               "Text",                     xmpText, xmpExternal, N_("The Language in which the subtitles is recorded in.")   },
1274
        { "SubTTrackForced",        N_("Subtitle Track Forced"),            "Text",                     xmpText, xmpExternal, N_("Subtitles Track Forced , i.e. Enabled/Disabled")   },
1275
        { "SubTTrackLacing",        N_("Subtitle Track Lacing"),            "Text",                     xmpText, xmpExternal, N_("Subtitles Track Lacing , i.e. Enabled/Disabled")   },
1276
        { "Subject",                N_("Subject"),                          "Text",                     xmpText, xmpExternal, N_("Subject. ")   },
1277
        { "TapeName",               N_("Tape Name"),                        "Text",                     xmpText, xmpExternal, N_("TapeName.")   },
1278
        { "TagDefault",             N_("Tag Default Setting"),              "Text",                     xmpText, xmpExternal, N_("If Tag is Default enabled, this value is Yes, else No ")   },
1279
        { "TagLanguage",            N_("Tag Language"),                     "Text",                     xmpText, xmpExternal, N_("Language that has been used to define tags")   },
1280
        { "TagName",                N_("Tag Name"),                         "Text",                     xmpText, xmpExternal, N_("Tags could be used to define several titles for a segment.")   },
1281
        { "TagString",              N_("Tag String"),                       "Text",                     xmpText, xmpExternal, N_("Information contained in a Tags")   },
1282
        { "TargetType",             N_("Target Type"),                      "Text",                     xmpText, xmpExternal, N_("A string describing the logical level of the object the Tag is refering to.")   },
1283
        { "Technician",             N_("Technician"),                       "Text",                     xmpText, xmpExternal, N_("Technician, in most cases name of person.")   },
1284
        { "ThumbnailHeight",        N_("Thumbnail Height"),                 "Integer",                  xmpText, xmpExternal, N_("Preview Image Thumbnail Height.")   },
1285
        { "ThumbnailLength",        N_("Thumbnail Length"),                 "Integer",                  xmpText, xmpExternal, N_("Preview Image Thumbnail Length.")   },
1286
        { "ThumbnailWidth",         N_("Thumbnail Width"),                  "Integer",                  xmpText, xmpExternal, N_("Preview Image Thumbnail Width.")   },
1287
        { "TimecodeScale",          N_("Timecode Scale"),                   "Rational",                 xmpText, xmpExternal, N_("Multiplying factor which is helpful in calculation of a particular timecode")   },
1288
        { "TimeOffset",             N_("Time Offset"),                      "Integer",                  xmpText, xmpExternal, N_("Specifies the presentation time offset of the stream in 100-nanosecond units. This value shall be equal to the send time of the first interleaved packet in the data section.")   },
1289
        { "TimeScale",              N_("Time Scale"),                       "Integer",                  xmpText, xmpExternal, N_("A time value that indicates the time scale for this movie-that is, the number of time units that"
1290
                                                                                                                                  "pass per second in its time coordinate system. A time coordinate system that measures time"
1291
                                                                                                                                  "in sixtieths of a second, for example, has a time scale of 60.")   },
1292
        { "Title",                  N_("Title"),                            "Text",                     xmpText, xmpExternal, N_("Contains a general name of the SEGMENT, like 'Lord of the Rings - The Two Towers', however, Tags could be used to define several titles for a segment.")   },
1293
        { "ToningEffect",           N_("Toning Effect"),                    "Text",                     xmpText, xmpExternal, N_("Toning Effect Settings Applied.")   },
1294
        { "TotalFrameCount",        N_("Total Frame Count"),                "Integer",                  xmpText, xmpExternal, N_("Total number of frames in a video")   },
1295
        { "TotalStream",            N_("Number Of Streams"),                "Integer",                  xmpText, xmpExternal, N_("Total number of streams present in a video. Eg - Video, Audio or Subtitles")   },
1296
        { "Track",                  N_("Track"),                            "Text",                     xmpText, xmpExternal, N_("Information about the Track.")   },
1297
        { "TrackCreateDate",        N_("Video Track Create Date"),          "Integer",                  xmpText, xmpExternal, N_("A 32-bit integer that indicates (in seconds since midnight, January 1, 1904) when the track header was created.")   },
1298
        { "TrackDuration",          N_("Video Track Duration"),             "Integer",                  xmpText, xmpExternal, N_("A time value that indicates the duration of this track (in the movie's time coordinate system).")   },
1299
        { "TrackForced",            N_("Video Track Forced"),               "Text",                     xmpText, xmpExternal, N_("Video Track Forced , i.e. Enabled/Disabled")   },
1300
        { "TrackID",                N_("Track ID"),                         "Integer",                  xmpText, xmpExternal, N_("A 32-bit integer that uniquely identifies the track. The value 0 cannot be used.")   },
1301
        { "TrackHeaderVersion",     N_("Track Header Version"),             "Text",                     xmpText, xmpExternal, N_("A 1-byte specification of the version of this track header")   },
1302
        { "TrackLacing",            N_("Video Track Lacing"),               "Text",                     xmpText, xmpExternal, N_("Video Track Lacing , i.e. Enabled/Disabled")   },
1303
        { "TrackLang",              N_("Track Language"),                   "Text",                     xmpText, xmpExternal, N_("The Language in which a particular stream is recorded in.")   },
1304
        { "TrackLayer",             N_("Video Track Layer"),                "Integer",                  xmpText, xmpExternal, N_("A 16-bit integer that indicates this track's spatial priority in its movie. The QuickTime Movie"
1305
                                                                                                                                  "Toolbox uses this value to determine how tracks overlay one another. Tracks with lower layer"
1306
                                                                                                                                  "values are displayed in front of tracks with higher layer values.")   },
1307
        { "TrackModifyDate",        N_("Video Track Modify Date"),          "Integer",                  xmpText, xmpExternal, N_("A 32-bit integer that indicates (in seconds since midnight, January 1, 1904) when the track header was last modified.")   },
1308
        { "TrackName",              N_("Track Name"),                       "Text",                     xmpText, xmpExternal, N_("Track Name could be used to define titles for a segment.")   },
1309
        { "TrackNumber",            N_("Track Number"),                     "Integer",                  xmpText, xmpExternal, N_("Track Number.")   },
1310
        { "TrackVolume",            N_("Track Volume"),                     "Rational",                 xmpText, xmpExternal, N_("A 16-bit fixed-point number that specifies how loud to play this track's sound. A value of 1.0 indicates full volume.") },
1311
        { "TranslateCodec",         N_("Chapter Translate Codec"),          "Text",                     xmpText, xmpExternal, N_("Chapter Translate Codec information. Usually used in Matroska filr type.")   },
1312
        { "UnknownInfo",            N_("Unknown Information"),              "Text",                     xmpText, xmpExternal, N_("Unknown / Unregistered Metadata Tags and their values.")   },
1313
        { "UnknownInfo2",           N_("Unknown Information"),              "Text",                     xmpText, xmpExternal, N_("Unknown / Unregistered Metadata Tags and their values.")   },
1314
        { "URL",                    N_("Video URL"),                        "Text",                     xmpText, xmpExternal, N_("A C string that specifies a URL. There may be additional data after the C string.")   },
1315
        { "URN",                    N_("Video URN"),                        "Text",                     xmpText, xmpExternal, N_("A C string that specifies a URN. There may be additional data after the C string.")   },
1316
        { "VariProgram",            N_("Vari Program"),                     "Text",                     xmpText, xmpExternal, N_("Software settings used to generate / create Video data.")   },
1317
        { "VegasVersionMajor",      N_("Vegas Version Major"),              "Text",                     xmpText, xmpExternal, N_("Vegas Version Major.")   },
1318
        { "VegasVersionMinor",      N_("Vegas Version Minor"),              "Text",                     xmpText, xmpExternal, N_("Vegas Version Minor.")   },
1319
        { "Vendor",                 N_("Vendor"),                           "Text",                     xmpText, xmpExternal, N_("The developer of the compressor that generated the compressed data.")   },
1320
        { "VendorID",               N_("Vendor ID"),                        "Text",                     xmpText, xmpExternal, N_("A 32-bit integer that specifies the developer of the compressor that generated the compressed data. Often this field contains 'appl' to indicate Apple Computer, Inc.")   },
1321
        { "VideoQuality",           N_("Video Quality"),                    "Integer",                  xmpText, xmpExternal, N_("Video Stream Quality")   },
1322
        { "VideoSampleSize",        N_("Video Sample Size"),                "Integer",                  xmpText, xmpExternal, N_("Video Stream Sample Size")   },
1323
        { "VideoScanType",          N_("Video Scan Type"),                  "Text",                     xmpText, xmpExternal, N_("Video Scan Type, it can be Progressive or Interlaced")   },
1324
        { "WatermarkURL",           N_("Watermark URL"),                    "Text",                     xmpText, xmpExternal, N_("A C string that specifies a Watermark URL.")   },
1325
        { "WhiteBalance",           N_("White Balance"),                    "Closed Choice Text",       xmpText, xmpExternal, N_("\"White Balance\" setting. One of: As Shot, Auto, Daylight, Cloudy, Shade, Tungsten, "
1326
                                                                                                                                 "Fluorescent, Flash, Custom") },
1327
        { "WhiteBalanceFineTune",   N_("White Balance Fine Tune"),          "Integer",                  xmpText, xmpExternal, N_("White Balance Fine Tune.") },
1328
        { "Width",                  N_("Video Width"),                      "Integer",                  xmpText, xmpExternal, N_("Video width in pixels")   },
1329
        { "WindowLocation",         N_("Window Location"),                  "Text",                     xmpText, xmpExternal, N_("Information about the Window Location.")   },
1330
        { "WorldTime",              N_("WorldTime"),                        "Integer",                  xmpText, xmpExternal, N_("World Time")   },
1331
        { "WrittenBy",              N_("Written By"),                       "Text",                     xmpText, xmpExternal, N_("Written By, i.e. name of person or organization.")   },
1332
        { "WritingApp",             N_("Writing App"),                      "Text",                     xmpText, xmpExternal, N_("Contains the name of the application used to create the file (like \"mkvmerge 0.8.1\")")   },
1333
        { "XResolution",            N_("X Resolution"),                     "Rational",                 xmpText, xmpInternal, N_("Horizontal resolution in pixels per unit.") },
1334
        { "Year",                   N_("Year"),                             "Integer",                  xmpText, xmpExternal, N_("Year in which the video was made.")   },
1335
        { "YResolution",            N_("Y Resolution"),                     "Rational",                 xmpText, xmpInternal, N_("Vertical resolution in pixels per unit.") },
1336
        { 0, 0, 0, invalidTypeId, xmpInternal, 0 }
1337
    };
1338

    
1339
    extern const XmpPropertyInfo xmpAudioInfo[] = {
1340
        { "AvgBytePerSec",      N_("Average Bytes Per Second"),     "Integer",               xmpText, xmpExternal, N_("Average Bytes Per Second found in audio stream")   },
1341
        { "Balance",            N_("Balance"),                      "Integer",               xmpText, xmpExternal, N_("Indicates the left-right balance of the audio")   },
1342
        { "BitsPerSample",      N_("Bits Per Sample/ Bit Rate"),    "Integer",               xmpText, xmpExternal, N_("Bits per test sample")   },
1343
        { "ChannelType",        N_("Audio Channel Type"),           "Integers",              xmpText, xmpExternal, N_("The audio channel type. One of: Mono, Stereo, 5.1, 7.1.") },
1344
        { "Codec",              N_("Audio Codec"),                  "Text",                  xmpText, xmpExternal, N_("Codec used for Audio Encoding/Decoding")   },
1345
        { "CodecDecodeAll",     N_("Audio Codec Decode Info"),      "Text",                  xmpText, xmpExternal, N_("Contains information the audio codec decode all, i.e. Enabled/Disabled")   },
1346
        { "CodecDescription",   N_("Audio Codec Description"),      "Text",                  xmpText, xmpExternal, N_("Contains description the codec.")   },
1347
        { "CodecDownloadUrl",   N_("Audio Codec Download URL"),     "Text",                  xmpText, xmpExternal, N_("Audio Codec Download URL.")   },
1348
        { "CodecInfo",          N_("Audio Codec Information"),      "Text",                  xmpText, xmpExternal, N_("Contains information the codec needs before decoding can be started. An example is the Vorbis initialization packets for Vorbis audio.")   },
1349
        { "CodecSettings",      N_("Audio Codec Settings"),         "Text",                  xmpText, xmpExternal, N_("Contains settings the codec needs before decoding can be started.")   },
1350
        { "Compressor",         N_("Audio Compressor"),             "Text",                  xmpText, xmpExternal, N_("The audio compression used. For example, MP3.") },
1351
        { "DefaultDuration",    N_("MicroSec audio chunk lasts"),   "Text",                  xmpText, xmpExternal, N_("The number of micro seconds an audio chunk plays.")   },
1352
        { "DefaultStream",      N_("Default Stream"),               "Text",                  xmpText, xmpExternal, N_("Audio Stream that would be played by default.")   },
1353
        { "DefaultOn",          N_("Audio Track Default On"),       "Text",                  xmpText, xmpExternal, N_("Audio Track Default On , i.e. Enabled/Disabled")   },
1354
        { "Enabled",            N_("Audio Track Enabled"),          "Text",                  xmpText, xmpExternal, N_("Status of Audio Track, i.e. Enabled/Disabled")   },
1355
        { "Format",             N_("Audio Format"),                 "Text",                  xmpText, xmpExternal, N_("A four-character code that identifies the format of the audio.")   },
1356
        { "HandlerClass",       N_("Handler Class"),                "Text",                  xmpText, xmpExternal, N_("A four-character code that identifies the type of the handler. Only two values are valid for this field: 'mhlr' for media handlers and 'dhlr' for data handlers.")   },
1357
        { "HandlerDescription", N_("Handler Description"),          "Text",                  xmpText, xmpExternal, N_("A (counted) string that specifies the name of the component-that is, the media handler used when this media was created..")   },
1358
        { "HandlerType",        N_("Handler Type"),                 "Text",                  xmpText, xmpExternal, N_("A four-character code that identifies the type of the media handler or data handler.")   },
1359
        { "HandlerVendorID",    N_("Handler Vendor ID"),            "Text",                  xmpText, xmpExternal, N_("Component manufacturer.")   },
1360
        { "MediaCreateDate",    N_("Media Track Create Date"),      "Integer",               xmpText, xmpExternal, N_("A 32-bit integer that indicates (in seconds since midnight, January 1, 1904) when the media header was created.")   },
1361
        { "MediaDuration",      N_("Media Track Duration"),         "Integer",               xmpText, xmpExternal, N_("A time value that indicates the duration of this media (in the movie's time coordinate system).")   },
1362
        { "MediaHeaderVersion", N_("Media Header Version"),         "Text",                  xmpText, xmpExternal, N_("A 1-byte specification of the version of this media header")   },
1363
        { "MediaLangCode",      N_("Media Language Code"),          "Integer",               xmpText, xmpExternal, N_("A 16-bit integer that specifies the language code for this media.")   },
1364
        { "MediaModifyDate",    N_("Media Track Modify Date"),      "Integer",               xmpText, xmpExternal, N_("A 32-bit integer that indicates (in seconds since midnight, January 1, 1904) when the media header was last modified.")   },
1365
        { "MediaTimeScale",     N_("Media Time Scale"),             "Integer",               xmpText, xmpExternal, N_("A time value that indicates the time scale for this media-that is, the number of time units that pass per second in its time coordinate system." )   },
1366
        { "OutputSampleRate",   N_("Output Audio Sample Rate"),     "Integer",               xmpText, xmpExternal, N_("The ouput audio sample rate. Can be any value, but commonly 32000, 41100, or 48000.") },
1367
        { "SampleCount",        N_("Audio Sample Count"),           "Integer",               xmpText, xmpExternal, N_("Sample taken for Analyzing Audio Stream")   },
1368
        { "SampleRate",         N_("Audio Sample Rate"),            "Integer",               xmpText, xmpExternal, N_("The audio sample rate. Can be any value, but commonly 32000, 41100, or 48000.") },
1369
        { "SampleType",         N_("Audio Sample Type"),            "closed Choice of Text", xmpText, xmpExternal, N_("The audio sample type. One of: 8Int, 16Int, 32Int, 32Float.") },
1370
        { "SchemeTitle",        N_("Sound Scheme Title"),           "Text",                  xmpText, xmpExternal, N_("Sound Scheme Title.")   },
1371
        { "TimeOffset",         N_("Time Offset"),                  "Integer",               xmpText, xmpExternal, N_("Specifies the presentation time offset of the stream in 100-nanosecond units. This value shall be equal to the send time of the first interleaved packet in the data section.")   },
1372
        { "TrackCreateDate",    N_("Audio Track Create Date"),      "Integer",               xmpText, xmpExternal, N_("A 32-bit integer that indicates (in seconds since midnight, January 1, 1904) when the track header was created.")   },
1373
        { "TrackDuration",      N_("Audio Track Duration"),         "Integer",               xmpText, xmpExternal, N_("A time value that indicates the duration of this track (in the movie's time coordinate system).")   },
1374
        { "TrackForced",        N_("Audio Track Forced"),           "Text",                  xmpText, xmpExternal, N_("Audio Track Forced , i.e. Enabled/Disabled")   },
1375
        { "TrackID",            N_("Track ID"),                     "Integer",               xmpText, xmpExternal, N_("A 32-bit integer that uniquely identifies the track. The value 0 cannot be used.")   },
1376
        { "TrackHeaderVersion", N_("Track Header Version"),         "Text",                  xmpText, xmpExternal, N_("A 1-byte specification of the version of this track header")   },
1377
        { "TrackLacing",        N_("Audio Track Lacing"),           "Text",                  xmpText, xmpExternal, N_("Audio Track Lacing , i.e. Enabled/Disabled")   },
1378
        { "TrackLang",          N_("Track Language"),               "Text",                  xmpText, xmpExternal, N_("The Language in which a particular stream is recorded in.")   },
1379
        { "TrackLayer",         N_("Audio Track Layer"),            "Integer",               xmpText, xmpExternal, N_("A 16-bit integer that indicates this track's spatial priority in its movie. The QuickTime Movie"
1380
                                                                                                                      "Toolbox uses this value to determine how tracks overlay one another. Tracks with lower layer"
1381
                                                                                                                      "values are displayed in front of tracks with higher layer values.")   },
1382
        { "TrackModifyDate",    N_("Audio Track Modify Date"),      "Integer",               xmpText, xmpExternal, N_("A 32-bit integer that indicates (in seconds since midnight, January 1, 1904) when the track header was last modified.")   },
1383
        { "TrackVolume",        N_("Track Volume"),                 "Rational",              xmpText, xmpExternal, N_("A 16-bit fixed-point number that specifies how loud to play this track's sound. A value of 1.0 indicates full volume.") },
1384
        { "URL",                N_("Audio URL"),                    "Text",                  xmpText, xmpExternal, N_("A C string that specifies a URL. There may be additional data after the C string.")   },
1385
        { "URN",                N_("Audio URN"),                    "Text",                  xmpText, xmpExternal, N_("A C string that specifies a URN. There may be additional data after the C string.")   },
1386
        { "VendorID",           N_("Vendor ID"),                    "Text",                  xmpText, xmpExternal, N_("A 32-bit integer that specifies the developer of the compressor that generated the compressed data. Often this field contains 'appl' to indicate Apple Computer, Inc.")   },
1387
        { 0, 0, 0, invalidTypeId, xmpInternal, 0 }
1388
    };
1389

    
1390
   extern const XmpPropertyInfo xmpDwCInfo[] = {
1391
        { "acceptedNameUsage",      N_("acceptedNameUsage"),      "Text",      xmpText,      xmpExternal,      N_("The full name, with authorship and date information if known, of the currently valid (zoological) or accepted (botanical) taxon.")      },
1392
        { "acceptedNameUsageID",      N_("acceptedNameUsageID"),      "Text",      xmpText,      xmpExternal,      N_("An identifier for the name usage (documented meaning of the name according to a source) of the currently valid (zoological) or accepted (botanical) taxon.")      },
1393
        { "accessRights",      N_("accessRights"),      "Text",      xmpText,      xmpExternal,      N_("Information about who can access the resource or an indication of its security status. Access Rights may include information regarding access or restrictions based on privacy, security, or other policies.")      },
1394
        { "associatedMedia",      N_("associatedMedia"),      "Text",      xmpText,      xmpExternal,      N_("A list (concatenated and separated) of identifiers (publication, global unique identifier, URI) of media associated with the Occurrence.")      },
1395
        { "associatedOccurrences",      N_("associatedOccurrences"),      "Text",      xmpText,      xmpExternal,      N_("A list (concatenated and separated) of identifiers of other Occurrence records and their associations to this Occurrence.")      },
1396
        { "associatedReferences",      N_("associatedReferences"),      "Text",      xmpText,      xmpExternal,      N_("A list (concatenated and separated) of identifiers (publication, bibliographic reference, global unique identifier, URI) of literature associated with the Occurrence.")      },
1397
        { "associatedSequences",      N_("associatedSequences"),      "Text",      xmpText,      xmpExternal,      N_("A list (concatenated and separated) of identifiers (publication, global unique identifier, URI) of genetic sequence information associated with the Occurrence.")      },
1398
        { "associatedTaxa",      N_("associatedTaxa"),      "Text",      xmpText,      xmpExternal,      N_("A list (concatenated and separated) of identifiers or names of taxa and their associations with the Occurrence.")      },
1399
        { "basisOfRecord",      N_("basisOfRecord"),      "Text",      xmpText,      xmpExternal,      N_("The specific nature of the data record - a subtype of the type. Recommended best practice is to use a controlled vocabulary such as the Darwin Core Type Vocabulary (http://rs.tdwg.org/dwc/terms/type-vocabulary/index.htm).")      },
1400
        { "bed",      N_("bed"),      "Text",      xmpText,      xmpExternal,      N_("The full name of the lithostratigraphic bed from which the cataloged item was collected.")      },
1401
        { "behavior",      N_("behavior"),      "Text",      xmpText,      xmpExternal,      N_("A description of the behavior shown by the subject at the time the Occurrence was recorded. Recommended best practice is to use a controlled vocabulary.")      },
1402
        { "bibliographicCitation",      N_("bibliographicCitation"),      "Text",      xmpText,      xmpExternal,      N_("A bibliographic reference for the resource as a statement indicating how this record should be cited (attributed) when used. Recommended practice is to include sufficient bibliographic detail to identify the resource as unambiguously as possible.")      },
1403
        { "catalogNumber",      N_("catalogNumber"),      "Text",      xmpText,      xmpExternal,      N_("An identifier (preferably unique) for the record within the data set or collection.")      },
1404
        { "class",      N_("class"),      "Text",      xmpText,      xmpExternal,      N_("The full scientific name of the class in which the taxon is classified.")      },
1405
        { "collectionCode",      N_("collectionCode"),      "Text",      xmpText,      xmpExternal,      N_("The name, acronym, coden, or initialism identifying the collection or data set from which the record was derived.")      },
1406
        { "collectionID",      N_("collectionID"),      "Text",      xmpText,      xmpExternal,      N_("An identifier for the collection or dataset from which the record was derived. For physical specimens, the recommended best practice is to use the identifier in a collections registry such as the Biodiversity Collections Index (http://www.biodiversitycollectionsindex.org/).")      },
1407
        { "continent",      N_("continent"),      "Text",      xmpText,      xmpExternal,      N_("The name of the continent in which the Location occurs. Recommended best practice is to use a controlled vocabulary such as the Getty Thesaurus of Geographic Names or the ISO 3166 Continent code.")      },
1408
        { "coordinatePrecision",      N_("coordinatePrecision"),      "Text",      xmpText,      xmpExternal,      N_("A decimal representation of the precision of the coordinates given in the decimalLatitude and decimalLongitude.")      },
1409
        { "coordinateUncertaintyInMeters",      N_("coordinateUncertaintyInMeters"),      "Text",      xmpText,      xmpExternal,      N_("The horizontal distance (in meters) from the given decimalLatitude and decimalLongitude describing the smallest circle containing the whole of the Location. Leave the value empty if the uncertainty is unknown, cannot be estimated, or is not applicable (because there are no coordinates). Zero is not a valid value for this term.")      },
1410
        { "country",      N_("country"),      "Text",      xmpText,      xmpExternal,      N_("The name of the country or major administrative unit in which the Location occurs. Recommended best practice is to use a controlled vocabulary such as the Getty Thesaurus of Geographic Names.")      },
1411
        { "countryCode",      N_("countryCode"),      "Text",      xmpText,      xmpExternal,      N_("The standard code for the country in which the Location occurs. Recommended best practice is to use ISO 3166-1-alpha-2 country codes.")      },
1412
        { "county",      N_("county"),      "Text",      xmpText,      xmpExternal,      N_("The full, unabbreviated name of the next smaller administrative region than stateProvince (county, shire, department, etc.) in which the Location occurs.")      },
1413
        { "dataGeneralizations",      N_("dataGeneralizations"),      "Text",      xmpText,      xmpExternal,      N_("Actions taken to make the shared data less specific or complete than in its original form. Suggests that alternative data of higher quality may be available on request.")      },
1414
        { "datasetID",      N_("datasetID"),      "Text",      xmpText,      xmpExternal,      N_("An identifier for the set of data. May be a global unique identifier or an identifier specific to a collection or institution.")      },
1415
        { "datasetName",      N_("datasetName"),      "Text",      xmpText,      xmpExternal,      N_("The name identifying the data set from which the record was derived.")      },
1416
        { "dateIdentified",      N_("dateIdentified"),      "Date",      xmpText,      xmpInternal,      N_("The date on which the subject was identified as representing the Taxon. Recommended best practice is to use an encoding scheme, such as ISO 8601:2004(E).")      },
1417
        { "day",      N_("day"),      "Integer",      unsignedLong,      xmpInternal,      N_("The integer day of the month on which the Event occurred.")      },
1418
        { "decimalLatitude",      N_("decimalLatitude"),      "Text",      xmpText,      xmpExternal,      N_("The geographic latitude (in decimal degrees, using the spatial reference system given in geodeticDatum) of the geographic center of a Location. Positive values are north of the Equator, negative values are south of it. Legal values lie between -90 and 90, inclusive.")      },
1419
        { "decimalLongitude",      N_("decimalLongitude"),      "Text",      xmpText,      xmpExternal,      N_("The geographic longitude (in decimal degrees, using the spatial reference system given in geodeticDatum) of the geographic center of a Location. Positive values are east of the Greenwich Meridian, negative values are west of it. Legal values lie between -180 and 180, inclusive.")      },
1420
        { "disposition",      N_("disposition"),      "Text",      xmpText,      xmpExternal,      N_("The current state of a specimen with respect to the collection identified in collectionCode or collectionID. Recommended best practice is to use a controlled vocabulary.")      },
1421
        { "dynamicProperties",      N_("dynamicProperties"),      "Text",      xmpText,      xmpExternal,      N_("A list (concatenated and separated) of additional measurements, facts, characteristics, or assertions about the record. Meant to provide a mechanism for structured content such as key-value pairs.")      },
1422
        { "earliestAgeOrLowestStage",      N_("earliestAgeOrLowestStage"),      "Text",      xmpText,      xmpExternal,      N_("The full name of the earliest possible geochronologic age or lowest chronostratigraphic stage attributable to the stratigraphic horizon from which the cataloged item was collected.")      },
1423
        { "earliestEonOrLowestEonothem",      N_("earliestEonOrLowestEonothem"),      "Text",      xmpText,      xmpExternal,      N_("The full name of the earliest possible geochronologic eon or lowest chrono-stratigraphic eonothem or the informal name (\"Precambrian\") attributable to the stratigraphic horizon from which the cataloged item was collected.")      },
1424
        { "earliestEpochOrLowestSeries",      N_("earliestEpochOrLowestSeries"),      "Text",      xmpText,      xmpExternal,      N_("The full name of the earliest possible geochronologic epoch or lowest chronostratigraphic series attributable to the stratigraphic horizon from which the cataloged item was collected.")      },
1425
        { "earliestEraOrLowestErathem",      N_("earliestEraOrLowestErathem"),      "Text",      xmpText,      xmpExternal,      N_("The full name of the earliest possible geochronologic era or lowest chronostratigraphic erathem attributable to the stratigraphic horizon from which the cataloged item was collected.")      },
1426
        { "earliestPeriodOrLowestSystem",      N_("earliestPeriodOrLowestSystem"),      "Text",      xmpText,      xmpExternal,      N_("The full name of the earliest possible geochronologic period or lowest chronostratigraphic system attributable to the stratigraphic horizon from which the cataloged item was collected.")      },
1427
        { "endDayOfYear",      N_("endDayOfYear"),      "Text",      xmpText,      xmpExternal,      N_("The latest ordinal day of the year on which the Event occurred (1 for January 1, 365 for December 31, except in a leap year, in which case it is 366).")      },
1428
        { "establishmentMeans",      N_("establishmentMeans"),      "Text",      xmpText,      xmpExternal,      N_("The process by which the biological individual(s) represented in the Occurrence became established at the location. Recommended best practice is to use a controlled vocabulary.")      },
1429
        { "eventDate",      N_("eventDate"),      "Date",      xmpText,      xmpInternal,      N_("The date-time or interval during which an Event occurred. For occurrences, this is the date-time when the event was recorded. Not suitable for a time in a geological context. Recommended best practice is to use an encoding scheme, such as ISO 8601:2004(E).")      },
1430
        { "eventID",      N_("eventID"),      "Text",      xmpText,      xmpExternal,      N_("An identifier for the set of information associated with an Event (something that occurs at a place and time). May be a global unique identifier or an identifier specific to the data set.")      },
1431
        { "eventRemarks",      N_("eventRemarks"),      "Text",      xmpText,      xmpExternal,      N_("Comments or notes about the Event.")      },
1432
        { "eventTime",      N_("eventTime"),      "Date",      xmpText,      xmpInternal,      N_("The time or interval during which an Event occurred. Recommended best practice is to use an encoding scheme, such as ISO 8601:2004(E).")      },
1433
        { "family",      N_("family"),      "Text",      xmpText,      xmpExternal,      N_("The full scientific name of the family in which the taxon is classified.")      },
1434
        { "fieldNotes",      N_("fieldNotes"),      "Text",      xmpText,      xmpExternal,      N_("One of a) an indicator of the existence of, b) a reference to (publication, URI), or c) the text of notes taken in the field about the Event.")      },
1435
        { "fieldNumber",      N_("fieldNumber"),      "Text",      xmpText,      xmpExternal,      N_("An identifier given to the event in the field. Often serves as a link between field notes and the Event.")      },
1436
        { "footprintSpatialFit",      N_("footprintSpatialFit"),      "Text",      xmpText,      xmpExternal,      N_("The ratio of the area of the footprint (footprintWKT) to the area of the true (original, or most specific) spatial representation of the Location. Legal values are 0, greater than or equal to 1, or undefined. A value of 1 is an exact match or 100% overlap. A value of 0 should be used if the given footprint does not completely contain the original representation. The footprintSpatialFit is undefined (and should be left blank) if the original representation is a point and the given georeference is not that same point. If both the original and the given georeference are the same point, the footprintSpatialFit is 1.")      },
1437
        { "footprintSRS",      N_("footprintSRS"),      "Text",      xmpText,      xmpExternal,      N_("A Well-Known Text (WKT) representation of the Spatial Reference System (SRS) for the footprintWKT of the Location. Do not use this term to describe the SRS of the decimalLatitude and decimalLongitude, even if it is the same as for the footprintWKT - use the geodeticDatum instead.")      },
1438
        { "footprintWKT",      N_("footprintWKT"),      "Text",      xmpText,      xmpExternal,      N_("A Well-Known Text (WKT) representation of the shape (footprint, geometry) that defines the Location. A Location may have both a point-radius representation (see decimalLatitude) and a footprint representation, and they may differ from each other.")      },
1439
        { "formation",      N_("formation"),      "Text",      xmpText,      xmpExternal,      N_("The full name of the lithostratigraphic formation from which the cataloged item was collected.")      },
1440
        { "genus",      N_("genus"),      "Text",      xmpText,      xmpExternal,      N_("The full scientific name of the genus in which the taxon is classified.")      },
1441
        { "geodeticDatum",      N_("geodeticDatum"),      "Text",      xmpText,      xmpExternal,      N_("The ellipsoid, geodetic datum, or spatial reference system (SRS) upon which the geographic coordinates given in decimalLatitude and decimalLongitude as based. Recommended best practice is use the EPSG code as a controlled vocabulary to provide an SRS, if known. Otherwise use a controlled vocabulary for the name or code of the geodetic datum, if known. Otherwise use a controlled vocabulary for the name or code of the ellipsoid, if known. If none of these is known, use the value \"unknown\".")      },
1442
        { "geologicalContextID",      N_("geologicalContextID"),      "Text",      xmpText,      xmpExternal,      N_("An identifier for the set of information associated with a GeologicalContext (the location within a geological context, such as stratigraphy). May be a global unique identifier or an identifier specific to the data set.")      },
1443
        { "georeferencedBy",      N_("georeferencedBy"),      "Text",      xmpText,      xmpExternal,      N_("A list (concatenated and separated) of names of people, groups, or organizations who determined the georeference (spatial representation) for the Location.")      },
1444
        { "georeferencedDate",      N_("georeferencedDate"),      "Text",      xmpText,      xmpExternal,      N_("The date on which the Location was georeferenced. Recommended best practice is to use an encoding scheme, such as ISO 8601:2004(E).")      },
1445
        { "georeferenceProtocol",      N_("georeferenceProtocol"),      "Text",      xmpText,      xmpExternal,      N_("A description or reference to the methods used to determine the spatial footprint, coordinates, and uncertainties.")      },
1446
        { "georeferenceRemarks",      N_("georeferenceRemarks"),      "Text",      xmpText,      xmpExternal,      N_("Notes or comments about the spatial description determination, explaining assumptions made in addition or opposition to the those formalized in the method referred to in georeferenceProtocol.")      },
1447
        { "georeferenceSources",      N_("georeferenceSources"),      "Text",      xmpText,      xmpExternal,      N_("A list (concatenated and separated) of maps, gazetteers, or other resources used to georeference the Location, described specifically enough to allow anyone in the future to use the same resources.")      },
1448
        { "georeferenceVerificationStatus",      N_("georeferenceVerificationStatus"),      "Text",      xmpText,      xmpExternal,      N_("A categorical description of the extent to which the georeference has been verified to represent the best possible spatial description. Recommended best practice is to use a controlled vocabulary.")      },
1449
        { "group",      N_("group"),      "Text",      xmpText,      xmpExternal,      N_("The full name of the lithostratigraphic group from which the cataloged item was collected.")      },
1450
        { "habitat",      N_("habitat"),      "Text",      xmpText,      xmpExternal,      N_("A category or description of the habitat in which the Event occurred.")      },
1451
        { "higherClassification",      N_("higherClassification"),      "Text",      xmpText,      xmpExternal,      N_("A list (concatenated and separated) of taxa names terminating at the rank immediately superior to the taxon referenced in the taxon record. Recommended best practice is to order the list starting with the highest rank and separating the names for each rank with a semi-colon ;")      },
1452
        { "higherGeography",      N_("higherGeography"),      "Text",      xmpText,      xmpExternal,      N_("A list (concatenated and separated) of geographic names less specific than the information captured in the locality term.")      },
1453
        { "higherGeographyID",      N_("higherGeographyID"),      "Text",      xmpText,      xmpExternal,      N_("An identifier for the geographic region within which the Location occurred. Recommended best practice is to use an persistent identifier from a controlled vocabulary such as the Getty Thesaurus of Geographic Names.")      },
1454
        { "highestBiostratigraphicZone",      N_("highestBiostratigraphicZone"),      "Text",      xmpText,      xmpExternal,      N_("The full name of the highest possible geological biostratigraphic zone of the stratigraphic horizon from which the cataloged item was collected.")      },
1455
        { "identificationID",      N_("identificationID"),      "Text",      xmpText,      xmpExternal,      N_("An identifier for the Identification (the body of information associated with the assignment of a scientific name). May be a global unique identifier or an identifier specific to the data set.")      },
1456
        { "identificationQualifier",      N_("identificationQualifier"),      "Text",      xmpText,      xmpExternal,      N_("A brief phrase or a standard term (\"cf.\" \"aff.\") to express the determiner's doubts about the Identification.")      },
1457
        { "identificationReferences",      N_("identificationReferences"),      "Text",      xmpText,      xmpExternal,      N_("A list (concatenated and separated) of references (publication, global unique identifier, URI) used in the Identification.")      },
1458
        { "identificationRemarks",      N_("identificationRemarks"),      "Text",      xmpText,      xmpExternal,      N_("Comments or notes about the Identification.")      },
1459
        { "identificationVerificationStatus",      N_("identificationVerificationStatus"),      "Text",      xmpText,      xmpExternal,      N_("A categorical indicator of the extent to which the taxonomic identification has been verified to be correct. Recommended best practice is to use a controlled vocabulary such as that used in HISPID/ABCD.")      },
1460
        { "identifiedBy",      N_("identifiedBy"),      "Text",      xmpText,      xmpExternal,      N_("A list (concatenated and separated) of names of people, groups, or organizations who assigned the Taxon to the subject.")      },
1461
        { "individualCount",      N_("individualCount"),      "Text",      xmpText,      xmpExternal,      N_("The number of individuals represented present at the time of the Occurrence.")      },
1462
        { "individualID",      N_("individualID"),      "Text",      xmpText,      xmpExternal,      N_("An identifier for an individual or named group of individual organisms represented in the Occurrence. Meant to accommodate resampling of the same individual or group for monitoring purposes. May be a global unique identifier or an identifier specific to a data set.")      },
1463
        { "informationWithheld",      N_("informationWithheld"),      "Text",      xmpText,      xmpExternal,      N_("Additional information that exists, but that has not been shared in the given record.")      },
1464
        { "infraspecificEpithet",      N_("infraspecificEpithet"),      "Text",      xmpText,      xmpExternal,      N_("The name of the lowest or terminal infraspecific epithet of the scientificName, excluding any rank designation.")      },
1465
        { "institutionCode",      N_("institutionCode"),      "Text",      xmpText,      xmpExternal,      N_("The name (or acronym) in use by the institution having custody of the object(s) or information referred to in the record.")      },
1466
        { "institutionID",      N_("institutionID"),      "Text",      xmpText,      xmpExternal,      N_("An identifier for the institution having custody of the object(s) or information referred to in the record.")      },
1467
        { "island",      N_("island"),      "Text",      xmpText,      xmpExternal,      N_("The name of the island on or near which the Location occurs. Recommended best practice is to use a controlled vocabulary such as the Getty Thesaurus of Geographic Names.")      },
1468
        { "islandGroup",      N_("islandGroup"),      "Text",      xmpText,      xmpExternal,      N_("The name of the island group in which the Location occurs. Recommended best practice is to use a controlled vocabulary such as the Getty Thesaurus of Geographic Names.")      },
1469
        { "kingdom",      N_("kingdom"),      "Text",      xmpText,      xmpExternal,      N_("The full scientific name of the kingdom in which the taxon is classified.")      },
1470
        { "language",      N_("language"),      "Text",      xmpText,      xmpExternal,      N_("A language of the resource. Recommended best practice is to use a controlled vocabulary such as RFC 4646 [RFC4646].")      },
1471
        { "latestAgeOrHighestStage",      N_("latestAgeOrHighestStage"),      "Text",      xmpText,      xmpExternal,      N_("The full name of the latest possible geochronologic age or highest chronostratigraphic stage attributable to the stratigraphic horizon from which the cataloged item was collected.")      },
1472
        { "latestEonOrHighestEonothem",      N_("latestEonOrHighestEonothem"),      "Text",      xmpText,      xmpExternal,      N_("The full name of the latest possible geochronologic eon or highest chrono-stratigraphic eonothem or the informal name (\"Precambrian\") attributable to the stratigraphic horizon from which the cataloged item was collected.")      },
1473
        { "latestEpochOrHighestSeries",      N_("latestEpochOrHighestSeries"),      "Text",      xmpText,      xmpExternal,      N_("The full name of the latest possible geochronologic epoch or highest chronostratigraphic series attributable to the stratigraphic horizon from which the cataloged item was collected.")      },
1474
        { "latestEraOrHighestErathem",      N_("latestEraOrHighestErathem"),      "Text",      xmpText,      xmpExternal,      N_("The full name of the latest possible geochronologic era or highest chronostratigraphic erathem attributable to the stratigraphic horizon from which the cataloged item was collected.")      },
1475
        { "latestPeriodOrHighestSystem",      N_("latestPeriodOrHighestSystem"),      "Text",      xmpText,      xmpExternal,      N_("The full name of the latest possible geochronologic period or highest chronostratigraphic system attributable to the stratigraphic horizon from which the cataloged item was collected.")      },
1476
        { "lifeStage",      N_("lifeStage"),      "Text",      xmpText,      xmpExternal,      N_("The age class or life stage of the biological individual(s) at the time the Occurrence was recorded. Recommended best practice is to use a controlled vocabulary.")      },
1477
        { "lithostratigraphicTerms",      N_("lithostratigraphicTerms"),      "Text",      xmpText,      xmpExternal,      N_("The combination of all litho-stratigraphic names for the rock from which the cataloged item was collected.")      },
1478
        { "locality",      N_("locality"),      "Text",      xmpText,      xmpExternal,      N_("The specific description of the place. Less specific geographic information can be provided in other geographic terms (higherGeography, continent, country, stateProvince, county, municipality, waterBody, island, islandGroup). This term may contain information modified from the original to correct perceived errors or standardize the description.")      },
1479
        { "locationAccordingTo",      N_("locationAccordingTo"),      "Text",      xmpText,      xmpExternal,      N_("Information about the source of this Location information. Could be a publication (gazetteer), institution, or team of individuals.")      },
1480
        { "locationID",      N_("locationID"),      "Text",      xmpText,      xmpExternal,      N_("An identifier for the set of location information (data associated with Location). May be a global unique identifier or an identifier specific to the data set.")      },
1481
        { "locationRemarks",      N_("locationRemarks"),      "Text",      xmpText,      xmpExternal,      N_("Comments or notes about the Location.")      },
1482
        { "lowestBiostratigraphicZone",      N_("lowestBiostratigraphicZone"),      "Text",      xmpText,      xmpExternal,      N_("The full name of the lowest possible geological biostratigraphic zone of the stratigraphic horizon from which the cataloged item was collected.")      },
1483
        { "maximumDepthInMeters",      N_("maximumDepthInMeters"),      "Text",      xmpText,      xmpExternal,      N_("The greater depth of a range of depth below the local surface, in meters.")      },
1484
        { "maximumDistanceAboveSurfaceInMeters",      N_("maximumDistanceAboveSurfaceInMeters"),      "Text",      xmpText,      xmpExternal,      N_("The greater distance in a range of distance from a reference surface in the vertical direction, in meters. Use positive values for locations above the surface, negative values for locations below. If depth measures are given, the reference surface is the location given by the depth, otherwise the reference surface is the location given by the elevation.")      },
1485
        { "maximumElevationInMeters",      N_("maximumElevationInMeters"),      "Text",      xmpText,      xmpExternal,      N_("The upper limit of the range of elevation (altitude, usually above sea level), in meters.")      },
1486
        { "measurementAccuracy",      N_("measurementAccuracy"),      "Text",      xmpText,      xmpExternal,      N_("The description of the potential error associated with the measurementValue.")      },
1487
        { "measurementDeterminedBy",      N_("measurementDeterminedBy"),      "Text",      xmpText,      xmpExternal,      N_("A list (concatenated and separated) of names of people, groups, or organizations who determined the value of the MeasurementOrFact.")      },
1488
        { "measurementDeterminedDate",      N_("measurementDeterminedDate"),      "Date",      xmpText,      xmpInternal,      N_("The date on which the MeasurementOrFact was made. Recommended best practice is to use an encoding scheme, such as ISO 8601:2004(E).")      },
1489
        { "measurementID",      N_("measurementID"),      "Text",      xmpText,      xmpExternal,      N_("An identifier for the MeasurementOrFact (information pertaining to measurements, facts, characteristics, or assertions). May be a global unique identifier or an identifier specific to the data set.")      },
1490
        { "measurementMethod",      N_("measurementMethod"),      "Text",      xmpText,      xmpExternal,      N_("A description of or reference to (publication, URI) the method or protocol used to determine the measurement, fact, characteristic, or assertion.")      },
1491
        { "measurementRemarks",      N_("measurementRemarks"),      "Text",      xmpText,      xmpExternal,      N_("Comments or notes accompanying the MeasurementOrFact.")      },
1492
        { "measurementType",      N_("measurementType"),      "Text",      xmpText,      xmpExternal,      N_("The nature of the measurement, fact, characteristic, or assertion. Recommended best practice is to use a controlled vocabulary.")      },
1493
        { "measurementUnit",      N_("measurementUnit"),      "Text",      xmpText,      xmpExternal,      N_("The units associated with the measurementValue. Recommended best practice is to use the International System of Units (SI).")      },
1494
        { "measurementValue",      N_("measurementValue"),      "Text",      xmpText,      xmpExternal,      N_("The value of the measurement, fact, characteristic, or assertion.")      },
1495
        { "member",      N_("member"),      "Text",      xmpText,      xmpExternal,      N_("The full name of the lithostratigraphic member from which the cataloged item was collected.")      },
1496
        { "minimumDepthInMeters",      N_("minimumDepthInMeters"),      "Text",      xmpText,      xmpExternal,      N_("The lesser depth of a range of depth below the local surface, in meters.")      },
1497
        { "minimumDistanceAboveSurfaceInMeters",      N_("minimumDistanceAboveSurfaceInMeters"),      "Text",      xmpText,      xmpExternal,      N_("The lesser distance in a range of distance from a reference surface in the vertical direction, in meters. Use positive values for locations above the surface, negative values for locations below. If depth measures are given, the reference surface is the location given by the depth, otherwise the reference surface is the location given by the elevation.")      },
1498
        { "minimumElevationInMeters",      N_("minimumElevationInMeters"),      "Text",      xmpText,      xmpExternal,      N_("The lower limit of the range of elevation (altitude, usually above sea level), in meters.")      },
1499
        { "modified",      N_("modified"),      "Text",      xmpText,      xmpExternal,      N_("The most recent date-time on which the resource was changed. For Darwin Core, recommended best practice is to use an encoding scheme, such as ISO 8601:2004(E).")      },
1500
        { "month",      N_("month"),      "Integer",      unsignedLong,      xmpInternal,      N_("The ordinal month in which the Event occurred.")      },
1501
        { "municipality",      N_("municipality"),      "Text",      xmpText,      xmpExternal,      N_("The full, unabbreviated name of the next smaller administrative region than county (city, municipality, etc.) in which the Location occurs. Do not use this term for a nearby named place that does not contain the actual location.")      },
1502
        { "nameAccordingTo",      N_("nameAccordingTo"),      "Text",      xmpText,      xmpExternal,      N_("The reference to the source in which the specific taxon concept circumscription is defined or implied - traditionally signified by the Latin \"sensu\" or \"sec.\" (from secundum, meaning \"according to\"). For taxa that result from identifications, a reference to the keys, monographs, experts and other sources should be given.")      },
1503
        { "nameAccordingToID",      N_("nameAccordingToID"),      "Text",      xmpText,      xmpExternal,      N_("An identifier for the source in which the specific taxon concept circumscription is defined or implied. See nameAccordingTo.")      },
1504
        { "namePublishedIn",      N_("namePublishedIn"),      "Text",      xmpText,      xmpExternal,      N_("A reference for the publication in which the scientificName was originally established under the rules of the associated nomenclaturalCode.")      },
1505
        { "namePublishedInID",      N_("namePublishedInID"),      "Text",      xmpText,      xmpExternal,      N_("An identifier for the publication in which the scientificName was originally established under the rules of the associated nomenclaturalCode.")      },
1506
        { "namePublishedInYear",      N_("namePublishedInYear"),      "Text",      xmpText,      xmpExternal,      N_("The four-digit year in which the scientificName was published.")      },
1507
        { "nomenclaturalCode",      N_("nomenclaturalCode"),      "Text",      xmpText,      xmpExternal,      N_("The nomenclatural code (or codes in the case of an ambiregnal name) under which the scientificName is constructed. Recommended best practice is to use a controlled vocabulary.")      },
1508
        { "nomenclaturalStatus",      N_("nomenclaturalStatus"),      "Text",      xmpText,      xmpExternal,      N_("The status related to the original publication of the name and its conformance to the relevant rules of nomenclature. It is based essentially on an algorithm according to the business rules of the code. It requires no taxonomic opinion.")      },
1509
        { "occurrenceID",      N_("occurrenceID"),      "Text",      xmpText,      xmpExternal,      N_("An identifier for the Occurrence (as opposed to a particular digital record of the occurrence). In the absence of a persistent global unique identifier, construct one from a combination of identifiers in the record that will most closely make the occurrenceID globally unique.")      },
1510
        { "occurrenceRemarks",      N_("occurrenceRemarks"),      "Text",      xmpText,      xmpExternal,      N_("Comments or notes about the Occurrence.")      },
1511
        { "occurrenceStatus",      N_("occurrenceStatus"),      "Text",      xmpText,      xmpExternal,      N_("A statement about the presence or absence of a Taxon at a Location. Recommended best practice is to use a controlled vocabulary.")      },
1512
        { "order",      N_("order"),      "Text",      xmpText,      xmpExternal,      N_("The full scientific name of the order in which the taxon is classified.")      },
1513
        { "originalNameUsage",      N_("originalNameUsage"),      "Text",      xmpText,      xmpExternal,      N_("The taxon name, with authorship and date information if known, as it originally appeared when first established under the rules of the associated nomenclaturalCode. The basionym (botany) or basonym (bacteriology) of the scientificName or the senior/earlier homonym for replaced names.")      },
1514
        { "originalNameUsageID",      N_("originalNameUsageID"),      "Text",      xmpText,      xmpExternal,      N_("An identifier for the name usage (documented meaning of the name according to a source) in which the terminal element of the scientificName was originally established under the rules of the associated nomenclaturalCode.")      },
1515
        { "otherCatalogNumbers",      N_("otherCatalogNumbers"),      "Text",      xmpText,      xmpExternal,      N_("A list (concatenated and separated) of previous or alternate fully qualified catalog numbers or other human-used identifiers for the same Occurrence, whether in the current or any other data set or collection.")      },
1516
        { "ownerInstitutionCode",      N_("ownerInstitutionCode"),      "Text",      xmpText,      xmpExternal,      N_("The name (or acronym) in use by the institution having ownership of the object(s) or information referred to in the record.")      },
1517
        { "parentNameUsage",      N_("parentNameUsage"),      "Text",      xmpText,      xmpExternal,      N_("The full name, with authorship and date information if known, of the direct, most proximate higher-rank parent taxon (in a classification) of the most specific element of the scientificName.")      },
1518
        { "parentNameUsageID",      N_("parentNameUsageID"),      "Text",      xmpText,      xmpExternal,      N_("An identifier for the name usage (documented meaning of the name according to a source) of the direct, most proximate higher-rank parent taxon (in a classification) of the most specific element of the scientificName.")      },
1519
        { "phylum",      N_("phylum"),      "Text",      xmpText,      xmpExternal,      N_("The full scientific name of the phylum or division in which the taxon is classified.")      },
1520
        { "pointRadiusSpatialFit",      N_("pointRadiusSpatialFit"),      "Text",      xmpText,      xmpExternal,      N_("The ratio of the area of the point-radius (decimalLatitude, decimalLongitude, coordinateUncertaintyInMeters) to the area of the true (original, or most specific) spatial representation of the Location. Legal values are 0, greater than or equal to 1, or undefined. A value of 1 is an exact match or 100% overlap. A value of 0 should be used if the given point-radius does not completely contain the original representation. The pointRadiusSpatialFit is undefined (and should be left blank) if the original representation is a point without uncertainty and the given georeference is not that same point (without uncertainty). If both the original and the given georeference are the same point, the pointRadiusSpatialFit is 1.")      },
1521
        { "preparations",      N_("preparations"),      "Text",      xmpText,      xmpExternal,      N_("A list (concatenated and separated) of preparations and preservation methods for a specimen.")      },
1522
        { "previousIdentifications",      N_("previousIdentifications"),      "Text",      xmpText,      xmpExternal,      N_("A list (concatenated and separated) of previous assignments of names to the Occurrence.")      },
1523
        { "recordedBy",      N_("recordedBy"),      "Text",      xmpText,      xmpExternal,      N_("A list (concatenated and separated) of names of people, groups, or organizations responsible for recording the original Occurrence. The primary collector or observer, especially one who applies a personal identifier (recordNumber), should be listed first.")      },
1524
        { "recordNumber",      N_("recordNumber"),      "Text",      xmpText,      xmpExternal,      N_("An identifier given to the Occurrence at the time it was recorded. Often serves as a link between field notes and an Occurrence record, such as a specimen collector's number.")      },
1525
        { "references",      N_("references"),      "Text",      xmpText,      xmpExternal,      N_("A related resource that is referenced, cited, or otherwise pointed to by the described resource.")      },
1526
        { "relatedResourceID",      N_("relatedResourceID"),      "Text",      xmpText,      xmpExternal,      N_("An identifier for a related resource (the object, rather than the subject of the relationship).")      },
1527
        { "relationshipAccordingTo",      N_("relationshipAccordingTo"),      "Text",      xmpText,      xmpExternal,      N_("The source (person, organization, publication, reference) establishing the relationship between the two resources.")      },
1528
        { "relationshipEstablishedDate",      N_("relationshipEstablishedDate"),      "Date",      xmpText,      xmpInternal,      N_("The date-time on which the relationship between the two resources was established. Recommended best practice is to use an encoding scheme, such as ISO 8601:2004(E).")      },
1529
        { "relationshipOfResource",      N_("relationshipOfResource"),      "Text",      xmpText,      xmpExternal,      N_("The relationship of the resource identified by relatedResourceID to the subject (optionally identified by the resourceID). Recommended best practice is to use a controlled vocabulary.")      },
1530
        { "relationshipRemarks",      N_("relationshipRemarks"),      "Text",      xmpText,      xmpExternal,      N_("Comments or notes about the relationship between the two resources.")      },
1531
        { "reproductiveCondition",      N_("reproductiveCondition"),      "Text",      xmpText,      xmpExternal,      N_("The reproductive condition of the biological individual(s) represented in the Occurrence. Recommended best practice is to use a controlled vocabulary.")      },
1532
        { "resourceID",      N_("resourceID"),      "Text",      xmpText,      xmpExternal,      N_("An identifier for the resource that is the subject of the relationship.")      },
1533
        { "resourceRelationshipID",      N_("resourceRelationshipID"),      "Text",      xmpText,      xmpExternal,      N_("An identifier for an instance of relationship between one resource (the subject) and another (relatedResource, the object).")      },
1534
        { "rights",      N_("rights"),      "Text",      xmpText,      xmpExternal,      N_("Information about rights held in and over the resource. Typically, rights information includes a statement about various property rights associated with the resource, including intellectual property rights.")      },
1535
        { "rightsHolder",      N_("rightsHolder"),      "Text",      xmpText,      xmpExternal,      N_("A person or organization owning or managing rights over the resource.")      },
1536
        { "samplingEffort",      N_("samplingEffort"),      "Text",      xmpText,      xmpExternal,      N_("The amount of effort expended during an Event.")      },
1537
        { "samplingProtocol",      N_("samplingProtocol"),      "Text",      xmpText,      xmpExternal,      N_("The name of, reference to, or description of the method or protocol used during an Event.")      },
1538
        { "scientificName",      N_("scientificName"),      "Text",      xmpText,      xmpExternal,      N_("The full scientific name, with authorship and date information if known. When forming part of an Identification, this should be the name in lowest level taxonomic rank that can be determined. This term should not contain identification qualifications, which should instead be supplied in the IdentificationQualifier term.")      },
1539
        { "scientificNameAuthorship",      N_("scientificNameAuthorship"),      "Text",      xmpText,      xmpExternal,      N_("The authorship information for the scientificName formatted according to the conventions of the applicable nomenclaturalCode.")      },
1540
        { "scientificNameID",      N_("scientificNameID"),      "Text",      xmpText,      xmpExternal,      N_("An identifier for the nomenclatural (not taxonomic) details of a scientific name.")      },
1541
        { "sex",      N_("sex"),      "Text",      xmpText,      xmpExternal,      N_("The sex of the biological individual(s) represented in the Occurrence. Recommended best practice is to use a controlled vocabulary.")      },
1542
        { "specificEpithet",      N_("specificEpithet"),      "Text",      xmpText,      xmpExternal,      N_("The name of the first or species epithet of the scientificName.")      },
1543
        { "startDayOfYear",      N_("startDayOfYear"),      "Integer",      unsignedLong,      xmpInternal,      N_("The earliest ordinal day of the year on which the Event occurred (1 for January 1, 365 for December 31, except in a leap year, in which case it is 366).")      },
1544
        { "stateProvince",      N_("stateProvince"),      "Text",      xmpText,      xmpExternal,      N_("The name of the next smaller administrative region than country (state, province, canton, department, region, etc.) in which the Location occurs.")      },
1545
        { "subgenus",      N_("subgenus"),      "Text",      xmpText,      xmpExternal,      N_("The full scientific name of the subgenus in which the taxon is classified. Values should include the genus to avoid homonym confusion.")      },
1546
        { "taxonConceptID",      N_("taxonConceptID"),      "Text",      xmpText,      xmpExternal,      N_("An identifier for the taxonomic concept to which the record refers - not for the nomenclatural details of a taxon.")      },
1547
        { "taxonID",      N_("taxonID"),      "Text",      xmpText,      xmpExternal,      N_("An identifier for the set of taxon information (data associated with the Taxon class). May be a global unique identifier or an identifier specific to the data set.")      },
1548
        { "taxonomicStatus",      N_("taxonomicStatus"),      "Text",      xmpText,      xmpExternal,      N_("The status of the use of the scientificName as a label for a taxon. Requires taxonomic opinion to define the scope of a taxon. Rules of priority then are used to define the taxonomic status of the nomenclature contained in that scope, combined with the experts opinion. It must be linked to a specific taxonomic reference that defines the concept. Recommended best practice is to use a controlled vocabulary.")      },
1549
        { "taxonRank",      N_("taxonRank"),      "Text",      xmpText,      xmpExternal,      N_("The taxonomic rank of the most specific name in the scientificName. Recommended best practice is to use a controlled vocabulary.")      },
1550
        { "taxonRemarks",      N_("taxonRemarks"),      "Text",      xmpText,      xmpExternal,      N_("Comments or notes about the taxon or name.")      },
1551
        { "type",      N_("type"),      "Text",      xmpText,      xmpExternal,      N_("The nature or genre of the resource. For Darwin Core, recommended best practice is to use the name of the class that defines the root of the record.")      },
1552
        { "typeStatus",      N_("typeStatus"),      "Text",      xmpText,      xmpExternal,      N_("A list (concatenated and separated) of nomenclatural types (type status, typified scientific name, publication) applied to the subject.")      },
1553
        { "verbatimCoordinates",      N_("verbatimCoordinates"),      "Text",      xmpText,      xmpExternal,      N_("The verbatim original spatial coordinates of the Location. The coordinate ellipsoid, geodeticDatum, or full Spatial Reference System (SRS) for these coordinates should be stored in verbatimSRS and the coordinate system should be stored in verbatimCoordinateSystem.")      },
1554
        { "verbatimCoordinateSystem",      N_("verbatimCoordinateSystem"),      "Text",      xmpText,      xmpExternal,      N_("The spatial coordinate system for the verbatimLatitude and verbatimLongitude or the verbatimCoordinates of the Location. Recommended best practice is to use a controlled vocabulary.")      },
1555
        { "verbatimDepth",      N_("verbatimDepth"),      "Text",      xmpText,      xmpExternal,      N_("The original description of the depth below the local surface.")      },
1556
        { "verbatimElevation",      N_("verbatimElevation"),      "Text",      xmpText,      xmpExternal,      N_("The original description of the elevation (altitude, usually above sea level) of the Location.")      },
1557
        { "verbatimEventDate",      N_("verbatimEventDate"),      "Text",      xmpText,      xmpExternal,      N_("The verbatim original representation of the date and time information for an Event.")      },
1558
        { "verbatimLatitude",      N_("verbatimLatitude"),      "Text",      xmpText,      xmpExternal,      N_("The verbatim original latitude of the Location. The coordinate ellipsoid, geodeticDatum, or full Spatial Reference System (SRS) for these coordinates should be stored in verbatimSRS and the coordinate system should be stored in verbatimCoordinateSystem.")      },
1559
        { "verbatimLocality",      N_("verbatimLocality"),      "Text",      xmpText,      xmpExternal,      N_("The original textual description of the place.")      },
1560
        { "verbatimLongitude",      N_("verbatimLongitude"),      "Text",      xmpText,      xmpExternal,      N_("The verbatim original longitude of the Location. The coordinate ellipsoid, geodeticDatum, or full Spatial Reference System (SRS) for these coordinates should be stored in verbatimSRS and the coordinate system should be stored in verbatimCoordinateSystem.")      },
1561
        { "verbatimSRS",      N_("verbatimSRS"),      "Text",      xmpText,      xmpExternal,      N_("The ellipsoid, geodetic datum, or spatial reference system (SRS) upon which coordinates given in verbatimLatitude and verbatimLongitude, or verbatimCoordinates are based. Recommended best practice is use the EPSG code as a controlled vocabulary to provide an SRS, if known. Otherwise use a controlled vocabulary for the name or code of the geodetic datum, if known. Otherwise use a controlled vocabulary for the name or code of the ellipsoid, if known. If none of these is known, use the value \"unknown\".")      },
1562
        { "verbatimTaxonRank",      N_("verbatimTaxonRank"),      "Text",      xmpText,      xmpExternal,      N_("The taxonomic rank of the most specific name in the scientificName as it appears in the original record.")      },
1563
        { "vernacularName",      N_("vernacularName"),      "Text",      xmpText,      xmpExternal,      N_("A common or vernacular name.")      },
1564
        { "waterBody",      N_("waterBody"),      "Text",      xmpText,      xmpExternal,      N_("The name of the water body in which the Location occurs. Recommended best practice is to use a controlled vocabulary such as the Getty Thesaurus of Geographic Names.")      },
1565
        { "year",      N_("year"),      "Integer",      unsignedLong,      xmpInternal,      N_("The four-digit year in which the Event occurred, according to the Common Era Calendar.")      },      // End of list marker
1566
        { 0, 0, 0, invalidTypeId, xmpInternal, 0 }
1567
    };
1568

    
1569
    extern const XmpPrintInfo xmpPrintInfo[] = {
1570
        {"Xmp.crs.CropUnits",                 EXV_PRINT_TAG(crsCropUnits)   },
1571
        {"Xmp.exif.ApertureValue",            print0x9202                   },
1572
        {"Xmp.exif.BrightnessValue",          printFloat                    },
1573
        {"Xmp.exif.ColorSpace",               print0xa001                   },
1574
        {"Xmp.exif.ComponentsConfiguration",  print0x9101                   },
1575
        {"Xmp.exif.Contrast",                 printNormalSoftHard           },
1576
        {"Xmp.exif.CreateDate",               printXmpDate                  },
1577
        {"Xmp.exif.CustomRendered",           print0xa401                   },
1578
        {"Xmp.exif.DateTimeOriginal",         printXmpDate                  },
1579
        {"Xmp.exif.ExifVersion",              printXmpVersion               },
1580
        {"Xmp.exif.ExposureBiasValue",        print0x9204                   },
1581
        {"Xmp.exif.ExposureMode",             print0xa402                   },
1582
        {"Xmp.exif.ExposureProgram",          print0x8822                   },
1583
        {"Xmp.exif.FileSource",               print0xa300                   },
1584
        {"Xmp.exif.FlashpixVersion",          printXmpVersion               },
1585
        {"Xmp.exif.FNumber",                  print0x829d                   },
1586
        {"Xmp.exif.FocalLength",              print0x920a                   },
1587
        {"Xmp.exif.FocalPlaneResolutionUnit", printExifUnit                 },
1588
        {"Xmp.exif.FocalPlaneXResolution",    printFloat                    },
1589
        {"Xmp.exif.FocalPlaneYResolution",    printFloat                    },
1590
        {"Xmp.exif.GainControl",              print0xa407                   },
1591
        {"Xmp.exif.GPSAltitudeRef",           print0x0005                   },
1592
        {"Xmp.exif.GPSDestBearingRef",        printGPSDirRef                },
1593
        {"Xmp.exif.GPSDestDistanceRef",       print0x0019                   },
1594
        {"Xmp.exif.GPSDifferential",          print0x001e                   },
1595
        {"Xmp.exif.GPSImgDirectionRef",       printGPSDirRef                },
1596
        {"Xmp.exif.GPSMeasureMode",           print0x000a                   },
1597
        {"Xmp.exif.GPSSpeedRef",              print0x000c                   },
1598
        {"Xmp.exif.GPSStatus",                print0x0009                   },
1599
        {"Xmp.exif.GPSTimeStamp",             printXmpDate                  },
1600
        {"Xmp.exif.GPSTrackRef",              printGPSDirRef                },
1601
        {"Xmp.exif.LightSource",              print0x9208                   },
1602
        {"Xmp.exif.MeteringMode",             print0x9207                   },
1603
        {"Xmp.exif.ModifyDate",               printXmpDate                  },
1604
        {"Xmp.exif.Saturation",               print0xa409                   },
1605
        {"Xmp.exif.SceneCaptureType",         print0xa406                   },
1606
        {"Xmp.exif.SceneType",                print0xa301                   },
1607
        {"Xmp.exif.SensingMethod",            print0xa217                   },
1608
        {"Xmp.exif.Sharpness",                printNormalSoftHard           },
1609
        {"Xmp.exif.ShutterSpeedValue",        print0x9201                   },
1610
        {"Xmp.exif.SubjectDistanceRange",     print0xa40c                   },
1611
        {"Xmp.exif.WhiteBalance",             print0xa403                   },
1612
        {"Xmp.tiff.Orientation",              print0x0112                   },
1613
        {"Xmp.tiff.ResolutionUnit",           printExifUnit                 },
1614
        {"Xmp.tiff.XResolution",              printLong                     },
1615
        {"Xmp.tiff.YCbCrPositioning",         print0x0213                   },
1616
        {"Xmp.tiff.YResolution",              printLong                     },
1617
        {"Xmp.iptcExt.DigitalSourcefileType",    EXV_PRINT_VOCABULARY(iptcExtDigitalSourcefileType)   },
1618
        {"Xmp.plus.AdultContentWarning",         EXV_PRINT_VOCABULARY(plusAdultContentWarning)        },
1619
        {"Xmp.plus.CopyrightStatus",             EXV_PRINT_VOCABULARY(plusCopyrightStatus)            },
1620
        {"Xmp.plus.CreditLineRequired",          EXV_PRINT_VOCABULARY(plusCreditLineRequired)         },
1621
        {"Xmp.plus.ImageAlterationConstraints",  EXV_PRINT_VOCABULARY(plusImageAlterationConstraints) },
1622
        {"Xmp.plus.ImageDuplicationConstraints", EXV_PRINT_VOCABULARY(plusImageDuplicationConstraints)},
1623
        {"Xmp.plus.ImageFileConstraints",        EXV_PRINT_VOCABULARY(plusImageFileConstraints)       },
1624
        {"Xmp.plus.ImageFileFormatAsDelivered",  EXV_PRINT_VOCABULARY(plusImageFileFormatAsDelivered) },
1625
        {"Xmp.plus.ImageFileSizeAsDelivered",    EXV_PRINT_VOCABULARY(plusImageFileSizeAsDelivered)   },
1626
        {"Xmp.plus.ImageType",                   EXV_PRINT_VOCABULARY(plusImageType)                  },
1627
        {"Xmp.plus.LicensorTelephoneType1",      EXV_PRINT_VOCABULARY(plusLicensorTelephoneType)      },
1628
        {"Xmp.plus.LicensorTelephoneType2",      EXV_PRINT_VOCABULARY(plusLicensorTelephoneType)      },
1629
        {"Xmp.plus.MinorModelAgeDisclosure",     EXV_PRINT_VOCABULARY(plusMinorModelAgeDisclosure)    },
1630
        {"Xmp.plus.ModelReleaseStatus",          EXV_PRINT_VOCABULARY(plusModelReleaseStatus)         },
1631
        {"Xmp.plus.PropertyReleaseStatus",       EXV_PRINT_VOCABULARY(plusPropertyReleaseStatus)      },
1632
        {"Xmp.plus.Reuse",                       EXV_PRINT_VOCABULARY(plusReuse)                      }
1633
    };
1634

    
1635
    XmpNsInfo::Ns::Ns(const std::string& ns)
1636
        : ns_(ns)
1637
    {
1638
    }
1639

    
1640
    XmpNsInfo::Prefix::Prefix(const std::string& prefix)
1641
        : prefix_(prefix)
1642
    {
1643
    }
1644

    
1645
    bool XmpNsInfo::operator==(const XmpNsInfo::Ns& ns) const
1646
    {
1647
        std::string n(ns_);
1648
        return n == ns.ns_;
1649
    }
1650

    
1651
    bool XmpNsInfo::operator==(const XmpNsInfo::Prefix& prefix) const
1652
    {
1653
        std::string p(prefix_);
1654
        return p == prefix.prefix_;
1655
    }
1656

    
1657
    bool XmpPropertyInfo::operator==(const std::string& name) const
1658
    {
1659
        std::string n(name_);
1660
        return n == name;
1661
    }
1662

    
1663
    XmpProperties::NsRegistry XmpProperties::nsRegistry_;
1664

    
1665
    const XmpNsInfo* XmpProperties::lookupNsRegistry(const XmpNsInfo::Prefix& prefix)
1666
    {
1667
        for (NsRegistry::const_iterator i = nsRegistry_.begin();
1668
             i != nsRegistry_.end(); ++i) {
1669
            if (i->second == prefix) return &(i->second);
1670
        }
1671
        return 0;
1672
    }
1673

    
1674
    void XmpProperties::registerNs(const std::string& ns,
1675
                                   const std::string& prefix)
1676
    {
1677
        std::string ns2 = ns;
1678
        if (   ns2.substr(ns2.size() - 1, 1) != "/"
1679
            && ns2.substr(ns2.size() - 1, 1) != "#") ns2 += "/";
1680
        // Check if there is already a registered namespace with this prefix
1681
        const XmpNsInfo* xnp = lookupNsRegistry(XmpNsInfo::Prefix(prefix));
1682
        if (xnp) {
1683
#ifndef SUPPRESS_WARNINGS
1684
            if (strcmp(xnp->ns_, ns2.c_str()) != 0) {
1685
                EXV_WARNING << "Updating namespace URI for " << prefix << " from "
1686
                            << xnp->ns_ << " to " << ns2 << "\n";
1687
            }
1688
#endif
1689
            unregisterNs(xnp->ns_);
1690
        }
1691
        // Allocated memory is freed when the namespace is unregistered.
1692
        // Using malloc/free for better system compatibility in case
1693
        // users don't unregister their namespaces explicitly.
1694
        XmpNsInfo xn;
1695
        char* c = static_cast<char*>(std::malloc(ns2.size() + 1));
1696
        std::strcpy(c, ns2.c_str());
1697
        xn.ns_ = c;
1698
        c = static_cast<char*>(std::malloc(prefix.size() + 1));
1699
        std::strcpy(c, prefix.c_str());
1700
        xn.prefix_ = c;
1701
        xn.xmpPropertyInfo_ = 0;
1702
        xn.desc_ = "";
1703
        nsRegistry_[ns2] = xn;
1704
    }
1705

    
1706
    void XmpProperties::unregisterNs(const std::string& ns)
1707
    {
1708
        NsRegistry::iterator i = nsRegistry_.find(ns);
1709
        if (i != nsRegistry_.end()) {
1710
            std::free(const_cast<char*>(i->second.prefix_));
1711
            std::free(const_cast<char*>(i->second.ns_));
1712
            nsRegistry_.erase(i);
1713
        }
1714
    }
1715

    
1716
    void XmpProperties::unregisterNs()
1717
    {
1718
        NsRegistry::iterator i = nsRegistry_.begin();
1719
        while (i != nsRegistry_.end()) {
1720
            NsRegistry::iterator kill = i++;
1721
            unregisterNs(kill->first);
1722
        }
1723
    }
1724

    
1725
    std::string XmpProperties::prefix(const std::string& ns)
1726
    {
1727
        std::string ns2 = ns;
1728
        if (   ns2.substr(ns2.size() - 1, 1) != "/"
1729
            && ns2.substr(ns2.size() - 1, 1) != "#") ns2 += "/";
1730
        NsRegistry::const_iterator i = nsRegistry_.find(ns2);
1731
        std::string p;
1732
        if (i != nsRegistry_.end()) {
1733
            p = i->second.prefix_;
1734
        }
1735
        else {
1736
            const XmpNsInfo* xn = find(xmpNsInfo, XmpNsInfo::Ns(ns2));
1737
            if (xn) p = std::string(xn->prefix_);
1738
        }
1739
        return p;
1740
    }
1741

    
1742
    std::string XmpProperties::ns(const std::string& prefix)
1743
    {
1744
        const XmpNsInfo* xn = lookupNsRegistry(XmpNsInfo::Prefix(prefix));
1745
        if (xn != 0) return xn->ns_;
1746
        return nsInfo(prefix)->ns_;
1747
    }
1748

    
1749
    const char* XmpProperties::propertyTitle(const XmpKey& key)
1750
    {
1751
        const XmpPropertyInfo* pi = propertyInfo(key);
1752
        return pi ? pi->title_ : 0;
1753
    }
1754

    
1755
    const char* XmpProperties::propertyDesc(const XmpKey& key)
1756
    {
1757
        const XmpPropertyInfo* pi = propertyInfo(key);
1758
        return pi ? pi->desc_ : 0;
1759
    }
1760

    
1761
    TypeId XmpProperties::propertyType(const XmpKey& key)
1762
    {
1763
        const XmpPropertyInfo* pi = propertyInfo(key);
1764
        return pi ? pi->typeId_ : xmpText;
1765
    }
1766

    
1767
    const XmpPropertyInfo* XmpProperties::propertyInfo(const XmpKey& key)
1768
    {
1769
        std::string prefix = key.groupName();
1770
        std::string property = key.tagName();
1771
        // If property is a path for a nested property, determines the innermost element
1772
        std::string::size_type i = property.find_last_of('/');
1773
        if (i != std::string::npos) {
1774
            for (; i != std::string::npos && !isalpha(property[i]); ++i) {}
1775
            property = property.substr(i);
1776
            i = property.find_first_of(':');
1777
            if (i != std::string::npos) {
1778
                prefix = property.substr(0, i);
1779
                property = property.substr(i+1);
1780
            }
1781
#ifdef DEBUG
1782
            std::cout << "Nested key: " << key.key() << ", prefix: " << prefix
1783
                      << ", property: " << property << "\n";
1784
#endif
1785
        }
1786
        const XmpPropertyInfo* pl = propertyList(prefix);
1787
        if (!pl) return 0;
1788
        const XmpPropertyInfo* pi = 0;
1789
        for (int i = 0; pl[i].name_ != 0; ++i) {
1790
            if (0 == strcmp(pl[i].name_, property.c_str())) {
1791
                pi = pl + i;
1792
                break;
1793
            }
1794
        }
1795
        return pi;
1796
    }
1797

    
1798
    const char* XmpProperties::nsDesc(const std::string& prefix)
1799
    {
1800
        return nsInfo(prefix)->desc_;
1801
    }
1802

    
1803
    const XmpPropertyInfo* XmpProperties::propertyList(const std::string& prefix)
1804
    {
1805
        return nsInfo(prefix)->xmpPropertyInfo_;
1806
    }
1807

    
1808
    const XmpNsInfo* XmpProperties::nsInfo(const std::string& prefix)
1809
    {
1810
        const XmpNsInfo::Prefix pf(prefix);
1811
        const XmpNsInfo* xn = lookupNsRegistry(pf);
1812
        if (!xn) xn = find(xmpNsInfo, pf);
1813
        if (!xn) throw Error(35, prefix);
1814
        return xn;
1815
    }
1816

    
1817
    void XmpProperties::printProperties(std::ostream& os, const std::string& prefix)
1818
    {
1819
        const XmpPropertyInfo* pl = propertyList(prefix);
1820
        if (pl) {
1821
            for (int i = 0; pl[i].name_ != 0; ++i) {
1822
                os << pl[i];
1823
            }
1824
        }
1825

    
1826
    } // XmpProperties::printProperties
1827

    
1828
    std::ostream& XmpProperties::printProperty(std::ostream& os,
1829
                                               const std::string& key,
1830
                                               const Value& value)
1831
    {
1832
        PrintFct fct = printValue;
1833
        if (value.count() != 0) {
1834
            const XmpPrintInfo* info = find(xmpPrintInfo, key);
1835
            if (info) fct = info->printFct_;
1836
        }
1837
        return fct(os, value, 0);
1838
    }
1839

    
1840
    //! @cond IGNORE
1841

    
1842
    //! Internal Pimpl structure with private members and data of class XmpKey.
1843
    struct XmpKey::Impl {
1844
        Impl() {}                       //!< Default constructor
1845
        Impl(const std::string& prefix, const std::string& property); //!< Constructor
1846

    
1847
        /*!
1848
          @brief Parse and convert the \em key string into property and prefix.
1849
                 Updates data members if the string can be decomposed, or throws
1850
                 \em Error.
1851

    
1852
          @throw Error if the key cannot be decomposed.
1853
        */
1854
        void decomposeKey(const std::string& key);
1855

    
1856
        // DATA
1857
        static const char* familyName_; //!< "Xmp"
1858

    
1859
        std::string prefix_;            //!< Prefix
1860
        std::string property_;          //!< Property name
1861
    };
1862
    //! @endcond
1863

    
1864
    XmpKey::Impl::Impl(const std::string& prefix, const std::string& property)
1865
    {
1866
        // Validate prefix
1867
        if (XmpProperties::ns(prefix).empty()) throw Error(46, prefix);
1868

    
1869
        property_ = property;
1870
        prefix_ = prefix;
1871
    }
1872

    
1873
    const char* XmpKey::Impl::familyName_ = "Xmp";
1874

    
1875
    XmpKey::XmpKey(const std::string& key)
1876
        : p_(new Impl)
1877
    {
1878
        p_->decomposeKey(key);
1879
    }
1880

    
1881
    XmpKey::XmpKey(const std::string& prefix, const std::string& property)
1882
        : p_(new Impl(prefix, property))
1883
    {
1884
    }
1885

    
1886
    XmpKey::~XmpKey()
1887
    {
1888
        delete p_;
1889
    }
1890

    
1891
    XmpKey::XmpKey(const XmpKey& rhs)
1892
        : Key(rhs), p_(new Impl(*rhs.p_))
1893
    {
1894
    }
1895

    
1896
    XmpKey& XmpKey::operator=(const XmpKey& rhs)
1897
    {
1898
        if (this == &rhs) return *this;
1899
        Key::operator=(rhs);
1900
        *p_ = *rhs.p_;
1901
        return *this;
1902
    }
1903

    
1904
    XmpKey::AutoPtr XmpKey::clone() const
1905
    {
1906
        return AutoPtr(clone_());
1907
    }
1908

    
1909
    XmpKey* XmpKey::clone_() const
1910
    {
1911
        return new XmpKey(*this);
1912
    }
1913

    
1914
    std::string XmpKey::key() const
1915
    {
1916
        return std::string(p_->familyName_) + "." + p_->prefix_ + "." + p_->property_;
1917
    }
1918

    
1919
    const char* XmpKey::familyName() const
1920
    {
1921
        return p_->familyName_;
1922
    }
1923

    
1924
    std::string XmpKey::groupName() const
1925
    {
1926
        return p_->prefix_;
1927
    }
1928

    
1929
    std::string XmpKey::tagName() const
1930
    {
1931
        return p_->property_;
1932
    }
1933

    
1934
    std::string XmpKey::tagLabel() const
1935
    {
1936
        const char* pt = XmpProperties::propertyTitle(*this);
1937
        if (!pt) return tagName();
1938
        return pt;
1939
    }
1940

    
1941
    uint16_t XmpKey::tag() const
1942
    {
1943
        return 0;
1944
    }
1945

    
1946
    std::string XmpKey::ns() const
1947
    {
1948
        return XmpProperties::ns(p_->prefix_);
1949
    }
1950

    
1951
    void XmpKey::Impl::decomposeKey(const std::string& key)
1952
    {
1953
        // Get the family name, prefix and property name parts of the key
1954
        std::string::size_type pos1 = key.find('.');
1955
        if (pos1 == std::string::npos) throw Error(6, key);
1956
        std::string familyName = key.substr(0, pos1);
1957
        if (0 != strcmp(familyName.c_str(), familyName_)) {
1958
            throw Error(6, key);
1959
        }
1960
        std::string::size_type pos0 = pos1 + 1;
1961
        pos1 = key.find('.', pos0);
1962
        if (pos1 == std::string::npos) throw Error(6, key);
1963
        std::string prefix = key.substr(pos0, pos1 - pos0);
1964
        if (prefix == "") throw Error(6, key);
1965
        std::string property = key.substr(pos1 + 1);
1966
        if (property == "") throw Error(6, key);
1967

    
1968
        // Validate prefix
1969
        if (XmpProperties::ns(prefix).empty()) throw Error(46, prefix);
1970

    
1971
        property_ = property;
1972
        prefix_ = prefix;
1973
    } // XmpKey::Impl::decomposeKey
1974

    
1975
    // *************************************************************************
1976
    // free functions
1977
    std::ostream& operator<<(std::ostream& os, const XmpPropertyInfo& property)
1978
    {
1979
        return os << property.name_                       << ",\t"
1980
                  << property.title_                      << ",\t"
1981
                  << property.xmpValueType_               << ",\t"
1982
                  << TypeInfo::typeName(property.typeId_) << ",\t"
1983
                  << ( property.xmpCategory_ == xmpExternal ? "External" : "Internal" ) << ",\t"
1984
                  << property.desc_                       << "\n";
1985
    }
1986
    //! @endcond
1987

    
1988
}                                       // namespace Exiv2
(7-7/13)