File: iptc-tag.xml

package info (click to toggle)
libiptcdata 1.0.2%2Blibtool01-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 2,916 kB
  • ctags: 978
  • sloc: sh: 9,445; ansic: 4,092; xml: 2,798; makefile: 123; python: 62; sed: 16
file content (556 lines) | stat: -rw-r--r-- 24,028 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
<?xml version="1.0"?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" 
               "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
<!ENTITY iptc-overview SYSTEM "overview.sgml">
<!ENTITY iptc-about SYSTEM "about.sgml">
<!ENTITY iptc-commandline SYSTEM "commandline.sgml">
<!ENTITY iptc-i18n SYSTEM "i18n.sgml">
<!ENTITY iptc-libjpeg SYSTEM "libjpeg.sgml">
<!ENTITY version SYSTEM "version.xml">
]>
<refentry id="libiptcdata-tag">
<refmeta>
<refentrytitle role="top_of_page">Tag Specifications</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>LIBIPTCDATA Library</refmiscinfo>
</refmeta>

<refnamediv>
<refname>Tag Specifications</refname>
<refpurpose>querying tag usage information from the IPTC IIM specification</refpurpose>
<!--[<xref linkend="desc" endterm="desc.title"/>]-->
</refnamediv>

<refsynopsisdiv role="synopsis">
<title role="synopsis.title">Synopsis</title>

<synopsis>



enum                <link linkend="IptcRecord">IptcRecord</link>;
enum                <link linkend="IptcTag">IptcTag</link>;

                    <link linkend="IptcTagInfo">IptcTagInfo</link>;
enum                <link linkend="IptcFormat">IptcFormat</link>;
enum                <link linkend="IptcMandatory">IptcMandatory</link>;
enum                <link linkend="IptcRepeatable">IptcRepeatable</link>;

const <link linkend="char">char</link>*         <link linkend="iptc-tag-get-name">iptc_tag_get_name</link>                   (<link linkend="IptcRecord">IptcRecord</link> record,
                                                         <link linkend="IptcTag">IptcTag</link> tag);
<link linkend="char">char</link>*               <link linkend="iptc-tag-get-title">iptc_tag_get_title</link>                  (<link linkend="IptcRecord">IptcRecord</link> record,
                                                         <link linkend="IptcTag">IptcTag</link> tag);
<link linkend="char">char</link>*               <link linkend="iptc-tag-get-description">iptc_tag_get_description</link>            (<link linkend="IptcRecord">IptcRecord</link> record,
                                                         <link linkend="IptcTag">IptcTag</link> tag);
const <link linkend="IptcTagInfo">IptcTagInfo</link>*  <link linkend="iptc-tag-get-info">iptc_tag_get_info</link>                   (<link linkend="IptcRecord">IptcRecord</link> record,
                                                         <link linkend="IptcTag">IptcTag</link> tag);
<link linkend="char">char</link>*               <link linkend="iptc-format-get-name">iptc_format_get_name</link>                (<link linkend="IptcFormat">IptcFormat</link> format);
<link linkend="int">int</link>                 <link linkend="iptc-tag-find-by-name">iptc_tag_find_by_name</link>               (const <link linkend="char">char</link> *name,
                                                         <link linkend="IptcRecord">IptcRecord</link> *record,
                                                         <link linkend="IptcTag">IptcTag</link> *tag);
</synopsis>
</refsynopsisdiv>









<refsect1 role="desc">
<title role="desc.title">Description</title>
<para>
These functions allow queries to the <ulink url="http://www.iptc.org/IIM">IPTC IIM
specification</ulink> which contains information about the purpose of each IPTC
tag, along with any requirements such as maximum/minimum data length, data type,
repeatability and whether the tag is mandatory.
</para>
</refsect1>

