source: trunk/include/conf.h @ 531

Revision 531, 7.6 KB checked in by phyrephox, 5 years ago (diff)
  • increased version number to reflect for latest changes from previous revisions

+ added zoom override. first installment allows you to set a specific zoom value (on s3is for example between 0 and 128, on a620 between 0 and 8) that will be set upon starting the cam in record mode. Extra Photo Operations -> Zoom Override. You can disable and enable it there (default: off), also you can set the startup behaviour (there isnt much working right now :D). In the future: Not only set the zoom steps (in accurate int) but maybe set it using mm & factor (much like the shutter override menu stuff to allow for easing setting using "mnemonics"). Also will implement ZOOM BRACKETING. could be done via script, but then again everything could be done via script ;) Also i am wondering if i should focus after zooming. Also the zoom override should work like this, that no matter what value of zoom you set using the zoom lever, before each pic is taken the zoom will be set to the value you specified in the menu (much like shutter & aperture override). Also maybe implement the feature so that it remembers the actual zoom value you set (via lever/button) before shutting off the cam - and restore it when you power it on again!?
This feature works a) as somehow a "C" (custom mode in which you can save a few settings that will be remembered even when you shut off the cam) mode for cameras that dont have it and b) for studio photogs or other situations where you need the zoom in a fixed value over a long period of time. Noticed a bug: when you use this feature to zet zoom upon startup, you cant zoom out using the zoomlever, unless you zoom out before - i guess it is because the camera thinks you are still in wide (zoom 0). i guess one can fix that, dunno how though (yet).

+ added czech language file

  • fixed russian lang file - pethead updated it in the wiki (there are a lot of outdated lang files in the wiki, come on people!)
  • Property svn:eol-style set to native
