These are the tags the DNG specification adds to TIFF, in number order within each
group. The IFD column says where a tag may sit: “IFD 0” is the first directory;
“Profile” is a camera profile directory (see ExtraCameraProfiles);
“Raw” is the directory that holds the raw image (see raw
data); “Preview”, “Enhanced” and “Mask” are directories of those kinds. Tags up to
0xCD3A are taken from the DNG 1.6.0.0 specification. Tags added in DNG 1.7
come from Adobe’s DNG SDK 1.7.1 source and ExifTool, because the 1.7 specification
itself could not be fetched; where neither gives a layout, the page says so.
Version and camera
| Tag | Name | Type, count | IFD | Meaning |
|---|---|---|---|---|
0xC612 | DNGVersion | BYTE × 4 | IFD 0 | Four-part version of the specification the file follows, such as 1, 6, 0, 0. Required; it marks the file as DNG. |
0xC613 | DNGBackwardVersion | BYTE × 4 | IFD 0 | Oldest specification version the file is compatible with. Readers built for an older version should not read the file. Default: DNGVersion with the last two bytes zero. |
0xC614 | UniqueCameraModel | ASCII | IFD 0 | Unique, non-localised camera model name including the maker, such as “Canon EOS 300D”; used to find per-model profiles. Required. |
0xC615 | LocalizedCameraModel | ASCII or BYTE | IFD 0 | Model name localised for a market, UTF-8, ending in a zero byte. Default: UniqueCameraModel. |
0xC62F | CameraSerialNumber | ASCII | IFD 0 | Serial number of the camera or body. |
0xC630 | LensInfo | RATIONAL × 4 | IFD 0 | Shortest and longest focal length in mm, then the smallest f-number at each; unknown f-numbers are 0/0. |
0xC634 | DNGPrivateData | BYTE × n | IFD 0 | Maker’s private data. It starts with a zero-terminated ASCII name beginning with the maker’s name, is self-contained (offsets relative to its start) and must survive a change of byte order. |
0xC635 | MakerNoteSafety | SHORT × 1 | IFD 0 | 0 unsafe (default), 1 safe: whether the Exif maker note is self-contained and byte-order independent, so it can be kept when the file is edited. |
Raw image
| Tag | Name | Type, count | IFD | Meaning |
|---|---|---|---|---|
0xC616 | CFAPlaneColor | BYTE × planes | Raw | Maps the CFAPattern colour codes to the plane numbers of linear raw space. Default 0, 1, 2 (red, green, blue); required for CFA images that are not RGB. |
0xC617 | CFALayout | SHORT × 1 | Raw | Spatial layout of the CFA, 1 to 9 (see raw data); default 1. |
0xC618 | LinearizationTable | SHORT × n | Raw | Lookup table from stored values to linear values; one table for all samples. Values past the end map to the last entry. Default: identity. |
0xC619 | BlackLevelRepeatDim | SHORT × 2 | Raw | Rows and columns of the repeating BlackLevel pattern; default 1, 1. |
0xC61A | BlackLevel | SHORT, LONG or RATIONAL × rows × columns × samples | Raw | Zero-light level as a repeating pattern from the top left of ActiveArea, in row, column, sample order; default 0. |
0xC61B | BlackLevelDeltaH | SRATIONAL × ActiveArea width | Raw | Extra black level per column; default all zero. |
0xC61C | BlackLevelDeltaV | SRATIONAL × ActiveArea height | Raw | Extra black level per row; default all zero. |
0xC61D | WhiteLevel | SHORT or LONG × samples | Raw | Fully saturated level per sample. Default 2BitsPerSample − 1 for integers, 1.0 for floating point. |
0xC61E | DefaultScale | RATIONAL × 2 | Raw | Horizontal and vertical scale to square pixels; default 1, 1. For CFALayout 2 to 5 the two usually differ by a factor of 2. |
0xC61F | DefaultCropOrigin | SHORT, LONG or RATIONAL × 2 | Raw | Top left of the final image in raw pixels (before DefaultScale), relative to ActiveArea; default 0, 0. |
0xC620 | DefaultCropSize | SHORT, LONG or RATIONAL × 2 | Raw | Width and height of the final image in raw pixels; default ImageWidth, ImageLength. |
0xC62D | BayerGreenSplit | LONG × 1 | Raw | How closely the two greens of a Bayer pattern track each other, in arbitrary units: 0 closely (default) up to about 5000. |
0xC631 | ChromaBlurRadius | RATIONAL × 1 | Raw | Suggested chroma blur in pixels, normally only for images that are not CFA. |
0xC632 | AntiAliasStrength | RATIONAL × 1 | Raw | Strength of the anti-alias filter, 0.0 none to 1.0 strong (default), a hint for demosaicing. |
0xC65C | BestQualityScale | RATIONAL × 1 | Raw | Extra factor on DefaultScale for the best quality size; default 1.0. |
0xC68D | ActiveArea | SHORT or LONG × 4 | Raw | Top, left, bottom, right of the non-masked pixels; default 0, 0, ImageLength, ImageWidth. Added in DNG 1.1. |
0xC68E | MaskedAreas | SHORT or LONG × 4n | Raw | Non-overlapping rectangles (top, left, bottom, right) of fully masked pixels, for measuring black. Not used once black has been subtracted; readers need not support it. |
0xC6F7 | NoiseReductionApplied | RATIONAL × 1 | Raw or Enhanced | Noise reduction already applied, 0.0 none to 1.0 the ideal amount; 0/0 unknown (default). |
0xC71E | SubTileBlockSize | SHORT or LONG × 2 | Raw | Rows and columns of blocks: pixels in a tile are grouped into blocks of this size, blocks in row order, pixels in row order within each block. Default 1, 1. Needs DNGBackwardVersion 1.2 or later. |
0xC71F | RowInterleaveFactor | SHORT or LONG × 1 | Raw | Number of interleaved fields the rows are stored in; default 1. Needs DNGBackwardVersion 1.2 or later. |
0xC740 | OpcodeList1 | UNDEFINED | Raw | Opcodes applied to the raw values as read (see opcodes). |
0xC741 | OpcodeList2 | UNDEFINED | Raw | Opcodes applied just after mapping to linear reference values. |
0xC74E | OpcodeList3 | UNDEFINED | Raw | Opcodes applied just after demosaicing. |
0xC761 | NoiseProfile | DOUBLE × 2 or 2 × planes | Raw or Enhanced | Pairs S, O per plane (or one pair for all) in CFAPlaneColor order. The noise of a signal x in [0, 1] is √(S·x + O): S models gain (shot noise), O read-out noise. S > 0, O ≥ 0. BaselineNoise 1.0 at ISO 100 is about S = 2 × 10−5, O = 4.5 × 10−7. |
0xC7B5 | DefaultUserCrop | RATIONAL × 4 | Raw | Suggested crop, top, left, bottom, right, as fractions of the default crop; default 0, 0, 1, 1. |
0xCD2E | SemanticName | ASCII | Mask | Name of a semantic mask, such as “skin_mask”; required in a mask directory and should be unique. |
0xCD30 | SemanticInstanceID | ASCII | Mask | Identifies one instance (such as one person) across masks of different names in the same file. |
0xCD38 | MaskSubArea | LONG × 4 | Mask | Top and left of the stored mask within the full mask, then the full mask’s width and height (layout below). |
0xCD43 | ColumnInterleaveFactor | SHORT or LONG × 1 | Raw | Number of interleaved fields the columns are stored in; default 1 (DNG 1.7, from the SDK). |
Colour
Tags numbered 1, 2 and 3 belong to calibration illuminants 1, 2 and 3; the third set is new in DNG 1.6. Matrices are stored in row order; n is the number of colour planes (3 or 4). With two or three calibrations a reader interpolates between them by inverse correlated colour temperature.
| Tag | Name | Type, count | IFD | Meaning |
|---|---|---|---|---|
0xC621, 0xC622, 0xCD33 | ColorMatrix1, 2, 3 | SRATIONAL × 3n | IFD 0, Profile | Matrix from CIE XYZ to reference camera colour under each illuminant. ColorMatrix1 is required unless the image is monochrome. |
0xC623, 0xC624, 0xCD32 | CameraCalibration1, 2, 3 | SRATIONAL × n² | IFD 0 | Matrix from reference camera colour to this individual camera’s colour; default identity. Used only if CameraCalibrationSignature matches the profile’s ProfileCalibrationSignature. |
0xC625, 0xC626, 0xCD3A | ReductionMatrix1, 2, 3 | SRATIONAL × 3n | IFD 0, Profile | Reduces camera colour with more than 3 planes to 3; allowed only when n > 3. |
0xC714, 0xC715, 0xCD34 | ForwardMatrix1, 2, 3 | SRATIONAL × 3n | IFD 0, Profile | Matrix from white-balanced camera colour to CIE XYZ (D50). |
0xC65A, 0xC65B, 0xCD31 | CalibrationIlluminant1, 2, 3 | SHORT × 1 | IFD 0, Profile | Light source of each calibration (codes below). If two are given neither may be 0. 255 means the illuminant is described by IlluminantData. |
0xCD35–0xCD37 | IlluminantData1, 2, 3 | UNDEFINED | IFD 0, Profile | Required when the matching CalibrationIlluminant is 255: an x, y chromaticity or a spectrum (layout below). |
0xC627 | AnalogBalance | RATIONAL × n | IFD 0 | Gain already applied to each plane before (recommended) or after digitising; default all 1.0. |
0xC628 | AsShotNeutral | SHORT or RATIONAL × n | IFD 0 | The white balance as shot, as a neutral colour in linear reference values. Excludes AsShotWhiteXY. |
0xC629 | AsShotWhiteXY | RATIONAL × 2 | IFD 0 | The white balance as shot, as x, y chromaticity. Excludes AsShotNeutral. |
0xC62A | BaselineExposure | SRATIONAL × 1 | IFD 0 | Shift of the exposure zero point in EV for this camera model; positive is brighter. Default 0.0. |
0xC62B | BaselineNoise | RATIONAL × 1 | IFD 0 | Relative noise at ISO 100 against a reference camera; default 1.0. NoiseProfile is preferred. |
0xC62C | BaselineSharpness | RATIONAL × 1 | IFD 0 or Enhanced | Relative sharpening needed against a reference camera; default 1.0. |
0xC62E | LinearResponseLimit | RATIONAL × 1 | IFD 0 | Fraction of the range above which the response may become non-linear; default 1.0. |
0xC633 | ShadowScale | RATIONAL × 1 | IFD 0 | Used by older Adobe Camera Raw for its Blacks slider; default 1.0. |
0xC68F | AsShotICCProfile | UNDEFINED | IFD 0 | The maker’s ICC profile for a default rendering into the profile connection space (output-referred). |
0xC690 | AsShotPreProfileMatrix | SRATIONAL × 3n or n² | IFD 0 | Matrix applied before AsShotICCProfile; may reduce n planes to 3. Default identity. |
0xC691 | CurrentICCProfile | UNDEFINED | IFD 0 | As AsShotICCProfile, for raw file editors. |
0xC692 | CurrentPreProfileMatrix | SRATIONAL × 3n or n² | IFD 0 | Matrix applied before CurrentICCProfile. |
0xC6BF | ColorimetricReference | SHORT × 1 | IFD 0 | 0 scene-referred XYZ (default); 1 output-referred within the ICC profile range; 2 output-referred high dynamic range (added in 1.7, from the SDK). |
0xC7A5 | BaselineExposureOffset | RATIONAL × 1 (as listed in 1.6, though its example is negative) | IFD 0, Profile | EV added to BaselineExposure for a profile: +0.3 and −0.7 give −0.4. Default 0.0. |
0xC7A6 | DefaultBlackRender | LONG × 1 | IFD 0, Profile | 0 auto (default): the converter may subtract black itself; 1 none. |
0xCD3F | RGBTables | UNDEFINED | IFD 0 | RGB-to-RGB lookup tables applied through semantic masks (layout below). |
0xCD3B | RGBTablesDraft | UNDEFINED | IFD 0 | The same data in the form of an earlier draft of DNG 1.6; the SDK still reads it. |
Light sources
CalibrationIlluminant uses the Exif LightSource codes:
| Code | Light | Code | Light |
|---|---|---|---|
| 0 | Unknown | 15 | White fluorescent (WW 3250–3800 K) |
| 1 | Daylight | 16 | Warm white fluorescent (L 2600–3250 K) |
| 2 | Fluorescent | 17 | Standard light A |
| 3 | Tungsten (incandescent) | 18 | Standard light B |
| 4 | Flash | 19 | Standard light C |
| 9 | Fine weather | 20 | D55 |
| 10 | Cloudy | 21 | D65 |
| 11 | Shade | 22 | D75 |
| 12 | Daylight fluorescent (D 5700–7100 K) | 23 | D50 |
| 13 | Day white fluorescent (N 4600–5500 K) | 24 | ISO studio tungsten |
| 14 | Cool white fluorescent (W 3800–4500 K) | 255 | Other (described by IlluminantData, DNG 1.6) |
Camera profiles
A camera profile is the set of colour tags marked “Profile” above and below. The
main profile sits in IFD 0. Further profiles are listed by
ExtraCameraProfiles: each starts with a byte order mark
(II or MM), the 16-bit number 0x4352
(“CR”), a 32-bit offset to its IFD, then a normal TIFF IFD, with every offset
relative to the byte order mark.
| Tag | Name | Type, count | IFD | Meaning |
|---|---|---|---|---|
0xC6F3 | CameraCalibrationSignature | ASCII or BYTE | IFD 0 | UTF-8 string tied to the CameraCalibration matrices. |
0xC6F4 | ProfileCalibrationSignature | ASCII or BYTE | IFD 0, Profile | UTF-8 string; the CameraCalibration matrices are used only when it equals CameraCalibrationSignature. |
0xC6F5 | ExtraCameraProfiles | LONG × n | IFD 0 | File offsets of extra camera profiles; used only when there is more than one profile. |
0xC6F6 | AsShotProfileName | ASCII or BYTE | IFD 0 | Name of the “as shot” profile. |
0xC6F8 | ProfileName | ASCII or BYTE | IFD 0, Profile | Name of the profile; required for every profile when there are several. |
0xC6F9 | ProfileHueSatMapDims | LONG × 3 | IFD 0, Profile | Hue (≥ 1), saturation (≥ 2) and value (≥ 1) divisions of the hue/saturation maps. |
0xC6FA, 0xC6FB, 0xCD39 | ProfileHueSatMapData1, 2, 3 | FLOAT × 3 per entry | IFD 0, Profile | Per entry: hue shift in degrees, saturation scale, value scale. Order: value divisions outermost, then hue, then saturation. Entries at zero saturation must have value scale 1.0. |
0xC6FC | ProfileToneCurve | FLOAT × 2n | IFD 0, Profile | Default tone curve as input, output pairs in [0, 1], starting (0, 0) and ending (1, 1), interpolated with a cubic spline. |
0xC6FD | ProfileEmbedPolicy | LONG × 1 | IFD 0, Profile | 0 allow copying (default); 1 embed if used, not copied out for other images; 2 embed never (for installed profiles); 3 no restrictions. |
0xC6FE | ProfileCopyright | ASCII or BYTE | IFD 0, Profile | Copyright of the profile, to be kept with it. |
0xC725 | ProfileLookTableDims | LONG × 3 | IFD 0, Profile | Hue, saturation and value divisions of the look table (same limits). |
0xC726 | ProfileLookTableData | FLOAT × 3 per entry | IFD 0, Profile | Look table in the hue/saturation map format, applied after exposure and before the tone curve. |
0xC7A3 | ProfileHueSatMapEncoding | LONG × 1 | IFD 0, Profile | 0 linear (default), 1 sRGB: whether the value axis is indexed through the sRGB curve. Only for 3D maps. |
0xC7A4 | ProfileLookTableEncoding | LONG × 1 | IFD 0, Profile | 0 linear (default), 1 sRGB, for the look table. |
0xCD2D | ProfileGainTableMap | UNDEFINED | Raw | Spatially varying gain tables for local tone mapping (layout below). DNG 1.6. |
0xCD40 | ProfileGainTableMap2 | UNDEFINED | IFD 0, Profile | Version 2 of the gain table map, with a data type, gamma and gain range (layout below). DNG 1.7. |
0xCD45 | ProfileToneMethod | LONG × 1 | IFD 0, Profile | How to apply the tone curve: 0 unspecified, 1 as Adobe process version 5 and older, 2 as Adobe process version 6 and newer. DNG 1.7. |
0xCD47 | ProfileDynamicRange | UNDEFINED × 8 | IFD 0, Profile | Whether the profile is for standard or high dynamic range output (layout below). DNG 1.7. |
0xCD48 | ProfileGroupName | ASCII or BYTE | IFD 0, Profile | Name that groups related profiles. DNG 1.7. |
Previews, originals and digests
| Tag | Name | Type, count | IFD | Meaning |
|---|---|---|---|---|
0xC65D | RawDataUniqueID | BYTE × 16 | IFD 0 | Unique identifier of the raw image data, the same after renaming or metadata edits. |
0xC68B | OriginalRawFileName | ASCII or BYTE | IFD 0 | UTF-8 name of the raw file this DNG was converted from. |
0xC68C | OriginalRawFileData | UNDEFINED | IFD 0 | The original raw file, compressed (layout below). |
0xC71C | RawImageDigest | BYTE × 16 | IFD 0 | MD5 of the raw pixels in row order, each zero-padded to 16 bits (32 above 16 bits) and taken little-endian. |
0xC71D | OriginalRawFileDigest | BYTE × 16 | IFD 0 | MD5 of the OriginalRawFileData bytes. |
0xC7A7 | NewRawImageDigest | BYTE × 16 | IFD 0 | A modified MD5 of the raw data that suits several processors and lossy compression; the algorithm is defined only by the DNG SDK source. |
0xC716 | PreviewApplicationName | ASCII or BYTE | Preview | Program that made the preview. |
0xC717 | PreviewApplicationVersion | ASCII or BYTE | Preview | Its version. |
0xC718 | PreviewSettingsName | ASCII or BYTE | Preview | Name of the settings used, such as a snapshot name. |
0xC719 | PreviewSettingsDigest | BYTE × 16 | Preview | Unique ID of those settings, such as an MD5 digest. |
0xC71A | PreviewColorSpace | LONG × 1 | Preview | 0 unknown, 1 grey gamma 2.2, 2 sRGB, 3 Adobe RGB, 4 ProPhoto RGB. Default sRGB for colour, grey gamma 2.2 for monochrome. |
0xC71B | PreviewDateTime | ASCII | Preview | When the preview was rendered, in ISO 8601. |
0xC7A8 | RawToPreviewGain | DOUBLE × 1 | Preview | Multiplier between the raw IFD’s values and this preview’s; default 1.0. |
0xC791 | OriginalDefaultFinalSize | SHORT or LONG × 2 | IFD 0 | For a proxy DNG: the default final size of the original. Default DefaultCropSize × DefaultScale of this file. |
0xC792 | OriginalBestQualityFinalSize | SHORT or LONG × 2 | IFD 0 | For a proxy DNG: the original’s best quality final size. |
0xC793 | OriginalDefaultCropSize | SHORT, LONG or RATIONAL × 2 | IFD 0 | For a proxy DNG: the original’s DefaultCropSize. |
0xC7EE | EnhanceParams | ASCII | Enhanced | Required, non-empty description of how enhanced data was made, starting with the company name. |
0xCD44 | ImageSequenceInfo | UNDEFINED, 21 bytes or more | IFD 0 | Place of this image in a sequence such as a burst or bracket (layout below). DNG 1.7. |
0xCD46 | ImageStats | UNDEFINED | Raw | Statistics of the image data. DNG 1.7; its byte layout is not given in any source read for this page. |
0xCD49 | JXLDistance | FLOAT × 1 | JPEG XL IFD | JPEG XL distance (quality) used; not negative. |
0xCD4A | JXLEffort | LONG × 1 | JPEG XL IFD | JPEG XL encoder effort, 1 low to 9 high. |
0xCD4B | JXLDecodeSpeed | LONG × 1 | JPEG XL IFD | JPEG XL decode speed setting, 1 slow to 4 fast. |
0xCD3C | BigTableDigests | BYTE × 16n | IFD 0 | 16-byte digests of large tables stored once in the file and referred to by digest. DNG 1.7, from the SDK. |
0xCD3D | BigTableOffsets | LONG or LONG8 × n | IFD 0 | File offset of each table, one per digest. |
0xCD3E | BigTableByteCounts | LONG or LONG8 × n | IFD 0 | Size of each table, one per offset. |
0xCD4C | BigTableGroupIndex | BYTE × 32n | IFD 0 | Pairs of 16-byte digests: a group digest, then an instance digest. |
Depth maps
Depth maps (DNG 1.5) are 8 or 16-bit single-channel images in directories with NewSubFileType 8 or 9 and PhotometricInterpretation 51177. Zero is the nearest distance and the largest value the farthest, with no holes.
| Tag | Name | Type, count | IFD | Meaning |
|---|---|---|---|---|
0xC7E9 | DepthFormat | SHORT × 1 | IFD 0 | 0 unknown (default; nearer is nearer zero); 1 linear between DepthNear and DepthFar; 2 inverse. |
0xC7EA | DepthNear | RATIONAL × 1 | IFD 0 | Distance of value zero; 0/0 unknown. |
0xC7EB | DepthFar | RATIONAL × 1 | IFD 0 | Distance of the largest value; 0/0 unknown, 1/0 infinity (for unknown and inverse formats). |
0xC7EC | DepthUnits | SHORT × 1 | IFD 0 | 0 unknown, 1 metres. |
0xC7ED | DepthMeasureType | SHORT × 1 | IFD 0 | 0 unknown, 1 along the optical axis, 2 along the optical ray through each pixel. |
Structured tags
These UNDEFINED tags hold small structures. Except where noted, numbers follow the file’s byte order.
OriginalRawFileData
Always big-endian. A sequence of blocks with no padding; missing blocks at the end take their defaults, and extra bytes are ignored:
- Data fork of the original raw file (compressed fork)
- Its macOS resource fork (compressed fork, zero length if none)
- Its macOS file type (4 bytes, 0 if unknown)
- Its macOS creator (4 bytes)
- Data fork of a sidecar
.THMfile - The
.THMresource fork - The
.THMfile type (4 bytes) - The
.THMcreator (4 bytes)
A compressed fork is: its uncompressed length (4 bytes; 0 ends the fork); then ⌊(length + 65535) / 65536⌋ + 1 offsets (4 bytes each) from the start of the fork, one to each 64 KB block’s compressed data and a last one to the end of the fork; then each block compressed with ZIP (deflate).
IlluminantData1, 2, 3
| Field | Type | Meaning |
|---|---|---|
| DataType | SHORT | 0 an x, y chromaticity; 1 a spectral power distribution |
| If DataType is 0: | ||
| x, y | RATIONAL × 2 | Chromaticity of the illuminant |
| If DataType is 1: | ||
| NumLambda | LONG | Number of samples, at least 2 |
| MinLambda | RATIONAL | Wavelength of the first sample in nm, typically 360 to 400 |
| LambdaSpacing | RATIONAL | Spacing in nm |
| Values | RATIONAL × NumLambda | The spectrum; 360 to 830 nm should be covered. Its x, y is found with the CIE 2° observer, holding the end values beyond the range and interpolating linearly between samples. |
ProfileGainTableMap and ProfileGainTableMap2
| Field | Type | Meaning |
|---|---|---|
| MapPointsV, MapPointsH | LONG × 2 | Number of tables down and across |
| MapSpacingV, MapSpacingH | DOUBLE × 2 | Spacing, where 1.0 is the image height or width |
| MapOriginV, MapOriginH | DOUBLE × 2 | Position of the first table, same units; may be negative |
| MapPointsN | LONG | Entries in each table, at least 1 |
| MapInputWeights | FLOAT × 5 | Weights of R, G, B, min(R, G, B) and max(R, G, B) that form the table input, such as ⅓, ⅓, ⅓, 0, 0 |
| ProfileGainTableMap2 only: | ||
| DataType | LONG | 0 8-bit unsigned, 1 16-bit unsigned, 2 16-bit float, 3 32-bit float |
| Gamma | FLOAT | Gamma value; its use is not described in the sources read |
| GainMin, GainMax | FLOAT × 2 | Gain range of integer entries: gain = GainMin + (v / 255 or v / 65535) × (GainMax − GainMin) |
| Gains | MapPointsV × MapPointsH × MapPointsN entries | Tables row by row, column by column, entries innermost. In version 1 each is a FLOAT, so the tag is 64 + 4 × V × H × N bytes. |
Gains are not negative. Tables are interpolated bilinearly between points and held at the edges. At each pixel the input is clamp((R, G, B, min, max) · weights, 0, 1) × MapPointsN, used to look up the gain linearly; the RGB values are multiplied by the gain and need not be clipped. The map is applied in RIMM (ProPhoto) linear RGB after BaselineExposure and before ProfileToneCurve, with pixel-centred sampling over ActiveArea.
RGBTables
| Field | Type | Meaning |
|---|---|---|
| NumTables | LONG | 1 to 20 |
| CompositeMethod | LONG | 0 weighted sum of the tables by their masks; 1 sequential, in order |
| Then for each table: | ||
| LengthTableSemanticName | SHORT | Length of the name; 0 marks the single background table |
| TableSemanticName | ASCII, no terminator | The SemanticName of the mask it applies through (case-sensitive; no match, table ignored) |
| Divisions | BYTE | 2 to 32 points per axis; Divisions³ entries |
| PixelType | BYTE | 0 8-bit unsigned, 1 16-bit unsigned, 2 32-bit float (0.0 to 1.0) |
| GammaEncoding | BYTE | 0 linear, 1 sRGB, 2 gamma 1.8, 3 gamma 2.2, 4 Rec. 2020 |
| ColorPrimaries | BYTE | 0 sRGB (D65), 1 Adobe RGB (D65), 2 Display P3 (D65), 3 Rec. 2020 (D65), 4 ProPhoto (D50) |
| GamutExtension | BYTE | 0 clip to the primaries; 1 add back the out-of-gamut difference (recommended) |
| Entries | 3 values each | Red, green, blue output, with red index outermost and blue innermost |
The tables are applied after ProfileToneCurve, interpolated smoothly (trilinear or tetrahedral).
MaskSubArea
Four LONG: top and left of the stored (cropped) mask, then the width and height of the full mask, which covers ActiveArea. Pixels outside the stored mask are 0. The tag is ignored if the stored mask would run past the full mask.
ProfileDynamicRange
| Offset | Type | Meaning |
|---|---|---|
| 0 | SHORT | Version; only 1 is defined |
| 2 | SHORT | Dynamic range: 0 standard, 1 high |
| 4 | FLOAT | Hint of the maximum output value (at most 1.0 for standard range) |
ImageSequenceInfo
| Field | Type | Meaning |
|---|---|---|
| SeqID | zero-terminated string | Identifies the sequence |
| SeqType | zero-terminated string | Kind of sequence |
| SeqFrameInfo | zero-terminated string | Information about this frame |
| Index | LONG, big-endian | Position of this image |
| Count | LONG, big-endian | Number of images |
| Final | BYTE | 1 if the sequence is final, 0 if not |
The tag is at least 21 bytes. The values of SeqType and SeqFrameInfo are not given in the sources read.
CinemaDNG
These tags come from CinemaDNG, the DNG-based format for frames of video, and are listed by ExifTool:
| Tag | Name | Type, count | Meaning |
|---|---|---|---|
0xC763 | TimeCodes | BYTE × 8n | SMPTE time codes of the frame |
0xC764 | FrameRate | SRATIONAL | Frames per second |
0xC772 | TStop | RATIONAL × n | T-stop of the lens |
0xC789 | ReelName | ASCII | Name of the reel |
0xC7A1 | CameraLabel | ASCII | Label of the camera |
Other users of this range
ExifTool lists tags in the same number range that are not part of DNG:
0xC5E0 and 0xC640 (Canon CR2 CFA pattern and slices),
0xC660 (Alias Sketchbook Pro), 0xC6C5 (Canon sRAW type),
0xC6D2 and 0xC6D3 (Panasonic titles), 0xC7AA
(Adobe cache version), 0xC7D5 (Nikon NEF information),
0xC7D7 and 0xC7D8 (ZIF). 0xCD41 is listed by
ExifTool as JUMBF boxes; it is not in the DNG SDK’s tag list, so its status in DNG is
unknown. 0xCD42 (52546) is not a tag but the JPEG XL compression code.
Sources
- Digital Negative (DNG) Specification 1.6.0.0 – Adobe, December 2021; chapters 4 and 5 (tags), 6 (colour model) and appendix A (read from a copy at paulbourke.net/dataformats/dng/)
- Adobe DNG SDK 1.7.1 source – as bundled with digiKam: dng_tag_codes.h, dng_tag_values.h, dng_shared.cpp, dng_ifd.cpp, dng_gain_map.cpp and .h
- ExifTool EXIF tags and DNG tags – Phil Harvey; tag numbers, groups and the ImageSequenceInfo and ProfileDynamicRange fields