Skip to content

Commit

Permalink
Add DNG 1.7.1.0 tags
Browse files Browse the repository at this point in the history
  • Loading branch information
kmilos committed Jan 25, 2024
1 parent 501770a commit e163ead
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
15 changes: 14 additions & 1 deletion src/tags_int.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1717,7 +1717,7 @@ constexpr TagInfo ifdTagInfo[] = {
N_("This tag specifies that columns of the image are stored in interleaved "
"order. The value of the tag specifies the number of interleaved fields. "
"The use of a non-default value for this tag requires setting the "
"DNGBackwardVersion tag to at least 1.7.0.0."),
"DNGBackwardVersion tag to at least 1.7.1.0."),
IfdId::ifd0Id, SectionId::dngTags, unsignedLong, 1, printValue}, // DNG 1.7 tag
{0xcd44, "ImageSequenceInfo", N_("Image Sequence Info"),
N_("This is an informative tag that describes how the image file relates "
Expand All @@ -1741,6 +1741,19 @@ constexpr TagInfo ifdTagInfo[] = {
"The purpose of this tag is to associate two or more related camera profiles "
"into a common group."),
IfdId::ifd0Id, SectionId::dngTags, asciiString, -1, printValue}, // DNG 1.7 tag
{0xcd49, "JXLDistance", N_("JXL Distance"),
N_("This optional tag specifies the distance parameter used to encode the JPEG "
"XL data in this IFD. A value of 0.0 means lossless compression, while values "
"greater than 0.0 means lossy compression."),
IfdId::ifd0Id, SectionId::dngTags, tiffFloat, -1, printValue}, // DNG 1.7 tag
{0xcd4a, "JXLEffort", N_("JXL Effort"),
N_("This optional tag specifies the effort parameter used to encode the JPEG XL "
"data in this IFD. Values range from 1 (low) to 9 (high)."),
IfdId::ifd0Id, SectionId::dngTags, unsignedLong, -1, printValue}, // DNG 1.7 tag
{0xcd4b, "JXLDecodeSpeed", N_("JXL Decode Speed"),
N_("This optional tag specifies the decode speed parameter used to encode the "
"JPEG XL data in this IFD. Values range from 1 (slow) to 4 (fast)."),
IfdId::ifd0Id, SectionId::dngTags, unsignedLong, -1, printValue}, // DNG 1.7 tag

////////////////////////////////////////
// End of list marker
Expand Down
5 changes: 4 additions & 1 deletion test/data/test_reference_files/test_pr_1905_poc1_ref.out
Original file line number Diff line number Diff line change
Expand Up @@ -246,11 +246,14 @@ ProfileHueSatMapData3,52537,0xcd39,Image,Exif.Image.ProfileHueSatMapData3,Float,
ReductionMatrix3,52538,0xcd3a,Image,Exif.Image.ReductionMatrix3,SRational,"ReductionMatrix3 defines a dimensionality reduction matrix for use as the first stage in converting color camera native space values to XYZ values, under the third calibration illuminant. This tag may only be used if ColorPlanes is greater than 3. The matrix is stored in row scan order."
RGBTables,52539,0xcd3b,Image,Exif.Image.RGBTables,Undefined,"This tag specifies color transforms that can be applied to masked image regions. Color transforms are specified using RGB-to-RGB color lookup tables. These tables are associated with Semantic Masks to limit the color transform to a sub-region of the image. The overall color transform is a linear combination of the color tables, weighted by their corresponding Semantic Masks."
ProfileGainTableMap2,52544,0xcd40,Image,Exif.Image.ProfileGainTableMap2,Undefined,"This tag is an extended version of ProfileGainTableMap."
ColumnInterleaveFactor,52547,0xcd43,Image,Exif.Image.ColumnInterleaveFactor,Long,"This tag specifies that columns of the image are stored in interleaved order. The value of the tag specifies the number of interleaved fields. The use of a non-default value for this tag requires setting the DNGBackwardVersion tag to at least 1.7.0.0."
ColumnInterleaveFactor,52547,0xcd43,Image,Exif.Image.ColumnInterleaveFactor,Long,"This tag specifies that columns of the image are stored in interleaved order. The value of the tag specifies the number of interleaved fields. The use of a non-default value for this tag requires setting the DNGBackwardVersion tag to at least 1.7.1.0."
ImageSequenceInfo,52548,0xcd44,Image,Exif.Image.ImageSequenceInfo,Undefined,"This is an informative tag that describes how the image file relates to other image files captured in a sequence. Applications include focus stacking, merging multiple frames to reduce noise, time lapses, exposure brackets, stitched images for super resolution, and so on."
ImageStats,52550,0xcd46,Image,Exif.Image.ImageStats,Undefined,"This is an informative tag that provides basic statistical information about the pixel values of the image in this IFD. Possible applications include normalizing brightness of images when multiple images are displayed together (especially when mixing Standard Dynamic Range and High Dynamic Range images), identifying underexposed or overexposed images, and so on."
ProfileDynamicRange,52551,0xcd47,Image,Exif.Image.ProfileDynamicRange,Undefined,"This tag describes the intended rendering output dynamic range for a given camera profile."
ProfileGroupName,52552,0xcd48,Image,Exif.Image.ProfileGroupName,Ascii,"A UTF-8 encoded string containing the 'group name' of the camera profile. The purpose of this tag is to associate two or more related camera profiles into a common group."
JXLDistance,52553,0xcd49,Image,Exif.Image.JXLDistance,Float,"This optional tag specifies the distance parameter used to encode the JPEG XL data in this IFD. A value of 0.0 means lossless compression, while values greater than 0.0 means lossy compression."
JXLEffort,52554,0xcd4a,Image,Exif.Image.JXLEffort,Long,"This optional tag specifies the effort parameter used to encode the JPEG XL data in this IFD. Values range from 1 (low) to 9 (high)."
JXLDecodeSpeed,52555,0xcd4b,Image,Exif.Image.JXLDecodeSpeed,Long,"This optional tag specifies the decode speed parameter used to encode the JPEG XL data in this IFD. Values range from 1 (slow) to 4 (fast)."
ExposureTime,33434,0x829a,Photo,Exif.Photo.ExposureTime,Rational,"Exposure time, given in seconds (sec)."
FNumber,33437,0x829d,Photo,Exif.Photo.FNumber,Rational,"The F number."
ExposureProgram,34850,0x8822,Photo,Exif.Photo.ExposureProgram,Short,"The class of the program used by the camera to set exposure when the picture is taken."
Expand Down

0 comments on commit e163ead

Please sign in to comment.