javaimportconvertersdng

Succinct DNG Header information?


I want to write my own DNG file importer and converter (I need to essentially be able to prove it works in a certain way, so my best bet is to do it myself), but I'm struggling to find any details on the header file. I thought the point of DNG was to be openly documented?

The essential info I need is the byte offsets of each field of metadata and the byte offset of the raw data itself. Similar to this. Unfortunately so far all I've found is the official adobe documentation which is a 90+ page PDF that mostly bangs on about best practices and what released readers should or should not do, which is not all that helpful.

Is this the best resource out there or is there a more succinct version?


Solution

  • As read in DNG Specification page 11 Chapter 2 "DNG Format Overview" :

    This section describes the DNG format. As an extension of the TIFF 6.0 format, DNG should follow all the formatting rules for TIFF 6.0. For more information, refer to the TIFF 6.0 specification.

    So here are the TIFF 6.0 Specs where you could read, page 13, "Section 2: TIFF Structure", a description of the TIFF header.