supplierdeeply

S90: How to enable Canon raw CRW or CR2 programmatically

  • 1 Replies
  • 937 Views
*

Offline SticK

  • *****
  • 779
S90: How to enable Canon raw CRW or CR2 programmatically
« on: 13 / August / 2014, 23:10:36 »
Advertisements
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?

*

Offline reyalp

  • ******
  • 11437
Re: S90: How to enable Canon raw CRW or CR2 programmatically
« Reply #1 on: 14 / August / 2014, 00:21:26 »
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?
There is no other CHDK function that does this.

It's possible there is some other propcase that also needs to be set. If so, you might be able to find it by setting/unsetting raw from the menu and seeing what changes.

Otherwise, you are left with doing with key strokes or possibly using the PTM_* functions which I think srsa described in one of your earlier threads.
Don't forget what the H stands for.

 

Related Topics