Skip to content

Commit fd84471

Browse files
authored
Add more DNG 1.6 tags (#2023)
* Add more DNG 1.6 tags * Update CinemaDNG, add more spec links
1 parent 1b53303 commit fd84471

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

src/tags_int.cpp

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -980,6 +980,8 @@ namespace Exiv2 {
980980
{0xc4a5, "PrintImageMatching", N_("Print Image Matching"),
981981
N_("Print Image Matching, description needed."),
982982
ifd0Id, otherTags, undefined, -1, printValue},
983+
////////////////////////////////////////
984+
// https://wwwimages.adobe.com/content/dam/Adobe/en/products/photoshop/pdfs/dng_spec_1.5.0.0.pdf
983985
{0xc612, "DNGVersion", N_("DNG version"),
984986
N_("This tag encodes the DNG four-tier version number. For files "
985987
"compliant with version 1.1.0.0 of the DNG specification, this "
@@ -1515,9 +1517,8 @@ namespace Exiv2 {
15151517
"independent, ignoring fixed pattern effects and other sources of noise (e.g., "
15161518
"pixel response non-uniformity, spatially-dependent thermal effects, etc.)."),
15171519
ifd0Id, dngTags, tiffDouble, -1, printValue}, // DNG tag
1518-
15191520
////////////////////////////////////////
1520-
// http://wwwimages.adobe.com/content/dam/Adobe/en/devnet/cinemadng/pdfs/CinemaDNG_Format_Specification_v1_1.pdf
1521+
// https://www.adobe.com/content/dam/acom/en/devnet/CinemaDNG/pdf/CinemaDNG_Format_Specification_v1_1.pdf
15211522
{0xc763, "TimeCodes", N_("TimeCodes"),
15221523
N_("The optional TimeCodes tag shall contain an ordered array of time codes. "
15231524
"All time codes shall be 8 bytes long and in binary format. The tag may "
@@ -1643,6 +1644,8 @@ namespace Exiv2 {
16431644
{0xc7ee, "EnhanceParams", N_("Enhance Params"),
16441645
N_("A string that documents how the enhanced image data was processed."),
16451646
ifd0Id, dngTags, asciiString, 0, printValue}, // DNG 1.5 tag
1647+
////////////////////////////////////////
1648+
// https://helpx.adobe.com/photoshop/kb/dng-specification-tags.html
16461649
{0xcd2d, "ProfileGainTableMap", N_("Profile Gain Table Map"),
16471650
N_("Contains spatially varying gain tables that can be applied while processing the "
16481651
"image as a starting point for user adjustments."),
@@ -1701,6 +1704,10 @@ namespace Exiv2 {
17011704
"for the third illuminant. Otherwise, this tag is ignored. The "
17021705
"format of the data is the same as IlluminantData1."),
17031706
ifd0Id, dngTags, undefined, -1, printValue}, // DNG 1.6 tag
1707+
{0xcd38, "MaskSubArea", N_("Mask Subarea"),
1708+
N_("This tag identifies the crop rectangle of this IFD's mask, "
1709+
"relative to the main image."),
1710+
ifd0Id, dngTags, unsignedLong, 4, printValue}, // DNG 1.6 tag
17041711
{0xcd39, "ProfileHueSatMapData3", N_("Profile Hue Sat Map Data 3"),
17051712
N_("This tag contains the data for the third hue/saturation/value mapping "
17061713
"table. Each entry of the table contains three 32-bit IEEE floating-point "
@@ -1718,6 +1725,14 @@ namespace Exiv2 {
17181725
"used if ColorPlanes is greater than 3. The matrix is stored in row "
17191726
"scan order."),
17201727
ifd0Id, dngTags, signedRational, -1, printValue}, // DNG 1.6 tag
1728+
{0xcd3b, "RGBTables", N_("RGB Tables"),
1729+
N_("This tag specifies color transforms that can be applied to masked image "
1730+
"regions. Color transforms are specified using RGB-to-RGB color lookup tables. "
1731+
"These tables are associated with Semantic Masks to limit the color transform "
1732+
"to a sub-region of the image. The overall color transform is a linear "
1733+
"combination of the color tables, weighted by their corresponding Semantic "
1734+
"Masks."),
1735+
ifd0Id, dngTags, undefined, -1, printValue}, // DNG 1.6 tag
17211736

17221737
////////////////////////////////////////
17231738
// End of list marker

tests/bugfixes/github/test_pr_1905.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,8 +254,10 @@ class TestExifTagsInTaglist(metaclass=CaseMeta):
254254
Exif.Image.IlluminantData1
255255
Exif.Image.IlluminantData2
256256
Exif.Image.IlluminantData3
257+
Exif.Image.MaskSubArea
257258
Exif.Image.ProfileHueSatMapData3
258259
Exif.Image.ReductionMatrix3
260+
Exif.Image.RGBTables
259261
Exif.Photo.ExposureTime
260262
Exif.Photo.FNumber
261263
Exif.Photo.ExposureProgram

0 commit comments

Comments
 (0)