Line 
1#ifndef CONF_H
2#define CONF_H
3
4#include "gui.h"
5#include "script.h"
6
7#define USER_MENU_ITEMS 14
8
9typedef struct {
10    unsigned short  x, y;
11} OSD_pos;
12
13typedef struct {
14    int save_raw;
15    int save_raw_in_video;
16    int save_raw_in_sports;
17    int save_raw_in_burst;
18    int save_raw_in_ev_bracketing;
19    int save_raw_in_timer;
20    int raw_exceptions_warn;
21    int raw_in_dir;
22    int raw_prefix;
23    int raw_ext;
24    int raw_save_first_only; //for series shooting
25    int raw_nr;
26    int sub_batch_prefix; // output of batch subtracts
27    int sub_batch_ext;
28    int sub_in_dark_value; // values <= to this are not subtracted, i.e. the dark value of your darkframe
29    int sub_out_dark_value; // minimum value to output from subtract, i.e. dark value of your final image
30
31    int show_osd;
32    int hide_osd;
33    int show_osd_in_review;
34    int script_shoot_delay;
35    int show_histo;
36    int ubasic_vars[SCRIPT_NUM_PARAMS];
37    char script_file[100];
38
39    int show_dof;
40    int batt_volts_max;
41    int batt_volts_min;
42    int batt_step_25;
43    int batt_perc_show;
44    int batt_volts_show;
45    int batt_icon_show;
46    int space_bar_show;
47    int space_bar_size;
48    int space_bar_width;
49    int space_icon_show;
50    int show_clock;
51    int show_temp;
52    int clock_format;
53    int clock_indicator;
54    int clock_halfpress;
55    int space_perc_show;
56    int space_mb_show;
57    int space_perc_warn;
58    int space_mb_warn;
59    int space_warn_type;
60    int show_movie_time;
61    int show_movie_refresh;
62
63
64    int zoom_value;
65
66    int show_state;
67    int show_remaining_raw;
68    int remaining_raw_treshold;
69    int show_raw_state;
70    int show_values;
71    int show_values_in_video;
72    int show_overexp;
73
74    int histo_mode;
75    int histo_auto_ajust;
76    int histo_ignore_boundary;
77    int histo_layout;
78    int histo_show_ev_grid;
79
80    int zebra_draw;
81    int zebra_mode;
82    int zebra_restore_screen;
83    int zebra_restore_osd;
84    int zebra_over;
85    int zebra_under;
86    int zebra_draw_osd;
87    int zebra_multichannel;
88
89    OSD_pos histo_pos;
90    OSD_pos dof_pos;
91    OSD_pos batt_icon_pos;
92    OSD_pos space_icon_pos;
93    OSD_pos space_hor_pos;
94    OSD_pos space_ver_pos;
95    OSD_pos batt_txt_pos;
96    OSD_pos space_txt_pos;
97    OSD_pos mode_state_pos;
98    OSD_pos mode_raw_pos;
99    OSD_pos values_pos;
100    OSD_pos clock_pos;
101    OSD_pos mode_video_pos;
102    OSD_pos mode_ev_pos;
103    OSD_pos temp_pos;
104    OSD_pos ev_video_pos;
105
106    color histo_color;
107    color histo_color2; // markers/border
108    color osd_color;
109    color osd_color_warn;
110    color batt_icon_color;
111    color space_color;
112    color menu_color;
113    color menu_title_color;
114    color menu_cursor_color;
115    color menu_symbol_color;
116    int menu_center;
117    int menu_select_first_entry;
118    int menu_symbol_enable;
119    color reader_color;
120    color zebra_color; // under/over
121    color grid_color;
122    color osd_color_override;
123
124    int font_cp;
125    char menu_rbf_file[100];
126    char menu_symbol_rbf_file[100];
127
128    char lang_file[100];
129
130    char reader_file[100];
131    int  reader_pos;
132    int  reader_autoscroll;
133    int  reader_autoscroll_delay;
134    char reader_rbf_file[100];
135    int  reader_codepage;
136    int  reader_wrap_by_words;
137
138    int sokoban_level;
139
140    int flashlight;
141    int fast_ev;
142    int fast_ev_step;
143    int fast_movie_control;
144    int fast_movie_quality_control;
145    int splash_show;
146    int start_sound;
147
148    int use_zoom_mf;
149    long alt_mode_button; //for S-series
150    int alt_prevent_shutdown;
151
152    int show_grid_lines;
153    char grid_lines_file[100];
154    int grid_force_color;
155
156    int video_mode;
157    int video_quality;
158    int video_bitrate;
159     
160    int tv_bracket_value;
161    int av_bracket_value;
162    int iso_bracket_value;
163    int iso_bracket_koef;
164    int subj_dist_bracket_value;
165    int subj_dist_bracket_koef;
166    int bracket_type;
167    int clear_bracket;
168    int clear_video;
169    int override_disable;
170    int override_disable_all;
171
172
173    int tv_override_value;
174    int tv_override_koef;
175    int tv_enum_type;
176    int av_override_value;
177   
178    int nd_filter_state;
179   
180    int iso_override_value;
181    int iso_override_koef;
182    int zoom_override_value;
183    int zoom_override;
184    int subj_dist_override_value;
185    int subj_dist_override_koef;
186    int clear_override;
187    int clear_zoom_override;
188   
189    int autoiso_enable;
190    int autoiso_shutter;
191    int autoiso_user_factor;
192    int autoiso_is_factor;
193    int autoiso_max_iso_hi;
194    int autoiso_max_iso_auto;
195    int autoiso_min_iso;
196
197    int recalc_exposure;
198    int tv_exposure_order;
199    int av_exposure_order;
200    int iso_exposure_order;
201
202    int dof_subj_dist_as_near_limit;
203    int dof_use_exif_subj_dist;
204    int dof_subj_dist_in_misc;
205    int dof_near_limit_in_misc;
206    int dof_far_limit_in_misc;
207    int dof_hyperfocal_in_misc;
208    int dof_depth_in_misc;
209    int dof_dist_from_lens;
210   
211   
212    int values_show_in_review;
213    int values_show_zoom;
214    int values_show_real_aperture;             
215    int values_show_real_iso;
216    int values_show_market_iso;
217    int values_show_iso_only_in_autoiso_mode;
218    int values_show_ev_seted;
219    int values_show_ev_measured;
220    int values_show_bv_measured;
221    int values_show_bv_seted;
222    int values_show_overexposure;
223    int values_show_canon_overexposure;
224    int values_show_luminance;
225
226    int debug_shortcut_action;  // 0=none, 1=dump, 2=page display
227    int debug_display;          // 0=none, 1=props, 2=flash param, 3=tasks
228
229    int script_startup;                 // remote autostart
230    int remote_enable;                  // remote enable
231    int user_menu_enable;
232    int user_menu_vars[USER_MENU_ITEMS];
233    int user_menu_as_root;
234    int zoom_scale;
235    int unlock_optical_zoom_for_video;
236    int mute_on_zoom;
237    int bad_pixel_removal;
238    int video_af_key;
239   
240    char curve_file[100];
241    int curve_enable;
242   
243    int edge_overlay_enable;
244    int edge_overlay_thresh;
245    color edge_overlay_color;
246
247    int synch_enable;
248    int ricoh_ca1_mode;
249    int synch_delay_enable;
250    int synch_delay_value;
251    int synch_delay_coarse_value;
252    int remote_zoom_enable;
253    int zoom_timeout;
254
255    int script_param_set;
256    int script_param_save;
257   
258    long mem_view_addr_init;
259} Conf;
260
261extern Conf conf;
262
263#define ALT_PREVENT_SHUTDOWN_NO         0
264#define ALT_PREVENT_SHUTDOWN_ALT        1
265#define ALT_PREVENT_SHUTDOWN_ALT_SCRIPT 2
266
267#define SHOOTING_PROGRESS_NONE          0
268#define SHOOTING_PROGRESS_STARTED       1
269#define SHOOTING_PROGRESS_PROCESSING    2
270#define SHOOTING_PROGRESS_DONE          3
271
272// video quality defaults. Ideally, these should match the camera default settings
273#define VIDEO_DEFAULT_QUALITY   84  // ? where does 84 come from
274#define VIDEO_MAX_QUALITY       99
275#define VIDEO_DEFAULT_BITRATE   3 // should be 1 for all cams
276
277extern int state_kbd_script_run;
278extern int state_shooting_progress;
279extern int state_save_raw_nth_only;
280extern int state_expos_recalculated;
281extern int state_expos_under;
282extern int state_expos_over;
283
284extern int state_debug1;
285extern int debug_propcase_show;
286extern int debug_propcase_page;
287extern int debug_vals_show;
288extern int debug_pardata_show;
289extern void script_autostart();                         // remote autostart
290extern void conf_save();
291extern void conf_restore();
292extern void conf_load_defaults();
293extern int shutter_int;
294
295// reyalp: putting these in conf, since the conf values are lookups for them
296// prefixes and extentions available for raw images (index with conf.raw_prefix etc)
297#define NUM_IMG_PREFIXES 3 // IMG_ CRW_ SND_ (could add ETC_ SDR_ AUT_ MVI_ MRK_)
298#define NUM_IMG_EXTS 5 // .JPG .CRW .CR2 .THM .WAV (could add .AVI .MRK)
299extern const char* img_prefixes[NUM_IMG_PREFIXES];
300extern const char* img_exts[NUM_IMG_EXTS];
301// ugh, but various things need it
302#define VIDEO_BITRATE_STEPS 10
303extern const char *video_bitrate_strings[VIDEO_BITRATE_STEPS];
304#endif
Note: See TracBrowser for help on using the repository browser.