<refsect1 role="details">
<title role="details.title">Details</title>
<refsect2>
<title><anchor id="IptcRecord" role="enum"/>enum IptcRecord</title>
<indexterm><primary>IptcRecord</primary></indexterm><programlisting>typedef enum {
	IPTC_RECORD_OBJECT_ENV		= 1,
	IPTC_RECORD_APP_2		= 2,
	IPTC_RECORD_APP_3		= 3,
	IPTC_RECORD_APP_4		= 4,
	IPTC_RECORD_APP_5		= 5,
	IPTC_RECORD_APP_6		= 6,
	IPTC_RECORD_PREOBJ_DATA		= 7,
	IPTC_RECORD_OBJ_DATA		= 8,
	IPTC_RECORD_POSTOBJ_DATA	= 9
} IptcRecord;
</programlisting>
<para>
The record number that, together with the tag number (<link linkend="IptcTag"><type>IptcTag</type></link>),
uniquely identifies the purpose of a tag.
</para><variablelist role="enum">
<varlistentry>
<term><anchor id="IPTC-RECORD-OBJECT-ENV:CAPS" role="constant"/><literal>IPTC_RECORD_OBJECT_ENV</literal></term>
<listitem><simpara>the record used for file information such
as file format, version, unique identifier, etc.  This is often
not used for photo-management applications.
</simpara></listitem>
</varlistentry>
<varlistentry>
<term><anchor id="IPTC-RECORD-APP-2:CAPS" role="constant"/><literal>IPTC_RECORD_APP_2</literal></term>
<listitem><simpara>the record used for application-specific tags
such as Caption, Keywords, etc.
</simpara></listitem>
</varlistentry>
<varlistentry>
<term><anchor id="IPTC-RECORD-APP-3:CAPS" role="constant"/><literal>IPTC_RECORD_APP_3</literal></term>
<listitem><simpara>application-specific tags
</simpara></listitem>
</varlistentry>
<varlistentry>
<term><anchor id="IPTC-RECORD-APP-4:CAPS" role="constant"/><literal>IPTC_RECORD_APP_4</literal></term>
<listitem><simpara>application-specific tags
</simpara></listitem>
</varlistentry>
<varlistentry>
<term><anchor id="IPTC-RECORD-APP-5:CAPS" role="constant"/><literal>IPTC_RECORD_APP_5</literal></term>
<listitem><simpara>application-specific tags
</simpara></listitem>
</varlistentry>
<varlistentry>
<term><anchor id="IPTC-RECORD-APP-6:CAPS" role="constant"/><literal>IPTC_RECORD_APP_6</literal></term>
<listitem><simpara>application-specific tags
</simpara></listitem>
</varlistentry>
<varlistentry>
<term><anchor id="IPTC-RECORD-PREOBJ-DATA:CAPS" role="constant"/><literal>IPTC_RECORD_PREOBJ_DATA</literal></term>
<listitem><simpara>contains information about an encapsulated file
</simpara></listitem>
</varlistentry>
<varlistentry>
<term><anchor id="IPTC-RECORD-OBJ-DATA:CAPS" role="constant"/><literal>IPTC_RECORD_OBJ_DATA</literal></term>
<listitem><simpara>the encapsulated file data (usually not used)
</simpara></listitem>
</varlistentry>
<varlistentry>
<term><anchor id="IPTC-RECORD-POSTOBJ-DATA:CAPS" role="constant"/><literal>IPTC_RECORD_POSTOBJ_DATA</literal></term>
<listitem><simpara>followup information about an encapsulated file

