• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*****************************************************************************/
2 // Copyright 2006-2011 Adobe Systems Incorporated
3 // All Rights Reserved.
4 //
5 // NOTICE:  Adobe permits you to use, modify, and distribute this file in
6 // accordance with the terms of the Adobe license agreement accompanying it.
7 /*****************************************************************************/
8 
9 /* $Id: //mondo/dng_sdk_1_4/dng_sdk/source/dng_tag_codes.h#3 $ */
10 /* $DateTime: 2012/05/31 13:27:06 $ */
11 /* $Change: 832568 $ */
12 /* $Author: tknoll $ */
13 
14 /*****************************************************************************/
15 
16 #ifndef __dng_tag_codes__
17 #define __dng_tag_codes__
18 
19 /*****************************************************************************/
20 
21 // TIFF tags 50706 through 50741 registered at:
22 // http://partners.adobe.com/asn/tech/tiff/tiffregister.jsp
23 // on 2003-11-04 & 2003-12-02, purpose "Digital Negative".
24 
25 // TIFF tags 50778 through 50781 registered at:
26 // http://partners.adobe.com/asn/tech/tiff/tiffregister.jsp
27 // on 2004-08-17, purpose "Digital Negative".
28 
29 // TIFF tags 50827 through 50834 registered at:
30 // http://partners.adobe.com/asn/tech/tiff/tiffregister.jsp
31 // on 2004-12-06, purpose "Digital Negative".
32 
33 // TIFF tag number 50879 registered at:
34 // http://partners.adobe.com/asn/tech/tiff/tiffregister.jsp
35 // on 2006-03-23, purpose "Digital Negative".
36 
37 // TIFF compression numbers 34892 through 34895 registered at:
38 // http://partners.adobe.com/asn/tech/tiff/tiffregister.jsp
39 // on 2003-11-04, purpose "Digital Negative".
40 
41 // TIFF tags numbers 50931 through 50942 registered at:
42 // http://partners.adobe.com/asn/tech/tiff/tiffregister.jsp
43 // on 2007-04-30, purpose "Digital Negative".
44 
45 // TIFF tags numbers 50964 through 50975 registered at:
46 // http://partners.adobe.com/asn/tech/tiff/tiffregister.jsp
47 // on 2007-12-17, purpose "Digital Negative".
48 
49 // TIFF tags numbers 50981 through 50982 registered at:
50 // http://partners.adobe.com/asn/tech/tiff/tiffregister.jsp
51 // on 2008-04-01, purpose "Digital Negative".
52 
53 // TIFF tags numbers 51008 through 51009 registered at:
54 // http://partners.adobe.com/asn/tech/tiff/tiffregister.jsp
55 // on 2008-10-15, purpose "Digital Negative".
56 
57 // TIFF tag number 51022 registered at:
58 // http://partners.adobe.com/asn/tech/tiff/tiffregister.jsp
59 // on 2008-12-15, purpose "Digital Negative".
60 
61 // TIFF tag number 51041 registered at:
62 // http://partners.adobe.com/asn/tech/tiff/tiffregister.jsp
63 // on 2009-5-7, purpose "Digital Negative".
64 
65 // TIFF tags numbers 51089 through 51091 registered at:
66 // http://partners.adobe.com/asn/tech/tiff/tiffregister.jsp
67 // on 2011-07-01, purpose "Digital Negative".
68 
69 // TIFF tags numbers 51107 through 51110 registered at:
70 // http://partners.adobe.com/asn/tech/tiff/tiffregister.jsp
71 // on 2011-09-22, purpose "Digital Negative".
72 
73 // TIFF tag number 51111 registered at:
74 // http://partners.adobe.com/asn/tech/tiff/tiffregister.jsp
75 // on 2011-10-07, purpose "Digital Negative".
76 
77 // TIFF tags numbers 51112 through 51114 registered at:
78 // http://partners.adobe.com/asn/tech/tiff/tiffregister.jsp
79 // on 2011-10-25, purpose "Digital Negative".
80 
81 // TIFF tags number 51125 registered at:
82 // http://partners.adobe.com/asn/tech/tiff/tiffregister.jsp
83 // on 2012-05-31, purpose "Digital Negative".
84 
85 /*****************************************************************************/
86 
87 // TIFF, DNG, TIFF/EP, and Exif tag codes all share the main TIFF tag code
88 // number space.  In cases where TIFF/EP and Exif have different values for
89 // tags with the same name, "Exif" is appended to the name of the Exif version
90 // of the tag.
91 
92 enum
93 	{
94 	tcNewSubFileType				= 254,
95 	tcSubFileType					= 255,
96 	tcImageWidth					= 256,
97 	tcImageLength					= 257,
98 	tcBitsPerSample					= 258,
99 	tcCompression					= 259,
100 	tcPhotometricInterpretation		= 262,
101 	tcThresholding					= 263,
102 	tcCellWidth						= 264,
103 	tcCellLength					= 265,
104 	tcFillOrder						= 266,
105 	tcImageDescription				= 270,
106 	tcMake							= 271,
107 	tcModel							= 272,
108 	tcStripOffsets					= 273,
109 	tcOrientation					= 274,
110 	tcSamplesPerPixel				= 277,
111 	tcRowsPerStrip					= 278,
112 	tcStripByteCounts				= 279,
113 	tcMinSampleValue				= 280,
114 	tcMaxSampleValue				= 281,
115 	tcXResolution					= 282,
116 	tcYResolution					= 283,
117 	tcPlanarConfiguration			= 284,
118 	tcFreeOffsets					= 285,
119 	tcFreeByteCounts				= 286,
120 	tcGrayResponseUnit				= 290,
121 	tcGrayResponseCurve				= 291,
122 	tcResolutionUnit				= 296,
123 	tcTransferFunction				= 301,
124 	tcSoftware						= 305,
125 	tcDateTime						= 306,
126 	tcArtist						= 315,
127 	tcHostComputer					= 316,
128 	tcPredictor						= 317,
129 	tcWhitePoint					= 318,
130 	tcPrimaryChromaticities			= 319,
131 	tcColorMap						= 320,
132 	tcTileWidth						= 322,
133 	tcTileLength					= 323,
134 	tcTileOffsets					= 324,
135 	tcTileByteCounts				= 325,
136 	tcSubIFDs						= 330,
137 	tcExtraSamples					= 338,
138 	tcSampleFormat					= 339,
139 	tcJPEGTables					= 347,
140 	tcJPEGProc						= 512,
141 	tcJPEGInterchangeFormat			= 513,
142 	tcJPEGInterchangeFormatLength	= 514,
143 	tcYCbCrCoefficients				= 529,
144 	tcYCbCrSubSampling				= 530,
145 	tcYCbCrPositioning				= 531,
146 	tcReferenceBlackWhite			= 532,
147 	tcXMP							= 700,
148 	tcKodakCameraSerialNumber		= 33405,
149 	tcCFARepeatPatternDim			= 33421,
150 	tcCFAPattern					= 33422,
151 	tcBatteryLevel					= 33423,
152 	tcKodakDCRPrivateIFD			= 33424,
153 	tcCopyright						= 33432,
154 	tcExposureTime					= 33434,
155 	tcFNumber						= 33437,
156 	tcIPTC_NAA						= 33723,
157 	tcLeafPKTS						= 34310,
158 	tcAdobeData						= 34377,
159 	tcExifIFD						= 34665,
160 	tcICCProfile					= 34675,
161 	tcExposureProgram				= 34850,
162 	tcSpectralSensitivity			= 34852,
163 	tcGPSInfo						= 34853,
164 	tcISOSpeedRatings				= 34855, 	// EXIF 2.3: PhotographicSensitivity.
165 	tcOECF							= 34856,
166 	tcInterlace						= 34857,
167 	tcTimeZoneOffset				= 34858,
168 	tcSelfTimerMode					= 34859,
169 	tcSensitivityType				= 34864,
170 	tcStandardOutputSensitivity		= 34865,
171 	tcRecommendedExposureIndex		= 34866,
172 	tcISOSpeed						= 34867,
173 	tcISOSpeedLatitudeyyy			= 34868,
174 	tcISOSpeedLatitudezzz			= 34869,
175 	tcExifVersion					= 36864,
176 	tcDateTimeOriginal				= 36867,
177 	tcDateTimeDigitized				= 36868,
178 	tcComponentsConfiguration		= 37121,
179 	tcCompressedBitsPerPixel		= 37122,
180 	tcShutterSpeedValue				= 37377,
181 	tcApertureValue					= 37378,
182 	tcBrightnessValue				= 37379,
183 	tcExposureBiasValue				= 37380,
184 	tcMaxApertureValue				= 37381,
185 	tcSubjectDistance				= 37382,
186 	tcMeteringMode					= 37383,
187 	tcLightSource					= 37384,
188 	tcFlash							= 37385,
189 	tcFocalLength					= 37386,
190 	tcFlashEnergy					= 37387,
191 	tcSpatialFrequencyResponse		= 37388,
192 	tcNoise							= 37389,
193 	tcFocalPlaneXResolution 		= 37390,
194 	tcFocalPlaneYResolution			= 37391,
195 	tcFocalPlaneResolutionUnit		= 37392,
196 	tcImageNumber					= 37393,
197 	tcSecurityClassification		= 37394,
198 	tcImageHistory					= 37395,
199 	tcSubjectArea					= 37396,
200 	tcExposureIndex					= 37397,
201 	tcTIFF_EP_StandardID			= 37398,
202 	tcSensingMethod					= 37399,
203 	tcMakerNote						= 37500,
204 	tcUserComment					= 37510,
205 	tcSubsecTime					= 37520,
206 	tcSubsecTimeOriginal			= 37521,
207 	tcSubsecTimeDigitized			= 37522,
208 	tcAdobeLayerData				= 37724,
209 	tcFlashPixVersion				= 40960,
210 	tcColorSpace					= 40961,
211 	tcPixelXDimension				= 40962,
212 	tcPixelYDimension				= 40963,
213 	tcRelatedSoundFile				= 40964,
214 	tcInteroperabilityIFD			= 40965,
215 	tcFlashEnergyExif				= 41483,
216 	tcSpatialFrequencyResponseExif 	= 41484,
217 	tcFocalPlaneXResolutionExif		= 41486,
218 	tcFocalPlaneYResolutionExif		= 41487,
219 	tcFocalPlaneResolutionUnitExif	= 41488,
220 	tcSubjectLocation				= 41492,
221 	tcExposureIndexExif			    = 41493,
222 	tcSensingMethodExif				= 41495,
223 	tcFileSource					= 41728,
224 	tcSceneType						= 41729,
225 	tcCFAPatternExif				= 41730,
226 	tcCustomRendered				= 41985,
227 	tcExposureMode					= 41986,
228 	tcWhiteBalance					= 41987,
229 	tcDigitalZoomRatio				= 41988,
230 	tcFocalLengthIn35mmFilm			= 41989,
231 	tcSceneCaptureType				= 41990,
232 	tcGainControl					= 41991,
233 	tcContrast						= 41992,
234 	tcSaturation					= 41993,
235 	tcSharpness						= 41994,
236 	tcDeviceSettingDescription		= 41995,
237 	tcSubjectDistanceRange			= 41996,
238 	tcImageUniqueID					= 42016,
239 	tcCameraOwnerNameExif			= 42032,
240 	tcCameraSerialNumberExif		= 42033,
241 	tcLensSpecificationExif			= 42034,
242 	tcLensMakeExif					= 42035,
243 	tcLensModelExif					= 42036,
244 	tcLensSerialNumberExif			= 42037,
245 	tcGamma							= 42240,
246 	tcPrintImageMatchingInfo		= 50341,
247 	tcDNGVersion					= 50706,
248 	tcDNGBackwardVersion			= 50707,
249 	tcUniqueCameraModel				= 50708,
250 	tcLocalizedCameraModel			= 50709,
251 	tcCFAPlaneColor					= 50710,
252 	tcCFALayout						= 50711,
253 	tcLinearizationTable			= 50712,
254 	tcBlackLevelRepeatDim			= 50713,
255 	tcBlackLevel					= 50714,
256 	tcBlackLevelDeltaH				= 50715,
257 	tcBlackLevelDeltaV				= 50716,
258 	tcWhiteLevel					= 50717,
259 	tcDefaultScale					= 50718,
260 	tcDefaultCropOrigin				= 50719,
261 	tcDefaultCropSize				= 50720,
262 	tcColorMatrix1					= 50721,
263 	tcColorMatrix2					= 50722,
264 	tcCameraCalibration1			= 50723,
265 	tcCameraCalibration2			= 50724,
266 	tcReductionMatrix1				= 50725,
267 	tcReductionMatrix2				= 50726,
268 	tcAnalogBalance					= 50727,
269 	tcAsShotNeutral					= 50728,
270 	tcAsShotWhiteXY					= 50729,
271 	tcBaselineExposure				= 50730,
272 	tcBaselineNoise					= 50731,
273 	tcBaselineSharpness				= 50732,
274 	tcBayerGreenSplit				= 50733,
275 	tcLinearResponseLimit			= 50734,
276 	tcCameraSerialNumber			= 50735,
277 	tcLensInfo						= 50736,
278 	tcChromaBlurRadius				= 50737,
279 	tcAntiAliasStrength				= 50738,
280 	tcShadowScale					= 50739,
281 	tcDNGPrivateData				= 50740,
282 	tcMakerNoteSafety				= 50741,
283 	tcCalibrationIlluminant1		= 50778,
284 	tcCalibrationIlluminant2		= 50779,
285 	tcBestQualityScale				= 50780,
286 	tcRawDataUniqueID				= 50781,
287 	tcOriginalRawFileName			= 50827,
288 	tcOriginalRawFileData			= 50828,
289 	tcActiveArea					= 50829,
290 	tcMaskedAreas					= 50830,
291 	tcAsShotICCProfile				= 50831,
292 	tcAsShotPreProfileMatrix		= 50832,
293 	tcCurrentICCProfile				= 50833,
294 	tcCurrentPreProfileMatrix		= 50834,
295 	tcColorimetricReference			= 50879,
296 	tcCameraCalibrationSignature	= 50931,
297 	tcProfileCalibrationSignature  	= 50932,
298 	tcExtraCameraProfiles			= 50933,
299 	tcAsShotProfileName				= 50934,
300 	tcNoiseReductionApplied			= 50935,
301 	tcProfileName					= 50936,
302 	tcProfileHueSatMapDims			= 50937,
303 	tcProfileHueSatMapData1			= 50938,
304 	tcProfileHueSatMapData2			= 50939,
305 	tcProfileToneCurve				= 50940,
306 	tcProfileEmbedPolicy			= 50941,
307 	tcProfileCopyright				= 50942,
308 	tcForwardMatrix1				= 50964,
309 	tcForwardMatrix2				= 50965,
310 	tcPreviewApplicationName		= 50966,
311 	tcPreviewApplicationVersion		= 50967,
312 	tcPreviewSettingsName			= 50968,
313 	tcPreviewSettingsDigest			= 50969,
314 	tcPreviewColorSpace				= 50970,
315 	tcPreviewDateTime				= 50971,
316 	tcRawImageDigest				= 50972,
317 	tcOriginalRawFileDigest			= 50973,
318 	tcSubTileBlockSize				= 50974,
319 	tcRowInterleaveFactor			= 50975,
320 	tcProfileLookTableDims			= 50981,
321 	tcProfileLookTableData			= 50982,
322 	tcOpcodeList1					= 51008,
323 	tcOpcodeList2					= 51009,
324 	tcOpcodeList3					= 51022,
325 	tcNoiseProfile					= 51041,
326 	tcOriginalDefaultFinalSize		= 51089,
327 	tcOriginalBestQualityFinalSize	= 51090,
328 	tcOriginalDefaultCropSize		= 51091,
329 	tcProfileHueSatMapEncoding		= 51107,
330 	tcProfileLookTableEncoding		= 51108,
331 	tcBaselineExposureOffset		= 51109,
332 	tcDefaultBlackRender			= 51110,
333 	tcNewRawImageDigest				= 51111,
334 	tcRawToPreviewGain				= 51112,
335 	tcCacheBlob						= 51113,
336 	tcCacheVersion					= 51114,
337 	tcDefaultUserCrop				= 51125,
338 	tcKodakKDCPrivateIFD			= 65024
339 	};
340 
341 /*****************************************************************************/
342 
343 // Additional values that can be passed as IFD parent codes.
344 
345 enum
346 	{
347 
348 	tcFirstSubIFD					= 0x10000,
349 	tcLastSubIFD					= 0x1FFFF,
350 
351 	tcFirstChainedIFD				= 0x20000,
352 	tcLastChainedIFD				= 0x2FFFF,
353 
354 	tcFirstMakerNoteIFD				= 0x30000,
355 	tcLastMakerNoteIFD				= 0x3FFFF,
356 
357 	tcCanonMakerNote				= tcFirstMakerNoteIFD,
358 	tcCasioMakerNote,
359 	tcEpsonMakerNote,
360 	tcFujiMakerNote,
361 	tcHasselbladMakerNote,
362 	tcKodakMakerNote,
363 	tcKodakMakerNote65280,
364 	tcLeicaMakerNote,
365 	tcMamiyaMakerNote,
366 	tcMinoltaMakerNote,
367 	tcNikonMakerNote,
368 	tcOlympusMakerNote,
369 	tcOlympusMakerNote8208,
370 	tcOlympusMakerNote8224,
371 	tcOlympusMakerNote8240,
372 	tcOlympusMakerNote8256,
373 	tcOlympusMakerNote8272,
374 	tcOlympusMakerNote12288,
375 	tcPanasonicMakerNote,
376 	tcPentaxMakerNote,
377 	tcPhaseOneMakerNote,
378 	tcRicohMakerNote,
379 	tcRicohMakerNoteCameraInfo,
380 	tcSamsungMakerNote,
381 	tcSonyMakerNote,
382 	tcSonyMakerNoteSubInfo,
383 	tcSonyPrivateIFD1,
384 	tcSonyPrivateIFD2,
385 	tcSonyPrivateIFD3A,
386 	tcSonyPrivateIFD3B,
387 	tcSonyPrivateIFD3C,
388 
389 	tcCanonCRW						= 0x40000,
390 	tcContaxRAW,
391 	tcContaxHeader,
392 	tcFujiRAF,
393 	tcFujiHeader,
394 	tcFujiRawInfo1,
395 	tcFujiRawInfo2,
396 	tcLeafMOS,
397 	tcMinoltaMRW,
398 	tcPanasonicRAW,
399 	tcFoveonX3F,
400 	tcJPEG,
401 	tcAdobePSD
402 
403 	};
404 
405 /*****************************************************************************/
406 
407 // GPS tag codes are only valid in the GPS IFD.
408 
409 enum
410 	{
411 	tcGPSVersionID					= 0,
412 	tcGPSLatitudeRef				= 1,
413 	tcGPSLatitude					= 2,
414 	tcGPSLongitudeRef				= 3,
415 	tcGPSLongitude					= 4,
416 	tcGPSAltitudeRef				= 5,
417 	tcGPSAltitude					= 6,
418 	tcGPSTimeStamp					= 7,
419 	tcGPSSatellites					= 8,
420 	tcGPSStatus						= 9,
421 	tcGPSMeasureMode				= 10,
422 	tcGPSDOP						= 11,
423 	tcGPSSpeedRef					= 12,
424 	tcGPSSpeed						= 13,
425 	tcGPSTrackRef					= 14,
426 	tcGPSTrack						= 15,
427 	tcGPSImgDirectionRef			= 16,
428 	tcGPSImgDirection				= 17,
429 	tcGPSMapDatum					= 18,
430 	tcGPSDestLatitudeRef			= 19,
431 	tcGPSDestLatitude				= 20,
432 	tcGPSDestLongitudeRef			= 21,
433 	tcGPSDestLongitude				= 22,
434 	tcGPSDestBearingRef				= 23,
435 	tcGPSDestBearing				= 24,
436 	tcGPSDestDistanceRef			= 25,
437 	tcGPSDestDistance				= 26,
438 	tcGPSProcessingMethod			= 27,
439 	tcGPSAreaInformation			= 28,
440 	tcGPSDateStamp					= 29,
441 	tcGPSDifferential				= 30,
442 	tcGPSHPositioningError			= 31
443 	};
444 
445 /*****************************************************************************/
446 
447 // Tag codes used in the Interoperability IFD.
448 
449 enum
450 	{
451 	tcInteroperabilityIndex			= 0x0001,
452 	tcInteroperabilityVersion		= 0x0002,
453 	tcRelatedImageFileFormat		= 0x1000,
454 	tcRelatedImageWidth				= 0x1001,
455 	tcRelatedImageLength			= 0x1002
456 	};
457 
458 /*****************************************************************************/
459 
460 // JPEG marker codes.
461 
462 enum JpegMarker
463 	{
464 
465 	M_TEM = 0x01,
466 
467 	M_SOF0  = 0xc0,
468 	M_SOF1  = 0xc1,
469 	M_SOF2  = 0xc2,
470 	M_SOF3  = 0xc3,
471 	M_DHT   = 0xc4,
472 	M_SOF5  = 0xc5,
473 	M_SOF6  = 0xc6,
474 	M_SOF7  = 0xc7,
475 	M_JPG   = 0xc8,
476 	M_SOF9  = 0xc9,
477 	M_SOF10 = 0xca,
478 	M_SOF11 = 0xcb,
479 	M_DAC   = 0xcc,
480 	M_SOF13 = 0xcd,
481 	M_SOF14 = 0xce,
482 	M_SOF15 = 0xcf,
483 
484 	M_RST0 = 0xd0,
485 	M_RST1 = 0xd1,
486 	M_RST2 = 0xd2,
487 	M_RST3 = 0xd3,
488 	M_RST4 = 0xd4,
489 	M_RST5 = 0xd5,
490 	M_RST6 = 0xd6,
491 	M_RST7 = 0xd7,
492 
493 	M_SOI = 0xd8,
494 	M_EOI = 0xd9,
495 	M_SOS = 0xda,
496 	M_DQT = 0xdb,
497 	M_DNL = 0xdc,
498 	M_DRI = 0xdd,
499 	M_DHP = 0xde,
500 	M_EXP = 0xdf,
501 
502 	M_APP0  = 0xe0,
503 	M_APP1  = 0xe1,
504 	M_APP2  = 0xe2,
505 	M_APP3  = 0xe3,
506 	M_APP4  = 0xe4,
507 	M_APP5  = 0xe5,
508 	M_APP6  = 0xe6,
509 	M_APP7  = 0xe7,
510 	M_APP8  = 0xe8,
511 	M_APP9  = 0xe9,
512 	M_APP10 = 0xea,
513 	M_APP11 = 0xeb,
514 	M_APP12 = 0xec,
515 	M_APP13 = 0xed,
516 	M_APP14 = 0xee,
517 	M_APP15 = 0xef,
518 
519 	M_JPG0  = 0xf0,
520 	M_JPG1  = 0xf1,
521 	M_JPG2  = 0xf2,
522 	M_JPG3  = 0xf3,
523 	M_JPG4  = 0xf4,
524 	M_JPG5  = 0xf5,
525 	M_JPG6  = 0xf6,
526 	M_JPG7  = 0xf7,
527 	M_JPG8  = 0xf8,
528 	M_JPG9  = 0xf9,
529 	M_JPG10 = 0xfa,
530 	M_JPG11 = 0xfb,
531 	M_JPG12 = 0xfc,
532 	M_JPG13 = 0xfd,
533 	M_COM   = 0xfe,
534 
535 	M_ERROR = 0x100
536 
537 	};
538 
539 /*****************************************************************************/
540 
541 #endif
542 
543 /*****************************************************************************/
544