PropertyCase
From CHDK Wiki
NOTE: these properties are different for Digic II and Digic III cameras (for example, the A570IS ISO is at #149, not #21 like on the S3IS, and the white balance control is #268, not #206). Furthermore, some Digic III cameras (G7 and IXUS850IS/SD800IS) use the Digic II property set. You are advised to confirm that these properties are appropriate for your camera before you attempt to change them.
Property cases are basically variables in the camera's RAM that we can read and write from CHDK by using uBasic commands get_prop and set_prop. "Under the hood" some other uBasic commands work by changing propcases, making it possible to use them in a portable way. Some propcases are read only. Often writing to a propcase will have a different effect than pressing the corresponding buttons on the camera's user interface. Typically this means that while you may change something like the shutter speed and your change will be effective in your photo, it may not be updated to the camera's on-screen display.
| # | Digic II (and some of the Digic III cameras) |
|---|---|
| 0,236 | Shooting mode dial position |
| 1 | Photo effect |
| 2 | Custom MyColors Sharpness |
| 3 | Custom MyColors Saturation |
| 4 | Custom MyColors Contrast |
| 5 | White balance card |
| 6 | Drive mode (0-normal, 1-continuous, 2-timer) |
| 8 | Hi-speed continuous (1=OFF, 0=ON) |
| 9 | Metering mode (0=eval 2=center, 1= spot) |
| 10 | Spot AE Point (0=center, 1=auto focus point) |
| 11 | Macro mode (0,1, or 5 for normal, macro, super macro) |
| 12 | Manual Focus (0=auto, 1= manual) |
| 14 | Delay of selftimer (in msec) |
| 15 | Flash adjust mode (S3: 0=Auto, 1=Manual (see 28&29) |
| 16 | Flash mode |
| 18 | Red eye mode (0=OFF, 1=ON) |
| 19 | Flash slow sync (0=OFF, 1=ON) |
| 20 | Flash Sync Curtain (0=1st, 1=2nd) |
| 21 | ISO value (for S3: 0=auto, 1=ISO-HI, or actual ISO: 80,100,etc) |
| 23 | Image quality (for S3: 0,1,2 from best to worst) |
| 24 | Image resolution (for s3: 0,1,2,4,8 for L,M1,M2,S,W) |
| 25,26 | EV correction (units: +/- 96 per 1 stop range) |
| 28 | Flash correction (units: +/- 96 per 1 stop range, if #15=0) |
| 29 | Manual flash output (units 0,1,2 from less to full, if #15=1) |
| 32 | Exposure bracket range (units: 96 per 1 stop extension) |
| 34 | Focus bracket range (2=Smallest, 1=Medium, 0=largest) |
| 36 | Bracket mode (0=none, 1=EV, 2=focus) |
| 37 | Orientation sensor |
| 39 | Chosen Av (by user) |
| 40 | Chosen Tv (by user) |
| 58 | movie mode? |
| 63 | |
| 64 | manual settings |
| 65,66 | Focus distance |
| 67 | focus ok (green, not yellow) when in photo mode 1=OK, 0=not set |
| 68 | Coming Av |
| 69 | Coming Tv |
| 70 | |
| 71 | 422 |
| 72 | Looks like it's ~ISO*something + 380 |
| 73 | 371 |
| 74 | AE lock activated (S3: 1=yes, 0=no; see 205) |
| 75 | 0 |
| 76 | 0 |
| 77 | min available Av |
| 78 | 0 |
| 79 | 0 |
| 80 | 1 |
| 81 | 1 |
| 82-85 | Often the same, sometimes slightly different |
| 86 | Av |
| 87 | 0 |
| 88 | 2 |
| 89 | 0 |
| 90 | 0 |
| 91 | 5 |
| 92 | 0 |
| 93 | 0 |
| 94 | 0 |
| 95 | 8 |
| 96 | 10 |
| 100 | varying |
| 101 | constantly varying with light |
| 126 | Video FPS |
| 127,13 | Video resolution |
| 128 | Video resolution = 640x480 |
| 171 | Zoom |
| 172 | Digital zoom |
| 177 | intervalometer #of shots |
| 178 | File Numbering reset |
| 181 | Display mode (record mode only) (0 = show info icons, 1 = Do not show info icons, 2 = LCD off, 3 = EVF) |
| 192 | AF Frame/Flexizone x-position |
| 194 | used part of sensor when digital zoomed |
| 195 | max resolution? |
| 200 | Selected Movie mode |
| 205 | 1 during shooting process (this may be an indication that exposure has been determined; it is set shortly after shoot_half, and remains set if AE lock activated. See #74) |
| 206 | Submode of "MyColors?" mode, including Color accent/swap |
| 207 | Custom MyColors Red |
| 208 | Custom MyColors Blue |
| 209 | Custom MyColors Green |
| 210 | Custom MyColors Skin Tone |
| 211 | Color Accent color |
| 212 | Color Swap from color |
| 213 | Color Swap to color |
| 218 | Custom timer continuous (value: # of shots to be taken) |
| 219 | Self Timer setting (s3: 0=2 sec, 1=10 sec, 2=custom continuous) |
| 229 | IS Mode |
| 230 | Converter |
| 231 | Color Accent tolerance setting |
| 233 | Color Swap/Accent tolerance |
| 236 | Mode dial |
| 237 | 47 |
| 254 | Focus. auto, 320-725 |
| 257 | Color Swap tolerance setting |
| 260 | 500 |
| 262 | 0 in fireworks or movie mode, otherwise 1 |
| 274 | 411 |
| 298 | 201329664 |
| 299 | -201264128 |
| # | # | Most Digic III (such as SD1000 and A570IS) |
|---|---|---|
| 3 | RO | Auto-Exposure Lock |
| 5 | AF Assist Beam Setting (0,1 = Off, On) | |
| 6 | Focus Mode (0,1,3 = Normal, Macro, Infinity) | |
| 8 | AiAF Mode (0,1,2 = On, Off, FaceDetect) | |
| 11 | RW | Auto-Focus Lock |
| 18 | ?? | Auto-Focus state after half-press (0=orange, 1=green)(SD870 ok) |
| 21 | Auto Rotate (0,1 = Off, On) | |
| 23 | RW | Av (for next shot, updates on half-shoot), 96 per 1 stop |
| 24 | Min Av (widest available aperture for current zoom, updates on half shoot), 96 per 1 stop | |
| 25 | Min Av (widest available aperture for current zoom, updates on half shoot), 96 per 1 stop | |
| 26 | RW | User Av (user selected "market" value in M/Av modes, writes become effective on LCD on half shoot), 96 per 1 stop. |
| 34 | Bv | |
| 49,50 | MODE | |
| 57 | Picture Quality (0,1,2 = Superfine, Fine, Normal) | |
| 60 | Converter (0,1,2,4) | |
| 63 | Number of continuous shots taken last time | |
| 64 | RW | Flash Sync Curtain (0=1st, 1=2nd) |
| 65 | Subject Dist 2 | |
| 79 | Delta Sv (What is this? Someone please add a description.) | |
| 91 | RO | Digital Tele-Converter mode (>0 if enabled) |
| 92 | Digital zoom source image width in pixels | |
| 94 | Digital zoom mode (1="Standard", 0=any other mode) | |
| 95 | RO | Digital zoom depth (0--6: 0=none, 1--6 are for camera dependent zoom steps, higher number = higher magnification) |
| 102 | RO | Drive Mode (0,1,3 = single, continuous, timers) |
| 105 | Display mode (record mode only) (0,1,2,3 = show info icons, do not show info icons, LCD off, EVF) | |
| 107,207 | RO,RW | Exposure Shift/Compensation (32 for 1/3 stop) |
| 115 | Ready to shoot | |
| 121 | RW | Flash adjust mode (0=Auto, 1=Manual (see 127&141) |
| 122 | RO | Flash used in last shot (0,1 = Flash not used, Flash used) |
| 127 | RW | Flash exposure compensation (units: +/- 96 per 1 stop range, if #121=0) |
| 133 | Manual Focus Mode (0,1 = Off,On) | |
| 141 | RW | Manual flash output (units 0,1,2 from min to full, if #121=1) |
| 143 | RW | Flash Mode (0,1,2 = flash auto, flash on, flash off) |
| 145 | IS (0,1,2,3 = continous, shoot only, panning, off) | |
| 149 | RW | ISO Mode (0=auto, 1=high auto, 100=manual ISO 100 etc) |
| 155 | Metering Method (0, 1, 2 = Evaluative, Spot, Center) | |
| 165 | RW | Time lapse movie shoot interval (milli-seconds) |
| 166 | Movie frame rate | |
| 184 | My Colors (0,1,2,3,4,5,6,7,8,9,10,11 = Off, Vivid, Neutral, B/W, Sepia, Positive Film, Lighter Skin Tone, Darker Skin Tone, Vivid Red, Vivid Green, Vivid Blue, Custom Color) | |
| 195 | Zoom position (0,1,2,3,4,5,6...) | |
| 196 | (? Scene dependent) | |
| 206 | Shooting in progress | |
| 208 | Flash Ready (1 during shutter half press after metering if camera is going to use flash) | |
| 213 | Red-Eye (0 "Off", 1 "On") | |
| 218 | RW | Picture Size (0,1,2,3,4,6,8 = L,M1,M2,M3,S,Postcard,W) |
| 219 | RO | Orientation Sensor (0,90,270) |
| 220 | Safety FE (0 "Off", 1 "On") | |
| 223 | Timer Mode (0,1,2 = 2 Second, 10 Second, Custom) | |
| 224 | Timer Delay (ms) (can't override) | |
| 245 | Subject Dist 1 | |
| 246 | Sv Market (for next shot, updates on half-shoot), 96 per 1 stop | |
| 247 | Sv (for next shot, updates on half-shoot), 96 per 1 stop | |
| 262 | RW | Tv (for next shot, updates on half-shoot), 96 per 1 stop |
| 264 | RW | User Tv (user selected value in M/Tv modes, writes become effective on LCD on
half shoot), 96 per 1 stop |
| 268 | White Balance Mode (0,1,2,3,4,5,7 = Auto, Day Light, Cloudy, Tungsten, Fluorescent, Fluorescent H, Custom) | |
| 269 | White Balance Value (Middle around 900. Less corrects red and higher corrects blue. Can't override.) | |
| 277 | Safety MF (0 "Off", 1 "On") |
[edit] Not found
- Manual White balance settings, needed for white balance fine tuning
- MF Point Zoom
- AF-assist Beam
- Number of shots in Custom drive mode
- Review time
- Selected Scene Mode
- Current Display Mode, i.e. no info, more info, full info, where you cycle through by pressing disp.
Where could these be stored? I scanned all Property Cases from 0 till 300, after that everything seems to be 0. PTT 01:59, 9 July 2007 (UTC)
- A face is being detected
Some parameters can be read with the function get_parameter_data(). Вut the numbers of parameters depends on the camera model. For example, Canon 710 IS: 72 Delay in Custom drive mode (in seconds, 1 byte) 73 Number of shots in Custom drive mode (1 byte) 9 Review time (in msec, 4 bytes) 54 Current Display Mode for record review mode - 0,1 or 2 (2 bytes) 53 Current Display Mode for view mode - 0,1 or 2 (2 bytes)
