source: trunk/include/modelist.h @ 888

Revision 888, 4.0 KB checked in by reyalp, 3 years ago (diff)

add s90 from err99 in 3 posts starting at http://chdk.setepontos.com/index.php/topic,650.msg49290.html#msg49290

  • Property svn:eol-style set to native
Line 
1#ifndef MODELIST_H
2#define MODELIST_H
3/*
4CHDK capture mode constants.
5WARNING: This file is used with gen_modelist_lua.sed to generate modelist.lua
6WARNING: These are used for platform independent script values.
7Changing order or inserting new values will break script compatibility.
8ADD NEW VALUES AT THE END!
9
100 is used as an invalid value
11not every value is valid on every camera
12
13Single line comments on the enum values will be carried over to lua
14
15modemap notes:
16- On cameras where the "manual" mode only allows +/- ev, rather than direct shutter
17control, it should be mapped to P, not M
18- Modes should be mapped to an enum value that matches their canon name. This is
19displayed as a string when the mode is set, and can also be found in canon
20manuals and spec lists. If in doubt refer to the canon manuals for description of
21the modes function, and compare with existing cameras. Add a new enum value at the
22end of the list if it doesn't closely match any existing function.
23- Currently, modes under the SCN menu are given the SCN prefix, even if an equivalent
24non-scene constant already exists.
25- Some cameras have C, or C1 and C2 modes. These are not actual shooting modes, but
26are used to load saved settings for other modes like M, P etc. These modes can be
27set using _SetCurrrentCaptureMode, but are not currently supported by the modemap
28system. If a C mode is set this way, the propcase used for PROPCASE_SHOOTING_MODE
29on propset 2 cameras (49) reflects the actual mode. Propcase 50 appears to show the
30set mode. Propset 1 behavior is unknown.
31- Although canon mode values are similar between many cameras, they are not always the same!
32- a list of valid canon modes can be found in the firmware, see existing cameras
33for examples. This can be found several function calls after a reference to the
34string AC:PTM_Init or similar
35*/
36enum {
37MODE_AUTO               =1,
38MODE_P                  , // Called "camera manual" on many cameras without a true manual mode, only allows +/- Ev adjustment
39MODE_TV                 ,
40MODE_AV                 ,
41MODE_M                  , // note, use only for true manual modes that allow direct control of Tv/Av
42MODE_PORTRAIT           ,
43MODE_NIGHT_SCENE        , // "night scene" mode. Note, this can be a dail position, or under the scene menu (SCN_NIGHT_SCENE).
44MODE_LANDSCAPE          ,
45MODE_VIDEO_STD          ,
46MODE_VIDEO_SPEED        ,
47MODE_VIDEO_COMPACT      ,
48MODE_VIDEO_MY_COLORS    ,
49MODE_VIDEO_COLOR_ACCENT ,
50MODE_VIDEO_COLOR_SWAP   ,
51MODE_STITCH             ,
52MODE_MY_COLORS          ,
53MODE_SCN_UNDERWATER     ,
54MODE_SCN_NIGHT_SNAPSHOT ,
55MODE_LONG_SHUTTER       , // "long shutter" mode on cameras without true manual mode. Allows manual shutter >= 1 second, uses manual shutter value propcase. Usually found under func menu in "manual" mode.
56MODE_SCN_LANDSCAPE      ,
57MODE_COLOR_SWAP         ,
58MODE_SCN_SNOW           ,
59MODE_SCN_BEACH          ,
60MODE_SCN_FIREWORK       ,
61MODE_SCN_COLOR_ACCENT   ,
62MODE_SCN_COLOR_SWAP     ,
63MODE_VIDEO_HIRES        ,
64MODE_SCN_AQUARIUM       ,
65MODE_COLOR_ACCENT       ,
66MODE_SCN_NIGHT_SCENE    ,
67MODE_SCN_ISO_3200       ,
68MODE_SCN_SPORT          ,
69MODE_SCN_KIDS_PETS      ,
70MODE_INDOOR             ,
71MODE_KIDS_PETS          ,
72MODE_NIGHT_SNAPSHOT     ,
73MODE_DIGITAL_MACRO      ,
74MODE_SCN_FOLIAGE        ,
75MODE_VIDEO_TIME_LAPSE   ,
76MODE_SCN_INDOOR         ,
77MODE_SCN_PORTRAIT       ,
78MODE_SUPER_MACRO        ,
79MODE_VIDEO_PORTRAIT     , // tx1 junk
80MODE_VIDEO_NIGHT        , // tx1 junk
81MODE_VIDEO_INDOOR       , // tx1 junk
82MODE_VIDEO_FOLIAGE      , // tx1 junk
83MODE_VIDEO_SNOW         , // tx1 junk
84MODE_VIDEO_BEACH        , // tx1 junk
85MODE_VIDEO_AQUARIUM     , // tx1 junk
86MODE_VIDEO_SUPER_MACRO  , // tx1 junk
87MODE_VIDEO_STITCH       , // tx1 junk
88MODE_VIDEO_MANUAL       , // tx1 junk
89MODE_SPORTS             ,
90MODE_QUICK                          ,
91MODE_SCN_SUNSET         ,
92MODE_SCN_CREATIVE_EFFECT, // "creative light effect", only known on ixus950_sd850
93MODE_EASY               ,
94MODE_SCN_DIGITAL_MACRO  ,
95MODE_SCN_STITCH         ,
96MODE_SCN_LONG_SHUTTER   , // only known on sx1
97MODE_LOWLIGHT           , // g11
98MODE_SCN_NOSTALGIC      , // s90
99};
100#endif
Note: See TracBrowser for help on using the repository browser.