Save RAW files in DNG format instead of RAW - page 27 - Feature Requests - CHDK Forum

Save RAW files in DNG format instead of RAW

  • 392 Replies
  • 203012 Views
Re: Save RAW files in DNG format instead of RAW
« Reply #260 on: 09 / December / 2008, 05:24:46 »
Advertisements
we need to have a look which tags are used by dcraw/RawTherapee/Photoshop/etc.

and about these tags:
 - AsShotNeutral
 - AsShotWhiteXY

from dcraw change log:
Code: [Select]
2006-03-20  dcoffin  <dcoffin@buntu>
* dcraw.c: Support the Olympus E-330.
Added "-D" option to output unscaled raw pixels.
For DNG, support ICC profiles and short AsShotNeutral tags.
Fix defective pixels and columns in Phase One images.
« Last Edit: 09 / December / 2008, 06:14:59 by cedricb »

*

Offline PhyrePhoX

  • *****
  • 2254
  • make RAW not WAR
    • PhyreWorX
Re: Save RAW files in DNG format instead of RAW
« Reply #261 on: 09 / December / 2008, 06:37:28 »
there is a dcraw changelog? where is it? havent found it yet :)

*

Offline whim

  • ******
  • 2046
  • A495/590/620/630 ixus70/115/220/230/300/870 S95
Re: Save RAW files in DNG format instead of RAW
« Reply #262 on: 09 / December / 2008, 06:54:50 »
@phox

goto Decoding raw digital photos in Linux and scroll or search for this line:
"This file contains the entire history of dcraw.c since its conception on February 23, 1997"

wim

PS just found it, not tried yet
« Last Edit: 09 / December / 2008, 06:56:27 by whim »

*

Offline ewavr

  • ****
  • 1057
  • A710IS
Re: Save RAW files in DNG format instead of RAW
« Reply #263 on: 10 / December / 2008, 12:46:07 »
In #626 added visibility files with 'dng' extension via USB for A710 and SX100 (turn on option in misc. menu).
If this option is enabled, files with other extension cannot be transferred:
A710 - 'thm', 'dps'
SX100 - 'cr2'
Tesed in Windows XP and Ubuntu 8.10 explorers.
Do not try erase 'dng' files via USB! Camera or ignores it (a710) or crashes (sx100).

for develops: Menu string is 'hardcoded', because I cannot invent correct translation to English.

*

Offline PhyrePhoX

  • *****
  • 2254
  • make RAW not WAR
    • PhyreWorX
Re: Save RAW files in DNG format instead of RAW
« Reply #264 on: 10 / December / 2008, 12:56:02 »
judging by the adresses you used i guess you found them in ram? so, not possible to find via IDA?

*

Offline ewavr

  • ****
  • 1057
  • A710IS
Re: Save RAW files in DNG format instead of RAW
« Reply #265 on: 10 / December / 2008, 13:54:48 »
judging by the adresses you used i guess you found them in ram? so, not possible to find via IDA?

Of course, I using IDA for this:
(a710)
some_f_for_dng = 0x89E8
0x89E8 + 0xFFF13950(canon_data_src from boot.c) - 0x1900 = 0xFFF1AA38 (from here pointer to function (sub_FFE4C390) copied to RAM address 0x89E8 at camera/CHDK startup).
second_ext_for_dng = 0x8A0C
0x8A0C + 0xFFF13950(canon_data_src from boot.c) - 0x1900 = 0xFFF1AA5C (from here pointer to '.THM' copied to RAM address 0x8A0C at camera/CHDK startup).

But no all extension can be replace by 'dng'. Easiest case if 'cr2' files are visible via USB (for a710 'cr2' files are not visible).

P.S. For example, for a710 list of file extensions which camera scans in different folders at USB connection, located at 0xFFE68580 (in ROM) - jpg, crw, avi, wav, mrk, dps, fir.
Second list of extensions which can be transfred via USB located at 0xFFF1AA48 (and copied to RAM at startup) - fir, mrk, jpg, crw, avi, thm, wav. You can see that these lists are different.

Re: Save RAW files in DNG format instead of RAW
« Reply #266 on: 10 / December / 2008, 14:42:02 »
In the new firmware are you try to store DNG shutter opening time instead of time of starting DNG creation ?

*

Offline ewavr

  • ****
  • 1057
  • A710IS
Re: Save RAW files in DNG format instead of RAW
« Reply #267 on: 10 / December / 2008, 15:54:45 »
In the new firmware are you try to store DNG shutter opening time instead of time of starting DNG creation ?
Yes, I already implemented it, but found than Canon uses shutter closing time for jpeg exif :'(
Unfortunately shutter closing event (after image exposure and before dark frame exposure) currently not handled by CHDK.

edit: Now I can try to add exposure time to shutter opening time to obtaing correct exif time.

edit2: Done, but I am not sure that all cameras uses shutter closing time for JPEG EXIF. Can somebody test this assumption (with Tv=5-10 sec and dark frame=on)?

edit3: EXIF standard says (about DateTimeOriginal tag): "For a DSC the date and time the picture was taken are recorded."
« Last Edit: 10 / December / 2008, 16:21:19 by ewavr »

Re: Save RAW files in DNG format instead of RAW
« Reply #268 on: 10 / December / 2008, 16:39:34 »
I try with my S2is and DNG EXIF time is 10s after JPG EXIF time with Tv=10s and dark frame=on
Firmware 623


edit : Same result with the 625
« Last Edit: 10 / December / 2008, 16:43:22 by laetilodie »

*

Offline ewavr

  • ****
  • 1057
  • A710IS
Re: Save RAW files in DNG format instead of RAW
« Reply #269 on: 10 / December / 2008, 16:50:57 »
#627: more precise date/time in DNG.

 

Related Topics


SimplePortal © 2008-2014, SimplePortal