CHDK Wiki
(→‎Digic II: added #78 + #79 with forumlink (by ewavr))
(added a few new digic II propcases and extended a few already known... thx to new feature in rev. 613)
(One intermediate revision by the same user not shown)
Line 22: Line 22:
 
|4||Custom MyColors Contrast
 
|4||Custom MyColors Contrast
 
|-
 
|-
  +
|5||White Balance Mode (0,1,2,3,4,5,7 = Auto, Day Light, Cloudy, Tungsten, Fluorescent, Fluorescent H, Custom)
|5||White balance card
 
 
|-
 
|-
 
|6||Drive mode (0-normal, 1-continuous, 2-timer)
 
|6||Drive mode (0-normal, 1-continuous, 2-timer)
Line 35: Line 35:
 
|-
 
|-
 
|12||Manual Focus (0=auto, 1= manual)
 
|12||Manual Focus (0=auto, 1= manual)
  +
|-
  +
|13||AF (S3IS: 0=Single,1=continuous)
 
|-
 
|-
 
|14||Delay of selftimer (in msec)
 
|14||Delay of selftimer (in msec)
Line 67: Line 69:
 
|-
 
|-
 
|37||Orientation sensor
 
|37||Orientation sensor
  +
|-
  +
|38||Automatic Rotation (1 = on, 0 = off) (confirmed for s3is)
 
|-
 
|-
 
|39||Chosen Av (by user)
 
|39||Chosen Av (by user)
Line 72: Line 76:
 
|40||Chosen Tv (by user)
 
|40||Chosen Tv (by user)
 
|-
 
|-
  +
|58||Digital Zoom (1=On,0=Off) (Confirmed for s3is)
|58||movie mode?
 
 
|-
 
|-
  +
|63||AF-light (1=On, 2=Off) (confirmed for s3is)
|63||
 
 
|-
 
|-
 
|64||manual settings
 
|64||manual settings
Line 159: Line 163:
 
|-
 
|-
 
|195||max resolution?
 
|195||max resolution?
  +
|-
  +
|196||Language Setting - 2=english,2050=swedish,4098=hungarian,258 = german, 2306 = spanish, 4354 = turkish,514 = french, 2562 & 4610 = chinese? (weird symbols),770 = dutch, 2818 = russian?, 4866 = ???, 1026 = danish, 3074 = portuguese, 5122 = ???, 1282 = suomi, 3330 = greek, 5378 = ???, 1538 = italian, 3586 = polish, 5634 = ???, 1794 = norsk, 3842 = czech) (Confirmed on s3is. languages marked with ? are unknown, because camera shows symbols i cannot decipher :)) - NOTE: I just discovered that this setting directly is related to NTSC/PAl setting. these numbers are valid vor PAL. If you set to NTSC, all these numbers are decremented by 1, meaning english is 1 and german is 257 in NTSC (instead of 2 and 258).
 
|-
 
|-
 
|200||Selected Movie mode
 
|200||Selected Movie mode
Line 164: Line 170:
 
|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)
 
|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
+
|206||Submode of "MyColors?" mode, including Color accent/swap (S3is - 0-11: off,strong,neutral,sepia,black/white,dia,brighter skintone,darker skintone,strong blue,strong green,strong red,custom color)
 
|-
 
|-
 
|207||Custom MyColors Red
 
|207||Custom MyColors Red
Line 184: Line 190:
 
|219||Self Timer setting (s3: 0=2 sec, 1=10 sec, 2=custom continuous)
 
|219||Self Timer setting (s3: 0=2 sec, 1=10 sec, 2=custom continuous)
 
|-
 
|-
  +
|227||Mic Level (s3: 1-5, low to high)
|229||IS Mode
 
  +
|-
  +
|228||Mic Wind Protection (s3: 1: on, 0= off)
  +
|-
  +
|229||IS (0,1,2,3 = continous, shoot only, panning, off)
 
|-
 
|-
|230||Converter
+
|230||Converter (0=off, 1 = wide, 2 = tele)
 
|-
 
|-
 
|231||Color Accent tolerance setting
 
|231||Color Accent tolerance setting

Revision as of 15:59, 2 December 2008

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.

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.

To find out which prop id´s a funktion changes see this!

Digic II

