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

Save RAW files in DNG format instead of RAW

  • 392 Replies
  • 202504 Views
Re: Save RAW files in DNG format instead of RAW
« Reply #270 on: 10 / December / 2008, 17:18:00 »
Advertisements
Not working for me, always 10s between JPG and DNG with firmware 627.

*

Offline fudgey

  • *****
  • 1705
  • a570is
Re: Save RAW files in DNG format instead of RAW
« Reply #271 on: 10 / December / 2008, 18:09:15 »
a570 100e:

All code very similar to a710. Extension support is the same as for a710:
scan: jpg, crw, avi, wav, mrk, dps, fir
transferable: fir, mrk, jpg, crw, avi, thm, wav

boot.c: long *canon_data_src = (void*)0xFFF2D320;
0xfff3216c - 0xFFF2D320 + 0x1900 = 0x4E4C + 0x1900 = 0x674C
0xfff32190 - 0xFFF2D320 + 0x1900 = 0x4E70 + 0x1900 = 0x6770

stubs:
DEF(some_f_for_dng, 0x674C)
DEF(second_ext_for_dng, 0x6770)

I haven't tested this yet, though. That's for thm like the a710.

ewavr, where does that 0x1900 come from? I found 0x674C by comparing code and it's good, but wouldn't know how to do it the other way around...

*

Offline ewavr

  • ****
  • 1057
  • A710IS
Re: Save RAW files in DNG format instead of RAW
« Reply #272 on: 10 / December / 2008, 18:10:59 »
Not working for me, always 10s between JPG and DNG with firmware 627.
You compare time of creation of files or EXIF data? Date/time in both EXIF must be equal.

*

Offline ewavr

  • ****
  • 1057
  • A710IS
Re: Save RAW files in DNG format instead of RAW
« Reply #273 on: 10 / December / 2008, 18:16:11 »
ewavr, where does that 0x1900 come from?

From any boot.c, boot() function:
Code: [Select]
long *canon_data_dst = (void*)0x1900;

    for(i=0;i<canon_data_len/4;i++)
canon_data_dst[i]=canon_data_src[i];

Initialized data segment in any VxWorks/DRYOS camera started at 0x1900.
« Last Edit: 10 / December / 2008, 18:18:41 by ewavr »

Re: Save RAW files in DNG format instead of RAW
« Reply #274 on: 11 / December / 2008, 01:39:24 »
Not working for me, always 10s between JPG and DNG with firmware 627.
You compare time of creation of files or EXIF data? Date/time in both EXIF must be equal.


Sorry not 10s but 1s between EXIF JPG and EXIF DNG with Tv=10s and dark frame=on.
Same problem as other firmware.
« Last Edit: 11 / December / 2008, 01:41:23 by laetilodie »

*

Offline PhyrePhoX

  • *****
  • 2254
  • make RAW not WAR
    • PhyreWorX
Re: Save RAW files in DNG format instead of RAW
« Reply #275 on: 11 / December / 2008, 09:54:59 »
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:
...

okay, will try to follow this for s3is and a620.
i just added the badpixel.lua to the svn (see Changeset 629 - chdk - Trac )
should run on all cameras.
i noticed something: when you enabled dng and then later remove badpixel.bin (for example you just save the cfg, not the badpixel.bin when you change sdcard) you can still create dngs. shall we somehow check on startup for the existence of badpixel.bin?

*

Offline ewavr

  • ****
  • 1057
  • A710IS
Re: Save RAW files in DNG format instead of RAW
« Reply #276 on: 11 / December / 2008, 14:14:30 »
when you enabled dng and then later remove badpixel.bin (for example you just save the cfg, not the badpixel.bin when you change sdcard) you can still create dngs.
Of course, because badpixel.bin is copied to memory.
Quote
shall we somehow check on startup for the existence of badpixel.bin?
If dng option is turned on and this file is not present at camera startup, dng option will be turned off automatically (see conf.c : conf_change_dng()).

*

Offline PhyrePhoX

  • *****
  • 2254
  • make RAW not WAR
    • PhyreWorX
Re: Save RAW files in DNG format instead of RAW
« Reply #277 on: 11 / December / 2008, 15:33:47 »
hm, i was sure i checked conf.c for it :D
should have known better :D

*

Offline fudgey

  • *****
  • 1705
  • a570is
Re: Save RAW files in DNG format instead of RAW
« Reply #278 on: 11 / December / 2008, 16:31:20 »
a570 100e:

stubs:
DEF(some_f_for_dng, 0x674C)
DEF(second_ext_for_dng, 0x6770)

I've tested the above now on a570 100e, it appears to work. I'm able list and transfer DNG files shot using CHDK on Ubuntu's default nautilus+libgphoto2 desktop tools.

As I said before, this is similar to a710 (disables .DPS and .THM). I also tested USB deletion and it does not work with a570 either, gphoto2 gives a clean error and camera does not crash. So just like a710 here as well.

a570 101a should work with the same exact stubs, I checked from the disassembly but obviously can't test it.


The setting is a bit out of place in MISC menu, though, I would've expected to find it in RAW menu along with the other DNG options.

*

Offline ewavr

  • ****
  • 1057
  • A710IS
Re: Save RAW files in DNG format instead of RAW
« Reply #279 on: 13 / December / 2008, 02:51:31 »
okay, will try to follow this for s3is and a620.

So, in both cameras required stuff is absent  :(.

I've tested the above now on a570 100e, it appears to work. I'm able list and transfer DNG files shot using CHDK on Ubuntu's default nautilus+libgphoto2 desktop tools.

Good, I will search this functions for other cameras.

Quote
The setting is a bit out of place in MISC menu, though, I would've expected to find it in RAW menu along with the other DNG options.
We already have a million useful and useless options in RAW menu. Maybe we need DNG submenu in RAW menu.
« Last Edit: 13 / December / 2008, 02:58:31 by ewavr »

 

Related Topics


SimplePortal © 2008-2014, SimplePortal