Hello,
I found a bug within the DNG implementation on my 102A S100.
The DNGs it produces (either with STABLE 1.2.0-3475 or TRUNK 1.3.0-3496) are always corrupted:
Adobe Camera Raw says "bad format" and dng_validate outputs:
*** Error: ForwardMatrix2 does not map equal camera values to XYZ D50 ***
*** Error: File format is invalid ***
I compared with Exiftool a CR2 converted to DNG by Camera Raw and the DNG from CHDK:
$ exiftool -ForwardMatrix1 -ForwardMatrix2 IMG_2542.dng
Forward Matrix 2 : 0.6242 0.4092 -0.0691 0.188 1.1431 -0.3312 -0.042 -0.1341 1.0012
$ exiftool -ForwardMatrix2 CRW_2575.DNG
Forward Matrix 2 : 0.6242 0.4092 -0.0691 0.0188 1.1431 -0.3312 -0.042 -0.1341 1.0012
the 4th parameter is 1/10th of what should be.
Issue is at line #94 of platform_camera.h (revision 2730);
here is the patch:
Index: platform_camera.h
===================================================================
--- platform_camera.h (revision 3496)
+++ platform_camera.h (working copy)
@@ -91,7 +91,7 @@
-1633, 10000, -3155, 10000, 13040, 10000
#define CAM_FORWARDMATRIX2 \
6242, 10000, 4092, 10000, -691, 10000, \
- 188, 10000, 11431, 10000, -3312, 10000, \
+ 1880, 10000, 11431, 10000, -3312, 10000, \
-420, 10000, -1341, 10000, 10012, 10000
#define CAM_DNG_EXPOSURE_BIAS 0,1
Can anybody apply it to both trunk and stable release?