Skip to content

Commit 19decc1

Browse files
authored
Merge pull request #1436 from Exiv2/dng_1.6
Add DNG 1.6 support
2 parents f87f5d7 + e60710d commit 19decc1

File tree

4 files changed

+122
-29
lines changed

4 files changed

+122
-29
lines changed

src/tags_int.cpp

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,8 @@ namespace Exiv2 {
227227
{ 8, N_("Primary image, Depth map") }, // DNG 1.5
228228
{ 9, N_("Thumbnail/Preview image, Depth map") }, // DNG 1.5
229229
{ 16, N_("Enhanced image") }, // DNG 1.5 (clashes w/ TIFF-FX)
230-
{ 65537, N_("Thumbnail/Preview image, Alternative") } // DNG 1.2
230+
{ 65537, N_("Thumbnail/Preview image, Alternative") }, // DNG 1.2
231+
{ 65540, N_("Primary image, Semantic mask") } // DNG 1.6
231232
};
232233

233234
//! SubfileType, TIFF tag 0x00ff
@@ -289,7 +290,8 @@ namespace Exiv2 {
289290
{ 32844, N_("Pixar LogL") },
290291
{ 32845, N_("Pixar LogLuv") },
291292
{ 34892, N_("Linear Raw") },
292-
{ 51177, N_("Depth") } // DNG 1.5
293+
{ 51177, N_("Depth Map") }, // DNG 1.5
294+
{ 52527, N_("Semantic Mask") } // DNG 1.6
293295
};
294296

295297
//! Thresholding, tag 0x0107
@@ -1616,6 +1618,16 @@ namespace Exiv2 {
16161618
TagInfo(0xc7ee, "EnhanceParams", N_("Enhance Params"),
16171619
N_("A string that documents how the enhanced image data was processed."),
16181620
ifd0Id, dngTags, asciiString, 0, printValue), // DNG 1.5 tag
1621+
TagInfo(0xcd2d, "ProfileGainTableMap", N_("Profile Gain Table Map"),
1622+
N_("Contains spatially varying gain tables that can be applied while processing the "
1623+
"image as a starting point for user adjustments."),
1624+
ifd0Id, dngTags, undefined, -1, printValue), // DNG 1.6 tag
1625+
TagInfo(0xcd2e, "SemanticName", N_("Semantic Name"),
1626+
N_("A string that identifies the semantic mask."),
1627+
ifd0Id, dngTags, asciiString, 0, printValue), // DNG 1.6 tag
1628+
TagInfo(0xcd30, "SemanticInstanceID", N_("Semantic Instance ID"),
1629+
N_("A string that identifies a specific instance in a semantic mask."),
1630+
ifd0Id, dngTags, asciiString, 0, printValue), // DNG 1.6 tag
16191631

16201632
////////////////////////////////////////
16211633
// End of list marker

test/data/IMG_1361.dng

62.6 KB
Binary file not shown.

0 commit comments

Comments
 (0)