# 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 Mode (0,1,2,3,4,5,7 = Auto, Day Light, Cloudy, Tungsten, Fluorescent, Fluorescent H, Custom)
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)
13 AF (S3IS: 0=Single,1=continuous)
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
38 Automatic Rotation (1 = on, 0 = off) (confirmed for s3is)
39 Chosen Av (by user)
40 Chosen Tv (by user)
58 Digital Zoom (1=On,0=Off) (Confirmed for s3is)
63 AF-light (1=On, 2=Off) (confirmed for s3is)
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 Flash fired (Read only ?)[1]
79 Flash fired (R/W) [2]
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?
196 Language Setting - 2=english,2050=swedish,4098=hungarian,258 = german, 2306 = spanish, 4354 = turkish,514 = french, 2562 & 4610 = chinese? (weird symbols),770 = dutch, 2818 = russian?, 4866 = ???, 1026 = danish, 3074 = portuguese, 5122 = ???, 1282 = suomi, 3330 = greek, 5378 = ???, 1538 = italian, 3586 = polish, 5634 = ???, 1794 = norsk, 3842 = czech) (Confirmed on s3is. languages marked with ? are unknown, because camera shows symbols i cannot decipher :)) - NOTE: I just discovered that this setting directly is related to NTSC/PAl setting. these numbers are valid vor PAL. If you set to NTSC, all these numbers are decremented by 1, meaning english is 1 and german is 257 in NTSC (instead of 2 and 258).
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 (S3is - 0-11: off,strong,neutral,sepia,black/white,dia,brighter skintone,darker skintone,strong blue,strong green,strong red,custom color)
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)
227 Mic Level (s3: 1-5, low to high)
228 Mic Wind Protection (s3: 1: on, 0= off)
229 IS (0,1,2,3 = continous, shoot only, panning, off)
230 Converter (0=off, 1 = wide, 2 = tele)
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

Digic III

# R/W ? Most Digic III (such as SD1000, A570IS and A590IS)
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 RW Auto-Focus state after half-press (stays 1 if shoot_half is released!) (0 orange, >=1 green)
(with AiAF=off only 0 or 1, with enabled AiAF or Face the value depends on position & number of AF boxes)
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 ("Near limit", most linear to real distance. You can get-and-set this prop_id, but it doesnt affect the near limit and/or the focus - tested with A590)
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)
103 changes with light only in M-Mode (-445 is completely dark and 328 is fully bright. Also depends on the current av/tv setting.)
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 - 11): 0=Off, 1=Vivid, 2=Neutral, 3=B/W, 4=Sepia, 5=Positive Film, 6=Lighter Skin Tone,
7=Darker Skin Tone, 8=Vivid Red, 9=Vivid Green, 10=Vivid Blue, 11=Custom Color)
195 Zoom position (0,1,2,3,4,5,6...)
196 (? Scene dependent/ stays 0 when scene is black or when scene has optimal light)
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)
227 "long time exposure" indicator: 1 always in "Night snapshot" scene mode & when the exposure time is set to >= 1s
245 Subject Dist 1 (equals id 65 on the A590)
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")

On the A590, it seems that possible prop-id´s range from 0 to 287. Id´s greater than 287 will return always "14".

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)

get_parameter_data()

Here are a few values that I think work that way with get_parameter_data() on my ixus 950 is... maybe someone can test and verify them for this cam or even for others?

18   LCD Brightness
56   Current Display Mode for view mode - 0,1 or 2
73   Number of shots in Custom drive mode
104  "Show clock" (in seconds)

Timezone Information

On my cam (ixus 950 is) get_parametr_data(20,...) seems to be the timezone information. There is a strong correlation of the following values (Names are in german or translated):

(DST Must be somewhere else)
65792 London
65793 Paris
65794 Kairo
65795 Moskau
65796 Teheran
65797 Dubai
65798 Kabul
65799 Karachi
65800 Delhi
65801 Kathmandu
65802 Dacca
65803 Yangon
65804 Bangkok
65805 HongKong
65806 Tokyo
65807 Adelaide
65808 Sydney
65809 Solomon Islands
65810 Wellington
65811 Chathman Islands
65812 Samoa
65813 Honolulu
65814 Anchorage
65815 LosAngeles
65816 Denver
65817 Chicago
65818 NewYork
65819 Caracas
65820 NewFoundland
65821 Rio De Janeiro
65822 Fernando de noronha
65823 Azoren

Given that there are more than 24 of such entries, these seem to be offsets into somewhere else, will need to find it there... My cam also has a travel timezone setting. I get really high numbers for when chosing one, so it looks to me like they get somewhat ORed together with a shift or so... need to still test...