-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCCR.Exif.TagIDs.pas
executable file
·449 lines (426 loc) · 19.8 KB
/
CCR.Exif.TagIDs.pas
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
{**************************************************************************************}
{ }
{ CCR Exif - Delphi class library for reading and writing image metadata }
{ Version 1.5.3 }
{ }
{ The contents of this file are subject to the Mozilla Public License Version 1.1 }
{ (the "License"); you may not use this file except in compliance with the License. }
{ You may obtain a copy of the License at http://www.mozilla.org/MPL/ }
{ }
{ Software distributed under the License is distributed on an "AS IS" basis, WITHOUT }
{ WARRANTY OF ANY KIND, either express or implied. See the License for the specific }
{ language governing rights and limitations under the License. }
{ }
{ The Original Code is CCR.Exif.TagIDs.pas. }
{ }
{ The Initial Developer of the Original Code is Chris Rolliston. Portions created by }
{ Chris Rolliston are Copyright (C) 2009-2014 Chris Rolliston. All Rights Reserved. }
{ }
{**************************************************************************************}
unit CCR.Exif.TagIDs;
interface
const
{ TIFF/Exif main directory tags }
ttImageDescription = $010E;
ttMake = $010F;
ttModel = $0110;
ttOrientation = $0112;
ttXResolution = $011A;
ttYResolution = $011B;
ttResolutionUnit = $0128;
ttSoftware = $0131;
ttDateTime = $0132;
ttArtist = $013B;
ttWhitePoint = $013E;
ttPrimaryChromaticities = $013F;
ttYCbCrCoefficients = $0211;
ttYCbCrPositioning = $0213;
ttReferenceBlackWhite = $0214;
ttXMP = $02BC; //should be tdByte according to the XMP spec, with the packet itself UTF-8 encoded
ttCopyright = $8298;
ttIPTC = $83BB;
ttExifOffset = $8769;
ttGPSOffset = $8825;
ttPrintIM = $C4A5;
{ Additional Exif main directory tags supported by Windows Explorer - for all but
ttWindowsRating, the data type is tdByte and the content null-terminated UTF16LE,
even when the Exif block as a whole is big endian. }
ttWindowsTitle = $9C9B;
ttWindowsComments = $9C9C;
ttWindowsAuthor = $9C9D; //Vista's Windows Explorer will check for ttArtist too, though only sets this
ttWindowsKeywords = $9C9E; //'Tags' in the UI
ttWindowsSubject = $9C9F;
ttWindowsRating = $4746; //word value, despite being out of 5
{ Padding tag patented (!) by MS (http://www.freepatentsonline.com/7421451.html) }
ttWindowsPadding = $EA1C;
{ Exif sub-directory tags }
ttExposureTime = $829A;
ttFNumber = $829D;
ttExposureProgram = $8822; //1 = manual, 2 = normal, 3 = aperture priority, 4 = shutter priority, 5 = creative, 6 = action, 7 = portrait mode, 8 = landscape mode
ttSpectralSensitivity = $8824;
ttISOSpeedRatings = $8827;
ttExifVersion = $9000;
ttDateTimeOriginal = $9003;
ttDateTimeDigitized = $9004;
ttComponentsConfiguration = $9101;
ttCompressedBitsPerPixel = $9102;
ttShutterSpeedValue = $9201;
ttApertureValue = $9202;
ttBrightnessValue = $9203;
ttExposureBiasValue = $9204;
ttMaxApertureValue = $9205;
ttSubjectDistance = $9206;
ttMeteringMode = $9207;
ttLightSource = $9208;
ttFlash = $9209; //0 = didn't fire, 1 = fired, 2 = fired but strobe return light not detected, 7 = flash fired and strobe return light detected
ttFocalLength = $920A; //in millimetres
ttSubjectArea = $9214;
ttMakerNote = $927C;
ttUserComment = $9286;
ttSubsecTime = $9290;
ttSubsecTimeOriginal = $9291;
ttSubsecTimeDigitized = $9292;
ttFlashPixVersion = $A000;
ttColorSpace = $A001;
ttExifImageWidth = $A002;
ttExifImageHeight = $A003;
ttRelatedSoundFile = $A004;
ttInteropOffset = $A005;
ttFlashEnergy = $A20B;
ttSpatialFrequencyResponse = $A20C;
ttFocalPlaneXResolution = $A20E;
ttFocalPlaneYResolution = $A20F;
ttFocalPlaneResolutionUnit = $A210;
ttSubjectLocation = $A214;
ttExposureIndex = $A215;
ttSensingMethod = $A217;
ttFileSource = $A300; //$03 = digital still camera
ttSceneType = $A301; //$01 = directly photographed
ttCFAPattern = $A302;
ttCustomRendered = $A401;
ttExposureMode = $A402;
ttWhiteBalance = $A403;
ttDigitalZoomRatio = $A404;
ttFocalLengthIn35mmFilm = $A405;
ttSceneCaptureType = $A406;
ttGainControl = $A407;
ttContrast = $A408;
ttSaturation = $A409;
ttSharpness = $A40A;
ttDeviceSettingDescription = $A40B;
ttSubjectDistanceRange = $A40C;
ttImageUniqueID = $A420;
ttCameraOwnerName = $A430;
ttBodySerialNumber = $A431;
ttLensSpecification = $A432;
ttLensMake = $A433;
ttLensModel = $A434;
ttLensSerialNumber = $A435;
{ MakerNote tag data offset relative to where it originally was; tag defined by MS }
ttOffsetSchema = $EA1D;
{ Exif interoperability sub-directory tags }
ttInteropIndex = $0001;
ttInteropVersion = $0002;
ttRelatedImageFileFormat = $1000;
ttRelatedImageWidth = $1001;
ttRelatedImageLength = $1002;
{ GPS sub-directory tags }
ttGPSVersionID = $0000;
ttGPSLatitudeRef = $0001;
ttGPSLatitude = $0002;
ttGPSLongitudeRef = $0003;
ttGPSLongitude = $0004;
ttGPSAltitudeRef = $0005;
ttGPSAltitude = $0006;
ttGPSTimeStamp = $0007;
ttGPSSatellites = $0008;
ttGPSStatus = $0009;
ttGPSMeasureMode = $000A;
ttGPSDOP = $000B;
ttGPSSpeedRef = $000C;
ttGPSSpeed = $000D;
ttGPSTrackRef = $000E;
ttGPSTrack = $000F;
ttGPSImgDirectionRef = $0010;
ttGPSImgDirection = $0011;
ttGPSMapDatum = $0012;
ttGPSDestLatitudeRef = $0013;
ttGPSDestLatitude = $0014;
ttGPSDestLongitudeRef = $0015;
ttGPSDestLongitude = $0016;
ttGPSDestBearingRef = $0017;
ttGPSDestBearing = $0018;
ttGPSDestDistanceRef = $0019;
ttGPSDestDistance = $001A;
ttGPSProcessingMethod = $001B;
ttGPSAreaInformation = $001C;
ttGPSDateStamp = $001D;
ttGPSDifferential = $001E;
{ Exif thumbnail directory tags }
ttImageWidth = $0100; //shouldn't be used for a JPEG thumbnail
ttImageHeight = $0101; //shouldn't be used for a JPEG thumbnail
ttBitsPerSample = $0102; //shouldn't be used for a JPEG thumbnail
ttCompression = $0103; //value should be 6 for JPEG (1 = uncompressed TIFF
ttPhotometricInterp = $0106; //1=b/w, 2 = RGB, 6 = YCbCr; shouldn't be used for a JPEG thumbnail
ttStripOffsets = $0111; //for when thumbnail is a TIFF
ttSamplesPerPixel = $0115; //shouldn't be used for a JPEG thumbnail
ttRowsPerStrip = $0116; //shouldn't be used for a JPEG thumbnail
ttStripByteCounts = $0117; //for when thumbnail is a TIFF
ttPlanarConfiguration = $011C; //shouldn't be used for a JPEG thumbnail
ttTileOffsets = $0144; //shouldn't be used for a JPEG thumbnail
ttTileByteCounts = $0145; //shouldn't be used for a JPEG thumbnail
ttJPEGProc = $0200; //for old-style TIFF-JPEG
ttJPEGIFOffset = $0201;
ttJPEGIFByteCount = $0202;
ttThumbnailOffset = ttJPEGIFOffset;
ttThumbnailSize = ttJPEGIFByteCount;
{ Cannon MakerNote tags }
ttCanonCameraSettings = $0001;
ttCanonFocalLength = $0002;
ttCanonFlashInfo = $0003;
ttCanonShotInfo = $0004;
ttCanonPanorama = $0005;
ttCanonImageType = $0006; //tdAscii
ttCanonFirmwareVersion = $0007; //tdAscii
ttCanonFileNumber = $0008; //tdLongWord
ttCanonOwnerName = $0009; //tdAscii
ttCanonSerialNumber = $000C; //tdLongWord
ttCanonCameraInfo = $000D;
ttCanonFileLength = $000E; //tdLongWord
ttCanonFunctions = $000F;
ttCanonModelID = $0010; //tdLongWord
ttCanonAFInfo = $0012;
ttCanonValidThumbnailArea = $0013; //tdWord x 4; all zeros for full frame
ttCanonSerialNumberFormat = $0015; //tdLongWord
ttCanonSuperMacro = $001A; //tdWord (0 = off, 1 = on (1) 2 = on (2)
ttCanonDateStampMode = $001C; //tdWord (0 = off, 1 = date, 2 = date and time
ttCanonMyColors = $001D;
ttCanonFirmwareRevision = $001E; //tdLongWord
ttCanonCategories = $0023; //tdLongWord x 2 (first value always 8)
{ Kodak MakerNote tags }
ttKodakImageWidth = $0005;
ttKodakYear = $0006;
{ Nikon Type 3 MakerNote tags }
ttNikonType3Version = $0001;
ttNikonType3ISOSpeed = $0002;
ttNikonType3ColorMode = $0003;
ttNikonType3Quality = $0004;
ttNikonType3WhiteBalance = $0005;
ttNikonType3Sharpening = $0006;
ttNikonType3FocusMode = $0007;
ttNikonType3FlashSetting = $0008;
ttNikonType3AutoFlashMode = $0009;
ttNikonType3MiscRatio = $000A;
ttNikonType3WhiteBalanceBias = $000B;
ttNikonType3WB_RBLevels = $000C;
ttNikonType3ProgramShift = $000D;
ttNikonType3ExposureDiff = $000E;
ttNikonType3ISOSelection = $000F;
ttNikonType3DataDump = $0010;
ttNikonType3Preview = $0011;
ttNikonType3FlashComp = $0012;
ttNikonType3ISOSettings = $0013;
ttNikonType3ImageBoundary = $0016;
ttNikonType3FlashExposureComp = $0017;
ttNikonType3FlashBracketComp = $0018;
ttNikonType3AutoExposureBracketComp = $0019;
ttNikonType3ImageProcessing = $001A;
ttNikonType3CropHiSpeed = $001B;
ttNikonType3ExposureTuning = $001C;
ttNikonType3SerialNumber = $001D;
ttNikonType3ColorSpace = $001E;
ttNikonType3VRInfo = $001F;
ttNikonType3ImageAuthentication = $0020;
ttNikonType3ActiveDLighting = $0022;
ttNikonType3PictureControl = $0023;
ttNikonType3WorldTime = $0024;
ttNikonType3ISOInfo = $0025;
ttNikonType3VignetteControl = $002A;
ttNikonType3ImageAdjustment = $0080;
ttNikonType3ToneComp = $0081;
ttNikonType3AuxiliaryLens = $0082;
ttNikonType3LensType = $0083;
ttNikonType3Lens = $0084;
ttNikonType3FocusDistance = $0085;
ttNikonType3DigitalZoom = $0086;
ttNikonType3FlashMode = $0087;
ttNikonType3AFInfo = $0088;
ttNikonType3ShootingMode = $0089;
ttNikonType3AutoBracketRelease = $008A;
ttNikonType3LensFStops = $008B;
ttNikonType3ContrastCurve = $008C;
ttNikonType3ColorHue = $008D;
ttNikonType3SceneMode = $008F;
ttNikonType3LightSource = $0090;
ttNikonType3ShotInfo = $0091;
ttNikonType3HueAdjustment = $0092;
ttNikonType3NEFCompression = $0093;
ttNikonType3Saturation = $0094;
ttNikonType3NoiseReduction = $0095;
ttNikonType3LinearizationTable = $0096;
ttNikonType3ColorBalance = $0097;
ttNikonType3LensData = $0098;
ttNikonType3RawImageCenter = $0099;
ttNikonType3SensorPixelSize = $009A;
ttNikonType3SceneAssist = $009C;
ttNikonType3RetouchHistory = $009E;
ttNikonType3CameraSerialNumber = $00A0;
ttNikonType3ImageDataSize = $00A2;
ttNikonType3ImageCount = $00A5;
ttNikonType3DeletedImageCount = $00A6;
ttNikonType3ShutterCount = $00A7;
ttNikonType3FlashInfo = $00A8;
ttNikonType3ImageOptimization = $00A9;
ttNikonType3SaturationText = $00AA;
ttNikonType3DigitalVarProg = $00AB;
ttNikonType3ImageStabilization = $00AC;
ttNikonType3AFResponse = $00AD;
ttNikonType3MultiExposure = $00B0;
ttNikonType3HighISONoiseReduction = $00B1;
ttNikonType3ToningEffect = $00B3;
ttNikonType3AFInfo2 = $00B7;
ttNikonType3FileInfo = $00B8;
ttNikonType3PrintIM = $0E00;
ttNikonType3CaptureData = $0E01;
ttNikonType3CaptureVersion = $0E09;
ttNikonType3CaptureOffsets = $0E0E;
ttNikonType3ScanIFD = $0E10;
ttNikonType3ICCProfile = $0E1D;
ttNikonType3CaptureOutput = $0E1E;
ttNikonType3First = ttNikonType3Version;
ttNikonType3Last = ttNikonType3CaptureOutput;
{ Panasonic MakerNote tags }
ttPanasonicImageQuality = $0001;
ttPanasonicFirmwareVersion = $0002;
ttPanasonicWhiteBalance = $0003;
ttPanasonicFocusMode = $0007;
ttPanasonicSpotMode = $000F;
ttPanasonicImageStabilizer = $001A;
ttPanasonicMacroMode = $001C;
ttPanasonicShootingMode = $001F;
ttPanasonicAudio = $0020;
ttPanasonicDataDump = $0021;
ttPanasonicWhiteBalanceBias = $0023;
ttPanasonicFlashBias = $0024;
ttPanasonicInternalSerialNum = $0025;
ttPanasonicExifVersion = $0026;
ttPanasonicColorEffect = $0028;
ttPanasonicTimeSincePowerOn = $0029;
ttPanasonicBurstMode = $002A;
ttPanasonicSequenceNumber = $002B;
ttPanasonicContrastMode = $002C;
ttPanasonicNoiseReduction = $002D;
ttPanasonicSelfTimer = $002E;
ttPanasonicRotation = $0030;
ttPanasonicAFAssistLamp = $0031;
ttPanasonicColorMode = $0032;
ttPanasonicBabyOrPetAge1 = $0033;
ttPanasonicOpticalZoomMode = $0034;
ttPanasonicConversionLens = $0035;
ttPanasonicTravelDay = $0036;
ttPanasonicWorldTimeLocation = $003A;
ttPanasonicTextStamp1 = $003B;
ttPanasonicProgramISO = $003C;
ttPanasonicSaturation = $0040;
ttPanasonicSharpness = $0041;
ttPanasonicFilmMode = $0042;
ttPanasonicWBAdjustAB = $0046;
ttPanasonicWBAdjustGM = $0047;
ttPanasonicLensType = $0051;
ttPanasonicLensSerialNumber = $0052;
ttPanasonicAccessoryType = $0053;
ttPanasonicMakerNoteVersion = $8000;
ttPanasonicSceneMode = $8001;
ttPanasonicWBRedLevel = $8004;
ttPanasonicWBGreenLevel = $8005;
ttPanasonicWBBlueLevel = $8006;
ttPanasonicTextStamp2 = $8008;
ttPanasonicTextStamp3 = $8009;
ttPanasonicBabyOrPetAge2 = $8010;
{ IPTC record IDs }
isEnvelope = 1;
isApplication = 2;
{ IPTC record 1 tags }
itModelVersion = 0;
itDestination = 5;
itFileFormat = 20;
itFileFormatVersion = 22;
itServiceIdentifier = 30;
itEnvelopeNumber = 40;
itProductID = 50;
itEnvelopePriority = 60; //1=most urgent, 5=normal, 8=least, 9=user defined
itDateSent = 70; //CCYYMMDD
itTimeSent = 80; //HHMMSS±HHMM
itCodedCharset = 90;
itUNO = 100;
itARMIdentifier = 120;
itARMVersion = 122;
{ IPTC record 2 tags }
itRecordVersion = 0; //word value; should be 4
itObjectTypeRef = 3;
itObjectAttributeRef = 4; //repeatable
itObjectName = 5; //e.g. 'Ferry Sinks' (nice and blunt then...)
itEditStatus = 7; //e.g. 'Lead', 'CORRECTION'
itEditorialUpdate = 8;
itUrgency = 10;
itSubjectRef = 12; //repeatable
itCategory = 15;
itSupplementaryCategory = 20; //repeatable
itFixtureIdentifier = 22;
itKeyword = 25; //repeatable (one keyword per instance)
itContentLocationCode = 26; //repeatable with the next tag as a pair
itContentLocationName = 27; //repeatable with the previous tag as a pair
itReleaseDate = 30; //CCYYMMDD
itReleaseTime = 35; //HHMMSS±HHMM
itExpirationDate = 37; //CCYYMMDD
itExpirationTime = 38; //HHMMSS±HHMM
itSpecialInstructions = 40;
itActionAdvised = 42; //'01', '02', '03' or '04';
itReferenceService = 45; //repeatable with next two tags in sequence
itReferenceDate = 47;
itReferenceNumber = 50;
itDateCreated = 55; //CCYYMMDD; 'to designate the date the intellectual content of the objectdata was created rather than the date of the creation of the physical representation' (IPTC spec)
itTimeCreated = 60; //HHMMSS±HHMM
itDigitalCreationDate = 62; //CCYYMMDD
itDigitalCreationTime = 63; //HHMMSS±HHMM
itOriginatingProgram = 65;
itProgramVersion = 70; //string
itObjectCycle = 75; //'a'=morning, 'p'=evening, 'b'=both
itByline = 80; //repeatable
itBylineTitle = 85; //e.g. 'Staff Photographer'; repeatable
itCity = 90;
itSubLocation = 92;
itProvinceOrState = 95;
itCountryCode = 100; //three-letter code
itCountryName = 101; //three-letter code
itOriginalTransmissionRef = 103;
itHeadline = 105;
itCredit = 110;
itSource = 115;
itCopyrightNotice = 116;
itContact = 118; //repeatable
itCaptionOrAbstract = 120;
itWriterOrEditor = 122; //repeatable
itRasterizedCaption = 125; //binary
itImageType = 130; //two character code
itImageOrientation = 131; //'P' = portrait, 'L' = landscape, 'S' = sqaure
itLanguageIdentifier = 135; //2 or 3 character code
itAudioType = 150; //2 character code
itAudioSamplingRate = 151; //six digit string of numbers (includes leading zero)
itAudioSamplingResolution = 152; //e.g. '08' for 8 bit, '24' for 24 bit
itAudioDuration = 153; //HHMMSS
itAudioAutocue = 154; //e.g. '... better as a team', 'fades', '...Jean Krause Paris'
itObjectDataPreviewFileFormat = 200; //binary word number
itObjectDataPreviewFileFormatVersion = 201; //binary word number
itObjectDataPreviewData = 202;
{ IPTC record 7 tags }
itSizeMode = 10;
itMaxSubFileSize = 20;
itObjectDataSizeAnnounced = 90;
itMaxObjectDataSize = 95;
{ IPTC record 8 tags }
itSubfile = 10;
{ IPTC record 9 tags }
itConfirmedObjectDataSize = 10;
implementation
end.