Lua functions get_raw() and set_raw() affect only CHDK raw files like DNG. Is there a similar function or propcase that queries and enables/disables Canon raw (native CRW CR2) for the S90? For example, in the Canon [set] menu I have:
L M1 M2 M3 S W RAW
Hence a value must exist to allow changing the selection by Lua code rather than manually through the Canon menu.
I tried this from CHDKPTP:
=return get_prop(require('propcase').RESOLUTION)
and got these return values:
L M1 M2 M3 S W RAW
0 1 2 3 4 8 5
Thus I can read the present state.
Switching image formats in the JPG mode like this also works producing the right images:
=set_prop(require('propcase').RESOLUTION,0)
=set_prop(require('propcase').RESOLUTION,1)
But for example if I am in state 0 and want RAW format I say:
=set_prop(require('propcase').RESOLUTION,5)
there is no change on the OSD (it should show [RAW] in the upper left). However, if I get_prop(), it returns the right value, ie 5. On shoot, a 10 MB CR2 file actually gets emitted, but it does not contain a thumbnail and is not recognized by RawTherapee (missing EXIF?). Canon software displays it as a cracked photo and no EXIF. If I now set it using Canon [set], all's OK.
Could there be some other call I am missing to enable good CR2s in Lua, and to be able to switch around between L and RAW?