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
Jpeg Size: 4000 x 3000
Highest resolution jpeg produced by camera.
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.
Black-white levels: 127 - 4095
12 bit sensors (most new cameras) use the above values. Ten bit sensors use 31-1023
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
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!