</simpara></listitem>
</varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="IptcTag" role="enum"/>enum IptcTag</title>
<indexterm><primary>IptcTag</primary></indexterm><programlisting>typedef enum {
	IPTC_TAG_MODEL_VERSION		= 0,	/* Begin record 1 tags */
	IPTC_TAG_DESTINATION		= 5,
	IPTC_TAG_FILE_FORMAT		= 20,
	IPTC_TAG_FILE_VERSION		= 22,
	IPTC_TAG_SERVICE_ID		= 30,
	IPTC_TAG_ENVELOPE_NUM		= 40,
	IPTC_TAG_PRODUCT_ID		= 50,
	IPTC_TAG_ENVELOPE_PRIORITY	= 60,
	IPTC_TAG_DATE_SENT		= 70,
	IPTC_TAG_TIME_SENT		= 80,
	IPTC_TAG_CHARACTER_SET		= 90,
	IPTC_TAG_UNO			= 100,
	IPTC_TAG_ARM_ID			= 120,
	IPTC_TAG_ARM_VERSION		= 122,	/* End record 1 tags */
	IPTC_TAG_RECORD_VERSION		= 0,	/* Begin record 2 tags */
	IPTC_TAG_OBJECT_TYPE		= 3,
	IPTC_TAG_OBJECT_ATTRIBUTE	= 4,
	IPTC_TAG_OBJECT_NAME		= 5,
	IPTC_TAG_EDIT_STATUS		= 7,
	IPTC_TAG_EDITORIAL_UPDATE	= 8,
	IPTC_TAG_URGENCY		= 10,
	IPTC_TAG_SUBJECT_REFERENCE	= 12,
	IPTC_TAG_CATEGORY		= 15,
	IPTC_TAG_SUPPL_CATEGORY		= 20,
	IPTC_TAG_FIXTURE_ID		= 22,
	IPTC_TAG_KEYWORDS		= 25,
	IPTC_TAG_CONTENT_LOC_CODE	= 26,
	IPTC_TAG_CONTENT_LOC_NAME	= 27,
	IPTC_TAG_RELEASE_DATE		= 30,
	IPTC_TAG_RELEASE_TIME		= 35,
	IPTC_TAG_EXPIRATION_DATE	= 37,
	IPTC_TAG_EXPIRATION_TIME	= 38,
	IPTC_TAG_SPECIAL_INSTRUCTIONS	= 40,
	IPTC_TAG_ACTION_ADVISED		= 42,
	IPTC_TAG_REFERENCE_SERVICE	= 45,
	IPTC_TAG_REFERENCE_DATE		= 47,
	IPTC_TAG_REFERENCE_NUMBER	= 50,
	IPTC_TAG_DATE_CREATED		= 55,
	IPTC_TAG_TIME_CREATED		= 60,
	IPTC_TAG_DIGITAL_CREATION_DATE	= 62,
	IPTC_TAG_DIGITAL_CREATION_TIME	= 63,
	IPTC_TAG_ORIGINATING_PROGRAM	= 65,
	IPTC_TAG_PROGRAM_VERSION	= 70,
	IPTC_TAG_OBJECT_CYCLE		= 75,
	IPTC_TAG_BYLINE			= 80,
	IPTC_TAG_BYLINE_TITLE		= 85,
	IPTC_TAG_CITY			= 90,
	IPTC_TAG_SUBLOCATION		= 92,
	IPTC_TAG_STATE			= 95,
	IPTC_TAG_COUNTRY_CODE		= 100,
	IPTC_TAG_COUNTRY_NAME		= 101,
	IPTC_TAG_ORIG_TRANS_REF		= 103,
	IPTC_TAG_HEADLINE		= 105,
	IPTC_TAG_CREDIT			= 110,
	IPTC_TAG_SOURCE			= 115,
	IPTC_TAG_COPYRIGHT_NOTICE	= 116,
	IPTC_TAG_PICASA_UNKNOWN		= 117,
	IPTC_TAG_CONTACT		= 118,
	IPTC_TAG_CAPTION		= 120,
	IPTC_TAG_WRITER_EDITOR		= 122,
	IPTC_TAG_RASTERIZED_CAPTION	= 125,
	IPTC_TAG_IMAGE_TYPE		= 130,
	IPTC_TAG_IMAGE_ORIENTATION	= 131,
	IPTC_TAG_LANGUAGE_ID		= 135,
	IPTC_TAG_AUDIO_TYPE		= 150,
	IPTC_TAG_AUDIO_SAMPLING_RATE	= 151,
	IPTC_TAG_AUDIO_SAMPLING_RES	= 152,
	IPTC_TAG_AUDIO_DURATION		= 153,
	IPTC_TAG_AUDIO_OUTCUE		= 154,
	IPTC_TAG_PREVIEW_FORMAT		= 200,
	IPTC_TAG_PREVIEW_FORMAT_VER	= 201,
	IPTC_TAG_PREVIEW_DATA		= 202,	/* End record 2 tags */
	IPTC_TAG_SIZE_MODE		= 10,	/* Begin record 7 tags */
	IPTC_TAG_MAX_SUBFILE_SIZE	= 20,
	IPTC_TAG_SIZE_ANNOUNCED		= 90,
	IPTC_TAG_MAX_OBJECT_SIZE	= 95,	/* End record 7 tags */
	IPTC_TAG_SUBFILE		= 10,	/* Record 8 tags */
	IPTC_TAG_CONFIRMED_DATA_SIZE	= 10	/* Record 9 tags */
} IptcTag;
</programlisting>
<para>
The tag number that, together with the record number (<link linkend="IptcRecord"><type>IptcRecord</type></link>),
uniquely identifies the purpose of a tag.
</para></refsect2>
<refsect2>
<title><anchor id="IptcTagInfo" role="struct"/>IptcTagInfo</title>
<indexterm><primary>IptcTagInfo</primary></indexterm><programlisting>typedef struct {
	IptcRecord	record;
	IptcTag		tag;
	const char     *name;
	const char     *title;
	const char     *description;
	IptcFormat	format;
	IptcMandatory	mandatory;
	IptcRepeatable	repeatable;
	unsigned int	minbytes;
	unsigned int	maxbytes;
} IptcTagInfo;
</programlisting>
<para>
Contains static information about a specific tag (identified by its
record-tag pair) from the IPTC IIM specificiation.  This info is for
reference only and should never be modified by an application.
</para><variablelist role="struct">
<varlistentry>
<term><link linkend="IptcRecord">IptcRecord</link>&nbsp;<structfield>record</structfield>;</term>
<listitem><simpara>record number of the tag
</simpara></listitem>
</varlistentry>
<varlistentry>
<term><link linkend="IptcTag">IptcTag</link>&nbsp;<structfield>tag</structfield>;</term>
<listitem><simpara>dataset number of the tag
</simpara></listitem>
</varlistentry>
<varlistentry>
<term>const&nbsp;<link linkend="char">char</link>&nbsp;*<structfield>name</structfield>;</term>
<listitem><simpara>English name of the tag (no spaces)
</simpara></listitem>
</varlistentry>
<varlistentry>
<term>const&nbsp;<link linkend="char">char</link>&nbsp;*<structfield>title</structfield>;</term>
<listitem><simpara>English title of the tag (may contain spaces)
</simpara></listitem>
</varlistentry>
<varlistentry>
<term>const&nbsp;<link linkend="char">char</link>&nbsp;*<structfield>description</structfield>;</term>
<listitem><simpara>English description of the tag
</simpara></listitem>
</varlistentry>
<varlistentry>
<term><link linkend="IptcFormat">IptcFormat</link>&nbsp;<structfield>format</structfield>;</term>
<listitem><simpara>data format of the tag
</simpara></listitem>
</varlistentry>
<varlistentry>
<term><link linkend="IptcMandatory">IptcMandatory</link>&nbsp;<structfield>mandatory</structfield>;</term>
<listitem><simpara>whether the specification says the tag
is required
</simpara></listitem>
</varlistentry>
<varlistentry>
<term><link linkend="IptcRepeatable">IptcRepeatable</link>&nbsp;<structfield>repeatable</structfield>;</term>
<listitem><simpara>whether the specification says the tag
can appear more than once
</simpara></listitem>
</varlistentry>
<varlistentry>
<term>unsigned&nbsp;<link linkend="int">int</link>&nbsp;<structfield>minbytes</structfield>;</term>
<listitem><simpara>minimum number of bytes in the tag value
</simpara></listitem>
</varlistentry>
<varlistentry>
<term>unsigned&nbsp;<link linkend="int">int</link>&nbsp;<structfield>maxbytes</structfield>;</term>
<listitem><simpara>maximum number of bytes in the tag value

