Changeset 933
- Timestamp:
- 01/29/12 13:48:57 (17 months ago)
- Location:
- trunk
- Files:
-
- 17 edited
-
core/gui.c (modified) (4 diffs)
-
core/gui_osd.c (modified) (8 diffs)
-
core/luascript.c (modified) (1 diff)
-
include/camera.h (modified) (1 diff)
-
include/platform.h (modified) (2 diffs)
-
platform/a590/platform_camera.h (modified) (1 diff)
-
platform/a610/platform_camera.h (modified) (1 diff)
-
platform/a720/platform_camera.h (modified) (1 diff)
-
platform/g12/platform_camera.h (modified) (1 diff)
-
platform/generic/shooting.c (modified) (9 diffs)
-
platform/generic/wrappers.c (modified) (1 diff)
-
platform/ixus310_elph500hs/kbd.c (modified) (1 diff)
-
platform/ixus310_elph500hs/platform_camera.h (modified) (1 diff)
-
platform/sx220hs/platform_camera.h (modified) (1 diff)
-
platform/sx230hs/platform_camera.h (modified) (1 diff)
-
platform/sx30/platform_camera.h (modified) (1 diff)
-
platform/sx40hs/platform_camera.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/core/gui.c
r932 r933 263 263 static const char* gui_tv_override_value_enum(int change, int arg); 264 264 static const char* gui_tv_enum_type_enum(int change, int arg); 265 staticconst char* gui_subj_dist_override_value_enum(int change, int arg);266 staticconst char* gui_subj_dist_override_koef_enum(int change, int arg);267 const char* gui_user_menu_show_enum(int change, int arg);265 const char* gui_subj_dist_override_value_enum(int change, int arg); 266 const char* gui_subj_dist_override_koef_enum(int change, int arg); 267 const char* gui_user_menu_show_enum(int change, int arg); 268 268 static const char* gui_bad_pixel_enum(int change, int arg); 269 269 static const char* gui_video_af_key_enum(int change, int arg); … … 1609 1609 1610 1610 const char* gui_subj_dist_override_value_enum(int change, int arg) { 1611 static const int koef[] = {0, 1,10,100,1000}; 1612 conf.subj_dist_override_value+=(change*koef[conf.subj_dist_override_koef]); 1613 if (conf.subj_dist_override_value<0) 1614 conf.subj_dist_override_value=MAX_DIST; 1615 else if (conf.subj_dist_override_value>MAX_DIST) 1616 conf.subj_dist_override_value=0; 1617 sprintf(buf, "%d", (int)conf.subj_dist_override_value); 1611 int koef = shooting_get_subject_distance_override_koef(); 1612 static char buf[9]; 1613 if (koef == -1) 1614 { 1615 // If 'Infinity' selected in the 'koef' setting then set SD to the infinity value 1616 // technically the same as MAX_DIST when it's sent to the firmware function 1617 // in the camera; but used here to alter the CHDK OSD display. 1618 conf.subj_dist_override_value = INFINITY_DIST; 1619 } 1620 else 1621 { 1622 // Increment / decrement the SD value, wrapping around from MIN_DIST to MAX_DIST 1623 conf.subj_dist_override_value += (change*koef); 1624 if (conf.subj_dist_override_value < MIN_DIST) 1625 conf.subj_dist_override_value = MAX_DIST; 1626 else if (conf.subj_dist_override_value > MAX_DIST) 1627 conf.subj_dist_override_value = MIN_DIST; 1628 } 1629 if (conf.subj_dist_override_value == INFINITY_DIST) 1630 strcpy(buf,"Inf."); 1631 else 1632 sprintf(buf, "%d", shooting_get_subject_distance_override_value()); 1618 1633 return buf; 1619 1634 } 1620 1635 1621 1636 const char* gui_subj_dist_override_koef_enum(int change, int arg) { 1622 return gui_change_simple_enum(&conf.subj_dist_override_koef,change,gui_override_koef_modes,sizeof(gui_override_koef_modes)/sizeof(gui_override_koef_modes[0])); 1637 // Define the adjustment factor values for the subject distance override 1638 #if MAX_DIST > 1000000 // Superzoom - e.g. SX30, SX40 1639 static const char* modes[] = { "Off", "1", "10", "100", "1000", "10K", "100K", "1M", "Inf." }; 1640 #elif MAX_DIST > 100000 // G12, IXUS310 1641 static const char* modes[] = { "Off", "1", "10", "100", "1000", "10K", "100K", "Inf." }; 1642 #else // Original values (MAX_DIST = 65535) 1643 static const char* modes[] = { "Off", "1", "10", "100", "1000" }; 1644 #endif 1645 const char *rv = gui_change_simple_enum(&conf.subj_dist_override_koef,change,modes,sizeof(modes)/sizeof(modes[0])); 1646 // If we've selected 'Infinity' focus then set the SD override value 1647 // Otherwise if we had previously selected 'Infinity' then reset back to MAX_DIST 1648 if (shooting_get_subject_distance_override_koef() == -1) 1649 conf.subj_dist_override_value = INFINITY_DIST; 1650 else if (conf.subj_dist_override_value == INFINITY_DIST) 1651 conf.subj_dist_override_value = MAX_DIST; 1652 return rv; 1623 1653 } 1624 1654 … … 2005 2035 gui_subj_dist_override_koef_enum(direction,0); 2006 2036 #if !CAM_HAS_MANUAL_FOCUS 2007 if (conf.subj_dist_override_koef==0) conf.subj_dist_override_koef=1;2037 if (conf.subj_dist_override_koef==0) gui_subj_dist_override_koef_enum(direction,0); 2008 2038 #endif 2009 2039 shooting_set_focus(shooting_get_subject_distance_override_value(), SET_NOW); … … 2045 2075 shooting_set_focus(shooting_get_subject_distance_override_value(), SET_NOW); 2046 2076 #else 2047 if (conf.subj_dist_override_koef==4) 2048 gui_subj_dist_override_koef_enum(-3,0); 2049 else 2050 gui_subj_dist_override_koef_enum(1,0); 2077 gui_subj_dist_override_koef_enum(1,0); 2051 2078 #endif 2052 2079 } -
trunk/core/gui_osd.c
r904 r933 864 864 865 865 //------------------------------------------------------------------- 866 static void sprintf_dist(char *buf, float dist, int hyp_val) {866 static void print_dist(char *buf, float dist, short is_hyp) { 867 867 // length of printed string is always 4 868 int max=(hyp_val==1)?MAX_DIST_HYPER_FOCAL:MAX_DIST; 869 if (dist<=0 || dist>max) { 868 if (dist<=0 || (!(is_hyp) && shooting_is_infinity_distance())) { 870 869 sprintf(buf, " inf"); 871 870 } else if (dist<1000) { … … 878 877 sprintf(buf, "%4d", (int)(dist/1000)); 879 878 } 879 } 880 881 static void sprintf_dist(char *buf, float dist) 882 { 883 print_dist(buf, dist, 0); 884 } 885 886 static void sprintf_dist_hyp(char *buf, float dist) 887 { 888 print_dist(buf, dist, 1); 880 889 } 881 890 … … 917 926 short f_ex = (conf.show_dof==DOF_SHOW_IN_DOF_EX); 918 927 draw_string(conf.dof_pos.x, conf.dof_pos.y, "S/NL/FL:", conf.osd_color); 919 sprintf_dist(osd_buf, (float)dof_values.subject_distance , 0);928 sprintf_dist(osd_buf, (float)dof_values.subject_distance); 920 929 int j=strlen(osd_buf); 921 930 draw_string(conf.dof_pos.x+i*FONT_WIDTH, conf.dof_pos.y, osd_buf, … … 923 932 i=i+j; 924 933 draw_string(conf.dof_pos.x+i*FONT_WIDTH, conf.dof_pos.y, "/", conf.osd_color); 925 sprintf_dist(osd_buf, (float)dof_values.near_limit , 0);934 sprintf_dist(osd_buf, (float)dof_values.near_limit); 926 935 j=strlen(osd_buf); 927 936 draw_string(conf.dof_pos.x+(++i)*FONT_WIDTH, conf.dof_pos.y, osd_buf, … … 929 938 i=i+j; 930 939 draw_string(conf.dof_pos.x+i*FONT_WIDTH, conf.dof_pos.y, "/", conf.osd_color); 931 sprintf_dist(osd_buf, (float)dof_values.far_limit , 0);940 sprintf_dist(osd_buf, (float)dof_values.far_limit); 932 941 draw_string(conf.dof_pos.x+(++i)*FONT_WIDTH, conf.dof_pos.y, osd_buf, 933 942 (f_ex && dof_values.distance_valid)?valid_col:conf.osd_color); 934 943 i=8; 935 944 draw_string(conf.dof_pos.x, conf.dof_pos.y+FONT_HEIGHT, "DOF/HYP:", conf.osd_color); 936 sprintf_dist(osd_buf, (float)dof_values.depth_of_field , 0);945 sprintf_dist(osd_buf, (float)dof_values.depth_of_field); 937 946 j=strlen(osd_buf); 938 947 draw_string(conf.dof_pos.x+i*FONT_WIDTH, conf.dof_pos.y+FONT_HEIGHT, osd_buf, … … 940 949 i=i+j; 941 950 draw_string(conf.dof_pos.x+i*FONT_WIDTH, conf.dof_pos.y+FONT_HEIGHT, "/", conf.osd_color); 942 sprintf_dist (osd_buf, (float)dof_values.hyperfocal_distance, 1);951 sprintf_dist_hyp(osd_buf, (float)dof_values.hyperfocal_distance); 943 952 draw_string(conf.dof_pos.x+(++i)*FONT_WIDTH, conf.dof_pos.y+FONT_HEIGHT, osd_buf, 944 953 (f_ex && dof_values.hyperfocal_valid)?valid_col:conf.osd_color); … … 1015 1024 */ 1016 1025 1017 void gui_print_osd_dof_string_dist(const char * title, int value, short use_good_color, int hyp_val) {1026 void gui_print_osd_dof_string_dist(const char * title, int value, short use_good_color, short is_hyp) { 1018 1027 strcpy(osd_buf, title); 1019 1028 int i=strlen(osd_buf); 1020 1029 if (i<8) { 1021 1030 draw_string(conf.values_pos.x, conf.values_pos.y+m, osd_buf, conf.osd_color); 1022 sprintf_dist(osd_buf, (float)value, hyp_val); 1031 if (is_hyp) { 1032 sprintf_dist_hyp(osd_buf, (float)value); 1033 } else { 1034 sprintf_dist(osd_buf, (float)value); 1035 } 1023 1036 sprintf(osd_buf+strlen(osd_buf), "%9s", ""); 1024 1037 osd_buf[9-i]=0; … … 1115 1128 if ((conf.autoiso_enable && shooting_get_iso_mode()<=0 && !(m==MODE_M || m==MODE_TV) && shooting_get_flash_mode() && (!(conf.override_disable==1 && conf.override_disable_all))) || gui_mode==GUI_MODE_OSD) 1116 1129 gui_print_osd_state_string_chr("AUTOISO:", ((conf.autoiso_enable==1)?"ON":"OFF")); 1117 if ((conf.subj_dist_override_value && conf.subj_dist_override_koef && shooting_can_focus() && !(conf.override_disable==1)) || ((gui_mode==GUI_MODE_ALT) && shooting_get_common_focus_mode()) || gui_mode==GUI_MODE_OSD) { 1118 gui_print_osd_state_string_int("SD:",shooting_get_subject_distance_override_value()); 1130 if ((conf.subj_dist_override_value && conf.subj_dist_override_koef && shooting_can_focus() && !(conf.override_disable==1)) || ((gui_get_mode()==GUI_MODE_ALT) && shooting_get_common_focus_mode()) || gui_mode==GUI_MODE_OSD) { 1131 extern const char* gui_subj_dist_override_value_enum(int change, int arg); 1132 extern const char* gui_subj_dist_override_koef_enum(int change, int arg); 1133 gui_print_osd_state_string_chr("SD:",gui_subj_dist_override_value_enum(0,0)); 1119 1134 if (gui_mode==GUI_MODE_ALT) 1120 gui_print_osd_state_string_int("FACTOR:",shooting_get_subject_distance_override_koef());1135 gui_print_osd_state_string_chr("FACTOR:",gui_subj_dist_override_koef_enum(0,0)); 1121 1136 } 1122 1137 if ((conf.iso_override_value && conf.iso_override_koef && !(conf.override_disable==1)) || gui_mode==GUI_MODE_OSD) -
trunk/core/luascript.c
r899 r933 623 623 else shooting_set_focus(to, SET_LATER); 624 624 #else 625 if ( mode_video) shooting_set_focus(to, SET_NOW);625 if (shooting_get_common_focus_mode() || mode_video) shooting_set_focus(to, SET_NOW); 626 626 else shooting_set_focus(to, SET_LATER); 627 627 #endif -
trunk/include/camera.h
r932 r933 187 187 #undef OVEREXP_COMPENSATE_OVERALL // Define this to make overexposure_compensation work for all scenes, instead of day-light only 188 188 189 #define CAMERA_MIN_DIST 0 // Define min distance that can be set in _MoveFocusLensToDistance (allow override - e.g. G12 min dist = 1) 190 #define CAMERA_MAX_DIST 65535 // Define max distance that can be set in _MoveFocusLensToDistance (allow override for superzooms - SX30/SX40) 191 189 192 //---------------------------------------------------------- 190 193 // Overridden values for each camera -
trunk/include/platform.h
r932 r933 33 33 #endif 34 34 35 36 #define MAX_DIST 6553537 #define MAX_DIST_HYPER_FOCAL 99999935 #define MIN_DIST CAMERA_MIN_DIST // Defined in camera.h (can be overridden in platform_camera.h) 36 #define MAX_DIST CAMERA_MAX_DIST // Defined in camera.h (can be overridden in platform_camera.h) 37 #define INFINITY_DIST 0xFFFFFFFF // Value to send to firmware to select 'infinity' focus 38 38 39 39 //******************** … … 360 360 short shooting_can_focus(); 361 361 short shooting_get_common_focus_mode(); 362 short shooting_is_infinity_distance(); 362 363 /******************************************************************/ 363 364 int shooting_get_iso_mode(); -
trunk/platform/a590/platform_camera.h
r920 r933 57 57 #define CAM_MULTIPART 1 58 58 #define CAM_STARTUP_CRASH_FILE_OPEN_FIX 1 // enable fix for camera crash at startup when opening the conf / font files see http://chdk.setepontos.com/index.php?topic=6179.0 59 #undef CAMERA_MIN_DIST 60 #define CAMERA_MIN_DIST 100 // Override min subject distance 61 #undef CAMERA_MAX_DIST 62 #define CAMERA_MAX_DIST 52855 // Override max subject distance 59 63 //---------------------------------------------------------- 60 64 -
trunk/platform/a610/platform_camera.h
r859 r933 55 55 56 56 #define DNG_EXT_FROM ".DPS" 57 #undef CAMERA_MIN_DIST 58 #define CAMERA_MIN_DIST 62 // Override min subject distance 59 #undef CAMERA_MAX_DIST 60 #define CAMERA_MAX_DIST 43517 // Override max subject distance 57 61 //---------------------------------------------------------- 58 62 -
trunk/platform/a720/platform_camera.h
r859 r933 56 56 57 57 #define DNG_EXT_FROM ".CR2" 58 59 #undef CAMERA_MIN_DIST 60 #define CAMERA_MIN_DIST 59 // Override min subject distance 61 #undef CAMERA_MAX_DIST 62 #define CAMERA_MAX_DIST 58686 // Override max subject distance 58 63 //---------------------------------------------------------- 59 64 -
trunk/platform/g12/platform_camera.h
r920 r933 115 115 #define CHDK_COLOR_BASE 0xB3// Start color index for CHDK colors loaded into camera palette. 116 116 117 #undef CAMERA_MIN_DIST 118 #define CAMERA_MIN_DIST 68 // Override min subject distance 119 #undef CAMERA_MAX_DIST 120 #define CAMERA_MAX_DIST 258065 // Override max subject distance 117 121 //---------------------------------------------------------- -
trunk/platform/generic/shooting.c
r932 r933 449 449 int shooting_get_near_limit_f(int s, int av, int fl) 450 450 { 451 if (shooting_is_infinity_distance()) return (-1); 451 452 int h_1e3 = shooting_get_hyperfocal_distance_1e3_f(av, fl); 452 int m = ((h_1e3 - fl)+500)/1000*s;453 int v = ((h_1e3 + 1000*s - 2*fl)+500)/1000;454 if ((m>0) && (v>0)) return ( (2*m/v+1)/2);453 double m = ((double)(h_1e3 - fl)+500)/1000*s; 454 int v = ((h_1e3 - 2*fl + 1000*s)+500)/1000; 455 if ((m>0) && (v>0)) return (int)((2*m/v+1)/2); 455 456 else return (-1); 456 457 } … … 458 459 int shooting_get_far_limit_f(int s, int av, int fl) 459 460 { 460 if (s >MAX_DIST) return (-1);461 if (shooting_is_infinity_distance()) return (-1); 461 462 int h_1e3 = shooting_get_hyperfocal_distance_1e3_f(av, fl); 462 int m = ((h_1e3 - fl)+500)/1000*s;463 double m = ((double)(h_1e3 - fl)+500)/1000*s; 463 464 int v = ((h_1e3 - 1000*s)+500)/1000; 464 if ((m>0) && (v>0)) return ( (2*m/v+1)/2);465 if ((m>0) && (v>0)) return (int)((2*m/v+1)/2); 465 466 else return (-1); 467 } 468 469 short shooting_is_infinity_distance() 470 { 471 return (shooting_get_lens_to_focal_plane_width() == 0)?1:0; 466 472 } 467 473 … … 511 517 m = mode_get()&MODE_SHOOTING_MASK; 512 518 if ((m==MODE_M || m==MODE_AV) && (av96>0) && !f_focus_ok) { 513 if (av96<min_av96_zoom_point) { av96 = min_av96_zoom_point; } 514 } else av96 = (abs(curr_av96-prop_av96)<2)?prop_av96:curr_av96; 519 if (av96 < min_av96_zoom_point) av96 = min_av96_zoom_point; 520 } 521 else av96 = (abs(curr_av96-prop_av96)<2)?prop_av96:curr_av96; 515 522 516 523 av_1e3 = shooting_get_aperture_from_av96_1e3(av96); … … 532 539 if (v>0) { 533 540 int m = ((fl*((fl - hyp_1e3)/1000 - 1)/500)/v + 1)/2; 534 int m2 = ( (hyp*((2*fl - hyp_1e3)/500))/v + 1)/2;541 int m2 = (int)((((double)hyp*(2*fl - hyp_1e3)/1000))/v + 0.5); 535 542 dof_values.min_stack_distance = sqrt(m*m - m2) - m; 536 543 } … … 545 552 dof_values.far_limit = -1; 546 553 dof_values.depth_of_field = -1; 547 if ((av_1e3>0) && (fl>0) && (dist>0) && ( dist<MAX_DIST) && (hyp_1e3>0)) {548 double m = (( (double)hyp_1e3 - fl)/1000*dist)+0.5;549 if (conf.dof_subj_dist_as_near_limit) {550 dof_values.near_limit = dist;551 } else {552 double v = (((double)hyp_1e3 + 1000*dist - 2*fl)/1000)+0.5;553 if (v>0) { dof_values.near_limit = (int)m/v; }554 if ((av_1e3>0) && (fl>0) && (dist>0) && (shooting_is_infinity_distance()==0) && (hyp_1e3>0)) { 555 double m = ((double)(hyp_1e3 - fl)/1000 * dist) + 0.5; 556 if (conf.dof_subj_dist_as_near_limit) { 557 dof_values.near_limit = dist; 558 } else { 559 int v = ((((hyp_1e3 - 2*fl + 1000*dist)/500) + 1)/2); 560 if (v>0) dof_values.near_limit = (int)(m/v); 554 561 } 555 if (dof_values.near_limit>=MAX_DIST) { dof_values.near_limit = -1;} 556 double v = (((double)hyp_1e3 - 1000*dist)/1000)+0.5; 557 if (v>0) { dof_values.far_limit = (int)m/v; } 558 if (dof_values.far_limit>=MAX_DIST) { dof_values.far_limit = -1;} 562 int v = ((((hyp_1e3 - 1000*dist)/500) + 1)/2); 563 if (v>0) dof_values.far_limit = (int)(m/v); 559 564 if ((dof_values.near_limit>0) && (dof_values.far_limit>0)) { 560 dof_values.depth_of_field = dof_values.far_limit - dof_values.near_limit; } 565 dof_values.depth_of_field = dof_values.far_limit - dof_values.near_limit; 566 } 561 567 } 562 568 } … … 835 841 return 1; 836 842 #endif 837 return (shooting_get_ focus_mode() || MODE_IS_VIDEO(m));843 return (shooting_get_common_focus_mode() || MODE_IS_VIDEO(m)); 838 844 #elif !CAM_CAN_SD_OVERRIDE 839 845 return MODE_IS_VIDEO(m); … … 1055 1061 1056 1062 void shooting_set_focus(int v, short is_now) { 1057 int s=v;1058 if ((mode_get()&MODE_MASK) != MODE_PLAY){1059 if ((is_now) && shooting_can_focus()) {1060 if (conf.dof_subj_dist_as_near_limit) {1061 s=shooting_get_near_limit_f(v,shooting_get_min_real_aperture(),get_focal_length(lens_get_zoom_point()));1062 } 1063 if (!conf.dof_use_exif_subj_dist) s+=shooting_get_lens_to_focal_plane_width();1064 if (s>0) lens_set_focus_pos((s<MAX_DIST)?s:MAX_DIST);1065 }1066 else photo_param_put_off.subj_dist=v;1067 }1063 int s=v; 1064 if ((mode_get()&MODE_MASK) != MODE_PLAY){ 1065 if ((is_now) && shooting_can_focus()) { 1066 if (conf.dof_subj_dist_as_near_limit) { 1067 s=shooting_get_near_limit_f(v,shooting_get_min_real_aperture(),get_focal_length(lens_get_zoom_point())); 1068 } 1069 if (!conf.dof_use_exif_subj_dist) s+=shooting_get_lens_to_focal_plane_width(); 1070 lens_set_focus_pos(s); 1071 } 1072 else photo_param_put_off.subj_dist=v; 1073 } 1068 1074 } 1069 1075 … … 1265 1271 int shooting_get_subject_distance_override_value() 1266 1272 { 1267 return conf.subj_dist_override_value;1273 return (conf.subj_dist_override_value < shooting_get_lens_to_focal_plane_width()?0:(conf.subj_dist_override_value - shooting_get_lens_to_focal_plane_width())); 1268 1274 } 1269 1275 … … 1275 1281 int shooting_get_subject_distance_override_koef() 1276 1282 { 1277 static const short koef[] = {0, 1,10,100,1000}; 1283 // Define the adjustment factor values for the subject distance override 1284 #if MAX_DIST > 1000000 // Superzoom - e.g. SX30, SX40 1285 static const int koef[] = {0,1,10,100,1000,10000,100000,1000000,-1}; 1286 #elif MAX_DIST > 100000 // G12, IXUS310 1287 static const int koef[] = {0,1,10,100,1000,10000,100000,-1}; 1288 #else // Original values (MAX_DIST = 65535) 1289 static const int koef[] = {0,1,10,100,1000}; 1290 #endif 1278 1291 return koef[(conf.subj_dist_override_koef)]; 1279 1280 1292 } 1281 1293 -
trunk/platform/generic/wrappers.c
r930 r933 224 224 void lens_set_focus_pos(long newpos) 225 225 { 226 if (newpos >= MAX_DIST) newpos = INFINITY_DIST; // Set to infinity value that will work on all cameras 226 227 _MoveFocusLensToDistance((short*)&newpos); 227 //while (focus_busy); 228 while ((shooting_is_flash_ready()!=1) || (focus_busy)); 228 while ((shooting_is_flash_ready()!=1) || (focus_busy)) msleep(10); 229 229 newpos = _GetFocusLensSubjectDistance(); 230 230 _SetPropertyCase(PROPCASE_SUBJECT_DIST1, &newpos, sizeof(newpos)); -
trunk/platform/ixus310_elph500hs/kbd.c
r898 r933 345 345 #endif 346 346 { 3, KEY_DISPLAY , 0x00000008, LB(0,4), 0, "Back", 0, GUI_MODE_MENU, GUI_MODE_MENU, MODE_REC|MODE_PLAY }, 347 { 3, KEY_DISPLAY , 0x00000008, LB(0,4), 0, "Disp", 0, GUI_MODE_PALETTE,100, MODE_REC|MODE_PLAY },348 { 3, KEY_UP , 0x00000010, RB(0,1), 0, "Up", 0, GUI_MODE_ALT,100, MODE_REC|MODE_PLAY },349 { 3, KEY_LEFT , 0x00000020, RB(0,2), 0, "Left", 0, GUI_MODE_ALT,100, MODE_REC|MODE_PLAY },350 { 3, KEY_RIGHT , 0x00000040, RB(0,3), 0, "Right", 0, GUI_MODE_ALT,100, MODE_REC|MODE_PLAY },351 { 3, KEY_DOWN , 0x00000080, RB(0,4), 0, "Down", 0, GUI_MODE_ALT,100, MODE_REC|MODE_PLAY },347 { 3, KEY_DISPLAY , 0x00000008, LB(0,4), 0, "Disp", 0, GUI_MODE_MENU+1, 100, MODE_REC|MODE_PLAY }, 348 { 3, KEY_UP , 0x00000010, RB(0,1), 0, "Up", 0, GUI_MODE_MENU, 100, MODE_REC|MODE_PLAY }, 349 { 3, KEY_LEFT , 0x00000020, RB(0,2), 0, "Left", 0, GUI_MODE_MENU, 100, MODE_REC|MODE_PLAY }, 350 { 3, KEY_RIGHT , 0x00000040, RB(0,3), 0, "Right", 0, GUI_MODE_MENU, 100, MODE_REC|MODE_PLAY }, 351 { 3, KEY_DOWN , 0x00000080, RB(0,4), 0, "Down", 0, GUI_MODE_MENU, 100, MODE_REC|MODE_PLAY }, 352 352 353 353 { 3, KEY_UP , 0x00000010, RB(0,0), 0, "Man", "Focus", GUI_MODE_ALT, GUI_MODE_ALT, MODE_REC, &conf.subj_dist_override_koef, 0, &conf.touchscreen_disable_shortcut_controls }, 354 { 3, KEY_DISPLAY , 0x00000008, RB(0,1), 0, "Inf.", "Focus",GUI_MODE_ALT, GUI_MODE_ALT, MODE_REC, 0, 0, &conf.touchscreen_disable_shortcut_controls },355 { 3, KEY_DOWN , 0x00000080, RB(0,2), 0, "Hyper", "Focus",GUI_MODE_ALT, GUI_MODE_ALT, MODE_REC, 0, 0, &conf.touchscreen_disable_shortcut_controls },354 { 3, KEY_DISPLAY , 0x00000008, RB(0,1), 0, "Max", "Dist", GUI_MODE_ALT, GUI_MODE_ALT, MODE_REC, 0, 0, &conf.touchscreen_disable_shortcut_controls }, 355 { 3, KEY_DOWN , 0x00000080, RB(0,2), 0, "Hyper", "Dist", GUI_MODE_ALT, GUI_MODE_ALT, MODE_REC, 0, 0, &conf.touchscreen_disable_shortcut_controls }, 356 356 { 3, KEY_LEFT , 0x00000020, RB(0,3), 0, "- Foc.","Factor", GUI_MODE_ALT, GUI_MODE_ALT, MODE_REC, 0, 0, &conf.touchscreen_disable_shortcut_controls }, 357 357 { 3, KEY_RIGHT , 0x00000040, RB(0,4), 0, "+ Foc.","Factor", GUI_MODE_ALT, GUI_MODE_ALT, MODE_REC, 0, 0, &conf.touchscreen_disable_shortcut_controls }, -
trunk/platform/ixus310_elph500hs/platform_camera.h
r920 r933 132 132 #define CHDK_COLOR_BASE 0xA2 // Start color index for CHDK colors loaded into camera palette. 133 133 134 #undef CAMERA_MIN_DIST 135 #define CAMERA_MIN_DIST 71 // Override min subject distance 136 #undef CAMERA_MAX_DIST 137 #define CAMERA_MAX_DIST 125392 // Override max subject distance 134 138 //---------------------------------------------------------- 135 139 -
trunk/platform/sx220hs/platform_camera.h
r859 r933 99 99 100 100 #define CAM_STARTUP_CRASH_FILE_OPEN_FIX 1 101 102 #undef CAMERA_MIN_DIST 103 #define CAMERA_MIN_DIST 99 // Override min subject distance 104 #undef CAMERA_MAX_DIST 105 #define CAMERA_MAX_DIST 2000000 // Override max subject distance 1739131 //testscript=1098902 101 106 //---------------------------------------------------------- -
trunk/platform/sx230hs/platform_camera.h
r932 r933 98 98 99 99 #define CAM_STARTUP_CRASH_FILE_OPEN_FIX 1 100 101 #undef CAMERA_MIN_DIST 102 #define CAMERA_MIN_DIST 99 // Override min subject distance 100 103 101 104 #define CAM_HAS_GPS 1 -
trunk/platform/sx30/platform_camera.h
r920 r933 117 117 #define CAM_NEED_SET_ZOOM_DELAY 300 // SX30 needs a short delay after setting the zoom before resetting focus in shooting_set_zoom() 118 118 119 #undef CAMERA_MIN_DIST 120 #define CAMERA_MIN_DIST 95 // Override min subject distance 121 #undef CAMERA_MAX_DIST 122 #define CAMERA_MAX_DIST 9090910 // Override max subject distance 123 119 124 //---------------------------------------------------------- 120 125 -
trunk/platform/sx40hs/platform_camera.h
r920 r933 124 124 125 125 #define CAM_HAS_CMOS 1 126 127 #undef CAMERA_MIN_DIST 128 #define CAMERA_MIN_DIST 95 // Override min subject distance 129 #undef CAMERA_MAX_DIST 130 #define CAMERA_MAX_DIST 9523810 // Override max subject distance 126 131 //----------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.