Changeset 1911
- Timestamp:
- 06/11/12 02:32:34 (11 months ago)
- Location:
- branches/reyalp-ptp-live
- Files:
-
- 152 edited
- 1 copied
-
. (modified) (1 prop)
-
Makefile (modified) (4 diffs)
-
camera_list.csv (modified) (1 diff)
-
core/games/gui_4wins.c (modified) (2 diffs)
-
core/gui.c (modified) (1 diff)
-
core/gui_menu.h (modified) (1 diff)
-
core/script.c (modified) (11 diffs)
-
include/script.h (modified) (1 diff)
-
lib/ubasic/tokenizer.c (modified) (1 diff)
-
platform/a1000/sub/100a/stubs_entry.S (modified) (1 diff)
-
platform/a1000/sub/100b/stubs_entry.S (modified) (1 diff)
-
platform/a1100/sub/100c/stubs_entry.S (modified) (1 diff)
-
platform/a2000/sub/100c/stubs_entry.S (modified) (1 diff)
-
platform/a3000/sub/100b/stubs_entry.S (modified) (1 diff)
-
platform/a3000/sub/100c/stubs_entry.S (modified) (1 diff)
-
platform/a3000/sub/100d/stubs_entry.S (modified) (1 diff)
-
platform/a3300/sub/100a/stubs_entry.S (modified) (1 diff)
-
platform/a3300/sub/100c/stubs_entry.S (modified) (1 diff)
-
platform/a3300/sub/100d/stubs_entry.S (modified) (1 diff)
-
platform/a470/sub/100e/stubs_entry.S (modified) (1 diff)
-
platform/a470/sub/101b/stubs_entry.S (modified) (1 diff)
-
platform/a470/sub/102c/stubs_entry.S (modified) (1 diff)
-
platform/a480/sub/100b/stubs_entry.S (modified) (1 diff)
-
platform/a490/sub/100d/stubs_entry.S (modified) (1 diff)
-
platform/a490/sub/100e/stubs_entry.S (modified) (1 diff)
-
platform/a490/sub/100f/stubs_entry.S (modified) (1 diff)
-
platform/a495/sub/100d/stubs_entry.S (modified) (1 diff)
-
platform/a495/sub/100e/stubs_entry.S (modified) (1 diff)
-
platform/a495/sub/100f/stubs_entry.S (modified) (1 diff)
-
platform/a580/sub/101b/stubs_entry.S (modified) (1 diff)
-
platform/a590/sub/100e/stubs_entry.S (modified) (1 diff)
-
platform/a590/sub/101b/stubs_entry.S (modified) (1 diff)
-
platform/a650/sub/100d/stubs_entry.S (modified) (1 diff)
-
platform/a720/sub/100c/stubs_entry.S (modified) (1 diff)
-
platform/a800/sub/100b/stubs_entry.S (modified) (1 diff)
-
platform/a800/sub/100c/stubs_entry.S (modified) (1 diff)
-
platform/d10/sub/100a/stubs_entry.S (modified) (1 diff)
-
platform/g10/sub/102a/stubs_entry.S (modified) (1 diff)
-
platform/g10/sub/103b/stubs_entry.S (modified) (1 diff)
-
platform/g10/sub/104a/stubs_entry.S (modified) (1 diff)
-
platform/g11/sub/100f/stubs_entry.S (modified) (1 diff)
-
platform/g11/sub/100j/stubs_entry.S (modified) (1 diff)
-
platform/g11/sub/100l/stubs_entry.S (modified) (1 diff)
-
platform/g12/lib.c (modified) (8 diffs)
-
platform/g12/sub/100c/stubs_entry.S (modified) (1 diff)
-
platform/g12/sub/100e/stubs_entry.S (modified) (1 diff)
-
platform/g12/sub/100f/stubs_entry.S (modified) (1 diff)
-
platform/g12/sub/100g/stubs_entry.S (modified) (1 diff)
-
platform/g1x/lib.c (modified) (5 diffs)
-
platform/g1x/sub/100e/stubs_entry.S (modified) (1 diff)
-
platform/g1x/sub/100f/stubs_entry.S (modified) (1 diff)
-
platform/g9/sub/100d/stubs_entry.S (modified) (1 diff)
-
platform/g9/sub/100g/stubs_entry.S (modified) (1 diff)
-
platform/g9/sub/100i/stubs_entry.S (modified) (1 diff)
-
platform/ixus1000_sd4500/sub/100d/stubs_entry.S (modified) (1 diff)
-
platform/ixus1000_sd4500/sub/100f/stubs_entry.S (modified) (1 diff)
-
platform/ixus1000_sd4500/sub/102b/stubs_entry.S (modified) (1 diff)
-
platform/ixus100_sd780/sub/100b/stubs_entry.S (modified) (1 diff)
-
platform/ixus100_sd780/sub/100c/stubs_entry.S (modified) (1 diff)
-
platform/ixus120_sd940/sub/100e/stubs_entry.S (modified) (1 diff)
-
platform/ixus120_sd940/sub/101a/stubs_entry.S (modified) (1 diff)
-
platform/ixus120_sd940/sub/102c/stubs_entry.S (modified) (1 diff)
-
platform/ixus120_sd940/sub/103b/stubs_entry.S (modified) (1 diff)
-
platform/ixus120_sd940/sub/103c/stubs_entry.S (modified) (1 diff)
-
platform/ixus200_sd980/lib.c (modified) (1 diff)
-
platform/ixus200_sd980/sub/100c (copied) (copied from trunk/platform/ixus200_sd980/sub/100c)
-
platform/ixus200_sd980/sub/101c/capt_seq.c (modified) (1 diff)
-
platform/ixus200_sd980/sub/101c/lib.c (modified) (1 diff)
-
platform/ixus200_sd980/sub/101c/stubs_entry.S (modified) (5 diffs)
-
platform/ixus200_sd980/sub/101c/stubs_entry_2.S (modified) (1 diff)
-
platform/ixus200_sd980/sub/101c/stubs_min.S (modified) (1 diff)
-
platform/ixus200_sd980/sub/101d/capt_seq.c (modified) (1 diff)
-
platform/ixus200_sd980/sub/101d/lib.c (modified) (1 diff)
-
platform/ixus200_sd980/sub/101d/stubs_entry.S (modified) (2 diffs)
-
platform/ixus200_sd980/sub/101d/stubs_min.S (modified) (1 diff)
-
platform/ixus220_elph300hs/sub/100c/stubs_entry.S (modified) (1 diff)
-
platform/ixus220_elph300hs/sub/101a/stubs_entry.S (modified) (1 diff)
-
platform/ixus220_elph300hs/sub/101c/stubs_entry.S (modified) (1 diff)
-
platform/ixus220_elph300hs/sub/101g/stubs_entry.S (modified) (1 diff)
-
platform/ixus230_elph310hs/sub/100b/stubs_entry.S (modified) (1 diff)
-
platform/ixus300_sd4000/sub/100d/stubs_entry.S (modified) (1 diff)
-
platform/ixus310_elph500hs/lib.c (modified) (1 diff)
-
platform/ixus310_elph500hs/sub/100a/stubs_entry.S (modified) (1 diff)
-
platform/ixus310_elph500hs/sub/101a/stubs_entry.S (modified) (1 diff)
-
platform/ixus310_elph500hs/sub/101c/stubs_entry.S (modified) (1 diff)
-
platform/ixus80_sd1100/sub/100c/stubs_entry.S (modified) (3 diffs)
-
platform/ixus80_sd1100/sub/101a/stubs_entry.S (modified) (1 diff)
-
platform/ixus85_sd770/sub/100a/stubs_entry.S (modified) (1 diff)
-
platform/ixus860_sd870/sub/100c/stubs_entry.S (modified) (1 diff)
-
platform/ixus870_sd880/sub/100e/stubs_entry.S (modified) (1 diff)
-
platform/ixus870_sd880/sub/101a/stubs_entry.S (modified) (1 diff)
-
platform/ixus870_sd880/sub/102b/stubs_entry.S (modified) (1 diff)
-
platform/ixus90_sd790/sub/100c/stubs_entry.S (modified) (1 diff)
-
platform/ixus90_sd790/sub/100d/stubs_entry.S (modified) (1 diff)
-
platform/ixus95_sd1200/sub/100c/stubs_entry.S (modified) (1 diff)
-
platform/ixus960_sd950/sub/100d/stubs_entry.S (modified) (1 diff)
-
platform/ixus970_sd890/sub/100b/stubs_entry.S (modified) (1 diff)
-
platform/ixus970_sd890/sub/100c/stubs_entry.S (modified) (1 diff)
-
platform/ixus970_sd890/sub/100f/stubs_entry.S (modified) (1 diff)
-
platform/ixus980_sd990/sub/100e/stubs_entry.S (modified) (1 diff)
-
platform/ixus980_sd990/sub/101b/stubs_entry.S (modified) (1 diff)
-
platform/s100/sub/100d/stubs_entry.S (modified) (1 diff)
-
platform/s100/sub/100e/stubs_entry.S (modified) (1 diff)
-
platform/s100/sub/101a/stubs_entry.S (modified) (1 diff)
-
platform/s5is/sub/101a/stubs_entry.S (modified) (1 diff)
-
platform/s5is/sub/101b/stubs_entry.S (modified) (1 diff)
-
platform/s90/sub/100c/stubs_entry.S (modified) (1 diff)
-
platform/s90/sub/100c/stubs_entry_2.S (modified) (1 diff)
-
platform/s90/sub/101a/stubs_entry.S (modified) (1 diff)
-
platform/s90/sub/101c/stubs_entry.S (modified) (1 diff)
-
platform/s95/sub/100e/stubs_entry.S (modified) (1 diff)
-
platform/s95/sub/100h/stubs_entry.S (modified) (1 diff)
-
platform/s95/sub/100i/stubs_entry.S (modified) (1 diff)
-
platform/s95/sub/100k/stubs_entry.S (modified) (1 diff)
-
platform/sx1/sub/200h/stubs_entry.S (modified) (1 diff)
-
platform/sx1/sub/201a/stubs_entry.S (modified) (1 diff)
-
platform/sx10/sub/100c/stubs_entry.S (modified) (1 diff)
-
platform/sx10/sub/101a/stubs_entry.S (modified) (1 diff)
-
platform/sx10/sub/101b/stubs_entry.S (modified) (1 diff)
-
platform/sx10/sub/102b/stubs_entry.S (modified) (1 diff)
-
platform/sx10/sub/103a/stubs_entry.S (modified) (1 diff)
-
platform/sx100is/sub/100b/stubs_entry.S (modified) (1 diff)
-
platform/sx100is/sub/100c/stubs_entry.S (modified) (1 diff)
-
platform/sx110is/sub/100b/stubs_entry.S (modified) (1 diff)
-
platform/sx120is/sub/100b/stubs_entry.S (modified) (1 diff)
-
platform/sx130is/sub/101c/stubs_entry.S (modified) (1 diff)
-
platform/sx130is/sub/101d/stubs_entry.S (modified) (1 diff)
-
platform/sx130is/sub/101f/stubs_entry.S (modified) (1 diff)
-
platform/sx150is/sub/100a/stubs_entry.S (modified) (1 diff)
-
platform/sx20/sub/100f/stubs_entry.S (modified) (1 diff)
-
platform/sx20/sub/102b/stubs_entry.S (modified) (1 diff)
-
platform/sx20/sub/102d/stubs_entry.S (modified) (1 diff)
-
platform/sx200is/sub/100c/stubs_entry.S (modified) (1 diff)
-
platform/sx220hs/sub/100a/stubs_entry.S (modified) (1 diff)
-
platform/sx220hs/sub/101a/stubs_entry.S (modified) (1 diff)
-
platform/sx220hs/sub/101b/stubs_entry.S (modified) (1 diff)
-
platform/sx230hs/sub/100c/stubs_entry.S (modified) (1 diff)
-
platform/sx230hs/sub/101a/stubs_entry.S (modified) (1 diff)
-
platform/sx230hs/sub/101b/stubs_entry.S (modified) (1 diff)
-
platform/sx30/lib.c (modified) (5 diffs)
-
platform/sx30/sub/100e/stubs_entry.S (modified) (1 diff)
-
platform/sx30/sub/100h/stubs_entry.S (modified) (1 diff)
-
platform/sx30/sub/100l/stubs_entry.S (modified) (1 diff)
-
platform/sx30/sub/100n/stubs_entry.S (modified) (1 diff)
-
platform/sx30/sub/100p/stubs_entry.S (modified) (1 diff)
-
platform/sx40hs/lib.c (modified) (8 diffs)
-
platform/sx40hs/sub/100d/stubs_entry.S (modified) (1 diff)
-
platform/sx40hs/sub/100f/stubs_entry.S (modified) (1 diff)
-
platform/sx40hs/sub/100g/stubs_entry.S (modified) (1 diff)
-
platform/sx40hs/sub/100i/stubs_entry.S (modified) (1 diff)
-
tools/finsig_dryos.c (modified) (1 diff)
-
tools/sig_ref_dryos_1.txt (modified) (1 diff)
-
tools/signatures_dryos.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/reyalp-ptp-live
- Property svn:mergeinfo changed
/branches/release-1_0 merged: 1907 /trunk merged: 1896-1904,1906,1908-1910
- Property svn:mergeinfo changed
-
branches/reyalp-ptp-live/Makefile
r1878 r1911 4 4 tmp:=$(shell echo "BUILD_SVNREV := $(DEF_SVN_REF)" > revision.inc) 5 5 6 # can override on command line or *buildconf.inc for custom subsets 7 CAMERA_LIST=camera_list.csv 8 6 9 include makefile.inc 7 10 … … 26 29 ZIPDIRS:=$(shell ls -R CHDK | grep CHDK/ | $(ESED) 's?:?/*?') 27 30 28 SUBDIRS=tools lib platform core loader CHDK 31 SUBDIRS=lib platform core loader CHDK 32 33 # SKIP_TOOLS prevents re-building tools in root level make, to speed up batch builds 34 ifndef SKIP_TOOLS 35 SUBDIRS:=tools $(SUBDIRS) 36 endif 29 37 30 38 .PHONY: fir … … 178 186 rm -f $(topdir)bin/DISKBOOT.BIN 179 187 188 print-missing-dump: 189 if [ ! -s $(PRIMARY_ROOT)/$(PLATFORM)/sub/$(PLATFORMSUB)/PRIMARY.BIN ] ; then \ 190 echo "missing primary for $(PLATFORM) $(PLATFORMSUB)" ; \ 191 fi 192 193 194 # for batch builds, build tools for vx and dryos once, instead of once for every firmware 195 alltools: 196 $(MAKE) -C tools PLATFORM=a610 PLATFORMSUB=100e clean all 197 $(MAKE) -C tools PLATFORM=a720 PLATFORMSUB=100c clean all 198 199 # note assumes PLATFORMOS is always in same case! 200 os-camera-list-entry: 201 echo $(PLATFORM),$(PLATFORMSUB),$(subst _,,$(STATE)),$(COPY_TO), >> camera_list_$(PLATFORMOS).csv 202 180 203 # define targets to batch build all cameras & firmware versions 181 204 # list of cameras/firmware versions is in 'camera_list.csv' … … 188 211 # - skip auto build (optional) :- any value in this column will exclude the camera/firmware from the auto build 189 212 190 batch-zip: version 191 sh tools/auto_build.sh $(MAKE) firzipsub camera_list.csv213 batch-zip: version alltools 214 SKIP_TOOLS=1 sh tools/auto_build.sh $(MAKE) firzipsub $(CAMERA_LIST) 192 215 @echo "**** Summary of memisosizes" 193 216 cat $(topdir)bin/caminfo.txt 194 217 rm -f $(topdir)bin/caminfo.txt > $(DEVNULL) 195 218 196 batch-zip-complete: version 197 sh tools/auto_build.sh $(MAKE) firzipsubcomplete camera_list.csv219 batch-zip-complete: version alltools 220 SKIP_TOOLS=1 sh tools/auto_build.sh $(MAKE) firzipsubcomplete $(CAMERA_LIST) 198 221 @echo "**** Summary of memisosizes" 199 222 cat $(topdir)bin/caminfo.txt 200 223 rm -f $(topdir)bin/caminfo.txt > $(DEVNULL) 201 224 225 # note, this will not include cameras with SKIP_AUTOBUILD set 226 os-camera-lists: 227 echo 'CAMERA,FIRMWARE,BETA_STATUS,COPY_TO,SKIP_AUTOBUILD' > camera_list_dryos.csv 228 echo 'CAMERA,FIRMWARE,BETA_STATUS,COPY_TO,SKIP_AUTOBUILD' > camera_list_vxworks.csv 229 sh tools/auto_build.sh $(MAKE) os-camera-list-entry $(CAMERA_LIST) 230 231 # make sure each enabled firmware/sub has a PRIMARY.BIN 232 # Note this will not fail, just prints all the missing ones 233 batch-print-missing-dumps: 234 sh tools/auto_build.sh $(MAKE) print-missing-dump $(CAMERA_LIST) 235 202 236 batch-clean: 203 sh tools/auto_build.sh $(MAKE) clean camera_list.csv237 sh tools/auto_build.sh $(MAKE) clean $(CAMERA_LIST) -
branches/reyalp-ptp-live/camera_list.csv
r1878 r1911 77 77 ixus120_sd940,103b,,, 78 78 ixus120_sd940,103c,,, 79 ixus200_sd980,100c,BETA,, 79 80 ixus200_sd980,101c,BETA,, 80 81 ixus200_sd980,101d,BETA,, -
branches/reyalp-ptp-live/core/games/gui_4wins.c
r1594 r1911 333 333 draw_txt_string((camera_screen.ts_button_border/FONT_WIDTH)+30, 3, lang_str(LANG_CONNECT4_RIVAL), TEXT_COLOR); 334 334 sprintf(str, "%d",count_win[0]); 335 draw_txt_string((camera_screen. width-camera_screen.ts_button_border)/FONT_WIDTH-2-10, camera_screen.height/FONT_HEIGHT-9, str, MAKE_COLOR(INFO_COLOR, P1_COLOR));335 draw_txt_string((camera_screen.ts_button_border/FONT_WIDTH)+34, camera_screen.height/FONT_HEIGHT-9, str, MAKE_COLOR(INFO_COLOR, P1_COLOR)); 336 336 sprintf(str, ":"); 337 draw_txt_string((camera_screen. width-camera_screen.ts_button_border)/FONT_WIDTH-2-7, camera_screen.height/FONT_HEIGHT-9, str, INFO_TEXT_COLOR);337 draw_txt_string((camera_screen.ts_button_border/FONT_WIDTH)+36, camera_screen.height/FONT_HEIGHT-9, str, INFO_TEXT_COLOR); 338 338 sprintf(str, "%d",count_win[1]); 339 draw_txt_string((camera_screen. width-camera_screen.ts_button_border)/FONT_WIDTH-2-4, camera_screen.height/FONT_HEIGHT-9, str, MAKE_COLOR(INFO_COLOR, P2_COLOR));339 draw_txt_string((camera_screen.ts_button_border/FONT_WIDTH)+38, camera_screen.height/FONT_HEIGHT-9, str, MAKE_COLOR(INFO_COLOR, P2_COLOR)); 340 340 draw_mode(); 341 341 if(cur_player==2&&!mode_rival) set(); … … 371 371 void gui_4wins_draw(int enforce_redraw) { 372 372 static char str[16]; 373 sprintf(str, " %3d%%", get_batt_perc());374 draw_txt_string((camera_screen. width-camera_screen.ts_button_border)/FONT_WIDTH-2-13, camera_screen.height/FONT_HEIGHT-2, str, INFO_TEXT_COLOR);375 gui_osd_draw_clock(camera_screen.ts_button_border+ 290,208,INFO_TEXT_COLOR);373 sprintf(str, "Batt: %3d%%", get_batt_perc()); 374 draw_txt_string((camera_screen.ts_button_border/FONT_WIDTH)+31, camera_screen.height/FONT_HEIGHT-2, str, INFO_TEXT_COLOR); 375 gui_osd_draw_clock(camera_screen.ts_button_border+35*FONT_WIDTH,208-FONT_HEIGHT,INFO_TEXT_COLOR); 376 376 } 377 377 -
branches/reyalp-ptp-live/core/gui.c
r1893 r1911 1336 1336 register int p=0, i; 1337 1337 1338 for (i=0; i<sizeof(script_submenu_items_top)/sizeof(script_submenu_items_top[0]); ++p, ++i) { 1338 for (i=0; i<sizeof(script_submenu_items_top)/sizeof(script_submenu_items_top[0]); ++p, ++i) 1339 { 1339 1340 script_submenu_items[p]=script_submenu_items_top[i]; 1340 1341 } 1341 for (i=0; i<SCRIPT_NUM_PARAMS; ++i) { 1342 if (script_param_order[i]) { 1343 script_submenu_items[p].symbol=0x0; 1344 script_submenu_items[p].text=(int)script_params[script_param_order[i]-1]; 1345 script_submenu_items[p].type=MENUITEM_INT; 1346 script_submenu_items[p].value=&conf.script_vars[script_param_order[i]-1]; 1342 for (i=0; i<SCRIPT_NUM_PARAMS; ++i) 1343 { 1344 if (script_param_order[i]) 1345 { 1346 int n = script_param_order[i]-1; 1347 1348 script_submenu_items[p].symbol = 0x0; 1349 script_submenu_items[p].text = (int)script_params[n]; 1350 script_submenu_items[p].type = MENUITEM_INT; 1351 script_submenu_items[p].value = &conf.script_vars[n]; 1352 1353 if (script_range_values[n] != 0) 1354 { 1355 if (script_range_values[n] == MENU_MINMAX(0,1)) 1356 { 1357 script_submenu_items[p].type = MENUITEM_BOOL; 1358 } 1359 else 1360 { 1361 script_submenu_items[p].type |= MENUITEM_F_MINMAX; 1362 script_submenu_items[p].arg = script_range_values[n]; 1363 } 1364 } 1365 else if (script_named_counts[n] != 0) 1366 { 1367 script_submenu_items[p].type = MENUITEM_ENUM2; 1368 script_submenu_items[p].opt_len = script_named_counts[n]; 1369 script_submenu_items[p].arg = (int)script_named_values[n]; 1370 } 1371 1347 1372 ++p; 1348 1373 } 1349 1374 } 1350 for (i=0; i<sizeof(script_submenu_items_bottom)/sizeof(script_submenu_items_bottom[0]); ++p, ++i) { 1375 for (i=0; i<sizeof(script_submenu_items_bottom)/sizeof(script_submenu_items_bottom[0]); ++p, ++i) 1376 { 1351 1377 script_submenu_items[p]=script_submenu_items_bottom[i]; 1352 1378 } -
branches/reyalp-ptp-live/core/gui_menu.h
r1878 r1911 33 33 #define MENUITEM_ARG_CALLBACK 0x0300 34 34 35 #define MENU_MINMAX(min, max) (((max)<<16)|(min ))35 #define MENU_MINMAX(min, max) (((max)<<16)|(min&0xFFFF)) 36 36 37 37 //------------------------------------------------------------------- -
branches/reyalp-ptp-live/core/script.c
r1893 r1911 5 5 #include "gui.h" 6 6 #include "gui_draw.h" 7 #include "gui_menu.h" 7 8 #include "conf.h" 8 9 #include "script.h" … … 106 107 int script_param_order[SCRIPT_NUM_PARAMS]; // Ordered as_in_script list of variables ( [idx] = id_of_var ) 107 108 // to display in same order in script 109 int script_range_values[SCRIPT_NUM_PARAMS]; // Min/Max values for param validation 110 const char **script_named_values[SCRIPT_NUM_PARAMS]; // Array of list values for named parameters 111 int script_named_counts[SCRIPT_NUM_PARAMS]; // Count of # of entries in each script_list_values array 112 char *script_named_strings[SCRIPT_NUM_PARAMS]; // Base storage for named value string data 108 113 static char script_params_update[SCRIPT_NUM_PARAMS]; // Flag is such parameter exist 109 114 static int script_loaded_params[SCRIPT_NUM_PARAMS]; // Copy of original values of parameters … … 113 118 114 119 //------------------------------------------------------------------- 120 121 const char* skip_whitespace(const char* p) { while (*p==' ' || *p=='\t') p++; return p; } // Skip past whitespace 122 const char* skip_token(const char* p) { while (*p && *p!='\r' && *p!='\n' && *p!=' ' && *p!='\t') p++; return p; } // Skip past current token value 123 const char* skip_toeol(const char* p) { while (*p!='\r' && *p!='\n') p++; return p; } // Skip to end of line 124 125 //------------------------------------------------------------------- 115 126 static void process_title(const char *title) { 116 127 register const char *ptr = title; 117 128 register int i=0; 118 129 119 while (ptr[0]==' ' || ptr[0]=='\t') ++ptr; // whitespaces130 ptr = skip_whitespace(ptr); 120 131 while (i<(sizeof(script_title)-1) && ptr[i] && ptr[i]!='\r' && ptr[i]!='\n') { 121 132 script_title[i]=ptr[i]; … … 134 145 // RETURN VALUE: 0 if err, 1..26 = id of var 135 146 //------------------------------------------------------------------- 136 static int process_param(const char *param, int update) { 147 static int process_param(const char *param, int update) 148 { 137 149 register const char *ptr = param; 138 150 register int n, i=0; 139 151 140 while (ptr[0]==' ' || ptr[0]=='\t') ++ptr; // whitespaces152 ptr = skip_whitespace(ptr); 141 153 if (ptr[0] && (ptr[0]>='a' && ptr[0]<='a'+SCRIPT_NUM_PARAMS) && (ptr[1]==' ' || ptr[1]=='\t')) { 142 154 n=ptr[0]-'a'; 143 ptr+=2; 144 while (ptr[0]==' ' || ptr[0]=='\t') ++ptr; // whitespaces 155 ptr = skip_whitespace(ptr+2); 145 156 script_params_update[n] = 1; 146 157 while (i<(sizeof(script_params[0])-1) && ptr[i] && ptr[i]!='\r' && ptr[i]!='\n') { … … 165 176 // 1 - only if updated 166 177 //------------------------------------------------------------------- 167 static void process_default(const char *param, char update) { 178 static void process_default(const char *param, char update) 179 { 168 180 register const char *ptr = param; 169 181 register int n; 170 182 171 while (ptr[0]==' ' || ptr[0]=='\t') ++ptr; // whitespaces183 ptr = skip_whitespace(ptr); 172 184 if (ptr[0] && (ptr[0]>='a' && ptr[0]<='a'+SCRIPT_NUM_PARAMS) && (ptr[1]==' ' || ptr[1]=='\t')) { 173 185 n=ptr[0]-'a'; 174 ptr +=2;186 ptr = skip_whitespace(ptr+2); 175 187 if (!update || script_params_update[n]) 176 188 { 177 189 conf.script_vars[n] = strtol(ptr, NULL, 0); 178 190 script_loaded_params[n] = conf.script_vars[n]; 191 } 192 } // ??? else produce error message 193 } 194 195 //------------------------------------------------------------------- 196 // Process one entry "@range VAR MIN MAX" 197 // param = ptr right after descriptor (should point to var) 198 // update = 0 - get 199 // 1 - only if updated 200 //------------------------------------------------------------------- 201 static void process_range(const char *param, char update) 202 { 203 register const char *ptr = param; 204 register int n; 205 206 ptr = skip_whitespace(ptr); 207 if (ptr[0] && (ptr[0]>='a' && ptr[0]<='a'+SCRIPT_NUM_PARAMS) && (ptr[1]==' ' || ptr[1]=='\t')) 208 { 209 n=ptr[0]-'a'; 210 ptr = skip_whitespace(ptr+2); 211 if (!update || script_params_update[n]) 212 { 213 short min = strtol(ptr,NULL,0); 214 ptr = skip_whitespace(skip_token(ptr)); 215 short max = strtol(ptr,NULL,0); 216 script_range_values[n] = MENU_MINMAX(min,max); 217 } 218 } // ??? else produce error message 219 } 220 221 //------------------------------------------------------------------- 222 // Process one entry "@values VAR A B C D ..." 223 // param = ptr right after descriptor (should point to var) 224 // update = 0 - get 225 // 1 - only if updated 226 //------------------------------------------------------------------- 227 static void process_values(const char *param, char update) 228 { 229 register const char *ptr = param; 230 register int n; 231 232 ptr = skip_whitespace(ptr); 233 if (ptr[0] && (ptr[0]>='a' && ptr[0]<='a'+SCRIPT_NUM_PARAMS) && (ptr[1]==' ' || ptr[1]=='\t')) 234 { 235 n=ptr[0]-'a'; 236 ptr = skip_whitespace(ptr+2); 237 if (!update || script_params_update[n]) 238 { 239 int len = skip_toeol(ptr) - ptr; 240 script_named_strings[n] = malloc(len+1); 241 strncpy(script_named_strings[n], ptr, len); 242 script_named_strings[n][len] = 0; 243 244 const char *p = script_named_strings[n]; 245 int cnt = 0; 246 while (*p) 247 { 248 p = skip_whitespace(skip_token(p)); 249 cnt++; 250 } 251 script_named_counts[n] = cnt; 252 script_named_values[n] = malloc(cnt * sizeof(char*)); 253 254 p = script_named_strings[n]; 255 cnt = 0; 256 while (*p) 257 { 258 script_named_values[n][cnt] = p; 259 p = skip_token(p); 260 if (*p) 261 { 262 *((char*)p) = 0; 263 p = skip_whitespace(p+1); 264 } 265 cnt++; 266 } 179 267 } 180 268 } // ??? else produce error message … … 201 289 script_params[i][0]=0; 202 290 script_param_order[i]=0; 291 script_range_values[i] = 0; 292 if (script_named_values[i]) free(script_named_values[i]); 293 script_named_values[i] = 0; 294 if (script_named_strings[i]) free(script_named_strings[i]); 295 script_named_strings[i] = 0; 296 script_named_counts[i] = 0; 203 297 } 204 298 205 299 while (ptr[0]) { 206 while (ptr[0]==' ' || ptr[0]=='\t') ++ptr; // whitespaces300 ptr = skip_whitespace(ptr); 207 301 if (ptr[0]=='@') { 208 302 if (strncmp("@title", ptr, 6)==0) { … … 219 313 ptr+=8; 220 314 process_default(ptr, 0); 315 } else if (update_vars && strncmp("@range", ptr, 6)==0) { 316 ptr+=6; 317 process_range(ptr, 0); 318 } else if (update_vars && strncmp("@values", ptr, 7)==0) { 319 ptr+=7; 320 process_values(ptr, 0); 221 321 } 222 322 } … … 329 429 ptr+=8; 330 430 process_default(ptr, 1); 431 } else if (strncmp("@range", ptr, 6)==0) { 432 ptr+=6; 433 process_range(ptr, 1); 434 } else if (strncmp("@values", ptr, 7)==0) { 435 ptr+=7; 436 process_values(ptr, 0); 331 437 } 332 438 } … … 353 459 { 354 460 int i, n, fd, changed=0; 355 char *buf ,*p;461 char *buf; 356 462 for(i = 0; i < SCRIPT_NUM_PARAMS; i++) 357 463 { … … 375 481 376 482 // max possible params * (param description + some extra for @default etc) 377 buf=umalloc( SCRIPT_NUM_PARAMS*(28 + 20));483 buf=umalloc(256); 378 484 if(!buf) 379 485 return; … … 385 491 } 386 492 buf[0] = 0; 387 p=buf;388 493 for(n = 0; n < SCRIPT_NUM_PARAMS; ++n) 389 494 { 390 495 if (script_params[n][0] != 0) 391 496 { 392 p+=sprintf(p,"@param %c %s\n@default %c %d\n",'a'+n,script_params[n],'a'+n,conf.script_vars[n]); 393 } 394 } 395 write(fd, buf, strlen(buf)); 497 sprintf(buf,"@param %c %s\n@default %c %d\n",'a'+n,script_params[n],'a'+n,conf.script_vars[n]); 498 if (script_range_values[n] != 0) 499 sprintf(buf+strlen(buf),"@range %c %d %d\n",'a'+n,(short)(script_range_values[n]&0xFFFF),(short)(script_range_values[n]>>16)); 500 if (script_named_counts[n] != 0) 501 { 502 sprintf(buf+strlen(buf),"@values %c",'a'+n); 503 for (i=0; i<script_named_counts[n]; i++) 504 sprintf(buf+strlen(buf)," %s",script_named_values[n][i]); 505 strcat(buf,"\n"); 506 } 507 write(fd, buf, strlen(buf)); 508 } 509 } 396 510 close(fd); 397 511 ufree(buf); -
branches/reyalp-ptp-live/include/script.h
r1720 r1911 19 19 extern char script_title[36]; 20 20 extern char script_params[SCRIPT_NUM_PARAMS][28]; 21 extern int script_range_values[SCRIPT_NUM_PARAMS]; 21 22 extern int script_param_order[SCRIPT_NUM_PARAMS]; 23 extern const char **script_named_values[SCRIPT_NUM_PARAMS]; 24 extern int script_named_counts[SCRIPT_NUM_PARAMS]; 22 25 23 26 //------------------------------------------------------------------- -
branches/reyalp-ptp-live/lib/ubasic/tokenizer.c
r1720 r1911 202 202 {"@param", TOKENIZER_REM}, 203 203 {"@default", TOKENIZER_REM}, 204 {"@range", TOKENIZER_REM}, 205 {"@values", TOKENIZER_REM}, 204 206 205 207 {"md_detect_motion", TOKENIZER_MD_DETECT_MOTION}, -
branches/reyalp-ptp-live/platform/a1000/sub/100a/stubs_entry.S
r1878 r1911 132 132 NSTUB(GetPropertyCase ,0xffc594cc) //102 133 133 NSTUB(GetSystemTime ,0xffdefe78) //101 134 NSTUB(GetVRAMHPixelsSize ,0xffca2420) //102 135 NSTUB(GetVRAMVPixelsSize ,0xffca242c) //102 134 136 NSTUB(GetZoomLensCurrentPoint ,0xffd033a4) //102 135 137 NSTUB(GetZoomLensCurrentPosition ,0xffde9db0) //102 -
branches/reyalp-ptp-live/platform/a1000/sub/100b/stubs_entry.S
r1878 r1911 132 132 NSTUB(GetPropertyCase ,0xffc594cc) //102 133 133 NSTUB(GetSystemTime ,0xffdefe78) //101 134 NSTUB(GetVRAMHPixelsSize ,0xffca2420) //102 135 NSTUB(GetVRAMVPixelsSize ,0xffca242c) //102 134 136 NSTUB(GetZoomLensCurrentPoint ,0xffd033a4) //102 135 137 NSTUB(GetZoomLensCurrentPosition ,0xffde9db0) //102 -
branches/reyalp-ptp-live/platform/a1100/sub/100c/stubs_entry.S
r1878 r1911 127 127 NSTUB(GetPropertyCase ,0xffc593fc) //102 128 128 NSTUB(GetSystemTime ,0xffdf5404) //101 129 NSTUB(GetVRAMHPixelsSize ,0xffc959f0) //102 130 NSTUB(GetVRAMVPixelsSize ,0xffc959fc) //102 129 131 NSTUB(GetZoomLensCurrentPoint ,0xffcf4b00) //102 130 132 NSTUB(GetZoomLensCurrentPosition ,0xffded338) //102 -
branches/reyalp-ptp-live/platform/a2000/sub/100c/stubs_entry.S
r1878 r1911 130 130 NSTUB(GetPropertyCase ,0xffc590ac) //102 131 131 NSTUB(GetSystemTime ,0xffdf0aa8) //101 132 NSTUB(GetVRAMHPixelsSize ,0xffca2058) //102 133 NSTUB(GetVRAMVPixelsSize ,0xffca2064) //102 132 134 NSTUB(GetZoomLensCurrentPoint ,0xffd0349c) //102 133 135 NSTUB(GetZoomLensCurrentPosition ,0xffdea9dc) //102 -
branches/reyalp-ptp-live/platform/a3000/sub/100b/stubs_entry.S
r1878 r1911 136 136 NSTUB(GetPropertyCase ,0xffc6c614) //102 137 137 NSTUB(GetSystemTime ,0xffe08208) //101 138 NSTUB(GetVRAMHPixelsSize ,0xffcba714) //102 139 NSTUB(GetVRAMVPixelsSize ,0xffcba720) //102 138 140 NSTUB(GetZoomLensCurrentPoint ,0xffd0fa4c) //102 139 141 NSTUB(GetZoomLensCurrentPosition ,0xffdff83c) //102 -
branches/reyalp-ptp-live/platform/a3000/sub/100c/stubs_entry.S
r1878 r1911 136 136 NSTUB(GetPropertyCase ,0xffc6c664) //102 137 137 NSTUB(GetSystemTime ,0xffe082b8) //101 138 NSTUB(GetVRAMHPixelsSize ,0xffcba764) //102 139 NSTUB(GetVRAMVPixelsSize ,0xffcba770) //102 138 140 NSTUB(GetZoomLensCurrentPoint ,0xffd0fafc) //102 139 141 NSTUB(GetZoomLensCurrentPosition ,0xffdff8ec) //102 -
branches/reyalp-ptp-live/platform/a3000/sub/100d/stubs_entry.S
r1878 r1911 136 136 NSTUB(GetPropertyCase ,0xffc6c664) //102 137 137 NSTUB(GetSystemTime ,0xffe0820c) //101 138 NSTUB(GetVRAMHPixelsSize ,0xffcba764) //102 139 NSTUB(GetVRAMVPixelsSize ,0xffcba770) //102 138 140 NSTUB(GetZoomLensCurrentPoint ,0xffd0fafc) //102 139 141 NSTUB(GetZoomLensCurrentPosition ,0xffdff840) //102 -
branches/reyalp-ptp-live/platform/a3300/sub/100a/stubs_entry.S
r1878 r1911 139 139 NSTUB(GetPropertyCase ,0xff88cfac) //102 140 140 NSTUB(GetSystemTime ,0xffab6d84) //101 141 NSTUB(GetVRAMHPixelsSize ,0xff853c54) //102 142 NSTUB(GetVRAMVPixelsSize ,0xff853c60) //102 141 143 NSTUB(GetZoomLensCurrentPoint ,0xff96523c) //102 142 144 NSTUB(GetZoomLensCurrentPosition ,0xffaa3b04) //102 -
branches/reyalp-ptp-live/platform/a3300/sub/100c/stubs_entry.S
r1878 r1911 139 139 NSTUB(GetPropertyCase ,0xff88cfac) //102 140 140 NSTUB(GetSystemTime ,0xffab6d84) //101 141 NSTUB(GetVRAMHPixelsSize ,0xff853c54) //102 142 NSTUB(GetVRAMVPixelsSize ,0xff853c60) //102 141 143 NSTUB(GetZoomLensCurrentPoint ,0xff96523c) //102 142 144 NSTUB(GetZoomLensCurrentPosition ,0xffaa3b04) //102 -
branches/reyalp-ptp-live/platform/a3300/sub/100d/stubs_entry.S
r1878 r1911 139 139 NSTUB(GetPropertyCase ,0xff88cfac) //102 140 140 NSTUB(GetSystemTime ,0xffab6d90) //101 141 NSTUB(GetVRAMHPixelsSize ,0xff853c54) //102 142 NSTUB(GetVRAMVPixelsSize ,0xff853c60) //102 141 143 NSTUB(GetZoomLensCurrentPoint ,0xff96523c) //102 142 144 NSTUB(GetZoomLensCurrentPosition ,0xffaa3b04) //102 -
branches/reyalp-ptp-live/platform/a470/sub/100e/stubs_entry.S
r1878 r1911 121 121 NSTUB(GetPropertyCase ,0xffc56f08) //102 122 122 NSTUB(GetSystemTime ,0xffdda8c0) //101 123 NSTUB(GetVRAMHPixelsSize ,0xffca18c0) //102 124 NSTUB(GetVRAMVPixelsSize ,0xffca18cc) //102 123 125 NSTUB(GetZoomLensCurrentPoint ,0xffd060a0) //102 124 126 NSTUB(GetZoomLensCurrentPosition ,0xffdd1c94) //102 -
branches/reyalp-ptp-live/platform/a470/sub/101b/stubs_entry.S
r1878 r1911 121 121 NSTUB(GetPropertyCase ,0xffc56f08) //102 122 122 NSTUB(GetSystemTime ,0xffdda8bc) //101 123 NSTUB(GetVRAMHPixelsSize ,0xffca18c0) //102 124 NSTUB(GetVRAMVPixelsSize ,0xffca18cc) //102 123 125 NSTUB(GetZoomLensCurrentPoint ,0xffd060a0) //102 124 126 NSTUB(GetZoomLensCurrentPosition ,0xffdd1c90) //102 -
branches/reyalp-ptp-live/platform/a470/sub/102c/stubs_entry.S
r1878 r1911 121 121 NSTUB(GetPropertyCase ,0xffc57424) //102 122 122 NSTUB(GetSystemTime ,0xffddb2fc) //101 123 NSTUB(GetVRAMHPixelsSize ,0xffca1ddc) //102 124 NSTUB(GetVRAMVPixelsSize ,0xffca1de8) //102 123 125 NSTUB(GetZoomLensCurrentPoint ,0xffd06ae0) //102 124 126 NSTUB(GetZoomLensCurrentPosition ,0xffdd26d0) //102 -
branches/reyalp-ptp-live/platform/a480/sub/100b/stubs_entry.S
r1878 r1911 128 128 NSTUB(GetPropertyCase ,0xffc51944) //102 129 129 NSTUB(GetSystemTime ,0xffdc4608) //101 130 NSTUB(GetVRAMHPixelsSize ,0xffc8aa34) //102 131 NSTUB(GetVRAMVPixelsSize ,0xffc8aa40) //102 130 132 NSTUB(GetZoomLensCurrentPoint ,0xffce3dac) //102 131 133 NSTUB(GetZoomLensCurrentPosition ,0xffdbcdf4) //102 -
branches/reyalp-ptp-live/platform/a490/sub/100d/stubs_entry.S
r1878 r1911 133 133 NSTUB(GetPropertyCase ,0xffc69454) //102 134 134 NSTUB(GetSystemTime ,0xffdfa400) //101 135 NSTUB(GetVRAMHPixelsSize ,0xffcb69ac) //102 136 NSTUB(GetVRAMVPixelsSize ,0xffcb69b8) //102 135 137 NSTUB(GetZoomLensCurrentPoint ,0xffd09bc8) //102 136 138 NSTUB(GetZoomLensCurrentPosition ,0xffdf2444) //102 -
branches/reyalp-ptp-live/platform/a490/sub/100e/stubs_entry.S
r1878 r1911 129 129 NSTUB(GetPropertyCase ,0xffc694a4) //102 130 130 NSTUB(GetSystemTime ,0xffdfa4b0) //101 131 NSTUB(GetVRAMHPixelsSize ,0xffcb69fc) //102 132 NSTUB(GetVRAMVPixelsSize ,0xffcb6a08) //102 131 133 NSTUB(GetZoomLensCurrentPoint ,0xffd09c78) //102 132 134 NSTUB(GetZoomLensCurrentPosition ,0xffdf24f4) //102 -
branches/reyalp-ptp-live/platform/a490/sub/100f/stubs_entry.S
r1878 r1911 133 133 NSTUB(GetPropertyCase ,0xffc694a4) //102 134 134 NSTUB(GetSystemTime ,0xffdfa404) //101 135 NSTUB(GetVRAMHPixelsSize ,0xffcb69fc) //102 136 NSTUB(GetVRAMVPixelsSize ,0xffcb6a08) //102 135 137 NSTUB(GetZoomLensCurrentPoint ,0xffd09c78) //102 136 138 NSTUB(GetZoomLensCurrentPosition ,0xffdf2448) //102 -
branches/reyalp-ptp-live/platform/a495/sub/100d/stubs_entry.S
r1878 r1911 142 142 NSTUB(GetPropertyCase ,0xffc6952c) //102 143 143 NSTUB(GetSystemTime ,0xffdfd1c0) //101 144 NSTUB(GetVRAMHPixelsSize ,0xffcb6c54) //102 145 NSTUB(GetVRAMVPixelsSize ,0xffcb6c60) //102 144 146 NSTUB(GetZoomLensCurrentPoint ,0xffd09cd0) //102 145 147 NSTUB(GetZoomLensCurrentPosition ,0xffdf520c) //102 -
branches/reyalp-ptp-live/platform/a495/sub/100e/stubs_entry.S
r1878 r1911 142 142 NSTUB(GetPropertyCase ,0xffc6957c) //102 143 143 NSTUB(GetSystemTime ,0xffdfd270) //101 144 NSTUB(GetVRAMHPixelsSize ,0xffcb6ca4) //102 145 NSTUB(GetVRAMVPixelsSize ,0xffcb6cb0) //102 144 146 NSTUB(GetZoomLensCurrentPoint ,0xffd09d80) //102 145 147 NSTUB(GetZoomLensCurrentPosition ,0xffdf52bc) //102 -
branches/reyalp-ptp-live/platform/a495/sub/100f/stubs_entry.S
r1878 r1911 142 142 NSTUB(GetPropertyCase ,0xffc6957c) //102 143 143 NSTUB(GetSystemTime ,0xffdfd1c4) //101 144 NSTUB(GetVRAMHPixelsSize ,0xffcb6ca4) //102 145 NSTUB(GetVRAMVPixelsSize ,0xffcb6cb0) //102 144 146 NSTUB(GetZoomLensCurrentPoint ,0xffd09d80) //102 145 147 NSTUB(GetZoomLensCurrentPosition ,0xffdf5210) //102 -
branches/reyalp-ptp-live/platform/a580/sub/101b/stubs_entry.S
r1878 r1911 126 126 NSTUB(GetPropertyCase ,0xffc5819c) //102 127 127 NSTUB(GetSystemTime ,0xffde5028) //101 128 NSTUB(GetVRAMHPixelsSize ,0xffca3318) //102 129 NSTUB(GetVRAMVPixelsSize ,0xffca3324) //102 128 130 NSTUB(GetZoomLensCurrentPoint ,0xffd08940) //102 129 131 NSTUB(GetZoomLensCurrentPosition ,0xffddc3a8) //102 -
branches/reyalp-ptp-live/platform/a590/sub/100e/stubs_entry.S
r1878 r1911 126 126 NSTUB(GetPropertyCase ,0xffc5dab4) //102 127 127 NSTUB(GetSystemTime ,0xffdf1dcc) //101 128 NSTUB(GetVRAMHPixelsSize ,0xffc2a77c) //102 129 NSTUB(GetVRAMVPixelsSize ,0xffc2a788) //102 128 130 NSTUB(GetZoomLensCurrentPoint ,0xffd0fcc0) //102 129 131 NSTUB(GetZoomLensCurrentPosition ,0xffde89e0) //102 -
branches/reyalp-ptp-live/platform/a590/sub/101b/stubs_entry.S
r1878 r1911 126 126 NSTUB(GetPropertyCase ,0xffc5dab4) //102 127 127 NSTUB(GetSystemTime ,0xffdf1dc8) //101 128 NSTUB(GetVRAMHPixelsSize ,0xffc2a77c) //102 129 NSTUB(GetVRAMVPixelsSize ,0xffc2a788) //102 128 130 NSTUB(GetZoomLensCurrentPoint ,0xffd0fcc0) //102 129 131 NSTUB(GetZoomLensCurrentPosition ,0xffde89dc) //102 -
branches/reyalp-ptp-live/platform/a650/sub/100d/stubs_entry.S
r1878 r1911 123 123 NSTUB(GetPropertyCase ,0xffc5aecc) //101 124 124 NSTUB(GetSystemTime ,0xffde6fb4) // 1 125 NSTUB(GetVRAMHPixelsSize ,0xffc2c9ec) //102 126 NSTUB(GetVRAMVPixelsSize ,0xffc2c9f8) //102 125 127 NSTUB(GetZoomLensCurrentPoint ,0xffd07444) //102 126 128 NSTUB(GiveSemaphore ,0xffc0ba5c) //112 -
branches/reyalp-ptp-live/platform/a720/sub/100c/stubs_entry.S
r1878 r1911 128 128 NSTUB(GetPropertyCase ,0xffc59c2c) //101 129 129 NSTUB(GetSystemTime ,0xffdd7efc) // 1 130 NSTUB(GetVRAMHPixelsSize ,0xffc2bbf8) //102 131 NSTUB(GetVRAMVPixelsSize ,0xffc2bc04) //102 130 132 NSTUB(GetZoomLensCurrentPoint ,0xffd02fdc) //102 131 133 NSTUB(GiveSemaphore ,0xffc0bb2c) //112 -
branches/reyalp-ptp-live/platform/a800/sub/100b/stubs_entry.S
r1878 r1911 136 136 NSTUB(GetPropertyCase ,0xffc6ba84) //102 137 137 NSTUB(GetSystemTime ,0xffe193fc) //101 138 NSTUB(GetVRAMHPixelsSize ,0xffcbf898) //102 139 NSTUB(GetVRAMVPixelsSize ,0xffcbf8a4) //102 138 140 NSTUB(GetZoomLensCurrentPoint ,0xffd151e8) //102 139 141 NSTUB(GetZoomLensCurrentPosition ,0xffe09db4) //102 -
branches/reyalp-ptp-live/platform/a800/sub/100c/stubs_entry.S
r1878 r1911 136 136 NSTUB(GetPropertyCase ,0xffc6ba84) //102 137 137 NSTUB(GetSystemTime ,0xffe19408) //101 138 NSTUB(GetVRAMHPixelsSize ,0xffcbf898) //102 139 NSTUB(GetVRAMVPixelsSize ,0xffcbf8a4) //102 138 140 NSTUB(GetZoomLensCurrentPoint ,0xffd151e8) //102 139 141 NSTUB(GetZoomLensCurrentPosition ,0xffe09db4) //102 -
branches/reyalp-ptp-live/platform/d10/sub/100a/stubs_entry.S
r1878 r1911 127 127 NSTUB(GetPropertyCase ,0xff871ccc) //102 128 128 NSTUB(GetSystemTime ,0xffa4861c) //101 129 NSTUB(GetVRAMHPixelsSize ,0xff839b9c) //102 130 NSTUB(GetVRAMVPixelsSize ,0xff839ba8) //102 129 131 NSTUB(GetZoomLensCurrentPoint ,0xff92ba1c) //102 130 132 NSTUB(GetZoomLensCurrentPosition ,0xffa3c378) //102 -
branches/reyalp-ptp-live/platform/g10/sub/102a/stubs_entry.S
r1878 r1911 126 126 NSTUB(GetPropertyCase ,0xff8777cc) //102 127 127 NSTUB(GetSystemTime ,0xffa688c4) //101 128 NSTUB(GetVRAMHPixelsSize ,0xff83ce54) //102 129 NSTUB(GetVRAMVPixelsSize ,0xff83ce60) //102 128 130 NSTUB(GetZoomLensCurrentPoint ,0xff93e7c8) //102 129 131 NSTUB(GetZoomLensCurrentPosition ,0xffa5dcb8) //102 -
branches/reyalp-ptp-live/platform/g10/sub/103b/stubs_entry.S
r1878 r1911 126 126 NSTUB(GetPropertyCase ,0xff8777cc) //102 127 127 NSTUB(GetSystemTime ,0xffa688c0) //101 128 NSTUB(GetVRAMHPixelsSize ,0xff83ce54) //102 129 NSTUB(GetVRAMVPixelsSize ,0xff83ce60) //102 128 130 NSTUB(GetZoomLensCurrentPoint ,0xff93e7c8) //102 129 131 NSTUB(GetZoomLensCurrentPosition ,0xffa5dcb4) //102 -
branches/reyalp-ptp-live/platform/g10/sub/104a/stubs_entry.S
r1878 r1911 126 126 NSTUB(GetPropertyCase ,0xff8777cc) //102 127 127 NSTUB(GetSystemTime ,0xffa688d4) //101 128 NSTUB(GetVRAMHPixelsSize ,0xff83ce54) //102 129 NSTUB(GetVRAMVPixelsSize ,0xff83ce60) //102 128 130 NSTUB(GetZoomLensCurrentPoint ,0xff93e7c8) //102 129 131 NSTUB(GetZoomLensCurrentPosition ,0xffa5dcc8) //102 -
branches/reyalp-ptp-live/platform/g11/sub/100f/stubs_entry.S
r1878 r1911 131 131 NSTUB(GetPropertyCase ,0xff88d5e0) //102 132 132 NSTUB(GetSystemTime ,0xffaa3490) //101 133 NSTUB(GetVRAMHPixelsSize ,0xff850ad8) //102 134 NSTUB(GetVRAMVPixelsSize ,0xff850ae4) //102 133 135 NSTUB(GetZoomLensCurrentPoint ,0xff95ed28) //102 134 136 NSTUB(GetZoomLensCurrentPosition ,0xffa9669c) //102 -
branches/reyalp-ptp-live/platform/g11/sub/100j/stubs_entry.S
r1878 r1911 131 131 NSTUB(GetPropertyCase ,0xff88d6b0) //102 132 132 NSTUB(GetSystemTime ,0xffaa3594) //101 133 NSTUB(GetVRAMHPixelsSize ,0xff850b08) //102 134 NSTUB(GetVRAMVPixelsSize ,0xff850b14) //102 133 135 NSTUB(GetZoomLensCurrentPoint ,0xff95ee0c) //102 134 136 NSTUB(GetZoomLensCurrentPosition ,0xffa967a0) //102 -
branches/reyalp-ptp-live/platform/g11/sub/100l/stubs_entry.S
r1878 r1911 132 132 NSTUB(GetPropertyCase ,0xff88d700) //102 133 133 NSTUB(GetSystemTime ,0xffaa3750) //101 134 NSTUB(GetVRAMHPixelsSize ,0xff850b08) //102 135 NSTUB(GetVRAMVPixelsSize ,0xff850b14) //102 134 136 NSTUB(GetZoomLensCurrentPoint ,0xff95efc8) //102 135 137 NSTUB(GetZoomLensCurrentPosition ,0xffa9695c) //102 -
branches/reyalp-ptp-live/platform/g12/lib.c
r1837 r1911 101 101 int vid_get_viewport_width() 102 102 { 103 if (shooting_get_prop(PROPCASE_SHOOTING_MODE) == 16908) // Stitch mode 103 if ((mode_get() & MODE_MASK) == MODE_PLAY) 104 { 105 return 360; 106 } 107 else if (shooting_get_prop(PROPCASE_SHOOTING_MODE) == 16908) // Stitch mode 104 108 { 105 109 return 180; … … 114 118 } 115 119 120 // viewport width offset table for each image size 121 // 0 = 4:3, 1 = 16:9, 2 = 3:2, 3 = 1:1, 4 = 4:5 122 static long vp_xo[5] = { 0, 0, 0, 44, 72 }; // should all be even values for edge overlay 123 116 124 int vid_get_viewport_xoffset() 117 125 { 118 if (shooting_get_prop(PROPCASE_SHOOTING_MODE) == 16908) // Stitch mode 119 { 120 return 0; 121 } 122 else 123 { 124 // viewport width offset table for each image size 125 // 0 = 4:3, 1 = 16:9, 2 = 3:2, 3 = 1:1, 4 = 4:5 126 static long vp_w[5] = { 0, 0, 0, 44, 72 }; // should all be even values for edge overlay 127 return vp_w[shooting_get_prop(PROPCASE_ASPECT_RATIO)]; 126 if ((mode_get() & MODE_MASK) == MODE_PLAY) 127 { 128 return 0; 129 } 130 else if (shooting_get_prop(PROPCASE_SHOOTING_MODE) == 16908) // Stitch mode 131 { 132 return 0; 133 } 134 else 135 { 136 return vp_xo[shooting_get_prop(PROPCASE_ASPECT_RATIO)]; 128 137 } 129 138 } … … 131 140 int vid_get_viewport_display_xoffset() 132 141 { 133 if (shooting_get_prop(PROPCASE_SHOOTING_MODE) == 16908) // Stitch mode 142 if ((mode_get() & MODE_MASK) == MODE_PLAY) 143 { 144 return 0; 145 } 146 else if (shooting_get_prop(PROPCASE_SHOOTING_MODE) == 16908) // Stitch mode 134 147 { 135 148 if (shooting_get_prop(PROPCASE_STITCH_DIRECTION) == 0) // Direction check … … 146 159 else 147 160 { 148 return vid_get_viewport_xoffset();161 return vp_xo[shooting_get_prop(PROPCASE_ASPECT_RATIO)]; 149 162 } 150 163 } … … 152 165 long vid_get_viewport_height() 153 166 { 154 if (shooting_get_prop(PROPCASE_SHOOTING_MODE) == 16908) // Stitch mode 167 if ((mode_get() & MODE_MASK) == MODE_PLAY) 168 { 169 return 240; 170 } 171 else if (shooting_get_prop(PROPCASE_SHOOTING_MODE) == 16908) // Stitch mode 155 172 { 156 173 return 120; … … 165 182 } 166 183 184 // viewport height offset table for each image size 185 // 0 = 4:3, 1 = 16:9, 2 = 3:2, 3 = 1:1, 4 = 4:5 186 static long vp_yo[5] = { 0, 30, 13, 0, 0 }; 187 167 188 int vid_get_viewport_yoffset() 168 189 { 169 if (shooting_get_prop(PROPCASE_SHOOTING_MODE) == 16908) // Stitch mode 170 { 171 return 0; 172 } 173 else 174 { 175 // viewport height offset table for each image size 176 // 0 = 4:3, 1 = 16:9, 2 = 3:2, 3 = 1:1, 4 = 4:5 177 static long vp_h[5] = { 0, 30, 13, 0, 0 }; 178 return vp_h[shooting_get_prop(PROPCASE_ASPECT_RATIO)]; 190 if ((mode_get() & MODE_MASK) == MODE_PLAY) 191 { 192 return 0; 193 } 194 else if (shooting_get_prop(PROPCASE_SHOOTING_MODE) == 16908) // Stitch mode 195 { 196 return 0; 197 } 198 else 199 { 200 return vp_yo[shooting_get_prop(PROPCASE_ASPECT_RATIO)]; 179 201 } 180 202 } … … 182 204 int vid_get_viewport_display_yoffset() 183 205 { 184 if (shooting_get_prop(PROPCASE_SHOOTING_MODE) == 16908) // Stitch mode 206 if ((mode_get() & MODE_MASK) == MODE_PLAY) 207 { 208 return 0; 209 } 210 else if (shooting_get_prop(PROPCASE_SHOOTING_MODE) == 16908) // Stitch mode 185 211 { 186 212 return 72; … … 188 214 else 189 215 { 190 return vid_get_viewport_yoffset();216 return vp_yo[shooting_get_prop(PROPCASE_ASPECT_RATIO)]; 191 217 } 192 218 } -
branches/reyalp-ptp-live/platform/g12/sub/100c/stubs_entry.S
r1878 r1911 135 135 NSTUB(GetPropertyCase ,0xff8954f0) //102 136 136 NSTUB(GetSystemTime ,0xffb08d38) //101 137 NSTUB(GetVRAMHPixelsSize ,0xff854320) //102 138 NSTUB(GetVRAMVPixelsSize ,0xff85432c) //102 137 139 NSTUB(GetZoomLensCurrentPoint ,0xff9819e0) //102 138 140 NSTUB(GetZoomLensCurrentPosition ,0xffaf6874) //102 -
branches/reyalp-ptp-live/platform/g12/sub/100e/stubs_entry.S
r1878 r1911 135 135 NSTUB(GetPropertyCase ,0xff8954f0) //102 136 136 NSTUB(GetSystemTime ,0xffb08ee8) //101 137 NSTUB(GetVRAMHPixelsSize ,0xff854320) //102 138 NSTUB(GetVRAMVPixelsSize ,0xff85432c) //102 137 139 NSTUB(GetZoomLensCurrentPoint ,0xff9819e0) //102 138 140 NSTUB(GetZoomLensCurrentPosition ,0xffaf6880) //102 -
branches/reyalp-ptp-live/platform/g12/sub/100f/stubs_entry.S
r1878 r1911 135 135 NSTUB(GetPropertyCase ,0xff8954f0) //102 136 136 NSTUB(GetSystemTime ,0xffb08ee8) //101 137 NSTUB(GetVRAMHPixelsSize ,0xff854320) //102 138 NSTUB(GetVRAMVPixelsSize ,0xff85432c) //102 137 139 NSTUB(GetZoomLensCurrentPoint ,0xff9819e0) //102 138 140 NSTUB(GetZoomLensCurrentPosition ,0xffaf6880) //102 -
branches/reyalp-ptp-live/platform/g12/sub/100g/stubs_entry.S
r1878 r1911 135 135 NSTUB(GetPropertyCase ,0xff8954f0) //102 136 136 NSTUB(GetSystemTime ,0xffb08ef4) //101 137 NSTUB(GetVRAMHPixelsSize ,0xff854320) //102 138 NSTUB(GetVRAMVPixelsSize ,0xff85432c) //102 137 139 NSTUB(GetZoomLensCurrentPoint ,0xff9819e0) //102 138 140 NSTUB(GetZoomLensCurrentPosition ,0xffaf6880) //102 -
branches/reyalp-ptp-live/platform/g1x/lib.c
r1878 r1911 100 100 int vid_get_viewport_width() 101 101 { 102 if (shooting_get_prop(PROPCASE_SHOOTING_MODE) == 16909) // Stitch mode 102 if ((mode_get() & MODE_MASK) == MODE_PLAY) 103 { 104 return 360; 105 } 106 else if (shooting_get_prop(PROPCASE_SHOOTING_MODE) == 16909) // Stitch mode 103 107 { 104 108 return 180; … … 115 119 int vid_get_viewport_display_xoffset() 116 120 { 117 if (shooting_get_prop(PROPCASE_SHOOTING_MODE) == 16909) // Stitch mode 121 if ((mode_get() & MODE_MASK) == MODE_PLAY) 122 { 123 return 0; 124 } 125 else if (shooting_get_prop(PROPCASE_SHOOTING_MODE) == 16909) // Stitch mode 118 126 { 119 127 if (shooting_get_prop(PROPCASE_STITCH_DIRECTION) == 0) // Direction check … … 139 147 long vid_get_viewport_height() 140 148 { 141 if (shooting_get_prop(PROPCASE_SHOOTING_MODE) == 16909) // Stitch mode 149 if ((mode_get() & MODE_MASK) == MODE_PLAY) 150 { 151 return 240; 152 } 153 else if (shooting_get_prop(PROPCASE_SHOOTING_MODE) == 16909) // Stitch mode 142 154 { 143 155 return 120; … … 154 166 int vid_get_viewport_yoffset() 155 167 { 156 if (shooting_get_prop(PROPCASE_SHOOTING_MODE) == 16909) // Stitch mode 168 if ((mode_get() & MODE_MASK) == MODE_PLAY) 169 { 170 return 0; 171 } 172 else if (shooting_get_prop(PROPCASE_SHOOTING_MODE) == 16909) // Stitch mode 157 173 { 158 174 return 0; … … 169 185 int vid_get_viewport_display_yoffset() 170 186 { 171 if (shooting_get_prop(PROPCASE_SHOOTING_MODE) == 16909) // Stitch mode 187 if ((mode_get() & MODE_MASK) == MODE_PLAY) 188 { 189 return 0; 190 } 191 else if (shooting_get_prop(PROPCASE_SHOOTING_MODE) == 16909) // Stitch mode 172 192 { 173 193 return 72; -
branches/reyalp-ptp-live/platform/g1x/sub/100e/stubs_entry.S
r1878 r1911 131 131 NSTUB(GetPropertyCase ,0xff08fa60) //102 132 132 NSTUB(GetSystemTime ,0xff3745f4) //101 133 NSTUB(GetVRAMHPixelsSize ,0xff047814) //102 134 NSTUB(GetVRAMVPixelsSize ,0xff047820) //102 133 135 NSTUB(GetZoomLensCurrentPoint ,0xff1c3ca4) //102 134 136 NSTUB(GetZoomLensCurrentPosition ,0xff360b28) //102 -
branches/reyalp-ptp-live/platform/g1x/sub/100f/stubs_entry.S
r1878 r1911 131 131 NSTUB(GetPropertyCase ,0xff08fa60) //102 132 132 NSTUB(GetSystemTime ,0xff3747c0) //101 133 NSTUB(GetVRAMHPixelsSize ,0xff047814) //102 134 NSTUB(GetVRAMVPixelsSize ,0xff047820) //102 133 135 NSTUB(GetZoomLensCurrentPoint ,0xff1c3ca4) //102 134 136 NSTUB(GetZoomLensCurrentPosition ,0xff360cf4) //102 -
branches/reyalp-ptp-live/platform/g9/sub/100d/stubs_entry.S
r1878 r1911 131 131 NSTUB(GetPropertyCase ,0xff86f768) //101 132 132 NSTUB(GetSystemTime ,0xffa47d60) // 1 133 NSTUB(GetVRAMHPixelsSize ,0xff83dedc) //102 134 NSTUB(GetVRAMVPixelsSize ,0xff83dee8) //102 133 135 NSTUB(GetZoomLensCurrentPoint ,0xff93a220) //102 134 136 NSTUB(GetZoomLensCurrentPosition ,0xffa3e5e8) //102 -
branches/reyalp-ptp-live/platform/g9/sub/100g/stubs_entry.S
r1878 r1911 131 131 NSTUB(GetPropertyCase ,0xff86f768) //101 132 132 NSTUB(GetSystemTime ,0xffa47dd0) // 1 133 NSTUB(GetVRAMHPixelsSize ,0xff83dedc) //102 134 NSTUB(GetVRAMVPixelsSize ,0xff83dee8) //102 133 135 NSTUB(GetZoomLensCurrentPoint ,0xff93a290) //102 134 136 NSTUB(GetZoomLensCurrentPosition ,0xffa3e658) //102 -
branches/reyalp-ptp-live/platform/g9/sub/100i/stubs_entry.S
r1878 r1911 123 123 NSTUB(GetPropertyCase ,0xff86f768) //101 124 124 NSTUB(GetSystemTime ,0xffa47df8) // 1 125 NSTUB(GetVRAMHPixelsSize ,0xff83dedc) //102 126 NSTUB(GetVRAMVPixelsSize ,0xff83dee8) //102 125 127 NSTUB(GetZoomLensCurrentPoint ,0xff93a29c) //102 126 128 NSTUB(GetZoomLensCurrentPosition ,0xffa3e680) //102 -
branches/reyalp-ptp-live/platform/ixus1000_sd4500/sub/100d/stubs_entry.S
r1878 r1911 133 133 NSTUB(GetPropertyCase ,0xff895dbc) //102 134 134 NSTUB(GetSystemTime ,0xffae56f0) //101 135 NSTUB(GetVRAMHPixelsSize ,0xff854000) //102 136 NSTUB(GetVRAMVPixelsSize ,0xff85400c) //102 135 137 NSTUB(GetZoomLensCurrentPoint ,0xff97ae10) //102 136 138 NSTUB(GetZoomLensCurrentPosition ,0xffacd184) //102 -
branches/reyalp-ptp-live/platform/ixus1000_sd4500/sub/100f/stubs_entry.S
r1878 r1911 133 133 NSTUB(GetPropertyCase ,0xff895dbc) //102 134 134 NSTUB(GetSystemTime ,0xffae56f4) //101 135 NSTUB(GetVRAMHPixelsSize ,0xff854000) //102 136 NSTUB(GetVRAMVPixelsSize ,0xff85400c) //102 135 137 NSTUB(GetZoomLensCurrentPoint ,0xff97ae10) //102 136 138 NSTUB(GetZoomLensCurrentPosition ,0xffacd188) //102 -
branches/reyalp-ptp-live/platform/ixus1000_sd4500/sub/102b/stubs_entry.S
r1878 r1911 133 133 NSTUB(GetPropertyCase ,0xff895de8) //102 134 134 NSTUB(GetSystemTime ,0xffae57e0) //101 135 NSTUB(GetVRAMHPixelsSize ,0xff854030) //102 136 NSTUB(GetVRAMVPixelsSize ,0xff85403c) //102 135 137 NSTUB(GetZoomLensCurrentPoint ,0xff97aec0) //102 136 138 NSTUB(GetZoomLensCurrentPosition ,0xffacd274) //102 -
branches/reyalp-ptp-live/platform/ixus100_sd780/sub/100b/stubs_entry.S
r1878 r1911 139 139 NSTUB(GetPropertyCase ,0xff86e284) //102 140 140 NSTUB(GetSystemTime ,0xffa3df98) //101 141 NSTUB(GetVRAMHPixelsSize ,0xff8b1568) //102 142 NSTUB(GetVRAMVPixelsSize ,0xff8b1574) //102 141 143 NSTUB(GetZoomLensCurrentPoint ,0xff916a6c) //102 142 144 NSTUB(GetZoomLensCurrentPosition ,0xffa31828) //102 -
branches/reyalp-ptp-live/platform/ixus100_sd780/sub/100c/stubs_entry.S
r1878 r1911 139 139 NSTUB(GetPropertyCase ,0xff86e284) //102 140 140 NSTUB(GetSystemTime ,0xffa3dfb4) //101 141 NSTUB(GetVRAMHPixelsSize ,0xff8b1568) //102 142 NSTUB(GetVRAMVPixelsSize ,0xff8b1574) //102 141 143 NSTUB(GetZoomLensCurrentPoint ,0xff916a6c) //102 142 144 NSTUB(GetZoomLensCurrentPosition ,0xffa31844) //102 -
branches/reyalp-ptp-live/platform/ixus120_sd940/sub/100e/stubs_entry.S
r1878 r1911 129 129 NSTUB(GetPropertyCase ,0xff884948) //102 130 130 NSTUB(GetSystemTime ,0xffa69cd8) //101 131 NSTUB(GetVRAMHPixelsSize ,0xff8da2c8) //102 132 NSTUB(GetVRAMVPixelsSize ,0xff8da2d4) //102 131 133 NSTUB(GetZoomLensCurrentPoint ,0xff93a78c) //102 132 134 NSTUB(GetZoomLensCurrentPosition ,0xffa5d8e8) //102 -
branches/reyalp-ptp-live/platform/ixus120_sd940/sub/101a/stubs_entry.S
r1878 r1911 129 129 NSTUB(GetPropertyCase ,0xff884948) //102 130 130 NSTUB(GetSystemTime ,0xffa69d0c) //101 131 NSTUB(GetVRAMHPixelsSize ,0xff8da2e4) //102 132 NSTUB(GetVRAMVPixelsSize ,0xff8da2f0) //102 131 133 NSTUB(GetZoomLensCurrentPoint ,0xff93a7a8) //102 132 134 NSTUB(GetZoomLensCurrentPosition ,0xffa5d91c) //102 -
branches/reyalp-ptp-live/platform/ixus120_sd940/sub/102c/stubs_entry.S
r1878 r1911 129 129 NSTUB(GetPropertyCase ,0xff884948) //102 130 130 NSTUB(GetSystemTime ,0xffa69d30) //101 131 NSTUB(GetVRAMHPixelsSize ,0xff8da2e4) //102 132 NSTUB(GetVRAMVPixelsSize ,0xff8da2f0) //102 131 133 NSTUB(GetZoomLensCurrentPoint ,0xff93a7a8) //102 132 134 NSTUB(GetZoomLensCurrentPosition ,0xffa5d940) //102 -
branches/reyalp-ptp-live/platform/ixus120_sd940/sub/103b/stubs_entry.S
r1878 r1911 129 129 NSTUB(GetPropertyCase ,0xff884954) //102 130 130 NSTUB(GetSystemTime ,0xffa69d3c) //101 131 NSTUB(GetVRAMHPixelsSize ,0xff8da2f0) //102 132 NSTUB(GetVRAMVPixelsSize ,0xff8da2fc) //102 131 133 NSTUB(GetZoomLensCurrentPoint ,0xff93a7b4) //102 132 134 NSTUB(GetZoomLensCurrentPosition ,0xffa5d94c) //102 -
branches/reyalp-ptp-live/platform/ixus120_sd940/sub/103c/stubs_entry.S
r1878 r1911 129 129 NSTUB(GetPropertyCase ,0xff8849a4) //102 130 130 NSTUB(GetSystemTime ,0xffa69ef8) //101 131 NSTUB(GetVRAMHPixelsSize ,0xff8da340) //102 132 NSTUB(GetVRAMVPixelsSize ,0xff8da34c) //102 131 133 NSTUB(GetZoomLensCurrentPoint ,0xff93a970) //102 132 134 NSTUB(GetZoomLensCurrentPosition ,0xffa5db08) //102 -
branches/reyalp-ptp-live/platform/ixus200_sd980/lib.c
r1212 r1911 45 45 } 46 46 47 int get_flash_params_count(void){ 48 return 120; 47 int get_flash_params_count(void) 48 { 49 return 0x84; // Found @0xff979b5c 49 50 } 50 51 -
branches/reyalp-ptp-live/platform/ixus200_sd980/sub/101c/capt_seq.c
r1212 r1911 4 4 #include "conf.h" 5 5 6 static long *nrflag = (long*)0x6cb4; 6 //static long *nrflag = (long*)0x6cb4; 7 static long *nrflag = (long*)(0x6cb8-0x08); // Found @ ff94ff04 & ff94ff20 7 8 8 9 #include "../../../generic/capt_seq.c" -
branches/reyalp-ptp-live/platform/ixus200_sd980/sub/101c/lib.c
r1877 r1911 61 61 char *camera_jpeg_count_str() 62 62 { 63 return (char*)0x4C138; 63 // return (char*)0x4C138; 64 return (char*)0x00084ca4; // Found @0xff9e8aa8 64 65 } 65 66 -
branches/reyalp-ptp-live/platform/ixus200_sd980/sub/101c/stubs_entry.S
r1878 r1911 16 16 // Stubs below should be checked. Stub not matched 100%, or difference found to current 'stubs_entry_2.S' 17 17 // Name Address Rule % Comp to stubs_entry_2.S 18 //NSTUB(SetScriptMode ,0xff89074c) //101 *** != 0x0ff810f419 18 NSTUB(kbd_pwr_off ,0xff85ae98) // 2 64% 20 19 // ERROR: kbd_pwr_on is not found. //--- --- *** != 0x00000000 … … 55 54 DEF(levent_table ,0xffb7a2a0) // Found @0xffb7a2a0 56 55 DEF(FlashParamsTable ,0xffbdab94) // Found @0xffbdab94 57 //DEF(movie_status ,0x000067e0) // Found @0xff94ac20, ** != ** stubs_min = 0x00005430 (0x53F8+0x38) 56 DEF(movie_status ,0x000067e0) // Found @0xff94ac20 58 57 DEF(full_screen_refresh ,0x0001b2dc) // Found @0xff9f751c 59 58 DEF(canon_menu_active ,0x00002ec8) // Found @0xff889704 … … 68 67 DEF(zoom_busy ,0x0000670c) // Found @0xff946e00 69 68 DEF(focus_busy ,0x00006608) // Found @0xff941f28 70 //DEF(recreview_hold ,0x00003818) // Found @0xff89a778, ** != ** stubs_min = 0x000077c4 (0x76F4+0xD0) 69 DEF(recreview_hold ,0x00003818) // Found @0xff89a778 71 70 72 71 // Values below go in 'lib.c': … … 155 154 NSTUB(GetPropertyCase ,0xff888b48) //102 156 155 NSTUB(GetSystemTime ,0xffa9ee08) //101 156 NSTUB(GetVRAMHPixelsSize ,0xff8e1e14) //102 157 NSTUB(GetVRAMVPixelsSize ,0xff8e1e20) //102 157 158 NSTUB(GetZoomLensCurrentPoint ,0xff947174) //102 158 159 NSTUB(GetZoomLensCurrentPosition ,0xffa904f8) //102 … … 194 195 NSTUB(SetParameterData ,0xff979a8c) //101 195 196 NSTUB(SetPropertyCase ,0xff888a44) //102 197 NSTUB(SetScriptMode ,0xff89074c) //101 196 198 NSTUB(SleepTask ,0xff83865c) //101 197 199 NSTUB(TakeSemaphore ,0xff838324) //101 -
branches/reyalp-ptp-live/platform/ixus200_sd980/sub/101c/stubs_entry_2.S
r1641 r1911 3 3 4 4 // Override stubs_entry.S 5 NHSTUB(SetScriptMode, 0xFF810F4)6 5 NHSTUB(kbd_pwr_on, NULL_SUB) 7 6 -
branches/reyalp-ptp-live/platform/ixus200_sd980/sub/101c/stubs_min.S
r1641 r1911 1 1 #include "stubs_asm.h" 2 2 3 DEF(movie_status, 0x53F8 + 0x38) // routine @ FF94A89C4 DEF(recreview_hold, 0x76F4 + 0xD0) // routine @ FF97B4185 3 DEF(enabled_refresh_physical_screen, 0x1B34C + 0x20) // routine @ FF9F8694 -
branches/reyalp-ptp-live/platform/ixus200_sd980/sub/101d/capt_seq.c
r1376 r1911 4 4 #include "conf.h" 5 5 6 static long *nrflag = (long*)0x6cb4; 6 //static long *nrflag = (long*)0x6cb4; 7 static long *nrflag = (long*)(0x6cb8-0x08); // Found @ ff9500c0 & ff9500dc 7 8 8 9 #include "../../../generic/capt_seq.c" -
branches/reyalp-ptp-live/platform/ixus200_sd980/sub/101d/lib.c
r1877 r1911 61 61 char *camera_jpeg_count_str() 62 62 { 63 return (char*)0x4C138; 63 // return (char*)0x4C138; 64 return (char*)0x00084ca4; 64 65 } 65 66 -
branches/reyalp-ptp-live/platform/ixus200_sd980/sub/101d/stubs_entry.S
r1878 r1911 67 67 DEF(zoom_busy ,0x0000670c) // Found @0xff946fbc 68 68 DEF(focus_busy ,0x00006608) // Found @0xff9420e4 69 //DEF(recreview_hold ,0x00003818) // Found @0xff89a7c8, ** != ** stubs_min = 0x000077c4 (0x76F4+0xD0) 69 DEF(recreview_hold ,0x00003818) // Found @0xff89a7c8 70 70 71 71 // Values below go in 'lib.c': … … 154 154 NSTUB(GetPropertyCase ,0xff888b98) //102 155 155 NSTUB(GetSystemTime ,0xffa9efc4) //101 156 NSTUB(GetVRAMHPixelsSize ,0xff8e1e64) //102 157 NSTUB(GetVRAMVPixelsSize ,0xff8e1e70) //102 156 158 NSTUB(GetZoomLensCurrentPoint ,0xff947330) //102 157 159 NSTUB(GetZoomLensCurrentPosition ,0xffa906b4) //102 -
branches/reyalp-ptp-live/platform/ixus200_sd980/sub/101d/stubs_min.S
r1641 r1911 1 1 #include "stubs_asm.h" 2 2 3 DEF(recreview_hold, 0x76F4 + 0xD0) // routine @ FF97B4184 3 DEF(enabled_refresh_physical_screen, 0x1B34C + 0x20) // routine @ FF9F8694 -
branches/reyalp-ptp-live/platform/ixus220_elph300hs/sub/100c/stubs_entry.S
r1878 r1911 135 135 NSTUB(GetPropertyCase ,0xff895e60) //102 136 136 NSTUB(GetSystemTime ,0xffaf2534) //101 137 NSTUB(GetVRAMHPixelsSize ,0xff856300) //102 138 NSTUB(GetVRAMVPixelsSize ,0xff85630c) //102 137 139 NSTUB(GetZoomLensCurrentPoint ,0xff9801ec) //102 138 140 NSTUB(GetZoomLensCurrentPosition ,0xffadcc9c) //102 -
branches/reyalp-ptp-live/platform/ixus220_elph300hs/sub/101a/stubs_entry.S
r1878 r1911 135 135 NSTUB(GetPropertyCase ,0xff895e60) //102 136 136 NSTUB(GetSystemTime ,0xffaf254c) //101 137 NSTUB(GetVRAMHPixelsSize ,0xff856300) //102 138 NSTUB(GetVRAMVPixelsSize ,0xff85630c) //102 137 139 NSTUB(GetZoomLensCurrentPoint ,0xff9801ec) //102 138 140 NSTUB(GetZoomLensCurrentPosition ,0xffadcc9c) //102 -
branches/reyalp-ptp-live/platform/ixus220_elph300hs/sub/101c/stubs_entry.S
r1878 r1911 135 135 NSTUB(GetPropertyCase ,0xff895e60) //102 136 136 NSTUB(GetSystemTime ,0xffaf2560) //101 137 NSTUB(GetVRAMHPixelsSize ,0xff856300) //102 138 NSTUB(GetVRAMVPixelsSize ,0xff85630c) //102 137 139 NSTUB(GetZoomLensCurrentPoint ,0xff9801ec) //102 138 140 NSTUB(GetZoomLensCurrentPosition ,0xffadcc9c) //102 -
branches/reyalp-ptp-live/platform/ixus220_elph300hs/sub/101g/stubs_entry.S
r1878 r1911 135 135 NSTUB(GetPropertyCase ,0xff895e60) //102 136 136 NSTUB(GetSystemTime ,0xffaf2594) //101 137 NSTUB(GetVRAMHPixelsSize ,0xff856300) //102 138 NSTUB(GetVRAMVPixelsSize ,0xff85630c) //102 137 139 NSTUB(GetZoomLensCurrentPoint ,0xff9801ec) //102 138 140 NSTUB(GetZoomLensCurrentPosition ,0xffadccd0) //102 -
branches/reyalp-ptp-live/platform/ixus230_elph310hs/sub/100b/stubs_entry.S
r1878 r1911 134 134 NSTUB(GetPropertyCase ,0xff08a35c) //102 135 135 NSTUB(GetSystemTime ,0xff2efd8c) //101 136 NSTUB(GetVRAMHPixelsSize ,0xff046c94) //102 137 NSTUB(GetVRAMVPixelsSize ,0xff046ca0) //102 136 138 NSTUB(GetZoomLensCurrentPoint ,0xff17f8b4) //102 137 139 NSTUB(GetZoomLensCurrentPosition ,0xff2dbcd8) //102 -
branches/reyalp-ptp-live/platform/ixus300_sd4000/sub/100d/stubs_entry.S
r1878 r1911 142 142 NSTUB(GetPropertyCase ,0xff88f660) //102 143 143 NSTUB(GetSystemTime ,0xffab8d48) //101 144 NSTUB(GetVRAMHPixelsSize ,0xff851900) //102 145 NSTUB(GetVRAMVPixelsSize ,0xff85190c) //102 144 146 NSTUB(GetZoomLensCurrentPoint ,0xff965e54) //102 145 147 NSTUB(GetZoomLensCurrentPosition ,0xffaa9298) //102 -
branches/reyalp-ptp-live/platform/ixus310_elph500hs/lib.c
r1837 r1911 95 95 int vid_get_viewport_width() 96 96 { 97 // viewport width table for each image size 98 // 0 = 4:3, 1 = 16:9, 2 = 3:2, 3 = 1:1 99 static long vp_w[5] = { 360, 480, 408, 272 }; 100 return vp_w[shooting_get_prop(PROPCASE_ASPECT_RATIO)]; 97 if ((mode_get() & MODE_MASK) == MODE_PLAY) 98 { 99 return 480; 100 } 101 else 102 { 103 // viewport width table for each image size 104 // 0 = 4:3, 1 = 16:9, 2 = 3:2, 3 = 1:1 105 static long vp_w[5] = { 360, 480, 408, 272 }; 106 return vp_w[shooting_get_prop(PROPCASE_ASPECT_RATIO)]; 107 } 101 108 } 102 109 103 110 int vid_get_viewport_display_xoffset() 104 111 { 105 // viewport width offset table for each image size 106 // 0 = 4:3, 1 = 16:9, 2 = 3:2, 3 = 1:1 107 static long vp_w[5] = { 60, 0, 36, 104 }; // should all be even values for edge overlay 108 return vp_w[shooting_get_prop(PROPCASE_ASPECT_RATIO)]; 112 if ((mode_get() & MODE_MASK) == MODE_PLAY) 113 { 114 return 0; 115 } 116 else 117 { 118 // viewport width offset table for each image size 119 // 0 = 4:3, 1 = 16:9, 2 = 3:2, 3 = 1:1 120 static long vp_w[5] = { 60, 0, 36, 104 }; // should all be even values for edge overlay 121 return vp_w[shooting_get_prop(PROPCASE_ASPECT_RATIO)]; 122 } 109 123 } 110 124 -
branches/reyalp-ptp-live/platform/ixus310_elph500hs/sub/100a/stubs_entry.S
r1878 r1911 130 130 NSTUB(GetPropertyCase ,0xff087d48) //102 131 131 NSTUB(GetSystemTime ,0xff30fb2c) //101 132 NSTUB(GetVRAMHPixelsSize ,0xff045a10) //102 133 NSTUB(GetVRAMVPixelsSize ,0xff045a1c) //102 132 134 NSTUB(GetZoomLensCurrentPoint ,0xff179f70) //102 133 135 NSTUB(GetZoomLensCurrentPosition ,0xff2f9ac8) //102 -
branches/reyalp-ptp-live/platform/ixus310_elph500hs/sub/101a/stubs_entry.S
r1878 r1911 130 130 NSTUB(GetPropertyCase ,0xff087d48) //102 131 131 NSTUB(GetSystemTime ,0xff30fb44) //101 132 NSTUB(GetVRAMHPixelsSize ,0xff045a10) //102 133 NSTUB(GetVRAMVPixelsSize ,0xff045a1c) //102 132 134 NSTUB(GetZoomLensCurrentPoint ,0xff179f70) //102 133 135 NSTUB(GetZoomLensCurrentPosition ,0xff2f9ac8) //102 -
branches/reyalp-ptp-live/platform/ixus310_elph500hs/sub/101c/stubs_entry.S
r1878 r1911 130 130 NSTUB(GetPropertyCase ,0xff087d48) //102 131 131 NSTUB(GetSystemTime ,0xff30fb3c) //101 132 NSTUB(GetVRAMHPixelsSize ,0xff045a10) //102 133 NSTUB(GetVRAMVPixelsSize ,0xff045a1c) //102 132 134 NSTUB(GetZoomLensCurrentPoint ,0xff179f70) //102 133 135 NSTUB(GetZoomLensCurrentPosition ,0xff2f9ac8) //102 -
branches/reyalp-ptp-live/platform/ixus80_sd1100/sub/100c/stubs_entry.S
r1878 r1911 6 6 // Firmware Ver GM1.00C 7 7 // Possible corrupt firmware dump - file size to small for start address 0xff810000 8 // file size = 3.06MB, should be 7.94MB9 // C ould not find Camera name - possible corrupt firmware dump8 // file size = 7.92MB, should be 7.94MB 9 // Canon DIGITAL IXUS 82 IS 10 10 11 11 // Values for makefile.inc 12 12 // PLATFORMOSVER = 23 13 // PLATFORMID = 12676 (0x3184) // Found @ 0xfffe0130 13 14 // MAXRAMADDR = 0x01ffffff 15 // KEYSYS = d3enc // Found @ 0xffff3308 16 // NEED_ENCODED_DISKBOOT = 1 // Found @ 0xffff32e8 14 17 15 18 // Stubs below should be checked. Stub not matched 100%, or difference found to current 'stubs_entry_2.S' … … 34 37 DEF(zoom_status ,0x0000d1cc) // Found @0xffa38f24 35 38 DEF(some_flag_for_af_scan ,0x0000cf50) // Found @0xffa24144 39 // focus_len_table contains zoom focus lengths for use in 'get_focal_length' (main.c). 40 // each entry contains 3 int value(s), the first is the zoom focus length. 41 // there are 7 entries in the table - set NUM_FL to 7 42 DEF(focus_len_table ,0xfffe297c) // Found @0xfffe297c 36 43 DEF(zoom_busy ,0x000085f0) // Found @0xff92ee60 37 44 //DEF(focus_busy ,0x000084fc) // Found @0xff92aa0c, ** != ** stubs_min = 0x00008578 (0x8578) … … 122 129 NSTUB(GetPropertyCase ,0xff86cd80) //102 123 130 NSTUB(GetSystemTime ,0xffa27044) //101 131 NSTUB(GetVRAMHPixelsSize ,0xff8c5d1c) //102 132 NSTUB(GetVRAMVPixelsSize ,0xff8c5d28) //102 124 133 NSTUB(GetZoomLensCurrentPoint ,0xff92f1c4) //102 125 134 NSTUB(GetZoomLensCurrentPosition ,0xffa1d084) //102 -
branches/reyalp-ptp-live/platform/ixus80_sd1100/sub/101a/stubs_entry.S
r1878 r1911 127 127 NSTUB(GetPropertyCase ,0xff86cd80) //102 128 128 NSTUB(GetSystemTime ,0xffa27040) //101 129 NSTUB(GetVRAMHPixelsSize ,0xff8c5d1c) //102 130 NSTUB(GetVRAMVPixelsSize ,0xff8c5d28) //102 129 131 NSTUB(GetZoomLensCurrentPoint ,0xff92f1c4) //102 130 132 NSTUB(GetZoomLensCurrentPosition ,0xffa1d080) //102 -
branches/reyalp-ptp-live/platform/ixus85_sd770/sub/100a/stubs_entry.S
r1878 r1911 131 131 NSTUB(GetPropertyCase ,0xff86cddc) //102 132 132 NSTUB(GetSystemTime ,0xffa291d0) //101 133 NSTUB(GetVRAMHPixelsSize ,0xff8c64c0) //102 134 NSTUB(GetVRAMVPixelsSize ,0xff8c64cc) //102 133 135 NSTUB(GetZoomLensCurrentPoint ,0xff930564) //102 134 136 NSTUB(GetZoomLensCurrentPosition ,0xffa1f220) //102 -
branches/reyalp-ptp-live/platform/ixus860_sd870/sub/100c/stubs_entry.S
r1878 r1911 125 125 NSTUB(GetPropertyCase ,0xff869470) //101 126 126 NSTUB(GetSystemTime ,0xffa1d890) // 1 127 NSTUB(GetVRAMHPixelsSize ,0xff8c0e50) //102 128 NSTUB(GetVRAMVPixelsSize ,0xff8c0e5c) //102 127 129 NSTUB(GetZoomLensCurrentPoint ,0xff928038) //102 128 130 NSTUB(GetZoomLensCurrentPosition ,0xffa14b84) //102 -
branches/reyalp-ptp-live/platform/ixus870_sd880/sub/100e/stubs_entry.S
r1878 r1911 121 121 NSTUB(GetPropertyCase ,0xff8717a8) //102 122 122 NSTUB(GetSystemTime ,0xffa3d900) //101 123 NSTUB(GetVRAMHPixelsSize ,0xff8c415c) //102 124 NSTUB(GetVRAMVPixelsSize ,0xff8c4168) //102 123 125 NSTUB(GetZoomLensCurrentPoint ,0xff92b9c8) //102 124 126 NSTUB(GetZoomLensCurrentPosition ,0xffa337e0) //102 -
branches/reyalp-ptp-live/platform/ixus870_sd880/sub/101a/stubs_entry.S
r1878 r1911 122 122 NSTUB(GetPropertyCase ,0xff8717a8) //102 123 123 NSTUB(GetSystemTime ,0xffa3d910) //101 124 NSTUB(GetVRAMHPixelsSize ,0xff8c4160) //102 125 NSTUB(GetVRAMVPixelsSize ,0xff8c416c) //102 124 126 NSTUB(GetZoomLensCurrentPoint ,0xff92b9cc) //102 125 127 NSTUB(GetZoomLensCurrentPosition ,0xffa337f0) //102 -
branches/reyalp-ptp-live/platform/ixus870_sd880/sub/102b/stubs_entry.S
r1878 r1911 122 122 NSTUB(GetPropertyCase ,0xff8717a8) //102 123 123 NSTUB(GetSystemTime ,0xffa3d910) //101 124 NSTUB(GetVRAMHPixelsSize ,0xff8c4160) //102 125 NSTUB(GetVRAMVPixelsSize ,0xff8c416c) //102 124 126 NSTUB(GetZoomLensCurrentPoint ,0xff92b9cc) //102 125 127 NSTUB(GetZoomLensCurrentPosition ,0xffa337f0) //102 -
branches/reyalp-ptp-live/platform/ixus90_sd790/sub/100c/stubs_entry.S
r1878 r1911 121 121 NSTUB(GetPropertyCase ,0xff86d25c) //102 122 122 NSTUB(GetSystemTime ,0xffa2d21c) //101 123 NSTUB(GetVRAMHPixelsSize ,0xff8c8aec) //102 124 NSTUB(GetVRAMVPixelsSize ,0xff8c8af8) //102 123 125 NSTUB(GetZoomLensCurrentPoint ,0xff932b74) //102 124 126 NSTUB(GetZoomLensCurrentPosition ,0xffa2326c) //102 -
branches/reyalp-ptp-live/platform/ixus90_sd790/sub/100d/stubs_entry.S
r1878 r1911 121 121 NSTUB(GetPropertyCase ,0xff86d25c) //102 122 122 NSTUB(GetSystemTime ,0xffa2d218) //101 123 NSTUB(GetVRAMHPixelsSize ,0xff8c8aec) //102 124 NSTUB(GetVRAMVPixelsSize ,0xff8c8af8) //102 123 125 NSTUB(GetZoomLensCurrentPoint ,0xff932b74) //102 124 126 NSTUB(GetZoomLensCurrentPosition ,0xffa23268) //102 -
branches/reyalp-ptp-live/platform/ixus95_sd1200/sub/100c/stubs_entry.S
r1878 r1911 137 137 NSTUB(GetPropertyCase ,0xffc5a2e8) //102 138 138 NSTUB(GetSystemTime ,0xffded940) //101 139 NSTUB(GetVRAMHPixelsSize ,0xffc966a8) //102 140 NSTUB(GetVRAMVPixelsSize ,0xffc966b4) //102 139 141 NSTUB(GetZoomLensCurrentPoint ,0xffcf4ad4) //102 140 142 NSTUB(GetZoomLensCurrentPosition ,0xffde56b4) //102 -
branches/reyalp-ptp-live/platform/ixus960_sd950/sub/100d/stubs_entry.S
r1878 r1911 125 125 NSTUB(GetPropertyCase ,0xff8697f4) //101 126 126 NSTUB(GetSystemTime ,0xffa238c0) // 1 127 NSTUB(GetVRAMHPixelsSize ,0xff8c2660) //102 128 NSTUB(GetVRAMVPixelsSize ,0xff8c266c) //102 127 129 NSTUB(GetZoomLensCurrentPoint ,0xff92a680) //102 128 130 NSTUB(GetZoomLensCurrentPosition ,0xffa1abc8) //102 -
branches/reyalp-ptp-live/platform/ixus970_sd890/sub/100b/stubs_entry.S
r1878 r1911 126 126 NSTUB(GetPropertyCase ,0xff86d008) //102 127 127 NSTUB(GetSystemTime ,0xffa2e488) //101 128 NSTUB(GetVRAMHPixelsSize ,0xff8c8598) //102 129 NSTUB(GetVRAMVPixelsSize ,0xff8c85a4) //102 128 130 NSTUB(GetZoomLensCurrentPoint ,0xff932dec) //102 129 131 NSTUB(GetZoomLensCurrentPosition ,0xffa244d8) //102 -
branches/reyalp-ptp-live/platform/ixus970_sd890/sub/100c/stubs_entry.S
r1878 r1911 126 126 NSTUB(GetPropertyCase ,0xff86d008) //102 127 127 NSTUB(GetSystemTime ,0xffa2e488) //101 128 NSTUB(GetVRAMHPixelsSize ,0xff8c8598) //102 129 NSTUB(GetVRAMVPixelsSize ,0xff8c85a4) //102 128 130 NSTUB(GetZoomLensCurrentPoint ,0xff932dec) //102 129 131 NSTUB(GetZoomLensCurrentPosition ,0xffa244d8) //102 -
branches/reyalp-ptp-live/platform/ixus970_sd890/sub/100f/stubs_entry.S
r1878 r1911 126 126 NSTUB(GetPropertyCase ,0xff86cf8c) //102 127 127 NSTUB(GetSystemTime ,0xffa2e3f8) //101 128 NSTUB(GetVRAMHPixelsSize ,0xff8c851c) //102 129 NSTUB(GetVRAMVPixelsSize ,0xff8c8528) //102 128 130 NSTUB(GetZoomLensCurrentPoint ,0xff932d74) //102 129 131 NSTUB(GetZoomLensCurrentPosition ,0xffa24448) //102 -
branches/reyalp-ptp-live/platform/ixus980_sd990/sub/100e/stubs_entry.S
r1878 r1911 127 127 NSTUB(GetPropertyCase ,0xff876358) //102 128 128 NSTUB(GetSystemTime ,0xffa49a98) //101 129 NSTUB(GetVRAMHPixelsSize ,0xff83c2a8) //102 130 NSTUB(GetVRAMVPixelsSize ,0xff83c2b4) //102 129 131 NSTUB(GetZoomLensCurrentPoint ,0xff933afc) //102 130 132 NSTUB(GetZoomLensCurrentPosition ,0xffa4059c) //102 -
branches/reyalp-ptp-live/platform/ixus980_sd990/sub/101b/stubs_entry.S
r1878 r1911 127 127 NSTUB(GetPropertyCase ,0xff876358) //102 128 128 NSTUB(GetSystemTime ,0xffa49a98) //101 129 NSTUB(GetVRAMHPixelsSize ,0xff83c2a8) //102 130 NSTUB(GetVRAMVPixelsSize ,0xff83c2b4) //102 129 131 NSTUB(GetZoomLensCurrentPoint ,0xff933afc) //102 130 132 NSTUB(GetZoomLensCurrentPosition ,0xffa4059c) //102 -
branches/reyalp-ptp-live/platform/s100/sub/100d/stubs_entry.S
r1878 r1911 134 134 NSTUB(GetPropertyCase ,0xff091950) //102 135 135 NSTUB(GetSystemTime ,0xff37445c) //101 136 NSTUB(GetVRAMHPixelsSize ,0xff048f34) //102 137 NSTUB(GetVRAMVPixelsSize ,0xff048f40) //102 136 138 NSTUB(GetZoomLensCurrentPoint ,0xff1c6590) //102 137 139 NSTUB(GetZoomLensCurrentPosition ,0xff35f990) //102 -
branches/reyalp-ptp-live/platform/s100/sub/100e/stubs_entry.S
r1878 r1911 134 134 NSTUB(GetPropertyCase ,0xff091950) //102 135 135 NSTUB(GetSystemTime ,0xff374464) //101 136 NSTUB(GetVRAMHPixelsSize ,0xff048f34) //102 137 NSTUB(GetVRAMVPixelsSize ,0xff048f40) //102 136 138 NSTUB(GetZoomLensCurrentPoint ,0xff1c6590) //102 137 139 NSTUB(GetZoomLensCurrentPosition ,0xff35f998) //102 -
branches/reyalp-ptp-live/platform/s100/sub/101a/stubs_entry.S
r1878 r1911 134 134 NSTUB(GetPropertyCase ,0xff091950) //102 135 135 NSTUB(GetSystemTime ,0xff374464) //101 136 NSTUB(GetVRAMHPixelsSize ,0xff048f34) //102 137 NSTUB(GetVRAMVPixelsSize ,0xff048f40) //102 136 138 NSTUB(GetZoomLensCurrentPoint ,0xff1c6590) //102 137 139 NSTUB(GetZoomLensCurrentPosition ,0xff35f998) //102 -
branches/reyalp-ptp-live/platform/s5is/sub/101a/stubs_entry.S
r1878 r1911 127 127 NSTUB(GetPropertyCase ,0xff874864) //101 128 128 NSTUB(GetSystemTime ,0xffa4126c) // 1 129 NSTUB(GetVRAMHPixelsSize ,0xff8412f0) //102 130 NSTUB(GetVRAMVPixelsSize ,0xff8412fc) //102 129 131 NSTUB(GiveSemaphore ,0xff81b930) //112 130 132 NSTUB(IsStrobeChargeCompleted ,0xff8db5fc) //102 -
branches/reyalp-ptp-live/platform/s5is/sub/101b/stubs_entry.S
r1878 r1911 127 127 NSTUB(GetPropertyCase ,0xff87479c) //101 128 128 NSTUB(GetSystemTime ,0xffa411a4) // 1 129 NSTUB(GetVRAMHPixelsSize ,0xff841228) //102 130 NSTUB(GetVRAMVPixelsSize ,0xff841234) //102 129 131 NSTUB(GiveSemaphore ,0xff81b868) //112 130 132 NSTUB(IsStrobeChargeCompleted ,0xff8db534) //102 -
branches/reyalp-ptp-live/platform/s90/sub/100c/stubs_entry.S
r1878 r1911 19 19 NSTUB(GetFocusLensSubjectDistance ,0xff958928) // 1 93% 20 20 //NSTUB(GetPropertyCase ,0xff88c960) // 5 *** != 0xff88ca64 21 //NSTUB(GetVRAMHPixelsSize ,0xffafb0ec) //102 *** != 0xff84f110 22 //NSTUB(GetVRAMVPixelsSize ,0xffaff288) // 1 *** != 0xff84f11c 21 23 NSTUB(IsStrobeChargeCompleted ,0xff8d8710) // 1 96% 22 24 NSTUB(MoveFocusLensToDistance ,0xffafbcf0) // 1 68% -
branches/reyalp-ptp-live/platform/s90/sub/100c/stubs_entry_2.S
r1641 r1911 19 19 NHSTUB(UnRegisterEvntProc, 0xFF888C68) 20 20 NHSTUB(closefastdir, 0xFFA7D5D0) 21 22 // these are overridden because we don't have a correct full dump for this cam 23 NHSTUB(GetVRAMHPixelsSize, 0xFF84F110) 24 NHSTUB(GetVRAMVPixelsSize, 0xFF84F11C) -
branches/reyalp-ptp-live/platform/s90/sub/101a/stubs_entry.S
r1878 r1911 126 126 NSTUB(GetPropertyCase ,0xff88ca90) //102 127 127 NSTUB(GetSystemTime ,0xffa9d214) //101 128 NSTUB(GetVRAMHPixelsSize ,0xff84f110) //102 129 NSTUB(GetVRAMVPixelsSize ,0xff84f11c) //102 128 130 NSTUB(GetZoomLensCurrentPoint ,0xff95da40) //102 129 131 NSTUB(GetZoomLensCurrentPosition ,0xffa90e60) //102 -
branches/reyalp-ptp-live/platform/s90/sub/101c/stubs_entry.S
r1878 r1911 126 126 NSTUB(GetPropertyCase ,0xff88cae0) //102 127 127 NSTUB(GetSystemTime ,0xffa9d3d0) //101 128 NSTUB(GetVRAMHPixelsSize ,0xff84f110) //102 129 NSTUB(GetVRAMVPixelsSize ,0xff84f11c) //102 128 130 NSTUB(GetZoomLensCurrentPoint ,0xff95dbfc) //102 129 131 NSTUB(GetZoomLensCurrentPosition ,0xffa9101c) //102 -
branches/reyalp-ptp-live/platform/s95/sub/100e/stubs_entry.S
r1878 r1911 135 135 NSTUB(GetPropertyCase ,0xff896414) //102 136 136 NSTUB(GetSystemTime ,0xffafad34) //101 137 NSTUB(GetVRAMHPixelsSize ,0xff854118) //102 138 NSTUB(GetVRAMVPixelsSize ,0xff854124) //102 137 139 NSTUB(GetZoomLensCurrentPoint ,0xff980d38) //102 138 140 NSTUB(GetZoomLensCurrentPosition ,0xffae90e8) //102 -
branches/reyalp-ptp-live/platform/s95/sub/100h/stubs_entry.S
r1878 r1911 135 135 NSTUB(GetPropertyCase ,0xff896414) //102 136 136 NSTUB(GetSystemTime ,0xffafaee4) //101 137 NSTUB(GetVRAMHPixelsSize ,0xff854118) //102 138 NSTUB(GetVRAMVPixelsSize ,0xff854124) //102 137 139 NSTUB(GetZoomLensCurrentPoint ,0xff980d38) //102 138 140 NSTUB(GetZoomLensCurrentPosition ,0xffae90f4) //102 -
branches/reyalp-ptp-live/platform/s95/sub/100i/stubs_entry.S
r1878 r1911 135 135 NSTUB(GetPropertyCase ,0xff896414) //102 136 136 NSTUB(GetSystemTime ,0xffafaee4) //101 137 NSTUB(GetVRAMHPixelsSize ,0xff854118) //102 138 NSTUB(GetVRAMVPixelsSize ,0xff854124) //102 137 139 NSTUB(GetZoomLensCurrentPoint ,0xff980d38) //102 138 140 NSTUB(GetZoomLensCurrentPosition ,0xffae90f4) //102 -
branches/reyalp-ptp-live/platform/s95/sub/100k/stubs_entry.S
r1878 r1911 135 135 NSTUB(GetPropertyCase ,0xff896414) //102 136 136 NSTUB(GetSystemTime ,0xffafaf0c) //101 137 NSTUB(GetVRAMHPixelsSize ,0xff854118) //102 138 NSTUB(GetVRAMVPixelsSize ,0xff854124) //102 137 139 NSTUB(GetZoomLensCurrentPoint ,0xff980d38) //102 138 140 NSTUB(GetZoomLensCurrentPosition ,0xffae90f4) //102 -
branches/reyalp-ptp-live/platform/sx1/sub/200h/stubs_entry.S
r1878 r1911 120 120 NSTUB(GetPropertyCase ,0xff87dbcc) //102 121 121 NSTUB(GetSystemTime ,0xffa91bf4) //101 122 NSTUB(GetVRAMHPixelsSize ,0xff83d4e8) //102 123 NSTUB(GetVRAMVPixelsSize ,0xff83d4f4) //102 122 124 NSTUB(GetZoomLensCurrentPoint ,0xff9548a8) //102 123 125 NSTUB(GetZoomLensCurrentPosition ,0xffa820f8) //102 -
branches/reyalp-ptp-live/platform/sx1/sub/201a/stubs_entry.S
r1878 r1911 120 120 NSTUB(GetPropertyCase ,0xff87dbcc) //102 121 121 NSTUB(GetSystemTime ,0xffa91c08) //101 122 NSTUB(GetVRAMHPixelsSize ,0xff83d4e8) //102 123 NSTUB(GetVRAMVPixelsSize ,0xff83d4f4) //102 122 124 NSTUB(GetZoomLensCurrentPoint ,0xff9548a8) //102 123 125 NSTUB(GetZoomLensCurrentPosition ,0xffa8210c) //102 -
branches/reyalp-ptp-live/platform/sx10/sub/100c/stubs_entry.S
r1878 r1911 120 120 NSTUB(GetPropertyCase ,0xff8796d0) //102 121 121 NSTUB(GetSystemTime ,0xffa67b3c) //101 122 NSTUB(GetVRAMHPixelsSize ,0xff83ccb4) //102 123 NSTUB(GetVRAMVPixelsSize ,0xff83ccc0) //102 122 124 NSTUB(GetZoomLensCurrentPoint ,0xff941128) //102 123 125 NSTUB(GetZoomLensCurrentPosition ,0xffa5b23c) //102 -
branches/reyalp-ptp-live/platform/sx10/sub/101a/stubs_entry.S
r1878 r1911 120 120 NSTUB(GetPropertyCase ,0xff8796d8) //102 121 121 NSTUB(GetSystemTime ,0xffa67b4c) //101 122 NSTUB(GetVRAMHPixelsSize ,0xff83ccb4) //102 123 NSTUB(GetVRAMVPixelsSize ,0xff83ccc0) //102 122 124 NSTUB(GetZoomLensCurrentPoint ,0xff941130) //102 123 125 NSTUB(GetZoomLensCurrentPosition ,0xffa5b24c) //102 -
branches/reyalp-ptp-live/platform/sx10/sub/101b/stubs_entry.S
r1878 r1911 120 120 NSTUB(GetPropertyCase ,0xff879778) //102 121 121 NSTUB(GetSystemTime ,0xffa67c78) //101 122 NSTUB(GetVRAMHPixelsSize ,0xff83ccb4) //102 123 NSTUB(GetVRAMVPixelsSize ,0xff83ccc0) //102 122 124 NSTUB(GetZoomLensCurrentPoint ,0xff9411d0) //102 123 125 NSTUB(GetZoomLensCurrentPosition ,0xffa5b350) //102 -
branches/reyalp-ptp-live/platform/sx10/sub/102b/stubs_entry.S
r1878 r1911 120 120 NSTUB(GetPropertyCase ,0xff879778) //102 121 121 NSTUB(GetSystemTime ,0xffa67c78) //101 122 NSTUB(GetVRAMHPixelsSize ,0xff83ccb4) //102 123 NSTUB(GetVRAMVPixelsSize ,0xff83ccc0) //102 122 124 NSTUB(GetZoomLensCurrentPoint ,0xff9411d0) //102 123 125 NSTUB(GetZoomLensCurrentPosition ,0xffa5b350) //102 -
branches/reyalp-ptp-live/platform/sx10/sub/103a/stubs_entry.S
r1878 r1911 120 120 NSTUB(GetPropertyCase ,0xff879778) //102 121 121 NSTUB(GetSystemTime ,0xffa67c8c) //101 122 NSTUB(GetVRAMHPixelsSize ,0xff83ccb4) //102 123 NSTUB(GetVRAMVPixelsSize ,0xff83ccc0) //102 122 124 NSTUB(GetZoomLensCurrentPoint ,0xff9411d0) //102 123 125 NSTUB(GetZoomLensCurrentPosition ,0xffa5b364) //102 -
branches/reyalp-ptp-live/platform/sx100is/sub/100b/stubs_entry.S
r1878 r1911 129 129 NSTUB(GetPropertyCase ,0xffc5bc8c) //101 130 130 NSTUB(GetSystemTime ,0xffdf2fc8) // 1 131 NSTUB(GetVRAMHPixelsSize ,0xffc2cd38) //102 132 NSTUB(GetVRAMVPixelsSize ,0xffc2cd44) //102 131 133 NSTUB(GetZoomLensCurrentPoint ,0xffd0e394) //102 132 134 NSTUB(GiveSemaphore ,0xffc0bb24) //112 -
branches/reyalp-ptp-live/platform/sx100is/sub/100c/stubs_entry.S
r1878 r1911 128 128 NSTUB(GetPropertyCase ,0xffc5bcc0) //101 129 129 NSTUB(GetSystemTime ,0xffdf2ffc) // 1 130 NSTUB(GetVRAMHPixelsSize ,0xffc2cd38) //102 131 NSTUB(GetVRAMVPixelsSize ,0xffc2cd44) //102 130 132 NSTUB(GetZoomLensCurrentPoint ,0xffd0e3c8) //102 131 133 NSTUB(GiveSemaphore ,0xffc0bb24) //112 -
branches/reyalp-ptp-live/platform/sx110is/sub/100b/stubs_entry.S
r1878 r1911 127 127 NSTUB(GetPropertyCase ,0xffc5f2a0) //102 128 128 NSTUB(GetSystemTime ,0xffe08398) //101 129 NSTUB(GetVRAMHPixelsSize ,0xffc2aab4) //102 130 NSTUB(GetVRAMVPixelsSize ,0xffc2aac0) //102 129 131 NSTUB(GetZoomLensCurrentPoint ,0xffd12370) //102 130 132 NSTUB(GetZoomLensCurrentPosition ,0xffe02890) //102 -
branches/reyalp-ptp-live/platform/sx120is/sub/100b/stubs_entry.S
r1878 r1911 134 134 NSTUB(GetPropertyCase ,0xffc60ce0) //102 135 135 NSTUB(GetSystemTime ,0xffe14348) //101 136 NSTUB(GetVRAMHPixelsSize ,0xffc29984) //102 137 NSTUB(GetVRAMVPixelsSize ,0xffc29990) //102 136 138 NSTUB(GetZoomLensCurrentPoint ,0xffd10bdc) //102 137 139 NSTUB(GetZoomLensCurrentPosition ,0xffe0d1e4) //102 -
branches/reyalp-ptp-live/platform/sx130is/sub/101c/stubs_entry.S
r1878 r1911 135 135 NSTUB(GetPropertyCase ,0xff88d7a0) //102 136 136 NSTUB(GetSystemTime ,0xffab1a34) //101 137 NSTUB(GetVRAMHPixelsSize ,0xff8525f4) //102 138 NSTUB(GetVRAMVPixelsSize ,0xff852600) //102 137 139 NSTUB(GetZoomLensCurrentPoint ,0xff963fc8) //102 138 140 NSTUB(GetZoomLensCurrentPosition ,0xffa9fe7c) //102 -
branches/reyalp-ptp-live/platform/sx130is/sub/101d/stubs_entry.S
r1878 r1911 135 135 NSTUB(GetPropertyCase ,0xff88d7a0) //102 136 136 NSTUB(GetSystemTime ,0xffab1a34) //101 137 NSTUB(GetVRAMHPixelsSize ,0xff8525f4) //102 138 NSTUB(GetVRAMVPixelsSize ,0xff852600) //102 137 139 NSTUB(GetZoomLensCurrentPoint ,0xff963fc8) //102 138 140 NSTUB(GetZoomLensCurrentPosition ,0xffa9fe7c) //102 -
branches/reyalp-ptp-live/platform/sx130is/sub/101f/stubs_entry.S
r1878 r1911 133 133 NSTUB(GetPropertyCase ,0xff88d7a0) //102 134 134 NSTUB(GetSystemTime ,0xffab1a58) //101 135 NSTUB(GetVRAMHPixelsSize ,0xff8525f4) //102 136 NSTUB(GetVRAMVPixelsSize ,0xff852600) //102 135 137 NSTUB(GetZoomLensCurrentPoint ,0xff963fc8) //102 136 138 NSTUB(GetZoomLensCurrentPosition ,0xffa9fe7c) //102 -
branches/reyalp-ptp-live/platform/sx150is/sub/100a/stubs_entry.S
r1878 r1911 133 133 NSTUB(GetPropertyCase ,0xff894e58) //102 134 134 NSTUB(GetSystemTime ,0xffae4e54) //101 135 NSTUB(GetVRAMHPixelsSize ,0xff855338) //102 136 NSTUB(GetVRAMVPixelsSize ,0xff855344) //102 135 137 NSTUB(GetZoomLensCurrentPoint ,0xff981808) //102 136 138 NSTUB(GetZoomLensCurrentPosition ,0xffad21ac) //102 -
branches/reyalp-ptp-live/platform/sx20/sub/100f/stubs_entry.S
r1878 r1911 129 129 NSTUB(GetPropertyCase ,0xff88f2dc) //102 130 130 NSTUB(GetSystemTime ,0xffa9b638) //101 131 NSTUB(GetVRAMHPixelsSize ,0xff84f904) //102 132 NSTUB(GetVRAMVPixelsSize ,0xff84f910) //102 131 133 NSTUB(GetZoomLensCurrentPoint ,0xff9566d4) //102 132 134 NSTUB(GetZoomLensCurrentPosition ,0xffa8eac4) //102 -
branches/reyalp-ptp-live/platform/sx20/sub/102b/stubs_entry.S
r1878 r1911 129 129 NSTUB(GetPropertyCase ,0xff88f2dc) //102 130 130 NSTUB(GetSystemTime ,0xffa9b6c4) //101 131 NSTUB(GetVRAMHPixelsSize ,0xff84f904) //102 132 NSTUB(GetVRAMVPixelsSize ,0xff84f910) //102 131 133 NSTUB(GetZoomLensCurrentPoint ,0xff9566a8) //102 132 134 NSTUB(GetZoomLensCurrentPosition ,0xffa8eb50) //102 -
branches/reyalp-ptp-live/platform/sx20/sub/102d/stubs_entry.S
r1878 r1911 129 129 NSTUB(GetPropertyCase ,0xff88f32c) //102 130 130 NSTUB(GetSystemTime ,0xffa9b880) //101 131 NSTUB(GetVRAMHPixelsSize ,0xff84f904) //102 132 NSTUB(GetVRAMVPixelsSize ,0xff84f910) //102 131 133 NSTUB(GetZoomLensCurrentPoint ,0xff956864) //102 132 134 NSTUB(GetZoomLensCurrentPosition ,0xffa8ed0c) //102 -
branches/reyalp-ptp-live/platform/sx200is/sub/100c/stubs_entry.S
r1893 r1911 124 124 NSTUB(GetParameterData ,0xff9632e0) //101 125 125 NSTUB(GetPropertyCase ,0xff8742e8) //102 126 NSTUB(GetVRAMHPixelsSize ,0xff8393a0) //102 127 NSTUB(GetVRAMVPixelsSize ,0xff8393ac) //102 126 128 NSTUB(GetZoomLensCurrentPoint ,0xff93462c) //102 127 129 NSTUB(GetZoomLensCurrentPosition ,0xffa5cb24) //102 -
branches/reyalp-ptp-live/platform/sx220hs/sub/100a/stubs_entry.S
r1878 r1911 142 142 NSTUB(GetPropertyCase ,0xff08a944) //102 143 143 NSTUB(GetSystemTime ,0xff307628) //101 144 NSTUB(GetVRAMHPixelsSize ,0xff04600c) //102 145 NSTUB(GetVRAMVPixelsSize ,0xff046018) //102 144 146 NSTUB(GetZoomLensCurrentPoint ,0xff182660) //102 145 147 NSTUB(GetZoomLensCurrentPosition ,0xff2f14cc) //102 -
branches/reyalp-ptp-live/platform/sx220hs/sub/101a/stubs_entry.S
r1878 r1911 142 142 NSTUB(GetPropertyCase ,0xff08a944) //102 143 143 NSTUB(GetSystemTime ,0xff307640) //101 144 NSTUB(GetVRAMHPixelsSize ,0xff04600c) //102 145 NSTUB(GetVRAMVPixelsSize ,0xff046018) //102 144 146 NSTUB(GetZoomLensCurrentPoint ,0xff182660) //102 145 147 NSTUB(GetZoomLensCurrentPosition ,0xff2f14cc) //102 -
branches/reyalp-ptp-live/platform/sx220hs/sub/101b/stubs_entry.S
r1878 r1911 142 142 NSTUB(GetPropertyCase ,0xff08a944) //102 143 143 NSTUB(GetSystemTime ,0xff30764c) //101 144 NSTUB(GetVRAMHPixelsSize ,0xff04600c) //102 145 NSTUB(GetVRAMVPixelsSize ,0xff046018) //102 144 146 NSTUB(GetZoomLensCurrentPoint ,0xff182660) //102 145 147 NSTUB(GetZoomLensCurrentPosition ,0xff2f14cc) //102 -
branches/reyalp-ptp-live/platform/sx230hs/sub/100c/stubs_entry.S
r1878 r1911 144 144 NSTUB(GetPropertyCase ,0xff08bf58) //102 145 145 NSTUB(GetSystemTime ,0xff31195c) //101 146 NSTUB(GetVRAMHPixelsSize ,0xff04659c) //102 147 NSTUB(GetVRAMVPixelsSize ,0xff0465a8) //102 146 148 NSTUB(GetZoomLensCurrentPoint ,0xff187b80) //102 147 149 NSTUB(GetZoomLensCurrentPosition ,0xff2fb048) //102 -
branches/reyalp-ptp-live/platform/sx230hs/sub/101a/stubs_entry.S
r1878 r1911 144 144 NSTUB(GetPropertyCase ,0xff08bf50) //102 145 145 NSTUB(GetSystemTime ,0xff311abc) //101 146 NSTUB(GetVRAMHPixelsSize ,0xff0465b0) //102 147 NSTUB(GetVRAMVPixelsSize ,0xff0465bc) //102 146 148 NSTUB(GetZoomLensCurrentPoint ,0xff187d3c) //102 147 149 NSTUB(GetZoomLensCurrentPosition ,0xff2fb1a4) //102 -
branches/reyalp-ptp-live/platform/sx230hs/sub/101b/stubs_entry.S
r1878 r1911 144 144 NSTUB(GetPropertyCase ,0xff08bf50) //102 145 145 NSTUB(GetSystemTime ,0xff311ac8) //101 146 NSTUB(GetVRAMHPixelsSize ,0xff0465b0) //102 147 NSTUB(GetVRAMVPixelsSize ,0xff0465bc) //102 146 148 NSTUB(GetZoomLensCurrentPoint ,0xff187d3c) //102 147 149 NSTUB(GetZoomLensCurrentPosition ,0xff2fb1a4) //102 -
branches/reyalp-ptp-live/platform/sx30/lib.c
r1818 r1911 92 92 int vid_get_viewport_width() 93 93 { 94 if (shooting_get_prop(PROPCASE_SHOOTING_MODE) == 16908) // Stitch mode 94 if ((mode_get() & MODE_MASK) == MODE_PLAY) 95 { 96 return 360; 97 } 98 else if (shooting_get_prop(PROPCASE_SHOOTING_MODE) == 16908) // Stitch mode 95 99 { 96 100 return 180; … … 104 108 int vid_get_viewport_display_xoffset() 105 109 { 106 if (shooting_get_prop(PROPCASE_SHOOTING_MODE) == 16908) // Stitch mode 110 if ((mode_get() & MODE_MASK) == MODE_PLAY) 111 { 112 return 0; 113 } 114 else if (shooting_get_prop(PROPCASE_SHOOTING_MODE) == 16908) // Stitch mode 107 115 { 108 116 if (shooting_get_prop(PROPCASE_STITCH_DIRECTION) == 0) // Direction check … … 125 133 long vid_get_viewport_height() 126 134 { 127 if (shooting_get_prop(PROPCASE_SHOOTING_MODE) == 16908) // Stitch mode 135 if ((mode_get() & MODE_MASK) == MODE_PLAY) 136 { 137 return 240; 138 } 139 else if (shooting_get_prop(PROPCASE_SHOOTING_MODE) == 16908) // Stitch mode 128 140 { 129 141 return 120; … … 136 148 int vid_get_viewport_yoffset() 137 149 { 138 if (shooting_get_prop(PROPCASE_SHOOTING_MODE) == 16908) // Stitch mode 150 if ((mode_get() & MODE_MASK) == MODE_PLAY) 151 { 152 return 0; 153 } 154 else if (shooting_get_prop(PROPCASE_SHOOTING_MODE) == 16908) // Stitch mode 139 155 { 140 156 return 0; … … 147 163 int vid_get_viewport_display_yoffset() 148 164 { 149 if (shooting_get_prop(PROPCASE_SHOOTING_MODE) == 16908) // Stitch mode 165 if ((mode_get() & MODE_MASK) == MODE_PLAY) 166 { 167 return 0; 168 } 169 else if (shooting_get_prop(PROPCASE_SHOOTING_MODE) == 16908) // Stitch mode 150 170 { 151 171 return 72; 152 172 } 153 else 154 { 155 return vid_get_viewport_yoffset(); 156 } 173 else if (shooting_get_prop(PROPCASE_ASPECT_RATIO) == 1) // Wide screen top & bottom 30 pixels not used in viewport 174 return 30; 175 return 0; 157 176 } 158 177 -
branches/reyalp-ptp-live/platform/sx30/sub/100e/stubs_entry.S
r1878 r1911 133 133 NSTUB(GetPropertyCase ,0xff8999c8) //102 134 134 NSTUB(GetSystemTime ,0xffaedfa4) //101 135 NSTUB(GetVRAMHPixelsSize ,0xff85413c) //102 136 NSTUB(GetVRAMVPixelsSize ,0xff854148) //102 135 137 NSTUB(GetZoomLensCurrentPoint ,0xff87e9c4) //102 136 138 NSTUB(GetZoomLensCurrentPosition ,0xff986474) //102 -
branches/reyalp-ptp-live/platform/sx30/sub/100h/stubs_entry.S
r1878 r1911 133 133 NSTUB(GetPropertyCase ,0xff8999c8) //102 134 134 NSTUB(GetSystemTime ,0xffaee060) //101 135 NSTUB(GetVRAMHPixelsSize ,0xff85413c) //102 136 NSTUB(GetVRAMVPixelsSize ,0xff854148) //102 135 137 NSTUB(GetZoomLensCurrentPoint ,0xff87e9c4) //102 136 138 NSTUB(GetZoomLensCurrentPosition ,0xff9864a8) //102 -
branches/reyalp-ptp-live/platform/sx30/sub/100l/stubs_entry.S
r1878 r1911 133 133 NSTUB(GetPropertyCase ,0xff8999cc) //102 134 134 NSTUB(GetSystemTime ,0xffaee208) //101 135 NSTUB(GetVRAMHPixelsSize ,0xff85413c) //102 136 NSTUB(GetVRAMVPixelsSize ,0xff854148) //102 135 137 NSTUB(GetZoomLensCurrentPoint ,0xff87e9c4) //102 136 138 NSTUB(GetZoomLensCurrentPosition ,0xff9864ac) //102 -
branches/reyalp-ptp-live/platform/sx30/sub/100n/stubs_entry.S
r1878 r1911 133 133 NSTUB(GetPropertyCase ,0xff8999cc) //102 134 134 NSTUB(GetSystemTime ,0xffaee28c) //101 135 NSTUB(GetVRAMHPixelsSize ,0xff85413c) //102 136 NSTUB(GetVRAMVPixelsSize ,0xff854148) //102 135 137 NSTUB(GetZoomLensCurrentPoint ,0xff87e9c4) //102 136 138 NSTUB(GetZoomLensCurrentPosition ,0xff986530) //102 -
branches/reyalp-ptp-live/platform/sx30/sub/100p/stubs_entry.S
r1878 r1911 133 133 NSTUB(GetPropertyCase ,0xff8999cc) //102 134 134 NSTUB(GetSystemTime ,0xffaee28c) //101 135 NSTUB(GetVRAMHPixelsSize ,0xff85413c) //102 136 NSTUB(GetVRAMVPixelsSize ,0xff854148) //102 135 137 NSTUB(GetZoomLensCurrentPoint ,0xff87e9c4) //102 136 138 NSTUB(GetZoomLensCurrentPosition ,0xff986530) //102 -
branches/reyalp-ptp-live/platform/sx40hs/lib.c
r1834 r1911 93 93 int vid_get_viewport_width() 94 94 { 95 if (shooting_get_prop(PROPCASE_SHOOTING_MODE) == 16909) // Stitch mode 95 if ((mode_get() & MODE_MASK) == MODE_PLAY) 96 { 97 return 360; 98 } 99 else if (shooting_get_prop(PROPCASE_SHOOTING_MODE) == 16909) // Stitch mode 96 100 { 97 101 return 180; … … 106 110 } 107 111 112 // viewport width offset table for each image size 113 // 0 = 4:3, 1 = 16:9, 2 = 3:2, 3 = 1:1 114 static long vp_xo[5] = { 0, 0, 0, 44 }; // should all be even values for edge overlay 115 108 116 int vid_get_viewport_xoffset() 109 117 { 110 if (shooting_get_prop(PROPCASE_SHOOTING_MODE) == 16909) // Stitch mode 111 { 112 return 0; 113 } 114 else 115 { 116 // viewport width offset table for each image size 117 // 0 = 4:3, 1 = 16:9, 2 = 3:2, 3 = 1:1 118 static long vp_w[5] = { 0, 0, 0, 44 }; // should all be even values for edge overlay 119 return vp_w[shooting_get_prop(PROPCASE_ASPECT_RATIO)]; 118 if ((mode_get() & MODE_MASK) == MODE_PLAY) 119 { 120 return 0; 121 } 122 else if (shooting_get_prop(PROPCASE_SHOOTING_MODE) == 16909) // Stitch mode 123 { 124 return 0; 125 } 126 else 127 { 128 return vp_xo[shooting_get_prop(PROPCASE_ASPECT_RATIO)]; 120 129 } 121 130 } … … 123 132 int vid_get_viewport_display_xoffset() 124 133 { 125 if (shooting_get_prop(PROPCASE_SHOOTING_MODE) == 16909) // Stitch mode 134 if ((mode_get() & MODE_MASK) == MODE_PLAY) 135 { 136 return 0; 137 } 138 else if (shooting_get_prop(PROPCASE_SHOOTING_MODE) == 16909) // Stitch mode 126 139 { 127 140 if (shooting_get_prop(PROPCASE_STITCH_DIRECTION) == 0) // Direction check … … 138 151 else 139 152 { 140 return vid_get_viewport_xoffset();153 return vp_xo[shooting_get_prop(PROPCASE_ASPECT_RATIO)]; 141 154 } 142 155 } … … 144 157 long vid_get_viewport_height() 145 158 { 146 if (shooting_get_prop(PROPCASE_SHOOTING_MODE) == 16909) // Stitch mode 159 if ((mode_get() & MODE_MASK) == MODE_PLAY) 160 { 161 return 240; 162 } 163 else if (shooting_get_prop(PROPCASE_SHOOTING_MODE) == 16909) // Stitch mode 147 164 { 148 165 return 120; … … 157 174 } 158 175 176 // viewport height offset table for each image size 177 // 0 = 4:3, 1 = 16:9, 2 = 3:2, 3 = 1:1 178 static long vp_yo[5] = { 0, 30, 13, 0 }; 179 159 180 int vid_get_viewport_yoffset() 160 181 { 161 if (shooting_get_prop(PROPCASE_SHOOTING_MODE) == 16909) // Stitch mode 162 { 163 return 0; 164 } 165 else 166 { 167 // viewport height offset table for each image size 168 // 0 = 4:3, 1 = 16:9, 2 = 3:2, 3 = 1:1 169 static long vp_h[5] = { 0, 30, 13, 0 }; 170 return vp_h[shooting_get_prop(PROPCASE_ASPECT_RATIO)]; 182 if ((mode_get() & MODE_MASK) == MODE_PLAY) 183 { 184 return 0; 185 } 186 else if (shooting_get_prop(PROPCASE_SHOOTING_MODE) == 16909) // Stitch mode 187 { 188 return 0; 189 } 190 else 191 { 192 return vp_yo[shooting_get_prop(PROPCASE_ASPECT_RATIO)]; 171 193 } 172 194 } … … 174 196 int vid_get_viewport_display_yoffset() 175 197 { 176 if (shooting_get_prop(PROPCASE_SHOOTING_MODE) == 16909) // Stitch mode 198 if ((mode_get() & MODE_MASK) == MODE_PLAY) 199 { 200 return 0; 201 } 202 else if (shooting_get_prop(PROPCASE_SHOOTING_MODE) == 16909) // Stitch mode 177 203 { 178 204 return 72; … … 180 206 else 181 207 { 182 return vid_get_viewport_yoffset();208 return vp_yo[shooting_get_prop(PROPCASE_ASPECT_RATIO)]; 183 209 } 184 210 } -
branches/reyalp-ptp-live/platform/sx40hs/sub/100d/stubs_entry.S
r1878 r1911 134 134 NSTUB(GetPropertyCase ,0xff09107c) //102 135 135 NSTUB(GetSystemTime ,0xff359784) //101 136 NSTUB(GetVRAMHPixelsSize ,0xff0487d8) //102 137 NSTUB(GetVRAMVPixelsSize ,0xff0487e4) //102 136 138 NSTUB(GetZoomLensCurrentPoint ,0xff071fe4) //102 137 139 NSTUB(GetZoomLensCurrentPosition ,0xff1c4f7c) //102 -
branches/reyalp-ptp-live/platform/sx40hs/sub/100f/stubs_entry.S
r1878 r1911 134 134 NSTUB(GetPropertyCase ,0xff0910a4) //102 135 135 NSTUB(GetSystemTime ,0xff3597c0) //101 136 NSTUB(GetVRAMHPixelsSize ,0xff0487f0) //102 137 NSTUB(GetVRAMVPixelsSize ,0xff0487fc) //102 136 138 NSTUB(GetZoomLensCurrentPoint ,0xff071ffc) //102 137 139 NSTUB(GetZoomLensCurrentPosition ,0xff1c4fb8) //102 -
branches/reyalp-ptp-live/platform/sx40hs/sub/100g/stubs_entry.S
r1878 r1911 134 134 NSTUB(GetPropertyCase ,0xff0910a4) //102 135 135 NSTUB(GetSystemTime ,0xff3597bc) //101 136 NSTUB(GetVRAMHPixelsSize ,0xff0487f0) //102 137 NSTUB(GetVRAMVPixelsSize ,0xff0487fc) //102 136 138 NSTUB(GetZoomLensCurrentPoint ,0xff071ffc) //102 137 139 NSTUB(GetZoomLensCurrentPosition ,0xff1c4fb4) //102 -
branches/reyalp-ptp-live/platform/sx40hs/sub/100i/stubs_entry.S
r1878 r1911 134 134 NSTUB(GetPropertyCase ,0xff0910a4) //102 135 135 NSTUB(GetSystemTime ,0xff3597e0) //101 136 NSTUB(GetVRAMHPixelsSize ,0xff0487f0) //102 137 NSTUB(GetVRAMVPixelsSize ,0xff0487fc) //102 136 138 NSTUB(GetZoomLensCurrentPoint ,0xff071ffc) //102 137 139 NSTUB(GetZoomLensCurrentPosition ,0xff1c4fd8) //102 -
branches/reyalp-ptp-live/tools/finsig_dryos.c
r1878 r1911 1283 1283 { 2, "NR_GetDarkSubType", "NRTBL.GetDarkSubType", 1 }, 1284 1284 { 2, "SavePaletteData", "SavePaletteData", 1 }, 1285 { 2, "GetVRAMHPixelsSize", "GetVRAMHPixelsSize", 1 }, 1286 { 2, "GetVRAMVPixelsSize", "GetVRAMVPixelsSize", 1 }, 1285 1287 1286 1288 { 3, "AllocateMemory", "AllocateMemory", 1 }, -
branches/reyalp-ptp-live/tools/sig_ref_dryos_1.txt
r1641 r1911 119 119 SetAE_ShutterSpeed 0xFFDA87C0 120 120 SetFileAttributes 0xFFC15358 121 GetVRAMHPixelsSize 0xFFDA956C 122 GetVRAMVPixelsSize 0xFFDA9570 -
branches/reyalp-ptp-live/tools/signatures_dryos.h
r1658 r1911 3752 3752 { 31, 0xe1a07000, 0xfdfff000 }, // mov:6:0xE1A07000 3753 3753 /* 32/32 */ 3754 { -1, -1, -1 }, 3755 }; 3756 3757 static FuncSig func_sig_GetVRAMHPixelsSize_1[] = { 3758 { 0, 0x0a000000, 0x0f000000 }, // b, bl:3:0xEAFA09A1 3759 { 1, 0x0a000000, 0x0f000000 }, // b, bl:3:0xEAFA09A3 3760 { 2, 0x0a000000, 0x0f000000 }, // b, bl:3:0xEAFA09D2 3761 { 3, 0xe92d0000, 0xffff0000 }, // stm:5:0xE92D41F0 3762 { 4, 0xe1a07000, 0xfdfff000 }, // mov:6:0xE1A07003 3763 { 5, 0xe1a06000, 0xfdfff000 }, // mov:6:0xE1A06002 3764 { 6, 0xe1a05000, 0xfdfff000 }, // mov:6:0xE1A05000 3765 { 7, 0xe1a04000, 0xfdfff000 }, // mov:6:0xE1A04001 3766 { 8, 0x0b000000, 0x0f000000 }, // b, bl:3:0xEBFA09D7 3767 { 9, 0xe1500000, 0xfdfff000 }, // cmp:7:0xE3500001 3768 { 10, 0x11a00000, 0xfdfff000 }, // mov:6:0x13A00011 3769 { 11, 0x18bd0000, 0xffff0000 }, // ldm:5:0x18BD81F0 3770 { 12, 0xe1550000, 0xfdfff000 }, // cmp:7:0xE355001E 3771 { 13, 0x0a000000, 0x0f000000 }, // b, bl:3:0x9A000003 3772 { 14, 0xe1a00000, 0xfdfff000 }, // mov:6:0xE1A00007 3773 { 16, 0xe1a00000, 0xfdfff000 }, // mov:6:0xE3A00003 3774 { 17, 0xe8bd0000, 0xffff0000 }, // ldm:5:0xE8BD81F0 3775 { 18, 0xe1a02000, 0xfdfff000 }, // mov:6:0xE1A02007 3776 { 19, 0xe1a01000, 0xfdfff000 }, // mov:6:0xE1A01006 3777 { 20, 0xe1a00000, 0xfdfff000 }, // mov:6:0xE1A00005 3778 { 21, 0x0b000000, 0x0f000000 }, // b, bl:3:0xEBFA099E 3779 { 22, 0xe00f1000, 0xf00ff000 }, // ldr:8:0xE59F1228 3780 { 23, 0xe00f0000, 0xf00ff000 }, // ldr:8:0xE59F0220 3781 { 24, 0xe5841000, 0xfdfff000 }, // str:4:0xE5841000 3782 { 25, 0xe5840000, 0xfdfff000 }, // str:4:0xE5840004 3783 { 26, 0xe00f0000, 0xf00ff000 }, // add:10:0xE28F0F95 3784 { 27, 0x0b000000, 0x0f000000 }, // b, bl:3:0xEB000D24 3785 { 28, 0xe5941000, 0xfdfff000 }, // ldr:4:0xE5941004 3786 { 29, 0xe00f0000, 0xf00ff000 }, // add:10:0xE28F0F97 3787 { 30, 0x0b000000, 0x0f000000 }, // b, bl:3:0xEB000D21 3788 { 31, 0xe1a00000, 0xfdfff000 }, // mov:6:0xE3A00000 3789 /* 31/32 */ 3790 { -1, -1, -1 }, 3791 }; 3792 3793 static FuncSig func_sig_GetVRAMVPixelsSize_1[] = { 3794 { 0, 0x0a000000, 0x0f000000 }, // b, bl:3:0xEAFA09A3 3795 { 1, 0x0a000000, 0x0f000000 }, // b, bl:3:0xEAFA09D2 3796 { 2, 0xe92d0000, 0xffff0000 }, // stm:5:0xE92D41F0 3797 { 3, 0xe1a07000, 0xfdfff000 }, // mov:6:0xE1A07003 3798 { 4, 0xe1a06000, 0xfdfff000 }, // mov:6:0xE1A06002 3799 { 5, 0xe1a05000, 0xfdfff000 }, // mov:6:0xE1A05000 3800 { 6, 0xe1a04000, 0xfdfff000 }, // mov:6:0xE1A04001 3801 { 7, 0x0b000000, 0x0f000000 }, // b, bl:3:0xEBFA09D7 3802 { 8, 0xe1500000, 0xfdfff000 }, // cmp:7:0xE3500001 3803 { 9, 0x11a00000, 0xfdfff000 }, // mov:6:0x13A00011 3804 { 10, 0x18bd0000, 0xffff0000 }, // ldm:5:0x18BD81F0 3805 { 11, 0xe1550000, 0xfdfff000 }, // cmp:7:0xE355001E 3806 { 12, 0x0a000000, 0x0f000000 }, // b, bl:3:0x9A000003 3807 { 13, 0xe1a00000, 0xfdfff000 }, // mov:6:0xE1A00007 3808 { 15, 0xe1a00000, 0xfdfff000 }, // mov:6:0xE3A00003 3809 { 16, 0xe8bd0000, 0xffff0000 }, // ldm:5:0xE8BD81F0 3810 { 17, 0xe1a02000, 0xfdfff000 }, // mov:6:0xE1A02007 3811 { 18, 0xe1a01000, 0xfdfff000 }, // mov:6:0xE1A01006 3812 { 19, 0xe1a00000, 0xfdfff000 }, // mov:6:0xE1A00005 3813 { 20, 0x0b000000, 0x0f000000 }, // b, bl:3:0xEBFA099E 3814 { 21, 0xe00f1000, 0xf00ff000 }, // ldr:8:0xE59F1228 3815 { 22, 0xe00f0000, 0xf00ff000 }, // ldr:8:0xE59F0220 3816 { 23, 0xe5841000, 0xfdfff000 }, // str:4:0xE5841000 3817 { 24, 0xe5840000, 0xfdfff000 }, // str:4:0xE5840004 3818 { 25, 0xe00f0000, 0xf00ff000 }, // add:10:0xE28F0F95 3819 { 26, 0x0b000000, 0x0f000000 }, // b, bl:3:0xEB000D24 3820 { 27, 0xe5941000, 0xfdfff000 }, // ldr:4:0xE5941004 3821 { 28, 0xe00f0000, 0xf00ff000 }, // add:10:0xE28F0F97 3822 { 29, 0x0b000000, 0x0f000000 }, // b, bl:3:0xEB000D21 3823 { 30, 0xe1a00000, 0xfdfff000 }, // mov:6:0xE3A00000 3824 { 31, 0xe8bd0000, 0xffff0000 }, // ldm:5:0xE8BD81F0 3825 /* 31/32 */ 3754 3826 { -1, -1, -1 }, 3755 3827 }; … … 7836 7908 { "GetSystemTime", func_sig_GetSystemTime_1, 1 }, 7837 7909 { "GetSystemTime", func_sig_GetSystemTime_2, 2 }, 7910 { "GetVRAMHPixelsSize", func_sig_GetVRAMHPixelsSize_1, 1 }, 7911 { "GetVRAMVPixelsSize", func_sig_GetVRAMVPixelsSize_1, 1 }, 7838 7912 { "GetZoomLensCurrentPoint", func_sig_GetZoomLensCurrentPoint_1, 1 }, 7839 7913 { "GetZoomLensCurrentPosition", func_sig_GetZoomLensCurrentPosition_1, 1 },
Note: See TracChangeset
for help on using the changeset viewer.