</simpara></listitem>
</varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="IptcFormat" role="enum"/>enum IptcFormat</title>
<indexterm><primary>IptcFormat</primary></indexterm><programlisting>typedef enum {
	IPTC_FORMAT_UNKNOWN,
	IPTC_FORMAT_BINARY,
	IPTC_FORMAT_BYTE,
	IPTC_FORMAT_SHORT,
	IPTC_FORMAT_LONG,
	IPTC_FORMAT_STRING,
	IPTC_FORMAT_NUMERIC_STRING,
	IPTC_FORMAT_DATE,
	IPTC_FORMAT_TIME
} IptcFormat;
</programlisting>
<para>
The possible data formats for a tag's value, derived from the IPTC IIM
specification.  Integer formats are always represented with the most
significant byte first (big-endian) in the IPTC bytestream.
</para><variablelist role="enum">
<varlistentry>
<term><anchor id="IPTC-FORMAT-UNKNOWN:CAPS" role="constant"/><literal>IPTC_FORMAT_UNKNOWN</literal></term>
<listitem><simpara>Unknown format (for a tag not in the specification)
</simpara></listitem>
</varlistentry>
<varlistentry>
<term><anchor id="IPTC-FORMAT-BINARY:CAPS" role="constant"/><literal>IPTC_FORMAT_BINARY</literal></term>
<listitem><simpara>Binary data (variable length)
</simpara></listitem>
</varlistentry>
<varlistentry>
<term><anchor id="IPTC-FORMAT-BYTE:CAPS" role="constant"/><literal>IPTC_FORMAT_BYTE</literal></term>
<listitem><simpara>1-byte integer
</simpara></listitem>
</varlistentry>
<varlistentry>
<term><anchor id="IPTC-FORMAT-SHORT:CAPS" role="constant"/><literal>IPTC_FORMAT_SHORT</literal></term>
<listitem><simpara>2-byte integer (big-endian)
</simpara></listitem>
</varlistentry>
<varlistentry>
<term><anchor id="IPTC-FORMAT-LONG:CAPS" role="constant"/><literal>IPTC_FORMAT_LONG</literal></term>
<listitem><simpara>4-byte integer (big-endian)
</simpara></listitem>
</varlistentry>
<varlistentry>
<term><anchor id="IPTC-FORMAT-STRING:CAPS" role="constant"/><literal>IPTC_FORMAT_STRING</literal></term>
<listitem><simpara>String data (variable length, of any character set)
</simpara></listitem>
</varlistentry>
<varlistentry>
<term><anchor id="IPTC-FORMAT-NUMERIC-STRING:CAPS" role="constant"/><literal>IPTC_FORMAT_NUMERIC_STRING</literal></term>
<listitem><simpara>String containing only numerals (variable length)
</simpara></listitem>
</varlistentry>
<varlistentry>
<term><anchor id="IPTC-FORMAT-DATE:CAPS" role="constant"/><literal>IPTC_FORMAT_DATE</literal></term>
<listitem><simpara>String of the format "YYYYMMDD" (8 bytes)
</simpara></listitem>
</varlistentry>
<varlistentry>
<term><anchor id="IPTC-FORMAT-TIME:CAPS" role="constant"/><literal>IPTC_FORMAT_TIME</literal></term>
<listitem><simpara>String of the format "HHMMSS&plusmn;HHMM" where the second
HHMM defines the timezone offset (11 bytes)

