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

Save RAW files in DNG format instead of RAW

  • 392 Replies
  • 204483 Views
*

Offline PhyrePhoX

  • *****
  • 2254
  • make RAW not WAR
    • PhyreWorX
Re: Save RAW files in DNG format instead of RAW
« Reply #230 on: 05 / December / 2008, 05:16:30 »
Advertisements
binsurf - well, i think about adding an option to change the extension to dng automatically, if dng is activated.

ewavr: the dng defines for the g7 seem to be off, i have a report in the german forum about the dngs being too small, they seem to be cropped.
looking at the defines:

    #define CAM_RAW_ROWPIX              3736   // for 10 MP
    #define CAM_RAW_ROWS                2772   // for 10 MP
versus
    #define CAM_JPEG_WIDTH  3072
    #define CAM_JPEG_HEIGHT 2304
theres a whole lot of pixels missing, and not the usual small amount.
isnt the following more likely:
    #define CAM_JPEG_WIDTH  3648
    #define CAM_JPEG_HEIGHT 2736

???
i dont know how to calculate the rest, so somebody else gotta fill it in (ewavr?).

*

Offline ewavr

  • ****
  • 1057
  • A710IS
Re: Save RAW files in DNG format instead of RAW
« Reply #231 on: 05 / December / 2008, 06:11:57 »
OMG, for G7 all DNG settings was incorrect  :'(
Correct settings can be copied from DGN4PS2 settings:

    // pattern
    #define cam_CFAPattern 0x02010100 // Red  Green  Green  Blue
    // color
    #define CAM_COLORMATRIX1                              \
      575419, 1000000,-185557, 1000000, -77898,  1000000, \
     -213702, 1000000, 733569, 1000000,   81514, 1000000, \
      -24604, 1000000, 131906, 1000000,  280378, 1000000
   
    #define cam_CalibrationIlluminant1 1 // Daylight
    // cropping
    #define CAM_JPEG_WIDTH  3648
    #define CAM_JPEG_HEIGHT 2736
    #define CAM_ACTIVE_AREA_X1 14
    #define CAM_ACTIVE_AREA_Y1 8
    #define CAM_ACTIVE_AREA_X2 3682
    #define CAM_ACTIVE_AREA_Y2 2764


« Last Edit: 05 / December / 2008, 06:13:51 by ewavr »

*

Offline PhyrePhoX

  • *****
  • 2254
  • make RAW not WAR
    • PhyreWorX
Re: Save RAW files in DNG format instead of RAW
« Reply #232 on: 05 / December / 2008, 06:22:37 »
shall i check it in?

*

Offline ewavr

  • ****
  • 1057
  • A710IS
Re: Save RAW files in DNG format instead of RAW
« Reply #233 on: 05 / December / 2008, 06:58:37 »

*

Offline PhyrePhoX

  • *****
  • 2254
  • make RAW not WAR
    • PhyreWorX
Re: Save RAW files in DNG format instead of RAW
« Reply #234 on: 05 / December / 2008, 07:16:59 »
done.

*

Offline PhyrePhoX

  • *****
  • 2254
  • make RAW not WAR
    • PhyreWorX
Re: Save RAW files in DNG format instead of RAW
« Reply #235 on: 06 / December / 2008, 04:24:45 »
btw there is a function in my s3is dump - GetDefectCount. i dont know what it does, but from the sound of it i would assume it returns the number of badpixels maybe?
oh and btw since we have dng now, we soon dont need jpgs anymore. so i thought it would be a nice feature to have an extra checkbox like "set jpgs smallest size if dng is activated", which would automatically set the propcases for size = small and compression = high.
but i have the same problem as in s-series - enable flash during video recording for still images (in trunk now!), i dont know where and how to restore the size & compression settings.

*

Offline ewavr

  • ****
  • 1057
  • A710IS
Re: Save RAW files in DNG format instead of RAW
« Reply #236 on: 06 / December / 2008, 04:32:51 »
btw there is a function in my s3is dump - GetDefectCount. i dont know what it does, but from the sound of it i would assume it returns the number of badpixels maybe?

On A710 it returns zero value. Maybe it works only in adjustment mode,

*

Offline ewavr

  • ****
  • 1057
  • A710IS
Re: Save RAW files in DNG format instead of RAW
« Reply #237 on: 06 / December / 2008, 19:21:47 »
In #623:
- added 'DNG' extension for DNG files (you must use card reader to access them),
- added empty ImageDescription tag, proposed by MartinBudden,
- fixed color matrix for a590
- added possibility to create badpixel.bin from script (attached here). Before script is started, user must set shutter speed to 1/4 - 1s and make several shoots to ensure that badpixel count is the same (how make this in script?)
« Last Edit: 06 / December / 2008, 19:23:36 by ewavr »

*

Offline Hacki

  • ****
  • 359
  • EOS 80D
Re: Save RAW files in DNG format instead of RAW
« Reply #238 on: 06 / December / 2008, 21:00:38 »
Nice!

Is it necessery to hold something in front of the lens, so the camera takes a "darkframe", in order to create the badpixel file?

Re: Save RAW files in DNG format instead of RAW
« Reply #239 on: 06 / December / 2008, 21:33:04 »
Add this to the line above the shoot command;

if get_propset() == 2 then
   set_prop(264,0)
else
   set_prop(69,0)
end

That will automatically set the shutter to 1".
________________________
Jim Manning
Canon Powershot S5 IS (1.01b)

 

Related Topics


SimplePortal © 2008-2014, SimplePortal