Changeset 560
- Timestamp:
- 11/12/08 07:51:48 (5 years ago)
- Location:
- trunk
- Files:
-
- 44 edited
-
CHDK/SCRIPTS/examples/lotto.lua (modified) (3 diffs)
-
CHDK/SCRIPTS/examples/tv_uni_e.lua (modified) (1 diff)
-
include/camera.h (modified) (1 diff)
-
platform/ixus75_sd750/Makefile (modified) (1 prop)
-
platform/ixus75_sd750/kbd.c (modified) (1 prop)
-
platform/ixus75_sd750/lib.c (modified) (1 prop)
-
platform/ixus75_sd750/main.c (modified) (1 prop)
-
platform/ixus75_sd750/notes.txt (modified) (1 prop)
-
platform/ixus75_sd750/shooting.c (modified) (1 prop)
-
platform/ixus75_sd750/sub/100b/Makefile (modified) (1 prop)
-
platform/ixus75_sd750/sub/100b/boot.c (modified) (1 prop)
-
platform/ixus75_sd750/sub/100b/capt_seq.c (modified) (1 diff, 1 prop)
-
platform/ixus75_sd750/sub/100b/lib.c (modified) (1 prop)
-
platform/ixus75_sd750/sub/100b/makefile.inc (modified) (1 prop)
-
platform/ixus75_sd750/sub/100b/movie_rec.c (modified) (1 prop)
-
platform/ixus75_sd750/sub/100b/stubs_asm.h (modified) (1 prop)
-
platform/ixus75_sd750/sub/100b/stubs_auto.S (modified) (1 prop)
-
platform/ixus75_sd750/sub/100b/stubs_entry.S (modified) (1 prop)
-
platform/ixus75_sd750/sub/100b/stubs_entry_2.S (modified) (1 prop)
-
platform/ixus75_sd750/sub/100b/stubs_min.S (modified) (1 diff, 1 prop)
-
platform/ixus75_sd750/sub/101a/Makefile (modified) (1 prop)
-
platform/ixus75_sd750/sub/101a/boot.c (modified) (1 prop)
-
platform/ixus75_sd750/sub/101a/capt_seq.c (modified) (1 diff, 1 prop)
-
platform/ixus75_sd750/sub/101a/lib.c (modified) (1 prop)
-
platform/ixus75_sd750/sub/101a/makefile.inc (modified) (1 prop)
-
platform/ixus75_sd750/sub/101a/movie_rec.c (modified) (1 prop)
-
platform/ixus75_sd750/sub/101a/stubs_asm.h (modified) (1 prop)
-
platform/ixus75_sd750/sub/101a/stubs_auto.S (modified) (1 prop)
-
platform/ixus75_sd750/sub/101a/stubs_entry.S (modified) (1 prop)
-
platform/ixus75_sd750/sub/101a/stubs_entry_2.S (modified) (1 prop)
-
platform/ixus75_sd750/sub/101a/stubs_min.S (modified) (1 diff, 1 prop)
-
platform/ixus75_sd750/sub/102a/Makefile (modified) (1 prop)
-
platform/ixus75_sd750/sub/102a/boot.c (modified) (1 prop)
-
platform/ixus75_sd750/sub/102a/capt_seq.c (modified) (1 diff, 1 prop)
-
platform/ixus75_sd750/sub/102a/lib.c (modified) (1 prop)
-
platform/ixus75_sd750/sub/102a/makefile.inc (modified) (1 prop)
-
platform/ixus75_sd750/sub/102a/movie_rec.c (modified) (1 prop)
-
platform/ixus75_sd750/sub/102a/stubs_asm.h (modified) (1 prop)
-
platform/ixus75_sd750/sub/102a/stubs_auto.S (modified) (1 prop)
-
platform/ixus75_sd750/sub/102a/stubs_entry.S (modified) (1 prop)
-
platform/ixus75_sd750/sub/102a/stubs_entry_2.S (modified) (1 prop)
-
platform/ixus75_sd750/sub/102a/stubs_min.S (modified) (1 diff, 1 prop)
-
platform/ixus75_sd750/sub/Makefile (modified) (1 prop)
-
platform/ixus75_sd750/wrappers.c (modified) (1 prop)
Legend:
- Unmodified
- Added
- Removed
-
trunk/CHDK/SCRIPTS/examples/lotto.lua
r554 r560 55 55 print("Wrong params, dummy!;-)") 56 56 wait_click(0) 57 else57 else 58 58 if ((exclusive == 1) and ((max - min + 1)<count)) then 59 59 print("Wrong params, dummy!;-)") 60 60 wait_click(0) 61 else61 else 62 62 63 63 --If parameters ok start the main loop to throw the dice 64 64 65 65 repeat 66 result= {} -- create a table for result66 result= {} -- create a table for result 67 67 if exclusive == 1 then -- if exclusive is set 68 68 array = {} -- create a table for mix … … 89 89 if order == 1 then table.sort(result) end -- order result if set 90 90 output = table.concat(result,", ") -- create a string of the table 91 print("dice [SET] end [MENU]") -- output in console91 print("dice [SET] end [MENU]") -- output in console 92 92 print() 93 93 print(output) -- print a string variable … … 95 95 cls() -- clear the console 96 96 until key == "MENU" -- end of loop if pressed "MENU" 97 end -- "SET" repeat the loop97 end -- "SET" repeat the loop 98 98 end 99 99 -
trunk/CHDK/SCRIPTS/examples/tv_uni_e.lua
r546 r560 28 28 local x = 0 29 29 repeat 30 wait_click(key_delay)31 if is_pressed "remote" then32 key = "SET"33 x = 134 end35 if is_pressed "set" then36 key = "SET"37 x = 138 end39 if is_pressed "menu" then40 key = "MENU"41 x = 142 end43 if is_pressed "display" then44 key = "DISP"45 x = 146 end47 if is_pressed "left" then48 key = "LEFT"49 x = 150 end51 if is_pressed "right" then52 key = "RIGHT"53 x = 154 end55 if is_pressed "up" then56 key = "UP"57 x = 158 end59 if is_pressed "down" then60 key = "DOWN"61 x = 162 end30 wait_click(key_delay) 31 if is_pressed "remote" then 32 key = "SET" 33 x = 1 34 end 35 if is_pressed "set" then 36 key = "SET" 37 x = 1 38 end 39 if is_pressed "menu" then 40 key = "MENU" 41 x = 1 42 end 43 if is_pressed "display" then 44 key = "DISP" 45 x = 1 46 end 47 if is_pressed "left" then 48 key = "LEFT" 49 x = 1 50 end 51 if is_pressed "right" then 52 key = "RIGHT" 53 x = 1 54 end 55 if is_pressed "up" then 56 key = "UP" 57 x = 1 58 end 59 if is_pressed "down" then 60 key = "DOWN" 61 x = 1 62 end 63 63 until x == 1 64 64 set_led (8,1) -
trunk/include/camera.h
r558 r560 448 448 #define CAM_HAS_USER_TV_MODES 1 // Camera has tv-priority or manual modes with ability to set tv value 449 449 #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 // On some cameras Canon shoot menu has additional functionality and useful in this case to see CHDK OSD in this mode 450 #undef CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO // adress for zoom_status missing, probably more451 //#define CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO 1 // Camera can unlock optical zoom in video (if it is locked)450 // #undef CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO // adress for zoom_status missing, probably more 451 #define CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO 1 // Camera can unlock optical zoom in video (if it is locked) 452 452 #define CAM_FEATURE_FEATHER 1 // Cameras with "feather" or touch wheel. 453 453 #undef CAM_HAS_IS // Camera has image stabilizer -
trunk/platform/ixus75_sd750/Makefile
- Property svn:eol-style set to LF
-
trunk/platform/ixus75_sd750/kbd.c
- Property svn:eol-style set to native
-
trunk/platform/ixus75_sd750/lib.c
- Property svn:eol-style set to native
-
trunk/platform/ixus75_sd750/main.c
- Property svn:eol-style set to native
-
trunk/platform/ixus75_sd750/notes.txt
- Property svn:eol-style changed from CRLF to native
-
trunk/platform/ixus75_sd750/shooting.c
- Property svn:eol-style set to native
-
trunk/platform/ixus75_sd750/sub/100b/Makefile
- Property svn:eol-style set to LF
-
trunk/platform/ixus75_sd750/sub/100b/boot.c
- Property svn:eol-style set to native
-
trunk/platform/ixus75_sd750/sub/100b/capt_seq.c
- Property svn:eol-style set to native
r557 r560 3 3 #include "core.h" 4 4 5 #define RAWDATA_AVAILABLE (1) 6 #define RAWDATA_SAVED (2) 7 8 #define NR_ON (2) 9 #define NR_OFF (1) 10 11 static long raw_save_stage; 12 13 void capt_seq_hook_raw_here() 14 { 15 raw_save_stage = RAWDATA_AVAILABLE; 16 core_rawdata_available(); 17 while (raw_save_stage != RAWDATA_SAVED){ 18 _SleepTask(10); 19 } 20 } 21 22 void hook_raw_save_complete() 23 { 24 raw_save_stage = RAWDATA_SAVED; 25 } 26 27 28 void capt_seq_hook_set_nr() 29 { 30 long *nrflag = (long*)0xCF74; 31 32 switch (core_get_noise_reduction_value()){ 33 case NOISE_REDUCTION_AUTO_CANON: 34 // leave it alone 35 break; 36 case NOISE_REDUCTION_OFF: 37 *nrflag = 1; 38 break; 39 case NOISE_REDUCTION_ON: 40 *nrflag = 2; 41 break; 42 }; 43 } 5 long *nrflag = (long*)0xCF74; 6 7 #include "../../../generic/capt_seq.c" 44 8 45 9 void __attribute__((naked,noinline)) sub_FFB0D858_my(long p) -
trunk/platform/ixus75_sd750/sub/100b/lib.c
- Property svn:eol-style set to native
-
trunk/platform/ixus75_sd750/sub/100b/makefile.inc
- Property svn:eol-style set to LF
-
trunk/platform/ixus75_sd750/sub/100b/movie_rec.c
- Property svn:eol-style set to native
-
trunk/platform/ixus75_sd750/sub/100b/stubs_asm.h
- Property svn:eol-style set to native
-
trunk/platform/ixus75_sd750/sub/100b/stubs_auto.S
- Property svn:eol-style set to native
-
trunk/platform/ixus75_sd750/sub/100b/stubs_entry.S
- Property svn:eol-style set to native
-
trunk/platform/ixus75_sd750/sub/100b/stubs_entry_2.S
- Property svn:eol-style set to native
-
trunk/platform/ixus75_sd750/sub/100b/stubs_min.S
- Property svn:eol-style set to native
r558 r560 15 15 DEF(recreview_hold, 0x25E4) // (0x25E8 - 0x4) found in "AR:Snd:0x%04x" 16 16 DEF(movie_status,0xBBC48) 17 DEF(zoom_status, 0x26B8) // found near _MoveOpticalToTele, _StopOpticalZoom etc 18 -
trunk/platform/ixus75_sd750/sub/101a/Makefile
- Property svn:eol-style set to LF
-
trunk/platform/ixus75_sd750/sub/101a/boot.c
- Property svn:eol-style set to native
-
trunk/platform/ixus75_sd750/sub/101a/capt_seq.c
- Property svn:eol-style set to native
r557 r560 3 3 #include "core.h" 4 4 5 #define RAWDATA_AVAILABLE (1) 6 #define RAWDATA_SAVED (2) 7 8 #define NR_ON (2) 9 #define NR_OFF (1) 10 11 static long raw_save_stage; 12 13 void capt_seq_hook_raw_here() 14 { 15 raw_save_stage = RAWDATA_AVAILABLE; 16 core_rawdata_available(); 17 while (raw_save_stage != RAWDATA_SAVED){ 18 _SleepTask(10); 19 } 20 } 21 22 void hook_raw_save_complete() 23 { 24 raw_save_stage = RAWDATA_SAVED; 25 } 26 27 28 void capt_seq_hook_set_nr() 29 { 30 long *nrflag = (long*)0xCF74; 31 32 switch (core_get_noise_reduction_value()){ 33 case NOISE_REDUCTION_AUTO_CANON: 34 // leave it alone 35 break; 36 case NOISE_REDUCTION_OFF: 37 *nrflag = 1; 38 break; 39 case NOISE_REDUCTION_ON: 40 *nrflag = 2; 41 break; 42 }; 43 } 5 static long *nrflag = (long*)0xCF74; 6 7 #include "../../../generic/capt_seq.c" 44 8 45 9 void __attribute__((naked,noinline)) sub_FFB0D8CC_my(long p) -
trunk/platform/ixus75_sd750/sub/101a/lib.c
- Property svn:eol-style set to native
-
trunk/platform/ixus75_sd750/sub/101a/makefile.inc
- Property svn:eol-style set to LF
-
trunk/platform/ixus75_sd750/sub/101a/movie_rec.c
- Property svn:eol-style set to native
-
trunk/platform/ixus75_sd750/sub/101a/stubs_asm.h
- Property svn:eol-style set to native
-
trunk/platform/ixus75_sd750/sub/101a/stubs_auto.S
- Property svn:eol-style set to native
-
trunk/platform/ixus75_sd750/sub/101a/stubs_entry.S
- Property svn:eol-style set to native
-
trunk/platform/ixus75_sd750/sub/101a/stubs_entry_2.S
- Property svn:eol-style set to native
-
trunk/platform/ixus75_sd750/sub/101a/stubs_min.S
- Property svn:eol-style set to native
r558 r560 15 15 DEF(recreview_hold, 0x25E4) // (0x25E8 - 0x4) found in "AR:Snd:0x%04x" 16 16 DEF(movie_status,0xBBC48) 17 DEF(zoom_status, 0x26B8) // found near _MoveOpticalToTele, _StopOpticalZoom etc 18 -
trunk/platform/ixus75_sd750/sub/102a/Makefile
- Property svn:eol-style set to LF
-
trunk/platform/ixus75_sd750/sub/102a/boot.c
- Property svn:eol-style set to native
-
trunk/platform/ixus75_sd750/sub/102a/capt_seq.c
- Property svn:eol-style set to native
r557 r560 3 3 #include "core.h" 4 4 5 #define RAWDATA_AVAILABLE (1) 6 #define RAWDATA_SAVED (2) 7 8 #define NR_ON (2) 9 #define NR_OFF (1) 10 11 static long raw_save_stage; 12 13 void capt_seq_hook_raw_here() 14 { 15 raw_save_stage = RAWDATA_AVAILABLE; 16 core_rawdata_available(); 17 while (raw_save_stage != RAWDATA_SAVED){ 18 _SleepTask(10); 19 } 20 } 21 22 void hook_raw_save_complete() 23 { 24 raw_save_stage = RAWDATA_SAVED; 25 } 26 27 28 void capt_seq_hook_set_nr() 29 { 30 long *nrflag = (long*)0xCF74; 31 32 switch (core_get_noise_reduction_value()){ 33 case NOISE_REDUCTION_AUTO_CANON: 34 // leave it alone 35 break; 36 case NOISE_REDUCTION_OFF: 37 *nrflag = 1; 38 break; 39 case NOISE_REDUCTION_ON: 40 *nrflag = 2; 41 break; 42 }; 43 } 5 static long *nrflag = (long*)0xCF74; 6 7 #include "../../../generic/capt_seq.c" 44 8 45 9 // Checked for the SD750 v1.02A -
trunk/platform/ixus75_sd750/sub/102a/lib.c
- Property svn:eol-style set to native
-
trunk/platform/ixus75_sd750/sub/102a/makefile.inc
- Property svn:eol-style set to LF
-
trunk/platform/ixus75_sd750/sub/102a/movie_rec.c
- Property svn:eol-style set to native
-
trunk/platform/ixus75_sd750/sub/102a/stubs_asm.h
- Property svn:eol-style set to native
-
trunk/platform/ixus75_sd750/sub/102a/stubs_auto.S
- Property svn:eol-style set to native
-
trunk/platform/ixus75_sd750/sub/102a/stubs_entry.S
- Property svn:eol-style set to native
-
trunk/platform/ixus75_sd750/sub/102a/stubs_entry_2.S
- Property svn:eol-style set to native
-
trunk/platform/ixus75_sd750/sub/102a/stubs_min.S
- Property svn:eol-style set to native
r558 r560 15 15 DEF(recreview_hold, 0x25E4) // (0x25E8 - 0x4) found in "AR:Snd:0x%04x" 16 16 DEF(movie_status,0xBBC48) 17 DEF(zoom_status, 0x26B8) // found near _MoveOpticalToTele, _StopOpticalZoom etc 18 -
trunk/platform/ixus75_sd750/sub/Makefile
- Property svn:eol-style set to LF
-
trunk/platform/ixus75_sd750/wrappers.c
- Property svn:eol-style set to native
Note: See TracChangeset
for help on using the changeset viewer.