chdk-dng.c

Started by marekk, July 03, 2013, 08:47:13 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

marekk

Hi
I removed all garbage from chdk-dng including all unnecessary tags, tags not filled up by ML and thumbnail. There is only ifd0 with all required tags to open DNG file properly (just like in cinemadng files). I tested it ACR and RawTherapee and it works fine.

https://www.dropbox.com/s/uyue3wruusipqb1/chdk-dng.c

What do you think about these changes ?

sample exif:
Quote
xiftool 000001.dng
ExifTool Version Number         : 9.22
File Name                       : 000001.dng
Directory                       : .
File Size                       : 1861 kB
File Modification Date/Time     : 2013:07:03 20:31:46+02:00
File Access Date/Time           : 2013:07:03 20:51:39+02:00
File Inode Change Date/Time     : 2013:07:03 20:31:46+02:00
File Permissions                : rw-r--r--
File Type                       : DNG
MIME Type                       : image/x-adobe-dng
Exif Byte Order                 : Little-endian (Intel, II)
Subfile Type                    : Full-resolution Image
Image Width                     : 1600
Image Height                    : 680
Bits Per Sample                 : 14
Compression                     : Uncompressed
Photometric Interpretation      : Color Filter Array
Strip Offsets                   : 1024
Orientation                     : Horizontal (normal)
Samples Per Pixel               : 1
Rows Per Strip                  : 680
Strip Byte Counts               : 1904640
Planar Configuration            : Chunky
CFA Repeat Pattern Dim          : 2 2
CFA Pattern 2                   : 0 1 1 2
DNG Version                     : 1.3.0.0
Unique Camera Model             : Canikon
Black Level                     : 2048
White Level                     : 15000
Default Crop Origin             : 0 0
Default Crop Size               : 1600 680
Color Matrix 1                  : 0.6719 -0.0994 -0.0925 -0.4408 1.2426 0.2211 -0.0887 0.2129 0.6051
Analog Balance                  : 1 1 1
As Shot Neutral                 : 0.473635 1 0.624
Calibration Illuminant 1        : Standard Light A
Calibration Illuminant 2        : D65
Active Area                     : 0 0 680 1600
Opcode List 1                   : (Binary data 28 bytes, use -b option to extract)
CFA Pattern                     : [Red,Green][Green,Blue]
Image Size                      : 1600x680

a1ex

I did a similar thing back then, and had to revert it because people complained about compatibility with certain versions of photoshop or something. Look it up in commit history.