Skip to content

Commit 2ce182b

Browse files
enpinionWerWolv
andauthored
patterns/tiff: Tags for DNG and TIFF extensions (#376)
Add Tags for DNG and TIFF extensions References: https://www.loc.gov/preservation/digital/formats/content/tiff_tags.shtml https://helpx.adobe.com/camera-raw/digital-negative.html Co-authored-by: Nik <[email protected]>
1 parent 6cadad3 commit 2ce182b

File tree

1 file changed

+228
-1
lines changed

1 file changed

+228
-1
lines changed

patterns/tiff.hexpat

+228-1
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,235 @@ enum TIFFTag : u16 {
151151
YCbCrSubSampling = 0x0212,
152152
YCbCrPositioning = 0x0213,
153153
ReferenceBlackWhite = 0x0214,
154+
StripRowCounts = 0x022F, // 559
155+
XMP = 0x02BC, // 700
156+
ImageRating = 0x4746, // 18246
157+
ImageRatingPercent = 0x4749, // 18249
158+
ImageID = 0x800D, // 32781
159+
WangAnnotation = 0x80A4, // 32932
160+
CFARepeatPatternDim = 0x828D, // 33421
161+
CFAPattern = 0x828E, // 33422
162+
BatteryLevel = 0x828F, // 33423
154163
Copyright = 0x8298,
155-
ICCProfile = 0x8773
164+
ExposureTime = 0x829A, // 33434
165+
FNumber = 0x829D, // 33437
166+
MDFileTag = 0x82A5, // 33445
167+
MDScalePixel = 0x82A6, // 33446
168+
MDColorTable = 0x82A7, // 33447
169+
MDLabName = 0x82A8, // 33448
170+
MDSampleInfo = 0x82A9, // 33449
171+
MDPrepDate = 0x82AA, // 33450
172+
MDPrepTime = 0x82AB, // 33451
173+
MDFileUnits = 0x82AC, // 33452
174+
ModelPixelScaleTag = 0x830E, // 33550
175+
IPTCNAA = 0x83BB, // 33723
176+
INGRPacketDataTag = 0x847E, // 33918
177+
INGRFlagRegisters = 0x847F, // 33919
178+
IrasBTransformationMatrix = 0x8480, // 33920
179+
ModelTiepointTag = 0x8482, // 33922
180+
Site = 0x84E0, // 34016
181+
ColorSequence = 0x84E1, // 34017
182+
IT8Header = 0x84E2, // 34018
183+
RasterPadding = 0x84E3, // 34019
184+
BitsPerRunLength = 0x84E4, // 34020
185+
BitsPerExtendedRunLength = 0x84E5, // 34021
186+
ColorTable = 0x84E6, // 34022
187+
ImageColorIndicator = 0x84E7, // 34023
188+
BackgroundColorIndicator = 0x84E8, // 34024
189+
ImageColorValue = 0x84E9, // 34025
190+
BackgroundColorValue = 0x84EA, // 34026
191+
PixelIntensityRange = 0x84EB, // 34027
192+
TransparencyIndicator = 0x84EC, // 34028
193+
ColorCharacterization = 0x84ED, // 34029
194+
HCUsage = 0x84EE, // 34030
195+
TrapIndicator = 0x84EF, // 34031
196+
CMYKEquivalent = 0x84F0, // 34032
197+
Reserved1 = 0x84F1, // 34033
198+
Reserved2 = 0x84F2, // 34034
199+
Reserved3 = 0x84F3, // 34035
200+
ModelTransformationTag = 0x85D8, // 34264
201+
Photoshop = 0x8649, // 34377
202+
ExifIFD = 0x8769, // 34665
203+
ICCProfile = 0x8773,
204+
ImageLayer = 0x87AC, // 34732
205+
GeoKeyDirectoryTag = 0x87AF, // 34735
206+
GeoDoubleParamsTag = 0x87B0, // 34736
207+
GeoAsciiParamsTag = 0x87B1, // 34737
208+
ExposureProgram = 0x8822, // 34850
209+
SpectralSensitivity = 0x8824, // 34852
210+
GPSInfo = 0x8825, // 34853
211+
ISOSpeedRatings = 0x8827, // 34855
212+
OECF = 0x8828, // 34856
213+
Interlace = 0x8829, // 34857
214+
TimeZoneOffset = 0x882A, // 34858
215+
SelfTimeMode = 0x882B, // 34859
216+
SensitivityType = 0x8830, // 34864
217+
StandardOutputSensitivity = 0x8831, // 34865
218+
RecommendedExposureIndex = 0x8832, // 34866
219+
ISOSpeed = 0x8833, // 34867
220+
ISOSpeedLatitudeyyy = 0x8834, // 34868
221+
ISOSpeedLatitudezzz = 0x8835, // 34869
222+
HylaFAXFaxRecvParams = 0x885C, // 34908
223+
HylaFAXFaxSubAddress = 0x885D, // 34909
224+
HylaFAXFaxRecvTime = 0x885E, // 34910
225+
ExifVersion = 0x9000, // 36864
226+
DateTimeOriginal = 0x9003, // 36867
227+
DateTimeDigitized = 0x9004, // 36868
228+
ComponentsConfiguration = 0x9101, // 37121
229+
CompressedBitsPerPixel = 0x9102, // 37122
230+
ShutterSpeedValue = 0x9201, // 37377
231+
ApertureValue = 0x9202, // 37378
232+
BrightnessValue = 0x9203, // 37379
233+
ExposureBiasValue = 0x9204, // 37380
234+
MaxApertureValue = 0x9205, // 37381
235+
SubjectDistance = 0x9206, // 37382
236+
MeteringMode = 0x9207, // 37383
237+
LightSource = 0x9208, // 37384
238+
Flash = 0x9209, // 37385
239+
FocalLength = 0x920A, // 37386
240+
FlashEnergy = 0x920B, // 37387
241+
SpatialFrequencyResponse = 0x920C, // 37388
242+
Noise = 0x920D, // 37389
243+
FocalPlaneXResolution = 0x920E, // 37390
244+
FocalPlaneYResolution = 0x920F, // 37391
245+
FocalPlaneResolutionUnit = 0x9210, // 37392
246+
ImageNumber = 0x9211, // 37393
247+
SecurityClassification = 0x9212, // 37394
248+
ImageHistory = 0x9213, // 37395
249+
SubjectLocation = 0x9214, // 37396
250+
ExposureIndex = 0x9215, // 37397
251+
TIFFEPStandardID = 0x9216, // 37398
252+
SensingMethod = 0x9217, // 37399
253+
MakerNote = 0x927C, // 37500
254+
UserComment = 0x9286, // 37510
255+
SubsecTime = 0x9290, // 37520
256+
SubsecTimeOriginal = 0x9291, // 37521
257+
SubsecTimeDigitized = 0x9292, // 37522
258+
ImageSourceData = 0x935C, // 37724
259+
XPTitle = 0x9C9B, // 40091
260+
XPComment = 0x9C9C, // 40092
261+
XPAuthor = 0x9C9D, // 40093
262+
XPKeywords = 0x9C9E, // 40094
263+
XPSubject = 0x9C9F, // 40095
264+
FlashpixVersion = 0xA000, // 40960
265+
ColorSpace = 0xA001, // 40961
266+
PixelXDimension = 0xA002, // 40962
267+
PixelYDimension = 0xA003, // 40963
268+
RelatedSoundFile = 0xA004, // 40964
269+
InteroperabilityIFD = 0xA005, // 40965
270+
FlashEnergyExif = 0xA20B, // 41483
271+
SpatialFrequencyResponseExif = 0xA20C,// 41484
272+
FocalPlaneXResolutionExif = 0xA20E, // 41486
273+
FocalPlaneYResolutionExif = 0xA20F, // 41487
274+
FocalPlaneResolutionUnitExif = 0xA210,// 41488
275+
SubjectLocationExif = 0xA214, // 41492
276+
ExposureIndexExif = 0xA215, // 41493
277+
SensingMethodExif = 0xA217, // 41495
278+
FileSource = 0xA300, // 41728
279+
SceneType = 0xA301, // 41729
280+
CFAPatternExif = 0xA302, // 41730
281+
CustomRendered = 0xA401, // 41985
282+
ExposureMode = 0xA402, // 41986
283+
WhiteBalance = 0xA403, // 41987
284+
285+
// Adobe DNG and cDNG Extensions (0xC6, 0xc7)
286+
DNGVersion = 0xC612, // 50706
287+
DNGBackwardVersion = 0xC613, // 50707
288+
UniqueCameraModel = 0xC614, // 50708
289+
LocalizedCameraModel = 0xC615, // 50709
290+
CFALayout = 0xC617, // 50711
291+
LinearizationTable = 0xC618, // 50712
292+
BlackLevelRepeatDim = 0xC619, // 50713
293+
BlackLevel = 0xC61A, // 50714
294+
BlackLevelDeltaH = 0xC61B, // 50715
295+
BlackLevelDeltaV = 0xC61C, // 50716
296+
WhiteLevel = 0xC61D, // 50717
297+
DefaultScale = 0xC61E, // 50718
298+
DefaultCropOrigin = 0xC61F, // 50719
299+
DefaultCropSize = 0xC620, // 50720
300+
ColorMatrix1 = 0xC621, // 50721
301+
ColorMatrix2 = 0xC622, // 50722
302+
CameraCalibration1 = 0xC623, // 50723
303+
CameraCalibration2 = 0xC624, // 50724
304+
ReductionMatrix1 = 0xC625, // 50725
305+
ReductionMatrix2 = 0xC626, // 50726
306+
AnalogBalance = 0xC627, // 50727
307+
AsShotNeutral = 0xC628, // 50728
308+
AsShotWhiteXY = 0xC629, // 50729
309+
BaselineExposure = 0xC62A, // 50730
310+
BaselineNoise = 0xC62B, // 50731
311+
BaselineSharpness = 0xC62C, // 50732
312+
BayerGreenSplit = 0xC62D, // 50733
313+
LinearResponseLimit = 0xC62E, // 50734
314+
CameraSerialNumber = 0xC62F, // 50735
315+
LensInfo = 0xC630, // 50736
316+
ChromaBlurRadius = 0xC631, // 50737
317+
AntiAliasStrength = 0xC632, // 50738
318+
ShadowScale = 0xC633, // 50739
319+
DNGPrivateData = 0xC634, // 50740
320+
MakerNoteSafety = 0xC635, // 50741
321+
CalibrationIlluminant1 = 0xC65A, // 50778
322+
CalibrationIlluminant2 = 0xC65B, // 50779
323+
BestQualityScale = 0xC65C, // 50780
324+
RawDataUniqueID = 0xC65D, // 50781
325+
OriginalRawFileName = 0xC68B, // 50827
326+
OriginalRawFileData = 0xC68C, // 50828
327+
ActiveArea = 0xC68D, // 50829
328+
MaskedAreas = 0xC68E, // 50830
329+
AsShotICCProfile = 0xC68F, // 50831
330+
AsShotPreProfileMatrix = 0xC690, // 50832
331+
CurrentICCProfile = 0xC691, // 50833
332+
CurrentPreProfileMatrix = 0xC692, // 50834
333+
ColorimetricReference = 0xC6BF, // 50879
334+
CameraCalibrationSignature = 0xC6F3, // 50931
335+
ProfileCalibrationSignature = 0xC6F4, // 50932
336+
ExtraCameraProfiles = 0xC6F6, // 50934
337+
AsShotProfileName = 0xC6F8, // 50936
338+
NoiseReductionApplied = 0xC6F9, // 50937
339+
ProfileName = 0xC6FA, // 50938
340+
ProfileHueSatMapDims = 0xC6FB, // 50939
341+
ProfileHueSatMapData1 = 0xC6FC, // 50940
342+
ProfileHueSatMapData2 = 0xC6FD, // 50941
343+
ProfileToneCurve = 0xC6FE, // 50942
344+
ProfileEmbedPolicy = 0xC6FF, // 50943
345+
ProfileCopyright = 0xC700, // 50944
346+
ForwardMatrix1 = 0xC714, // 50964
347+
ForwardMatrix2 = 0xC715, // 50965
348+
PreviewApplicationName = 0xC716, // 50966
349+
PreviewApplicationVersion = 0xC717, // 50967
350+
PreviewSettingsName = 0xC718, // 50968
351+
PreviewSettingsDigest = 0xC719, // 50969
352+
PreviewColorSpace = 0xC71A, // 50970
353+
PreviewDateTime = 0xC71B, // 50971
354+
RawImageDigest = 0xC71C, // 50972
355+
OriginalRawFileDigest = 0xC71D, // 50973
356+
SubTileBlockSize = 0xC71E, // 50974
357+
RowInterleaveFactor = 0xC71F, // 50975
358+
ProfileLookTableDims = 0xC725, // 50981
359+
ProfileLookTableData = 0xC726, // 50982
360+
OpcodeList1 = 0xC740, // 51008
361+
OpcodeList2 = 0xC741, // 51009
362+
OpcodeList3 = 0xC74E, // 51022
363+
NoiseProfile = 0xC761, // 51041
364+
TimeCodes = 0xC763, // 51043
365+
FrameRate = 0xc764, // 51044
366+
TStop = 0xc772, // 51058
367+
OriginalDefaultFinalSize = 0xC791, // 51089
368+
OriginalBestQualityFinalSize = 0xC792,// 51090
369+
OriginalDefaultCropSize = 0xC793, // 51091
370+
ProfileHueSatMapEncoding = 0xC7A3, // 51107
371+
ProfileLookTableEncoding = 0xC7A4, // 51108
372+
BaselineExposureOffset = 0xC7A5, // 51109
373+
DefaultBlackRender = 0xC7A6, // 51110
374+
NewRawImageDigest = 0xC7A7, // 51111
375+
RawToPreviewGain = 0xC7A8, // 51112
376+
DefaultUserCrop = 0xC7B5, // 51125
377+
DepthFormat = 0xC7E9, // 51177
378+
DepthNear = 0xC7EA, // 51178
379+
DepthFar = 0xC7EB, // 51179
380+
DepthUnits = 0xC7EC, // 51180
381+
DepthMeasureType = 0xC7ED, // 51181
382+
EnhanceParams = 0xC7EE // 51182
156383
};
157384

158385
struct ValueArray<T, auto Count> {

0 commit comments

Comments
 (0)