</simpara></listitem>
</varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="IptcMandatory" role="enum"/>enum IptcMandatory</title>
<indexterm><primary>IptcMandatory</primary></indexterm><programlisting>typedef enum {
	IPTC_OPTIONAL = 0,
	IPTC_MANDATORY = 1
} IptcMandatory;
</programlisting>
<para>
Whether a tag is mandatory according to the IPTC IIM specification.
Note that most applications ignore this aspect of the specification
since the spec was designed to encapsulate the media file rather than
the other way around (which is how nearly all applications use it).
This renders most mandatory tags unnecessary.
</para><variablelist role="enum">
<varlistentry>
<term><anchor id="IPTC-OPTIONAL:CAPS" role="constant"/><literal>IPTC_OPTIONAL</literal></term>
<listitem><simpara>tag is allowed to be absent
</simpara></listitem>
</varlistentry>
<varlistentry>
<term><anchor id="IPTC-MANDATORY:CAPS" role="constant"/><literal>IPTC_MANDATORY</literal></term>
<listitem><simpara>tag must be present

</simpara></listitem>
</varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="IptcRepeatable" role="enum"/>enum IptcRepeatable</title>
<indexterm><primary>IptcRepeatable</primary></indexterm><programlisting>typedef enum {
	IPTC_NOT_REPEATABLE = 0,
	IPTC_REPEATABLE = 1
} IptcRepeatable;
</programlisting>
<para>
Whether a tag can occur more than once according to the IPTC IIM
specification.  For example, the "Keywords" tag only contains a single
keyword, but the tag itself is repeated for media that references more
than one keyword.
</para><variablelist role="enum">
<varlistentry>
<term><anchor id="IPTC-NOT-REPEATABLE:CAPS" role="constant"/><literal>IPTC_NOT_REPEATABLE</literal></term>
<listitem><simpara>tag can only appear once
</simpara></listitem>
</varlistentry>
<varlistentry>
<term><anchor id="IPTC-REPEATABLE:CAPS" role="constant"/><literal>IPTC_REPEATABLE</literal></term>
<listitem><simpara>tag can be repeated

</simpara></listitem>
</varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="iptc-tag-get-name" role="function"/>iptc_tag_get_name ()</title>
<indexterm><primary>iptc_tag_get_name</primary></indexterm><programlisting>const <link linkend="char">char</link>*         iptc_tag_get_name                   (<link linkend="IptcRecord">IptcRecord</link> record,
                                                         <link linkend="IptcTag">IptcTag</link> tag);</programlisting>
