Canon Camera Hackers Manual page 138

Camera hackers manual berthold daum
Table of Contents

Advertisement

A more elegant solution to this problem exists for the most important
property cases under Lua. Your CHDK installation should already contain a
library propcase.lua in folder /CHDK/LUALIB. This library maps symbolic
names to property IDs and thus abstracts from the underlying operating
system. The above query can be reformulated as:
props = require "propcase"
s = get_prop(props.SHOOTING)
You will find that many property cases shown in the table below are, in
fact, covered by commands listed in section 5.5, so it's rarely necessary to
access properties directly. The query shown above can be expressed more
simply as:
s = get_shooting
s = get_shooting() -- Lua
Not all of the property IDs and their values have been decoded yet—this is
an ongoing community effort. In addition, not all findings have been veri-
fied for all camera types. So, the following table must be treated with some
caution.
Vx Works
DryOS
0
236
49
50
rem uBasic
Lua
SHOOTING_MODE
SHOOTING_MODE
Description
Shooting mode dial position
18 = video (11)
Shooting mode dial position
We list here only the most common shooting modes. A complete list of
shooting modes is found in library modelist.lua in folder CHDK/LUALIB/.
Some of the Canon shooting mode numbers (in front of the equality sign) dif-
fer from camera to camera. The latest findings are listed on
com/wiki/Mode_dial_propcase_values.
The values in parenthesis are the CHDK shooting mode numbers.
–32768 = AUTO (1)
–32764 = P (2)
–32765 = Tv (3)
–32766 = Av (4)
–32767 = M (5)
–32755 = PORTRAIT (6)
–32757 = NIGHT (7)
–32756 = LANDSCAPE (8)
2597 = VIDEO_STD (640/30fps) (9)
2598 = VIDEO_SPEED (320/60fps ) (10)
2599 = VIDEO_COMPACT (160/15fps) (11)
–32246 = Stitch Assist
–32248 = Digital Macro
5.6 Property Cases
http://chdk.wikia.
129

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Powershot sx10 is

Table of Contents