- Timestamp:
- 03/26/11 23:03:11 (2 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
core/action_stack.c (modified) (3 diffs)
-
include/camera.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/core/action_stack.c
r1101 r1105 122 122 { 123 123 // WARNING stack program flow is reversed 124 action_push_delay( 20);124 action_push_delay(CAM_KEY_PRESS_DELAY); 125 125 action_push(key); 126 126 action_push(AS_PRESS); … … 131 131 { 132 132 // WARNING stack program flow is reversed 133 action_push_delay( 20);133 action_push_delay(CAM_KEY_RELEASE_DELAY); 134 134 action_push(key); 135 135 action_push(AS_RELEASE); … … 140 140 // WARNING stack program flow is reversed 141 141 action_push_release(key); 142 #if defined(CAM_KEY_CLICK_DELAY) // camera need delay for click 143 action_push_delay(CAM_KEY_CLICK_DELAY); 144 #endif 142 145 action_push_press(key); 143 146 } -
trunk/include/camera.h
r1091 r1105 100 100 101 101 #undef CAM_DATE_FOLDER_NAMING // set if camera uses date based folder naming (Option "Create Folder" in Canon Menu) and get_target_dir_name is implemented 102 103 #undef CAM_KEY_CLICK_DELAY // additional delay between press and release for scripted click 104 #define CAM_KEY_PRESS_DELAY 20 // delay after a press - TODO can we combine this with above ? 105 #define CAM_KEY_RELEASE_DELAY 20 // delay after a release - TODO do we really need to wait after release ? 102 106 103 107 //---------------------------------------------------------- … … 3219 3223 #define CAM_BITMAP_PALETTE 7 3220 3224 3221 //zebra letterbox for saving memory3222 #undef ZEBRA_HMARGIN03223 #define ZEBRA_HMARGIN0 30 //this 30 rows are not used by the display buffer is 720x240 effective, no 960x270, i.e. (270-240) reduction in widht possible but not done (more difficult to manage it and slower).3225 //zebra letterbox for saving memory 3226 #undef ZEBRA_HMARGIN0 3227 #define ZEBRA_HMARGIN0 30 //this 30 rows are not used by the display buffer is 720x240 effective, no 960x270, i.e. (270-240) reduction in widht possible but not done (more difficult to manage it and slower). 3224 3228 3225 #undef EDGE_HMARGIN3226 #define EDGE_HMARGIN 23227 #define CAM_CHDK_PTP 13229 #undef EDGE_HMARGIN 3230 #define EDGE_HMARGIN 2 3231 #define CAM_CHDK_PTP 1 3228 3232 3229 3233 #define CAM_DATE_FOLDER_NAMING 1 … … 3233 3237 #define EXMEM_BUFFER_SIZE (1024*1024*2) // desired amount of exmem memory to allocate 3234 3238 3239 #define CAM_KEY_CLICK_DELAY 150 // SX30 appears to need extra delay for clicks 3235 3240 //---------------------------------------------------------- 3236 3241 #elif defined (CAMERA_g12) … … 3329 3334 #define CAM_ZEBRA_ASPECT_ADJUST 1 3330 3335 3331 //zebra letterbox for saving memory3332 #undef ZEBRA_HMARGIN03333 #define ZEBRA_HMARGIN0 30 //this 30 rows are not used by the display buffer is 720x240 effective, no 960x270, i.e. (270-240) reduction in widht possible but not done (more difficult to manage it and slower).3336 //zebra letterbox for saving memory 3337 #undef ZEBRA_HMARGIN0 3338 #define ZEBRA_HMARGIN0 30 //this 30 rows are not used by the display buffer is 720x240 effective, no 960x270, i.e. (270-240) reduction in widht possible but not done (more difficult to manage it and slower). 3334 3339 3335 3340 #define CAM_DATE_FOLDER_NAMING 1
Note: See TracChangeset
for help on using the changeset viewer.