summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Rayhawk <jrayhawk@freedesktop.org>2013-05-13 17:52:22 -0700
committerJoe Rayhawk <jrayhawk@freedesktop.org>2013-05-13 17:52:22 -0700
commitdbaec448446000bcca60924a7ba8479b52d09828 (patch)
treeee31ee84bf9b8937eaa6b420bd53d10d4b1105e4
parentc686b018d2846fc1f766eb52befa114d8734b46f (diff)
parent0451109483f80b3fe3ab083367062164f47f6e55 (diff)
moin2iki: Importing Moin history for page Nikon_NEF
-rw-r--r--Nikon_NEF.moin31
1 files changed, 31 insertions, 0 deletions
diff --git a/Nikon_NEF.moin b/Nikon_NEF.moin
new file mode 100644
index 0000000..c42d812
--- /dev/null
+++ b/Nikon_NEF.moin
@@ -0,0 +1,31 @@
+NEF files are generated by Nikon cameras.
+
+NRW is a variant, generated by some Coolpix like the P6000 and P7000. Some differences notable in the RAW data storage that is not "standard". The use of .nrw extension is probably to differentiate them since Nikon committed "support" in Windows (like a marketing gimmick).
+
+= MIME type =
+
+image/x-nikon-nef
+
+= Organisation =
+
+It is a TIFF file. close to TIFF/EP or DNG.
+
+= Thumbnails =
+
+NEF files have a large JPEG preview. It is either in a subIF of the main IFD (type == thumbail) or for the older, in the MakerNote IFD.
+
+= Compression =
+
+D1 files are not compressed.
+
+D1x files are not compressed but have a weird shape: they have a pixel ratio of 0.5, ie 2 row for one.
+
+Some files are packed (Compression = 32769). It is a standard packing with some padding: if col % 10 == 9, then an extra 8 bits must be skipped.
+
+Compression (Compression = 34713) is a Huffman tree and a quantization table. The quantization tables are at 0x8c and 0x96 tag from the MakerNote. Strangely dcraw seems to only use the later as it override the value reading the tags in sequence. See nikon_compressed_load_raw().
+
+[[http://www.majid.info/mylos/weblog/2004/05/02-1.html]] has a very insightful article about NEF decoding.
+
+The D100 has a bug that tag uncompressed image as compressed, but not always. See nikon_is_compressed() in dcraw.c. It appear that most D100 will just use uncompressed (packed) as the compression ''froze the camera for 20s''
+
+NRW are not compressed, but the RAW data organisation is not standard. (TBD)