CRW->DNG - - Profile Info? - RAW Shooting and Processing - CHDK Forum

CRW->DNG - - Profile Info?

  • 3 Replies
  • 4385 Views
CRW->DNG - - Profile Info?
« on: 15 / January / 2012, 15:29:41 »
Advertisements
Quote
Camera Name: Canon IXUS 120 IS ------ CHANGE TO YOUR CAMERA NAME
Short Name: IXUS120IS                 -------CHANGE TO YOUR CAMERA NAME
Sensor Size: 4080 x 3048               -------CHANGE TO CORRECT VALUES FOR YOUR CAMERA
Jpeg Size: 4000 x 3000
Active zone x1, y1: 52, 14
Active zone x2, y2: 4052, 3014
Black-white levels: 127 - 4095
Mosaic type: Red, Green Green, Blue
Bits per unit: 12 bit

So far DNG4PS2 is the only hope I have of converting CRW to DNG (unless someone can help me with another program). And I found this in a thread for converting these files for "noobs" (http://chdk.setepontos.com/index.php?topic=6754.0), but I can't seem to figure out where the info above is taken from ^. Does anyone know how to go about either:

1. Know of a better way to convert CRW files?

2. Figure out the following info above for the A3300IS Camera?
« Last Edit: 15 / January / 2012, 15:36:01 by AlexWekell »

Re: CRW->DNG - - Profile Info?
« Reply #1 on: 15 / January / 2012, 15:32:44 »
[And I found the thread for converting these files for "noobs", but I can't seem to figure out where the info above is taken from
Post the thread link please ?
Ported :   A1200    SD940   G10    Powershot N    G16


*

Offline reyalp

  • ******
  • 14114
Re: CRW->DNG - - Profile Info?
« Reply #3 on: 15 / January / 2012, 17:52:22 »
Sensor Size: 4080 x 3048               -------CHANGE TO CORRECT VALUES FOR YOUR CAMERA
Should be found in your cameras platform_camera.h in the source, should be auto-detected in stubs_entry.S A3300 shows
//#define CAM_RAW_ROWPIX    4704 // Found @0xff93a6e0
//#define CAM_RAW_ROWS      3504 // Found @0xff93a6ec

Quote
Jpeg Size: 4000 x 3000
Highest resolution jpeg produced by camera.
Quote
Active zone x1, y1: 52, 14
Active zone x2, y2: 4052, 3014
by inspection of raw, e.g. using rawconvert and figuring out where the borders are. Shouldn't matter too much as long as the range is within the valid image area. At the worst you may see some dark borders or not see some valid data.
Quote
Black-white levels: 127 - 4095
12 bit sensors (most new cameras) use the above values. Ten bit sensors use 31-1023
Quote
Mosaic type: Red, Green Green, Blue
By trial and error (colors will be really wrong if it is wrong) or from firmware dissassembly. CHDK cameras are either the above or Green  Blue  Red  Green
Quote
Bits per unit: 12 bit
Can be determined from raw size and resolution, or firmware dump. Most (all ?) recent CHDK cameras are 12 bpp.

edit
<sensor width>*<sensor height>*bpp/8 sould equal the size of the raw file. Note that the raw size has to be set correctly in your port!
« Last Edit: 15 / January / 2012, 17:54:30 by reyalp »
Don't forget what the H stands for.


 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal