PACKAGE -> GETTEXT_PACKAGE
[platform/upstream/libexif.git] / libexif / exif-tag.c
1 /* exif-tag.c
2  *
3  * Copyright (C) 2001 Lutz Müller <lutz@users.sourceforge.net>
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful, 
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of 
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * Lesser General Public License for more details. 
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the
17  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18  * Boston, MA 02111-1307, USA.
19  */
20
21 #include <config.h>
22 #include "exif-tag.h"
23
24 #include <stdlib.h>
25
26 #ifdef ENABLE_NLS
27 #  include <libintl.h>
28 #  undef _
29 #  define _(String) dgettext (GETTEXT_PACKAGE, String)
30 #  ifdef gettext_noop
31 #    define N_(String) gettext_noop (String)
32 #  else
33 #    define N_(String) (String)
34 #  endif
35 #else
36 #  define textdomain(String) (String)
37 #  define gettext(String) (String)
38 #  define dgettext(Domain,Message) (Message)
39 #  define dcgettext(Domain,Message,Type) (Message)
40 #  define bindtextdomain(Domain,Directory) (Domain)
41 #  define _(String) (String)
42 #  define N_(String) (String)
43 #endif
44
45 static struct {
46         ExifTag tag;
47         const char *name;
48         const char *title;
49         const char *description;
50 } ExifTagTable[] = {
51         {EXIF_TAG_INTEROPERABILITY_INDEX, "InteroperabilityIndex",
52          "InteroperabilityIndex",
53          N_("Indicates the identification of the Interoperability rule. "
54             "Use \"R98\" for stating ExifR98 Rules. Four bytes used "
55             "including the termination code (NULL). see the separate "
56             "volume of Recommended Exif Interoperability Rules (ExifR98) "
57             "for other tags used for ExifR98.")},
58         {EXIF_TAG_INTEROPERABILITY_VERSION, "InteroperabilityVersion",
59          "InteroperabilityVersion", ""},
60         {EXIF_TAG_IMAGE_WIDTH, "ImageWidth", N_("Image Width"),
61          N_("The number of colums of image data, equal to the number of "
62             "pixels per row. In JPEG compressed data a JPEG marker is "
63             "used instead of this tag.")},
64         {EXIF_TAG_IMAGE_LENGTH, "ImageLength", N_("Image Length"),
65          N_("The number of rows of image data. In JPEG compressed data a "
66             "JPEG marker is used instead of this tag.")},
67         {EXIF_TAG_BITS_PER_SAMPLE, "BitsPerSample", N_("Bits per Sample"),
68          N_("The number of bits per image component. In this standard each "
69             "component of the image is 8 bits, so the value for this "
70             "tag is 9. See also <SamplesPerPixel>. In JPEG compressed data "
71             "a JPEG marker is used instead of this tag.")},
72         {EXIF_TAG_COMPRESSION, "Compression", N_("Compression"),
73          N_("The compression scheme used for the image data. When a "
74             "primary image is JPEG compressed, this designation is "
75             "not necessary and is omitted. When thumbnails use JPEG "
76             "compression, this tag value is set to 6.")},
77         {EXIF_TAG_PHOTOMETRIC_INTERPRETATION, "PhotometricInterpretation",
78          N_("Photometric Interpretation"),
79          N_("The pixel composition. In JPEG compressed data a JPEG "
80             "marker is used instead of this tag.")},
81         {EXIF_TAG_FILL_ORDER, "FillOrder", N_("Fill Order"), ""},
82         {EXIF_TAG_DOCUMENT_NAME, "DocumentName", N_("Document Name"), ""},
83         {EXIF_TAG_IMAGE_DESCRIPTION, "ImageDescription",
84          N_("Image Description"),
85          N_("A character string giving the title of the image. It may be "
86             "a comment such as \"1988 company picnic\" or "
87             "the like. Two-bytes character codes cannot be used. "
88             "When a 2-bytes code is necessary, the Exif Private tag "
89             "<UserComment> is to be used.")},
90         {EXIF_TAG_MAKE, "Make", N_("Manufacturer"),
91          N_("The manufacturer of the recording "
92             "equipment. This is the manufacturer of the DSC, scanner, "
93             "video digitizer or other equipment that generated the "
94             "image. When the field is left blank, it is treated as "
95             "unknown.")},
96         {EXIF_TAG_MODEL, "Model", N_("Model"),
97          N_("The model name or model number of the equipment. This is the "
98             "model name or number of the DSC, scanner, video digitizer "
99             "or other equipment that generated the image. When the field "
100             "is left blank, it is treated as unknown.")},
101         {EXIF_TAG_STRIP_OFFSETS, "StripOffsets", N_("Strip Offsets"),
102          N_("For each strip, the byte offset of that strip. It is "
103             "recommended that this be selected so the number of strip "
104             "bytes does not exceed 64 Kbytes. With JPEG compressed "
105             "data this designation is not needed and is omitted. See also "
106             "<RowsPerStrip> and <StripByteCounts>.")},
107         {EXIF_TAG_ORIENTATION, "Orientation", N_("Orientation"),
108          N_("The image orientation viewed in terms of rows and colums.")},
109         {EXIF_TAG_SAMPLES_PER_PIXEL, "SamplesPerPixel",
110          N_("Samples per Pixel"),
111          N_("The number of components per pixel. Since this standard applies "
112             "to RGB and YCbCr images, the value set for this tag is 3. "
113             "In JPEG compressed data a JPEG marker is used instead of this "
114             "tag.")},
115         {EXIF_TAG_ROWS_PER_STRIP, "RowsPerStrip", N_("Rows per Strip"),
116          N_("The number of rows per strip. This is the number of rows "
117             "in the image of one strip when an image is divided into "
118             "strips. With JPEG compressed data this designation is not "
119             "needed and is omitted. See also <RowsPerStrip> and "
120             "<StripByteCounts>.")},
121         {EXIF_TAG_STRIP_BYTE_COUNTS, "StripByteCounts", N_("Strip Byte Count"),
122          N_("The total number of bytes in each strip. With JPEG compressed "
123             "data this designation is not needed and is omitted.")},
124         {EXIF_TAG_X_RESOLUTION, "XResolution", N_("x-Resolution"),
125          N_("The number of pixels per <ResolutionUnit> in the <ImageWidth> "
126             "direction. When the image resolution is unknown, 72 [dpi] "
127             "is designated.")},
128         {EXIF_TAG_Y_RESOLUTION, "YResolution", N_("y-Resolution"),
129          N_("The number of pixels per <ResolutionUnit> in the <ImageLength> "
130             "direction. The same value as <XResolution> is designated.")},
131         {EXIF_TAG_PLANAR_CONFIGURATION, "PlanarConfiguration",
132          N_("Planar Configuration"),
133          N_("Indicates whether pixel components are recorded in a chunky "
134             "or planar format. In JPEG compressed files a JPEG marker "
135             "is used instead of this tag. If this field does not exist, "
136             "the TIFF default of 1 (chunky) is assumed.")},
137         {EXIF_TAG_RESOLUTION_UNIT, "ResolutionUnit", N_("Resolution Unit"),
138          N_("The unit for measuring <XResolution> and <YResolution>. The same "
139             "unit is used for both <XResolution> and <YResolution>. If "
140             "the image resolution is unknown, 2 (inches) is designated.")},
141         {EXIF_TAG_TRANSFER_FUNCTION, "TransferFunction",
142          N_("Transfer Function"),
143          N_("A transfer function for the image, described in tabular style. "
144             "Normally this tag is not necessary, since color space is "
145             "specified in the color space information tag (<ColorSpace>).")},
146         {EXIF_TAG_SOFTWARE, "Software", N_("Software"),
147          N_("This tag records the name and version of the software or "
148             "firmware of the camera or image input device used to "
149             "generate the image. The detailed format is not specified, but "
150             "it is recommended that the example shown below be "
151             "followed. When the field is left blank, it is treated as "
152             "unknown.")},
153         {EXIF_TAG_DATE_TIME, "DateTime", N_("Date and Time"),
154          N_("The date and time of image creation. In this standard "
155             "(EXIF-2.1) it is the date and time the file was changed.")},
156         {EXIF_TAG_ARTIST, "Artist", N_("Artist"),
157          N_("This tag records the name of the camera owner, photographer or "
158             "image creator. The detailed format is not specified, but it is "
159             "recommended that the information be written as in the example "
160             "below for ease of Interoperability. When the field is "
161             "left blank, it is treated as unknown.")},
162         {EXIF_TAG_WHITE_POINT, "WhitePoint", N_("White Point"),
163          N_("The chromaticity of the white point of the image. Normally "
164             "this tag is not necessary, since color space is specified "
165             "in the colorspace information tag (<ColorSpace>).")},
166         {EXIF_TAG_PRIMARY_CHROMATICITIES, "PrimaryChromaticities",
167          N_("Primary Chromaticities"),
168          N_("The chromaticity of the three primary colors of the image. "
169             "Normally this tag is not necessary, since colorspace is "
170             "specified in the colorspace information tag (<ColorSpace>).")},
171         {EXIF_TAG_TRANSFER_RANGE, "TransferRange", N_("Transfer Range"), ""},
172         {EXIF_TAG_JPEG_PROC, "JPEGProc", "JPEGProc", ""},
173         {EXIF_TAG_JPEG_INTERCHANGE_FORMAT, "JPEGInterchangeFormat",
174          N_("JPEG Interchange Format"),
175          N_("The offset to the start byte (SOI) of JPEG compressed "
176             "thumbnail data. This is not used for primary image "
177             "JPEG data.")},
178         {EXIF_TAG_JPEG_INTERCHANGE_FORMAT_LENGTH,
179          "JPEGInterchangeFormatLength", N_("JPEG Interchange Format Length"),
180          N_("The number of bytes of JPEG compressed thumbnail data. This "
181             "is not used for primary image JPEG data. JPEG thumbnails "
182             "are not divided but are recorded as a continuous JPEG "
183             "bitstream from SOI to EOI. Appn and COM markers should "
184             "not be recorded. Compressed thumbnails must be recorded in no "
185             "more than 64 Kbytes, including all other data to be "
186             "recorded in APP1.")},
187         {EXIF_TAG_YCBCR_COEFFICIENTS, "YCbCrCoefficients",
188          N_("YCbCr Coefficients"),
189          N_("The matrix coefficients for transformation from RGB to YCbCr "
190             "image data. No default is given in TIFF; but here the "
191             "value given in Appendix E, \"Color Space Guidelines\", is used "
192             "as the default. The color space is declared in a "
193             "color space information tag, with the default being the value "
194             "that gives the optimal image characteristics "
195             "Interoperability this condition.")},
196         {EXIF_TAG_YCBCR_SUB_SAMPLING, "YCbCrSubSampling",
197          N_("YCbCr Sub-Sampling"),
198          N_("The sampling ratio of chrominance components in relation to the "
199             "luminance component. In JPEG compressed data a JPEG marker "
200             "is used instead of this tag.")},
201         {EXIF_TAG_YCBCR_POSITIONING, "YCbCrPositioning",
202          N_("YCbCr Positioning"),
203          N_("The position of chrominance components in relation to the "
204             "luminance component. This field is designated only for "
205             "JPEG compressed data or uncompressed YCbCr data. The TIFF "
206             "default is 1 (centered); but when Y:Cb:Cr = 4:2:2 it is "
207             "recommended in this standard that 2 (co-sited) be used to "
208             "record data, in order to improve the image quality when viewed "
209             "on TV systems. When this field does not exist, the reader shall "
210             "assume the TIFF default. In the case of Y:Cb:Cr = 4:2:0, the "
211             "TIFF default (centered) is recommended. If the reader "
212             "does not have the capability of supporting both kinds of "
213             "<YCbCrPositioning>, it shall follow the TIFF default regardless "
214             "of the value in this field. It is preferable that readers "
215             "be able to support both centered and co-sited positioning.")},
216         {EXIF_TAG_REFERENCE_BLACK_WHITE, "ReferenceBlackWhite",
217          N_("Reference Black/White"),
218          N_("The reference black point value and reference white point "
219             "value. No defaults are given in TIFF, but the values "
220             "below are given as defaults here. The color space is declared "
221             "in a color space information tag, with the default "
222             "being the value that gives the optimal image characteristics "
223             "Interoperability these conditions.")},
224         {EXIF_TAG_RELATED_IMAGE_FILE_FORMAT, "RelatedImageFileFormat",
225          "RelatedImageFileFormat", ""},
226         {EXIF_TAG_RELATED_IMAGE_WIDTH, "RelatedImageWidth",
227          "RelatedImageWidth", ""},
228         {EXIF_TAG_RELATED_IMAGE_LENGTH, "RelatedImageLength",
229          "RelatedImageLength", ""},
230         {EXIF_TAG_CFA_REPEAT_PATTERN_DIM, "CFARepeatPatternDim",
231          "CFARepeatPatternDim", ""},
232         {EXIF_TAG_CFA_PATTERN, "CFAPattern",
233          N_("CFA Pattern"),
234          N_("Indicates the color filter array (CFA) geometric pattern of the "
235             "image sensor when a one-chip color area sensor is used. "
236             "It does not apply to all sensing methods.")},
237         {EXIF_TAG_BATTERY_LEVEL, "BatteryLevel", N_("Battery Level"), ""},
238         {EXIF_TAG_COPYRIGHT, "Copyright", N_("Copyright"),
239          N_("Copyright information. In this standard the tag is used to "
240             "indicate both the photographer and editor copyrights. It is "
241             "the copyright notice of the person or organization claiming "
242             "rights to the image. The Interoperability copyright "
243             "statement including date and rights should be written in this "
244             "field; e.g., \"Copyright, John Smith, 19xx. All rights "
245             "reserved.\". In this standard the field records both the "
246             "photographer and editor copyrights, with each recorded in a "
247             "separate part of the statement. When there is a clear "
248             "distinction between the photographer and editor copyrights, "
249             "these are to be written in the order of photographer followed "
250             "by editor copyright, separated by NULL (in this case, "
251             "since the statement also ends with a NULL, there are two NULL "
252             "codes) (see example 1). When only the photographer is given, "
253             "it is terminated by one NULL code (see example 2). When only "
254             "the editor copyright is given, "
255             "the photographer copyright part consists of one space followed "
256             "by a terminating NULL code, then the editor copyright is given "
257             "(see example 3). When the field is left blank, it is treated "
258             "as unknown.")},
259         {EXIF_TAG_EXPOSURE_TIME, "ExposureTime", N_("Exposure Time"),
260          N_("Exposure time, given in seconds (sec).")},
261         {EXIF_TAG_FNUMBER, "FNumber", "FNumber",
262          N_("The F number.")},
263         {EXIF_TAG_IPTC_NAA, "IPTC/NAA", "IPTC/NAA", ""},
264         {EXIF_TAG_EXIF_IFD_POINTER, "ExifIFDPointer", "ExifIFDPointer",
265          N_("A pointer to the Exif IFD. Interoperability, Exif IFD has the "
266             "same structure as that of the IFD specified in TIFF. "
267             "ordinarily, however, it does not contain image data as in "
268             "the case of TIFF.")},
269         {EXIF_TAG_INTER_COLOR_PROFILE, "InterColorProfile",
270          "InterColorProfile", ""},
271         {EXIF_TAG_EXPOSURE_PROGRAM, "ExposureProgram", "ExposureProgram",
272          N_("The class of the program used by the camera to set exposure "
273             "when the picture is taken.")},
274         {EXIF_TAG_SPECTRAL_SENSITIVITY, "SpectralSensitivity",
275          N_("Spectral Sensitivity"),
276          N_("Indicates the spectral sensitivity of each channel of the "
277             "camera used. The tag value is an ASCII string compatible "
278             "with the standard developed by the ASTM Technical committee.")},
279         {EXIF_TAG_GPS_INFO_IFD_POINTER, "GPSInfoIFDPointer", 
280          "GPSInfoIFDPointer",
281          N_("A pointer to the GPS Info IFD. The "
282             "Interoperability structure of the GPS Info IFD, like that of "
283             "Exif IFD, has no image data.")},
284 #if 0
285         {EXIF_TAG_GPS_VERSION_ID, "GPSVersionID", "",
286          N_("Indicates the version of <GPSInfoIFD>. The version is given "
287             "as 2.0.0.0. This tag is mandatory when <GPSInfo> tag is "
288             "present. (Note: The <GPSVersionID tag is given in bytes, "
289             "unlike the <ExifVersion> tag. When the version is "
290             "2.0.0.0, the tag value is 02000000.H).")},
291         {EXIF_TAG_GPS_LATITUDE_REF, "GPSLatitudeRef", ""
292          N_("Indicates whether the latitude is north or south latitude. The "
293             "ASCII value 'N' indicates north latitude, and 'S' is south "
294             "latitude.")},
295         {EXIF_TAG_GPS_LATITUDE, "GPSLatitude", ""
296          N_("Indicates the latitude. The latitude is expressed as three "
297             "RATIONAL values giving the degrees, minutes, and seconds, "
298             "respectively. When degrees, minutes and seconds are expressed, "
299             "the format is dd/1,mm/1,ss/1. When degrees and minutes are used "
300             "and, for example, fractions of minutes are given up to two "
301             "two decimal places, the format is dd/1,mmmm/100,0/1.")},
302         {EXIF_TAG_GPS_LONGITUDE_REF, "GPSLongitudeRef", ""
303          N_("Indicates whether the longitude is east or west longitude. "
304             "ASCII 'E' indicates east longitude, and 'W' is west "
305             "longitude.")},
306         {EXIF_TAG_GPS_LONGITUDE, "GPSLongitude", ""
307          N_("Indicates the longitude. The longitude is expressed as three "
308             "RATIONAL values giving the degrees, minutes, and seconds, "
309             "respectively. When degrees, minutes and seconds are expressed, "
310             "the format is ddd/1,mm/1,ss/1. When degrees and minutes are "
311             "used and, for example, fractions of minutes are given up to "
312             "two decimal places, the format is ddd/1,mmmm/100,0/1.")}, 
313 #endif
314         {EXIF_TAG_ISO_SPEED_RATINGS, "ISOSpeedRatings",
315          N_("ISO Speed Ratings"),
316          N_("Indicates the ISO Speed and ISO Latitude of the camera or "
317             "input device as specified in ISO 12232.")},
318         {EXIF_TAG_OECF, "OECF", "OECF",
319          N_("Indicates the Opto-Electoric Conversion Function (OECF) "
320             "specified in ISO 14524. <OECF> is the relationship between "
321             "the camera optical input and the image values.")},
322         {EXIF_TAG_EXIF_VERSION, "ExifVersion", N_("Exif Version"),
323          N_("The version of this standard supported. Nonexistence of this "
324             "field is taken to mean nonconformance to the standard.")},
325         {EXIF_TAG_DATE_TIME_ORIGINAL, "DateTimeOriginal",
326          N_("Date and Time (original)"),
327          N_("The date and time when the original image data was generated. "
328             "For a digital still camera "
329             "the date and time the picture was taken are recorded.")},
330         {EXIF_TAG_DATE_TIME_DIGITIZED, "DateTimeDigitized",
331          N_("Date and Time (digitized)"),
332          N_("The date and time when the image was stored as digital data. ")},
333         {EXIF_TAG_COMPONENTS_CONFIGURATION, "ComponentsConfiguration",
334          "ComponentsConfiguration",
335          N_("Information specific to compressed data. The channels of "
336             "each component are arranged in order from the 1st "
337             "component to the 4th. For uncompressed data the data "
338             "arrangement is given in the <PhotometricInterpretation> tag. "
339             "However, since <PhotometricInterpretation> can only "
340             "express the order of Y, Cb and Cr, this tag is provided "
341             "for cases when compressed data uses components other than "
342             "Y, Cb, and Cr and to enable support of other sequences.")},
343         {EXIF_TAG_COMPRESSED_BITS_PER_PIXEL, "CompressedBitsPerPixel",
344          N_("Compressed Bits per Pixel"),
345          N_("Information specific to compressed data. The compression mode "
346             "used for a compressed image is indicated in unit bits "
347             "per pixel.")},
348         {EXIF_TAG_SHUTTER_SPEED_VALUE, "ShutterSpeedValue", N_("Shutter speed"),
349          N_("Shutter speed. The unit is the APEX (Additive System of "
350             "Photographic Exposure) setting (see Appendix C).")},
351         {EXIF_TAG_APERTURE_VALUE, "ApertureValue", N_("Aperture"),
352          N_("The lens aperture. The unit is the APEX value.")},
353         {EXIF_TAG_BRIGHTNESS_VALUE, "BrightnessValue", N_("Brightness"),
354          N_("The value of brightness. The unit is the APEX value. "
355             "Ordinarily it is given in the range of -99.99 to 99.99.")},
356         {EXIF_TAG_EXPOSURE_BIAS_VALUE, "ExposureBiasValue",
357          N_("Exposure Bias"),
358          N_("The exposure bias. The units is the APEX value. Ordinarily "
359             "it is given in the range of -99.99 to 99.99.")},
360         {EXIF_TAG_MAX_APERTURE_VALUE, "MaxApertureValue", "MaxApertureValue",
361          N_("The smallest F number of the lens. The unit is the APEX value. "
362             "Ordinarily it is given in the range of 00.00 to 99.99, "
363             "but it is not limited to this range.")},
364         {EXIF_TAG_SUBJECT_DISTANCE, "SubjectDistance",
365          N_("Subject Distance"),
366          N_("The distance to the subject, given in meters.")},
367         {EXIF_TAG_METERING_MODE, "MeteringMode", N_("Metering Mode"),
368          N_("The metering mode.")},
369         {EXIF_TAG_LIGHT_SOURCE, "LightSource", N_("Light Source"),
370          N_("The kind of light source.")},
371         {EXIF_TAG_FLASH, "Flash", N_("Flash"),
372          N_("This tag is recorded when an image is taken using a strobe "
373             "light (flash).")},
374         {EXIF_TAG_FOCAL_LENGTH, "FocalLength", N_("Focal Length"),
375          N_("The actual focal length of the lens, in mm. Conversion is not "
376             "made to the focal length of a 35 mm film camera.")},
377         {EXIF_TAG_MAKER_NOTE, "MakerNote", N_("Maker Note"),
378          N_("A tag for manufacturers of Exif writers to record any desired "
379             "information. The contents are up to the manufacturer.")},
380         {EXIF_TAG_USER_COMMENT, "UserComment", N_("User Comment"),
381          N_("A tag for Exif users to write keywords or comments on the image "
382             "besides those in <ImageDescription>, and without the "
383             "character code limitations of the <ImageDescription> tag. The "
384             "character code used in the <UserComment> tag is identified "
385             "based on an ID code in a fixed 8-byte area at the start of "
386             "the tag data area. The unused portion of the area is padded "
387             "with NULL (\"00.h\"). ID codes are assigned by means of "
388             "registration. The designation method and references for each "
389             "character code are given in Table 6. The value of CountN "
390             "is determinated based on the 8 bytes in the character code "
391             "area and the number of bytes in the user comment part. Since "
392             "the TYPE is not ASCII, NULL termination is not necessary "
393             "(see Fig. 9). "
394             "The ID code for the <UserComment> area may be a Defined code "
395             "such as JIS or ASCII, or may be Undefined. The Undefined name "
396             "is UndefinedText, and the ID code is filled with 8 bytes of all "
397             "\"NULL\" (\"00.H\"). An Exif reader that reads the "
398             "<UserComment> tag must have a function for determining the "
399             "ID code. This function is not required in Exif readers that "
400             "do not use the <UserComment> tag (see Table 7). "
401             "When a <UserComment> area is set aside, it is recommended that "
402             "the ID code be ASCII and that the following user comment "
403             "part be filled with blank characters [20.H].")},
404         {EXIF_TAG_SUBSEC_TIME, "SubsecTime", "SubsecTime",
405          N_("A tag used to record fractions of seconds for the "
406             "<DateTime> tag.")},
407         {EXIF_TAG_SUB_SEC_TIME_ORIGINAL, "SubSecTimeOriginal",
408          "SubSecTimeOriginal",
409          N_("A tag used to record fractions of seconds for the "
410             "<DateTimeOriginal> tag.")},
411         {EXIF_TAG_SUB_SEC_TIME_DIGITIZED, "SubSecTimeDigitized",
412          "SubSecTimeDigitized",
413          N_("A tag used to record fractions of seconds for the "
414             "<DateTimeDigitized> tag.")},
415         {EXIF_TAG_FLASH_PIX_VERSION, "FlashPixVersion", "FlashPixVersion",
416          N_("The FlashPix format version supported by a FPXR file.")},
417         {EXIF_TAG_COLOR_SPACE, "ColorSpace", N_("Color Space"),
418          N_("The color space information tag (<ColorSpace>) is always "
419             "recorede as the color space specifier. Normally sRGB (=1) "
420             "is used to define the color space based on the PC monitor "
421             "conditions and environment. If a color space other than "
422             "sRGB is used, Uncalibrated (=FFFF.H) is set. Image data "
423             "recorded as Uncalibrated can be treated as sRGB when it is "
424             "converted to FlashPix. On sRGB see Appendix E.")},
425         {EXIF_TAG_PIXEL_X_DIMENSION, "PixelXDimension", "PixelXDimension",
426          N_("Information specific to compressed data. When a "
427             "compressed file is recorded, the valid width of the "
428             "meaningful image must be recorded in this tag, whether or "
429             "not there is padding data or a restart marker. This tag "
430             "should not exist in an uncompressed file. For details see "
431             "section 2.8.1 and Appendix F.")},
432         {EXIF_TAG_PIXEL_Y_DIMENSION, "PixelYDimension", "PixelYDimension",
433          N_("Information specific to compressed data. When a compressed "
434             "file is recorded, the valid height of the meaningful image "
435             "must be recorded in this tag, whether or not there is padding "
436             "data or a restart marker. This tag should not exist in an "
437             "uncompressed file. For details see section 2.8.1 and Appendix "
438             "F. Since data padding is unnecessary in the vertical direction, "
439             "the number of lines recorded in this valid image height tag "
440             "will in fact be the same as that recorded in the SOF.")},
441         {EXIF_TAG_RELATED_SOUND_FILE, "RelatedSoundFile",
442          "RelatedSoundFile",
443          N_("This tag is used to record the name of an audio file related "
444             "to the image data. The only relational information "
445             "recorded here is the Exif audio file name and extension (an "
446             "ASCII string consisting of 8 characters + '.' + 3 "
447             "characters). The path is not recorded. Stipulations on audio "
448             "are given in  section 3.6.3. File naming conventions are "
449             "given in section 3.7.1. "
450             "When using this tag, audio files must be recorded in "
451             "conformance to the Exif audio format. Writers are also allowed "
452             "to store the data such as Audio within APP2 as FlashPix "
453             "extension stream data. "
454             "Audio files must be recorded in conformance to the Exif audio "
455             "format. The mapping of Exif image files and audio files is done "
456             "in any of the three ways shown in Table 8. If multiple files "
457             "are mapped to one file as in [2] or [3] of this table, the above "
458             "format is used to record just one audio file name. If "
459             "there are multiple audio files, the first recorded file is "
460             "given. In the case of [3] in Table 8, for example, for the "
461             "Exif image file \"DSC00001.JPG\" only  \"SND00001.WAV\" is "
462             "given as the related Exif audio file. When there are three "
463             "Exif audio files \"SND00001.WAV\", \"SND00002.WAV\" and "
464             "\"SND00003.WAV\", the Exif image file name for each of them, "
465             "\"DSC00001.JPG\", is indicated. By combining multiple "
466             "relational information, a variety of playback possibilities "
467             "can be supported. The method of using relational information "
468             "is left to the implementation on the playback side. Since this "
469             "information is an ASCII character string, it is terminated by "
470             "NULL. When this tag is used to map audio files, the relation "
471             "of the audio file to image data must also be indicated on the "
472             "audio file end.")},
473         {EXIF_TAG_INTEROPERABILITY_IFD_POINTER, "InteroperabilityIFDPointer",
474          "InteroperabilityIFDPointer",
475          N_("Interoperability IFD is composed of tags which stores the "
476             "information to ensure the Interoperability and pointed "
477             "by the following tag located in Exif IFD. "
478             "The Interoperability structure of Interoperability IFD is "
479             "the same as TIFF defined IFD structure "
480             "but does not contain the "
481             "image data characteristically compared with normal TIFF "
482             "IFD.")},
483         {EXIF_TAG_FLASH_ENERGY, "FlashEnergy", N_("Flash Energy"),
484          N_("Indicates the strobe energy at the time the image is "
485             "captured, as measured in Beam Candle Power Seconds (BCPS).")},
486         {EXIF_TAG_SPATIAL_FREQUENCY_RESPONSE, "SpatialFrequencyResponse",
487          N_("Spatial Frequency Response"),
488          N_("This tag records the camera or input device spatial frequency "
489             "table and SFR values in the direction of image width, "
490             "image height, and diagonal direction, as specified in ISO "
491             "12233.")},
492         {EXIF_TAG_FOCAL_PLANE_X_RESOLUTION, "FocalPlaneXResolution",
493          N_("Focal Plane x-Resolution"),
494          N_("Indicates the number of pixels in the image width (X) direction "
495             "per <FocalPlaneResolutionUnit> on the camera focal plane.")},
496         {EXIF_TAG_FOCAL_PLANE_Y_RESOLUTION, "FocalPlaneYResolution",
497          N_("Focal Plane y-Resolution"),
498          N_("Indicates the number of pixels in the image height (V) direction "
499             "per <FocalPlaneResolutionUnit> on the camera focal plane.")},
500         {EXIF_TAG_FOCAL_PLANE_RESOLUTION_UNIT, "FocalPlaneResolutionUnit",
501          N_("Focal Plane Resolution Unit"),
502          N_("Indicates the unit for measuring <FocalPlaneXResolution> and "
503             "<FocalPlaneYResolution>. This value is the same as the "
504             "<ResolutionUnit>.")},
505         {EXIF_TAG_SUBJECT_LOCATION, "SubjectLocation",
506          N_("Subject Location"),
507          N_("Indicates the location of the main subject in the scene. The "
508             "value of this tag represents the pixel at the center of the "
509             "main subject relative to the left edge, prior to rotation "
510             "processing as per the <Rotation> tag. The first value "
511             "indicates the X column number and second indicates "
512             "the Y row number.")},
513         {EXIF_TAG_EXPOSURE_INDEX, "ExposureIndex", N_("Exposure index"),
514          N_("Indicates the exposure index selected on the camera or "
515             "input device at the time the image is captured.")},
516         {EXIF_TAG_SENSING_METHOD, "SensingMethod", N_("Sensing Method"),
517          N_("Indicates the image sensor type on the camera or input "
518             "device.")},
519         {EXIF_TAG_FILE_SOURCE, "FileSource", N_("File Source"),
520          N_("Indicates the image source. If a DSC recorded the image, "
521             "this tag value of this tag always be set to 3, indicating "
522             "that the image was recorded on a DSC.")},
523         {EXIF_TAG_SCENE_TYPE, "SceneType", N_("Scene Type"),
524          N_("Indicates the type of scene. If a DSC recorded the image, "
525             "this tag value must always be set to 1, indicating that the "
526             "image was directly photographed.")},
527         {EXIF_TAG_NEW_CFA_PATTERN, "CFAPattern",
528          N_("CFA Pattern"),
529          N_("Indicates the color filter array (CFA) geometric pattern of the "
530             "image sensor when a one-chip color area sensor is used. "
531             "It does not apply to all sensing methods.")},
532         {EXIF_TAG_SUBJECT_AREA, "SubjectArea", N_("Subject Area"),
533          N_("This tag indicates the location and area of the main subject "
534             "in the overall scene.")},
535         {EXIF_TAG_CUSTOM_RENDERED, "CustomRendered", N_("Custom Rendered"),
536          N_("This tag indicates the use of special processing on image "
537             "data, such as rendering geared to output. When special "
538             "processing is performed, the reader is expected to disable "
539             "or minimize any further processing.")},
540         {EXIF_TAG_EXPOSURE_MODE, "ExposureMode", N_("Exposure Mode"),
541          N_("This tag indicates the exposure mode set when the image was "
542             "shot. In auto-bracketing mode, the camera shoots a series of "
543             "frames of the same scene at different exposure settings.")},
544         {EXIF_TAG_WHITE_BALANCE, "WhiteBalance", N_("White Balance"),
545          N_("This tag indicates the white balance mode set when the image "
546             "was shot.")},
547         {EXIF_TAG_DIGITAL_ZOOM_RATIO, "DigitalZoomRatio",
548          N_("Digital Zoom Ratio"),
549          N_("This tag indicates the digital zoom ratio when the image was "
550             "shot. If the numerator of the recorded value is 0, this "
551             "indicates that digital zoom was not used.")},
552         {EXIF_TAG_FOCAL_LENGTH_IN_35MM_FILM, "FocalLengthIn35mmFilm",
553          N_("Focal Length In 35mm Film"),
554          N_("This tag indicates the equivalent focal length assuming a "
555             "35mm film camera, in mm. A value of 0 means the focal "
556             "length is unknown. Note that this tag differs from the "
557             "FocalLength tag.")},
558         {EXIF_TAG_SCENE_CAPTURE_TYPE, "SceneCaptureType",
559          N_("Scene Capture Type"),
560          N_("This tag indicates the type of scene that was shot. It can "
561             "also be used to record the mode in which the image was "
562             "shot. Note that this differs from the scene type "
563             "(SceneType) tag.")},
564         {EXIF_TAG_GAIN_CONTROL, "GainControl", N_("Gain Control"),
565          N_("This tag indicates the degree of overall image gain "
566             "adjustment.")},
567         {EXIF_TAG_CONTRAST, "Contrast", N_("Contrast"),
568          N_("This tag indicates the direction of contrast processing "
569             "applied by the camera when the image was shot.")},
570         {EXIF_TAG_SATURATION, "Saturation", N_("Saturation"),
571          N_("This tag indicates the direction of saturation processing "
572             "applied by the camera when the image was shot.")},
573         {EXIF_TAG_SHARPNESS, "Sharpness", N_("Sharpness"),
574          N_("This tag indicates the direction of sharpness processing "
575             "applied by the camera when the image was shot.")},
576         {EXIF_TAG_DEVICE_SETTING_DESCRIPTION, "DeviceSettingDescription",
577          N_("Device Setting Description"),
578          N_("This tag indicates information on the picture-taking "
579             "conditions of a particular camera model. The tag is used "
580             "only to indicate the picture-taking conditions in the "
581             "reader.")},
582         {EXIF_TAG_SUBJECT_DISTANCE_RANGE, "SubjectDistanceRange",
583          N_("Subject Distance Range"),
584          N_("This tag indicates the distance to the subject.")},
585         {EXIF_TAG_IMAGE_UNIQUE_ID, "ImageUniqueID", N_("Image Unique ID"),
586          N_("This tag indicates an identifier assigned uniquely to "
587             "each image. It is recorded as an ASCII string equivalent "
588             "to hexadecimal notation and 128-bit fixed length.")},
589         {0, NULL, NULL, NULL}
590 };
591
592 const char *
593 exif_tag_get_name (ExifTag tag)
594 {
595         unsigned int i;
596
597         for (i = 0; ExifTagTable[i].name; i++)
598                 if (ExifTagTable[i].tag == tag)
599                         break;
600
601         return (ExifTagTable[i].name);
602 }
603
604 const char *
605 exif_tag_get_title (ExifTag tag)
606 {
607         unsigned int i;
608
609         bindtextdomain (GETTEXT_PACKAGE, LIBEXIF_LOCALEDIR);
610
611         for (i = 0; ExifTagTable[i].title; i++)
612                 if (ExifTagTable[i].tag == tag)
613                         break;
614
615         return (_(ExifTagTable[i].title));
616 }
617
618 const char *
619 exif_tag_get_description (ExifTag tag)
620 {
621         unsigned int i;
622
623         bindtextdomain (GETTEXT_PACKAGE, LIBEXIF_LOCALEDIR);
624
625         for (i = 0; ExifTagTable[i].description; i++)
626                 if (ExifTagTable[i].tag == tag)
627                         break;
628
629         return (_(ExifTagTable[i].description));
630 }