Changeset 464
- Timestamp:
- 08/04/08 22:34:51 (2 years ago)
- Files:
-
- branches/juciphox/CHDK/CURVES/syscurves.CVF (added)
- branches/juciphox/CHDK/LANG/Finnish.lng (added)
- branches/juciphox/CHDK/LANG/english.lng (modified) (1 diff)
- branches/juciphox/CHDK/LANG/german.lng (modified) (1 diff)
- branches/juciphox/CHDK/SCRIPTS/examples (added)
- branches/juciphox/CHDK/SCRIPTS/examples/eggtimer.bas (added)
- branches/juciphox/core/conf.c (modified) (4 diffs)
- branches/juciphox/core/gui.c (modified) (7 diffs)
- branches/juciphox/core/gui_lang.c (modified) (1 diff)
- branches/juciphox/core/gui_osd.c (modified) (1 diff)
- branches/juciphox/include/conf.h (modified) (1 diff)
- branches/juciphox/lib/ubasic/ubasic.c (modified) (12 diffs)
- branches/juciphox/makefile.inc (modified) (1 diff)
- branches/juciphox/platform/s3is/sub/100a/stubs_entry_2.S (modified) (1 diff)
- branches/juciphox/version.inc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/juciphox/CHDK/LANG/english.lng
r461 r464 469 469 342 "Disable Overrides" 470 470 343 " Include AutoIso & Bracketing?" 471 344 " Hide in Playback?"471 344 " Hide in ?" 472 472 345 "Disable @ Video Rec?" 473 473 346 "Show remaining videotime?" branches/juciphox/CHDK/LANG/german.lng
r461 r464 463 463 464 464 343 " Inkl. AutoIso & Bracket?" 465 344 " Aus bei Wiedergabe?"465 344 " Aus bei ?" 466 466 345 " Aus bei Videoaufn.?" 467 467 branches/juciphox/core/conf.c
r463 r464 128 128 CONF_INFO( 1, conf.show_osd, CONF_DEF_VALUE, i:1, NULL), 129 129 CONF_INFO( 2, conf.save_raw, CONF_DEF_VALUE, i:0, NULL), 130 CONF_INFO( 3, conf.script_shoot_delay, CONF_DEF_VALUE, i: 11, NULL),130 CONF_INFO( 3, conf.script_shoot_delay, CONF_DEF_VALUE, i:0, NULL), 131 131 CONF_INFO( 4, conf.show_histo, CONF_DEF_VALUE, i:0, NULL), 132 132 CONF_INFO( 5, conf.ubasic_vars, CONF_DEF_PTR, ptr:&def_ubasic_vars, NULL), … … 248 248 249 249 CONF_INFO(120, conf.script_startup, CONF_DEF_VALUE, i:0, NULL), 250 CONF_INFO(121, conf.remote_enable, CONF_DEF_VALUE, i: 1, NULL),250 CONF_INFO(121, conf.remote_enable, CONF_DEF_VALUE, i:0, NULL), 251 251 252 252 CONF_INFO(122, conf.values_show_canon_overexposure, CONF_DEF_VALUE, i:0, NULL), … … 311 311 CONF_INFO(172, conf.override_disable, CONF_DEF_VALUE, i:2, NULL), 312 312 CONF_INFO(173, conf.override_disable_all, CONF_DEF_VALUE, i:1, NULL), 313 CONF_INFO(174, conf.hide_osd _in_playback, CONF_DEF_VALUE, i:0, NULL),313 CONF_INFO(174, conf.hide_osd, CONF_DEF_VALUE, i:0, NULL), 314 314 CONF_INFO(175, conf.save_raw_in_video, CONF_DEF_VALUE, i:0, NULL), 315 315 CONF_INFO(176, conf.show_movie_time, CONF_DEF_VALUE, i:3, NULL), … … 345 345 CONF_INFO(206, conf.remote_zoom_enable, CONF_DEF_VALUE, i:0, NULL), 346 346 CONF_INFO(207, conf.zoom_timeout, CONF_DEF_VALUE, i:5, NULL), 347 347 348 348 349 }; 349 350 #define CONF_NUM (sizeof(conf_info)/sizeof(conf_info[0])) branches/juciphox/core/gui.c
r463 r464 177 177 //static const char* gui_tv_enum(int change, int arg); 178 178 const char* gui_user_menu_show_enum(int change, int arg); 179 static const char* gui_hide_osd_enum(int change, int arg); 179 180 static const char* gui_show_clock_enum(int change, int arg); 180 181 static const char* gui_clock_format_enum(int change, int arg); … … 591 592 static CMenuItem osd_submenu_items[] = { 592 593 {0x5c,LANG_MENU_OSD_SHOW, MENUITEM_BOOL, &conf.show_osd }, 593 {0x5c,LANG_MENU_OSD_HIDE_PLAYBACK, MENUITEM_ BOOL, &conf.hide_osd_in_playback},594 {0x5c,LANG_MENU_OSD_HIDE_PLAYBACK, MENUITEM_ENUM, (int*)gui_hide_osd_enum }, 594 595 {0x81,LANG_MENU_VIS_MENU_CENTER, MENUITEM_BOOL, &conf.menu_center }, 595 596 {0x81,LANG_MENU_SELECT_FIRST_ENTRY, MENUITEM_BOOL, &conf.menu_select_first_entry }, … … 1073 1074 1074 1075 return modes[conf.show_clock]; 1076 } 1077 1078 const char* gui_hide_osd_enum(int change, int arg) { 1079 static const char* modes[]={ "Don't", "In Playback", "On Disp Press", "both"}; 1080 1081 conf.hide_osd+=change; 1082 if (conf.hide_osd<0) 1083 conf.hide_osd=(sizeof(modes)/sizeof(modes[0]))-1; 1084 else if (conf.hide_osd>=(sizeof(modes)/sizeof(modes[0]))) 1085 conf.hide_osd=0; 1086 1087 return modes[conf.hide_osd]; 1075 1088 } 1076 1089 … … 2186 2199 2187 2200 2188 if ((recreview_hold==0) && (!kbd_is_key_pressed(KEY_SHOOT_HALF) && ( ((m&MODE_MASK) == MODE_REC) || (!((m&MODE_MASK) == MODE_REC) && !conf.hide_osd_in_playback)))) {2201 if ((recreview_hold==0) && (!kbd_is_key_pressed(KEY_SHOOT_HALF) && ( ((m&MODE_MASK) == MODE_REC) || (!((m&MODE_MASK) == MODE_REC) && !((conf.hide_osd == 1) || (conf.hide_osd == 3)) )) && !(((conf.hide_osd == 2) || (conf.hide_osd == 3))&& (shooting_get_prop(PROPCASE_DISPLAY_MODE) == 1)))) { 2189 2202 gui_batt_draw_osd(); 2190 2203 gui_space_draw_osd(); 2191 2204 } 2192 2205 2193 if ((conf.show_clock) && (recreview_hold==0) && ((!kbd_is_key_pressed(KEY_SHOOT_HALF) && ( ((m&MODE_MASK) == MODE_REC) || (!((m&MODE_MASK) == MODE_REC) && !conf.hide_osd_in_playback)))|| (conf.clock_halfpress==0) )) {2206 if ((conf.show_clock) && (recreview_hold==0) && ((!kbd_is_key_pressed(KEY_SHOOT_HALF) && ( ((m&MODE_MASK) == MODE_REC) || (!((m&MODE_MASK) == MODE_REC) && !((conf.hide_osd == 1) || (conf.hide_osd == 3)) )) && !(((conf.hide_osd == 2) || (conf.hide_osd == 3))&& (shooting_get_prop(PROPCASE_DISPLAY_MODE) == 1)))|| (conf.clock_halfpress==0) )) { 2194 2207 gui_osd_draw_clock(); 2195 2208 } … … 2199 2212 } 2200 2213 2201 if ((conf.show_temp>0) && (recreview_hold==0) && ((!kbd_is_key_pressed(KEY_SHOOT_HALF) && ( ((m&MODE_MASK) == MODE_REC) || (!((m&MODE_MASK) == MODE_REC) && !conf.hide_osd_in_playback )))|| (conf.clock_halfpress==0) )) {2214 if ((conf.show_temp>0) && (recreview_hold==0) && ((!kbd_is_key_pressed(KEY_SHOOT_HALF) && ( ((m&MODE_MASK) == MODE_REC) || (!((m&MODE_MASK) == MODE_REC) && !((conf.hide_osd == 1) || (conf.hide_osd == 3)) )) && !(((conf.hide_osd == 2) || (conf.hide_osd == 3))&& (shooting_get_prop(PROPCASE_DISPLAY_MODE) == 1)) )|| (conf.clock_halfpress==0) )) { 2202 2215 gui_osd_draw_temp(); 2203 2216 } … … 2205 2218 { 2206 2219 gui_osd_draw_movie_time_left(); 2220 2221 if ((movie_status > 1) && (conf.fast_movie_quality_control==1)){ 2222 if (conf.video_mode == 0 ) 2223 { 2224 gui_print_osd_state_string_chr("Bitrate: ",gui_video_bitrate_enum(0,0)); 2225 } 2226 else 2227 { 2228 gui_print_osd_state_string_int("Quality: ",conf.video_quality); 2229 } 2207 2230 } 2231 } 2208 2232 2209 if ((conf.fast_ev) && (recreview_hold==0) && ((mode_get()&MODE_SHOOTING_MASK) != MODE_VIDEO_STD) && ((!kbd_is_key_pressed(KEY_SHOOT_HALF) && ( ((m&MODE_MASK) == MODE_REC) || (!((m&MODE_MASK) == MODE_REC) && !conf.hide_osd_in_playback))) )) {2233 if ((conf.fast_ev) && (recreview_hold==0) && ((mode_get()&MODE_SHOOTING_MASK) != MODE_VIDEO_STD) && ((!kbd_is_key_pressed(KEY_SHOOT_HALF) && ( ((m&MODE_MASK) == MODE_REC) || (!((m&MODE_MASK) == MODE_REC) && !((conf.hide_osd == 1) || (conf.hide_osd == 3)) )) && !(((conf.hide_osd == 2) || (conf.hide_osd == 3))&& (shooting_get_prop(PROPCASE_DISPLAY_MODE) == 1))) )) { 2210 2234 gui_osd_draw_ev(); 2211 2235 } … … 2414 2438 "Camera: " PLATFORM " - " PLATFORMSUB }; 2415 2439 int i, l; 2416 color cl = MAKE_COLOR((gui_splash_mode==MODE_REC)?0xDA:0xD9, COLOR_WHITE); 2440 // color cl = MAKE_COLOR((gui_splash_mode==MODE_REC)?0xDA:0xD9, COLOR_WHITE); 2441 color cl = MAKE_COLOR(COLOR_RED, COLOR_WHITE); 2442 2417 2443 2418 2444 gui_splash_mode = (mode_get()&MODE_MASK); branches/juciphox/core/gui_lang.c
r463 r464 453 453 "342 \"Disable Overrides\"\n" 454 454 "343 \" Include AutoIso & Bracketing?\"\n" 455 "344 \" Hide in Playback?\"\n"455 "344 \" Hide OSD?\"\n" 456 456 "345 \"Disable @ Video Rec?\"\n" 457 457 "346 \"Show remaining videotime?\"\n" branches/juciphox/core/gui_osd.c
r461 r464 947 947 min = (time_left % 3600) / 60; 948 948 sec = (time_left % 3600) % 60; 949 949 950 950 if (elapsed<1) 951 951 { branches/juciphox/include/conf.h
r463 r464 26 26 27 27 int show_osd; 28 int hide_osd _in_playback;28 int hide_osd; 29 29 int show_osd_in_review; 30 30 int script_shoot_delay; branches/juciphox/lib/ubasic/ubasic.c
r461 r464 82 82 static struct select_state select_stack[MAX_SELECT_STACK_DEPTH]; 83 83 static int select_stack_ptr; 84 85 86 84 87 85 #define MAX_WHILE_STACK_DEPTH 4 … … 810 808 /*---------------------------------------------------------------------------*/ 811 809 static void 812 end_select (void)810 end_select_statement(void) 813 811 { 814 812 if(select_stack_ptr > 0) { … … 817 815 dec_select_stack(); 818 816 } else { 819 DEBUG_PRINTF("ubasic.c: end_select (): end_select without select-statement\n");817 DEBUG_PRINTF("ubasic.c: end_select_statement(): end_select without select-statement\n"); 820 818 ended = 1; 821 819 ubasic_error = UBASIC_E_PARSE; … … 828 826 int select_value, case_value_1, case_value_2, case_value_eq; 829 827 short case_run, case_goto = 0, case_gosub = 0; 828 int cur_ln, gosub_ln; 830 829 831 830 accept(TOKENIZER_CASE); … … 866 865 case_goto = (tokenizer_token() == TOKENIZER_GOTO); 867 866 case_gosub = (tokenizer_token() == TOKENIZER_GOSUB); 867 //GOSUB - save curr linenumber 868 cur_ln = tokenizer_line_number(); 869 //GOSUB 868 870 statement(); 871 //GOSUB - save new linenumber, reset to curr linenumber 872 if (case_gosub) { 873 gosub_ln = tokenizer_line_number(); 874 jump_line(cur_ln+1); 875 DEBUG_PRINTF("case_statement: GOSUB: toLN=%d, nextLN=%d\n", gosub_ln, cur_ln+1); 876 } 877 //GOSUB 869 878 DEBUG_PRINTF("case_statement: case execute\n"); 870 879 case_run = 1; … … 875 884 } 876 885 } else {accept_cr();} 886 //REM 887 while ((tokenizer_token() == TOKENIZER_REM) && (!case_goto)) {statement();} 888 //REM 877 889 if (case_goto) { dec_select_stack(); } else { 878 if (!case_gosub) { 879 if ((tokenizer_token() != TOKENIZER_CASE) && (tokenizer_token() != TOKENIZER_CASE_ELSE) && 880 (tokenizer_token() != TOKENIZER_END_SELECT)) { 881 DEBUG_PRINTF("ubasic.c: select_statement(): don't found case, case_else or end_select\n"); 882 ended = 1; 883 ubasic_error = UBASIC_E_PARSE; 884 } else { 885 if (tokenizer_token() == TOKENIZER_END_SELECT) { end_select(); } 890 if ((tokenizer_token() != TOKENIZER_CASE) && (tokenizer_token() != TOKENIZER_CASE_ELSE) && 891 (tokenizer_token() != TOKENIZER_END_SELECT)) { 892 DEBUG_PRINTF("ubasic.c: select_statement(): don't found case, case_else or end_select\n"); 893 ended = 1; 894 ubasic_error = UBASIC_E_PARSE; 895 } else { 896 //GOSUB test for end_select and set to gosub-linenumber 897 if (tokenizer_token() == TOKENIZER_END_SELECT) { end_select_statement(); } 898 if (case_gosub) { 899 gosub_stack[gosub_stack_ptr-1] = tokenizer_line_number(); 900 jump_line(gosub_ln); 901 DEBUG_PRINTF("end_select_statement: GOSUB: returnLN=%d\n", gosub_stack[gosub_stack_ptr-1]); 886 902 } 887 903 } 904 //GOSUB 888 905 } 889 906 } else { … … 898 915 { 899 916 short case_goto = 0, case_gosub = 0; 917 int cur_ln, gosub_ln; 900 918 901 919 accept(TOKENIZER_CASE_ELSE); … … 904 922 case_goto = (tokenizer_token() == TOKENIZER_GOTO); 905 923 case_gosub = (tokenizer_token() == TOKENIZER_GOSUB); 924 //GOSUB - save curr linenumber 925 cur_ln = tokenizer_line_number(); 926 //GOSUB 906 927 statement(); 928 //GOSUB - save new linenumber, reset to curr linenumber 929 if (case_gosub) { 930 gosub_ln = tokenizer_line_number(); 931 jump_line(cur_ln+1); 932 DEBUG_PRINTF("case_else_statement: GOSUB: toLN=%d, nextLN=%d\n", gosub_ln, cur_ln+1); 933 } 934 //GOSUB 907 935 DEBUG_PRINTF("case_else_statement: case_else execute\n"); 908 936 } else { … … 910 938 accept_cr(); 911 939 } 940 //REM 941 while ((tokenizer_token() == TOKENIZER_REM) && (!case_goto)) {statement();} 942 //REM 912 943 if (case_goto) { dec_select_stack(); } else { 913 if (!case_gosub) { 914 if (tokenizer_token() != TOKENIZER_END_SELECT) { 915 DEBUG_PRINTF("ubasic.c: select_statement(): don't found end_select\n"); 916 ended = 1; 917 ubasic_error = UBASIC_E_PARSE; 918 } else { end_select(); } 919 } 944 //GOSUB test for end_select and set to gosub-linenumber 945 if (tokenizer_token() != TOKENIZER_END_SELECT) { 946 DEBUG_PRINTF("ubasic.c: select_statement(): don't found end_select\n"); 947 ended = 1; 948 ubasic_error = UBASIC_E_PARSE; 949 } else { 950 end_select_statement(); 951 if (case_gosub) { 952 gosub_stack[gosub_stack_ptr-1] = tokenizer_line_number(); 953 jump_line(gosub_ln); 954 DEBUG_PRINTF("end_select_statement: GOSUB: returnLN=%d\n", gosub_stack[gosub_stack_ptr-1]); 955 } 956 } 957 //GOSUB 920 958 } 921 959 } else { … … 935 973 select_value = expr(); 936 974 accept(TOKENIZER_CR); 975 //REM 976 while (tokenizer_token() == TOKENIZER_REM) {statement();} 977 //REM 937 978 938 979 if(select_stack_ptr < MAX_SELECT_STACK_DEPTH) { … … 946 987 ubasic_error = UBASIC_E_PARSE; 947 988 } 948 //NEU f?r diekten "case"-befehl949 989 else { case_statement(); } 950 //---------------------------951 990 } else { 952 991 DEBUG_PRINTF("select_statement: SELECT-stack depth exceeded\n"); … … 956 995 } 957 996 /* SELECT-STATEMENT END */ 958 959 997 /*---------------------------------------------------------------------------*/ 960 998 static void branches/juciphox/makefile.inc
r461 r464 151 151 #PLATFORMSUB=101b 152 152 153 #PLATFORM=ixus960_sd950 154 #PLATFORM=100d 153 155 154 156 include $(topdir)version.inc branches/juciphox/platform/s3is/sub/100a/stubs_entry_2.S
r461 r464 26 26 NHSTUB(GetOpticalTemperature, 0xFF82D354) 27 27 NHSTUB(PT_PlaySound, 0xFF986518) 28 //NHSTUB(PT_PlaySound, 0xFFB3163C) //alternate adress ewavr found, the other one is easier to findbranches/juciphox/version.inc
r463 r464 1 BUILD_NUMBER := 0.2. 01 BUILD_NUMBER := 0.2.1