<para>
Retrieves the name of a tag.  The name is derived from the IPTC
IIM specification and gives an indication of the purpose of a
particular tag.  The name will consist of ASCII characters with
no spaces, for example "CopyrightNotice".</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>record</parameter>&nbsp;:</term>
<listitem><simpara> record number of tag
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>tag</parameter>&nbsp;:</term>
<listitem><simpara> dataset number of tag
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> a static string containing the tag name, NULL if none found
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="iptc-tag-get-title" role="function"/>iptc_tag_get_title ()</title>
<indexterm><primary>iptc_tag_get_title</primary></indexterm><programlisting><link linkend="char">char</link>*               iptc_tag_get_title                  (<link linkend="IptcRecord">IptcRecord</link> record,
                                                         <link linkend="IptcTag">IptcTag</link> tag);</programlisting>
<para>
Retrieves the title of a tag.  The title is similar to
the name, except it will be translated to the current
locale (if available) and may contain spaces, for example
"Copyright Notice".  It is appropriate for the title to appear
in user interfaces.  The return value will be encoding using the UTF-8
character set.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>record</parameter>&nbsp;:</term>
<listitem><simpara> record number of tag
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>tag</parameter>&nbsp;:</term>
<listitem><simpara> dataset number of tag
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> a static string containing the tag title, empty string
if none found
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="iptc-tag-get-description" role="function"/>iptc_tag_get_description ()</title>
<indexterm><primary>iptc_tag_get_description</primary></indexterm><programlisting><link linkend="char">char</link>*               iptc_tag_get_description            (<link linkend="IptcRecord">IptcRecord</link> record,
                                                         <link linkend="IptcTag">IptcTag</link> tag);</programlisting>
<para>
Retrieves the description of a tag, which explains the purpose
of the tag from the IPTC IIM specification.  It is translated
to the current locale if available.  The return value will
be encoded using the UTF-8 character set.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>record</parameter>&nbsp;:</term>
<listitem><simpara> record number of tag
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>tag</parameter>&nbsp;:</term>
<listitem><simpara> dataset number of tag
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> a static string containing the tag desciption, empty
string if none found
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="iptc-tag-get-info" role="function"/>iptc_tag_get_info ()</title>
<indexterm><primary>iptc_tag_get_info</primary></indexterm><programlisting>const <link linkend="IptcTagInfo">IptcTagInfo</link>*  iptc_tag_get_info                   (<link linkend="IptcRecord">IptcRecord</link> record,
                                                         <link linkend="IptcTag">IptcTag</link> tag);</programlisting>
<para>
Retrieves the <link linkend="IptcTagInfo"><type>IptcTagInfo</type></link> structure containing information about the
tag from the IPTC IIM specification such as purpose, data format,
and minimum and maximum lengths.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>record</parameter>&nbsp;:</term>
<listitem><simpara> record number of tag
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>tag</parameter>&nbsp;:</term>
<listitem><simpara> dataset number of tag
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> a pointer to a static <link linkend="IptcTagInfo"><type>IptcTagInfo</type></link> structure or NULL if
the tag is not found.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="iptc-format-get-name" role="function"/>iptc_format_get_name ()</title>
<indexterm><primary>iptc_format_get_name</primary></indexterm><programlisting><link linkend="char">char</link>*               iptc_format_get_name                (<link linkend="IptcFormat">IptcFormat</link> format);</programlisting>
<para>
Retrieves a string version of a data format.  For example,
<link linkend="IPTC-FORMAT-STRING:CAPS"><literal>IPTC_FORMAT_STRING</literal></link> returns "String".</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>format</parameter>&nbsp;:</term>
<listitem><simpara> the format to be retrieved
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> a static string in the native locale
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="iptc-tag-find-by-name" role="function"/>iptc_tag_find_by_name ()</title>
<indexterm><primary>iptc_tag_find_by_name</primary></indexterm><programlisting><link linkend="int">int</link>                 iptc_tag_find_by_name               (const <link linkend="char">char</link> *name,
                                                         <link linkend="IptcRecord">IptcRecord</link> *record,
                                                         <link linkend="IptcTag">IptcTag</link> *tag);</programlisting>
<para>
Looks up the record and tag numbers for a tag specified by name.  For
example, searching for "Caption" would return 2:120 in the record and
tag variables.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>name</parameter>&nbsp;:</term>
<listitem><simpara> the name to search for
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>record</parameter>&nbsp;:</term>
<listitem><simpara> output variable to store the record number
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>tag</parameter>&nbsp;:</term>
<listitem><simpara> output variable to store the tag number
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> 0 on success, -1 on failure or if the tag name was not found
</simpara></listitem></varlistentry>
</variablelist></refsect2>

</refsect1>





<refsect1><refsect2 /><refsect2 /></refsect1>
</refentry>