DNG4PS2 settings for the SX40HS:
Select an existing profile and click the copy button.
Change the settings as:
Camera Name = Canon PowerShot SX40 HS
Short Name = PowerShot SX40 HS
Sensor size = 4176 x 3060
Jpeg size = 4072 x 3044
Active zone x1, y1 = 96, 16
Active zone x2, y2 = 4168, 3060
Black-white level = 127, 4095
Mosaic type = Red,Green,Green,Blue
Bits per unit = 12
Color matrix 1
Illuminant = Daylight
Matrix = 5.44808 -1.74047 -0.80399 -0.75055 4.40444 0.11367 -0.05801 0.71589 1.18914
Multiplicator = 1.0 1.0 1.0
Color matrix 2, leave blank
(Note, I just extracted these from the platform_camera.h file, I haven't tested them yet.)
Phil.