Changeset 1935
- Timestamp:
- 06/25/12 04:55:16 (11 months ago)
- Location:
- branches/philmoz-uitest
- Files:
-
- 37 edited
- 2 copied
-
. (modified) (1 prop)
-
camera_list.csv (modified) (1 diff)
-
core/action_stack.c (modified) (2 diffs)
-
core/edgeoverlay.c (modified) (2 diffs)
-
core/edgeoverlay.h (modified) (1 diff)
-
core/gui.c (modified) (1 diff)
-
core/gui_osd.c (modified) (1 diff)
-
core/usb_remote.c (modified) (4 diffs)
-
core/usb_remote.h (modified) (1 diff)
-
include/conf.h (modified) (1 diff)
-
loader/a2200 (copied) (copied from trunk/loader/a2200)
-
platform/a2200 (copied) (copied from trunk/platform/a2200)
-
platform/a410/kbd.c (modified) (1 diff)
-
platform/a410/platform_camera.h (modified) (1 diff)
-
platform/a410/sub/100f/lib.c (modified) (3 diffs)
-
platform/a420/kbd.c (modified) (1 diff)
-
platform/a420/platform_camera.h (modified) (1 diff)
-
platform/a430/kbd.c (modified) (1 diff)
-
platform/a430/platform_camera.h (modified) (1 diff)
-
platform/a530/kbd.c (modified) (1 diff)
-
platform/a530/platform_camera.h (modified) (1 diff)
-
platform/a540/kbd.c (modified) (1 diff)
-
platform/a540/platform_camera.h (modified) (1 diff)
-
platform/a610/kbd.c (modified) (1 diff)
-
platform/a610/platform_camera.h (modified) (1 diff)
-
platform/a620/kbd.c (modified) (1 diff)
-
platform/a620/platform_camera.h (modified) (1 diff)
-
platform/a630/kbd.c (modified) (1 diff)
-
platform/a630/platform_camera.h (modified) (1 diff)
-
platform/a640/kbd.c (modified) (1 diff)
-
platform/a640/platform_camera.h (modified) (1 diff)
-
platform/a700/kbd.c (modified) (1 diff)
-
platform/a700/platform_camera.h (modified) (1 diff)
-
platform/a710/kbd.c (modified) (1 diff)
-
platform/a710/platform_camera.h (modified) (1 diff)
-
platform/g10/kbd.c (modified) (1 diff)
-
platform/generic/kbd.c (modified) (4 diffs)
-
platform/ixus800_sd700/kbd.c (modified) (1 diff)
-
platform/ixus800_sd700/platform_camera.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/philmoz-uitest
-
branches/philmoz-uitest/camera_list.csv
r1929 r1935 5 5 a2000,100c,BETA,100a:100b, 6 6 a2100,100a,ALPHA,,SKIP_AUTOBUILD 7 a2200,100b,ALPHA,,SKIP_AUTOBUILD 8 a2200,100d,ALPHA,,SKIP_AUTOBUILD 7 9 a3000,100b,BETA,, 8 10 a3000,100c,BETA,, -
branches/philmoz-uitest/core/action_stack.c
r1649 r1935 9 9 #include "action_stack.h" 10 10 11 extern int usb_sync_wait ; 12 13 11 14 typedef struct _action_stack 12 15 { … … 213 216 int action_stack_standard(long p) 214 217 { 218 long skey ; 219 215 220 switch (p) 216 221 { 217 222 case AS_PRESS: 218 kbd_key_press(action_get_prev(2)); 223 skey=action_get_prev(2) ; 224 if ((skey == KEY_SHOOT_FULL) && conf.remote_enable && conf.synch_enable ) usb_sync_wait = 1 ; 225 kbd_key_press(skey); 219 226 action_pop(); 220 227 action_pop(); -
branches/philmoz-uitest/core/edgeoverlay.c
r1874 r1935 662 662 case EDGE_LIVE: 663 663 { 664 edge_state_draw=0;664 conf.edge_state_draw=0; 665 665 // In this state we assume no edge overlay in memory, 666 666 // but we are ready to create one if the user presses wishes so. … … 699 699 case EDGE_FROZEN: 700 700 { 701 edge_state_draw=1;701 conf.edge_state_draw=1; 702 702 // We have a stored edge overlay in memory and we display 703 703 // it on screen in 'frozen' mode. -
branches/philmoz-uitest/core/edgeoverlay.h
r1874 r1935 16 16 }; 17 17 18 int edge_state_draw;19 20 18 // Defines of exported to chdk symbols 21 19 #ifdef THIS_IS_CHDK_CORE -
branches/philmoz-uitest/core/gui.c
r1927 r1935 1471 1471 static const char* names[]={ "Shrtcut", "Flash", "Video"}; 1472 1472 static const int keys[]={ KEY_PRINT, KEY_FLASH, KEY_VIDEO }; 1473 #elif defined(CAMERA_a 570) || defined(CAMERA_a580) || defined(CAMERA_a590) || defined(CAMERA_a720) || defined(CAMERA_ixus65_sd630)1473 #elif defined(CAMERA_a410) || defined(CAMERA_a430) || defined(CAMERA_a420) || defined(CAMERA_a530) || defined(CAMERA_a540) || defined(CAMERA_a570) || defined(CAMERA_a580) || defined(CAMERA_a590) ||defined(CAMERA_a630) || defined(CAMERA_a640) || defined(CAMERA_a610) || defined(CAMERA_a620) || defined(CAMERA_a700) || defined(CAMERA_a710) || defined(CAMERA_a720) || defined(CAMERA_ixus65_sd630) || defined(CAMERA_ixus800_sd700) 1474 1474 static const char* names[]={ "Print", "Display"}; 1475 1475 static const int keys[] = {KEY_PRINT, KEY_DISPLAY}; -
branches/philmoz-uitest/core/gui_osd.c
r1830 r1935 280 280 // edgeoverlay state 281 281 if (conf.edge_overlay_enable || gui_mode==GUI_MODE_OSD) { 282 if ( edge_state_draw==0) gui_print_osd_state_string_chr("EDGE:", "LIVE");283 else if ( edge_state_draw==1) gui_print_osd_state_string_chr("EDGE:", ((conf.edge_overlay_pano==0)?"FROZEN":"PANO"));282 if (conf.edge_state_draw==0) gui_print_osd_state_string_chr("EDGE:", "LIVE"); 283 else if (conf.edge_state_draw==1) gui_print_osd_state_string_chr("EDGE:", ((conf.edge_overlay_pano==0)?"FROZEN":"PANO")); 284 284 } 285 285 #endif -
branches/philmoz-uitest/core/usb_remote.c
r1694 r1935 336 336 /*--------------------------------------------------------------------------------------------------------- 337 337 338 clear_usb_power() 339 340 ---------------------------------------------------------------------------------------------------------*/ 341 342 void clear_usb_power() 343 { 344 usb_power = 0 ; 345 usb_count = 0 ; 346 logic_module_usb_count = 0; 347 usb_buffer_out = usb_buffer_in = usb_buffer ; 348 } 349 350 /*--------------------------------------------------------------------------------------------------------- 351 338 352 get_usb_power() 339 353 … … 343 357 int get_usb_power(int mode) 344 358 { 345 int x ;359 int x = 0; 346 360 347 361 switch( mode) … … 357 371 358 372 case BUFFERED_PULSE : 359 if ( usb_buffer_out == usb_buffer_in ) 360 { 361 x = 0 ; 362 } 363 else 373 if ( usb_buffer_out != usb_buffer_in ) 364 374 { 365 375 if ( ++usb_buffer_out > &usb_buffer[USB_BUFFER_SIZE-1] ) usb_buffer_out = usb_buffer ; … … 377 387 logic_module_usb_count = 0; 378 388 break ; 379 380 default:381 x=0;389 390 case CLEAR_USB_REGISTERS : 391 clear_usb_power() ; 382 392 break ; 383 393 } -
branches/philmoz-uitest/core/usb_remote.h
r1618 r1935 109 109 BUFFERED_PULSE , 110 110 PULSE_COUNT, 111 LM_PULSE_COUNT 111 LM_PULSE_COUNT, 112 CLEAR_USB_REGISTERS 112 113 } ; 113 114 -
branches/philmoz-uitest/include/conf.h
r1915 r1935 305 305 int edge_overlay_play; // whether edge overlay is switched on also for play mode 306 306 color edge_overlay_color; 307 int edge_state_draw; // Current state of overlay (Live/Frozen/Pano) [not saved to config file] 307 308 308 309 int synch_enable; -
branches/philmoz-uitest/platform/a410/kbd.c
r1344 r1935 1 2 #include <stdlib.h> 3 4 static long alt_mode_key_mask = 0x00001000; // = KEY_PRINT 5 static long alt_mode_key_reg = 2; 6 1 7 #include "../generic/kbd.c" 2 8 -
branches/philmoz-uitest/platform/a410/platform_camera.h
r1696 r1935 33 33 #define CAM_HAS_ND_FILTER 1 34 34 #undef CAM_HAS_MANUAL_FOCUS 35 #define CAM_ADJUSTABLE_ALT_BUTTON 1 35 36 36 37 #undef CAM_HAS_USER_TV_MODES -
branches/philmoz-uitest/platform/a410/sub/100f/lib.c
r1527 r1935 22 22 } 23 23 24 /* 25 void *vid_get_viewport_live_fb() 26 { 27 return (void*)0; 24 int vid_get_viewport_width_proper() { 25 int m = mode_get(); 26 if((m&MODE_MASK) == MODE_PLAY) { 27 return 720; //no tv-out 28 } 29 // return hard coded width since mode doesn't update at the same time as GetVRAMHPixelsSize 30 if((m&MODE_SHOOTING_MASK) == MODE_STITCH) { 31 return 360; 32 } 33 return *(int*)0x36a98; 28 34 } 29 */ 35 36 int vid_get_viewport_height_proper() { 37 int m = mode_get(); 38 if((m&MODE_MASK) == MODE_PLAY) { 39 return 240; //no tv-out 40 } 41 // return hard coded width since mode doesn't update at the same time as GetVRAMHPixelsSize 42 if((m&MODE_SHOOTING_MASK) == MODE_STITCH) { 43 return 120; 44 } 45 return *(int*)0x36a9c; 46 } 30 47 31 48 void *vid_get_viewport_live_fb() // from a540 … … 57 74 } 58 75 76 int vid_get_viewport_width() { 77 return vid_get_viewport_width_proper()>>1; 78 } 79 59 80 long vid_get_viewport_height() 60 81 { 61 // return ((mode_get()&MODE_MASK) == MODE_PLAY) ? 240 : 230; 62 return 240; 82 return vid_get_viewport_height_proper(); 63 83 } 64 84 … … 67 87 return (char*)0x7F9F0; // @ffdd479c 68 88 } 89 90 int vid_get_palette_type() { return 1; } 91 int vid_get_palette_size() { return 16*4; } 92 93 void *vid_get_bitmap_active_palette() { 94 return (void *)0x73028; // GetPaletteFromPhysicalScreen 95 } 96 97 void *vid_get_bitmap_active_buffer() 98 { 99 return (void*)(*(int*)0x6694); // @ffd0a170 DisplayPhysicalScreenWithYUVPalette 100 } 101 102 int vid_get_viewport_fullscreen_height() { 103 // except for stitch, always full screen 104 int m = mode_get(); 105 if((m&MODE_MASK) != MODE_PLAY && ((m&MODE_SHOOTING_MASK) == MODE_STITCH)) { 106 return 240; 107 } 108 return vid_get_viewport_height_proper(); 109 } 110 111 int vid_get_viewport_fullscreen_width() { 112 // except for stitch, always full screen 113 int m = mode_get(); 114 if((m&MODE_MASK) != MODE_PLAY && ((m&MODE_SHOOTING_MASK) == MODE_STITCH)) { 115 return 720; 116 } 117 return vid_get_viewport_width_proper(); 118 } 119 120 int vid_get_viewport_display_xoffset() { 121 int m = mode_get(); 122 if((m&MODE_MASK) == MODE_PLAY) { 123 return 0; 124 } else if((m&MODE_SHOOTING_MASK) == MODE_STITCH) { // checked visually, OK 125 short dir=0; 126 short seq=0; 127 get_property_case(PROPCASE_STITCH_DIRECTION,&dir,sizeof(dir)); 128 get_property_case(PROPCASE_STITCH_SEQUENCE,&seq,sizeof(seq)); 129 // overall stitch window is 3/4 screen width, centered 130 // live part is 1/2, so margin is either 1/8th or 3/8th 131 if(dir==0) { 132 return seq?132:44; 133 } else { 134 return seq?44:132; 135 } 136 } 137 return 0; 138 } 139 140 int vid_get_viewport_display_yoffset() { 141 int m = mode_get(); 142 if((m&MODE_MASK) == MODE_PLAY) { 143 return 0; 144 } 145 return ((m&MODE_SHOOTING_MASK) == MODE_STITCH)?60:0; // window is 120, centered in 240 screen 146 } -
branches/philmoz-uitest/platform/a420/kbd.c
r1736 r1935 1 2 #include <stdlib.h> 3 4 static long alt_mode_key_mask = 0x000001000; // = KEY_PRINT 5 static long alt_mode_key_reg = 2; 6 1 7 #include "../generic/kbd.c" 2 8 -
branches/philmoz-uitest/platform/a420/platform_camera.h
r1736 r1935 30 30 #define CAM_DRAW_EXPOSITION 1 31 31 #undef CAM_HAS_ERASE_BUTTON 32 #define CAM_ADJUSTABLE_ALT_BUTTON 1 33 32 34 #undef CAM_HAS_IRIS_DIAPHRAGM 33 35 #define CAM_HAS_ND_FILTER 1 -
branches/philmoz-uitest/platform/a430/kbd.c
r1641 r1935 1 2 #include <stdlib.h> 3 4 static long alt_mode_key_mask = 0x000001000; // = KEY_PRINT 5 static long alt_mode_key_reg = 2; 6 1 7 #include "../generic/kbd.c" 2 8 -
branches/philmoz-uitest/platform/a430/platform_camera.h
r1656 r1935 29 29 #undef CAM_HAS_ZOOM_LEVER 30 30 #define CAM_DRAW_EXPOSITION 1 31 #undef CAM_HAS_ERASE_BUTTON32 31 #undef CAM_HAS_IRIS_DIAPHRAGM 32 #define CAM_ADJUSTABLE_ALT_BUTTON 1 33 33 #define CAM_HAS_ND_FILTER 1 34 34 #undef CAM_HAS_MANUAL_FOCUS -
branches/philmoz-uitest/platform/a530/kbd.c
r1344 r1935 1 2 #include <stdlib.h> 3 4 static long alt_mode_key_mask = 0x000001000; // = KEY_PRINT 5 static long alt_mode_key_reg = 2; 6 1 7 #include "../generic/kbd.c" 2 8 -
branches/philmoz-uitest/platform/a530/platform_camera.h
r1696 r1935 36 36 #define CAM_AF_SCAN_DURING_VIDEO_RECORD 2 37 37 #define CAM_EV_IN_VIDEO 1 38 #define CAM_ADJUSTABLE_ALT_BUTTON 1 38 39 39 40 #define CAM_DNG_LENS_INFO { 58,10, 232,10, 26,10, 55,10 } // See comments in camera.h -
branches/philmoz-uitest/platform/a540/kbd.c
r1344 r1935 1 1 2 2 #include <stdlib.h> 3 4 static long alt_mode_key_mask = 0x000001000; // = KEY_PRINT 5 static long alt_mode_key_reg = 2; 3 6 4 7 #include "../generic/kbd.c" -
branches/philmoz-uitest/platform/a540/platform_camera.h
r1696 r1935 30 30 #undef CAM_HAS_IS 31 31 #define CAM_CAN_MUTE_MICROPHONE 1 32 #define CAM_ADJUSTABLE_ALT_BUTTON 1 32 33 #define CAM_AF_SCAN_DURING_VIDEO_RECORD 2 33 34 #define CAM_EV_IN_VIDEO 1 -
branches/philmoz-uitest/platform/a610/kbd.c
r1344 r1935 1 2 #include <stdlib.h> 3 4 static long alt_mode_key_mask = 0x000001000; // = KEY_PRINT 5 static long alt_mode_key_reg = 2; 6 1 7 #include "../generic/kbd.c" 2 8 -
branches/philmoz-uitest/platform/a610/platform_camera.h
r1656 r1935 33 33 #define CAM_AF_SCAN_DURING_VIDEO_RECORD 2 34 34 #define CAM_EV_IN_VIDEO 1 35 #define CAM_ADJUSTABLE_ALT_BUTTON 1 36 35 37 #define CAM_EXT_TV_RANGE 1 36 38 #define CAM_DNG_LENS_INFO { 73,10, 292,10, 28,10, 41,10 } // See comments in camera.h -
branches/philmoz-uitest/platform/a620/kbd.c
r1344 r1935 1 2 #include <stdlib.h> 3 4 static long alt_mode_key_mask = 0x000001000; // = KEY_PRINT 5 static long alt_mode_key_reg = 2; 6 1 7 #include "../generic/kbd.c" 2 8 -
branches/philmoz-uitest/platform/a620/platform_camera.h
r1656 r1935 32 32 #define CAM_AF_SCAN_DURING_VIDEO_RECORD 2 33 33 #define CAM_EV_IN_VIDEO 1 34 #define CAM_ADJUSTABLE_ALT_BUTTON 1 34 35 35 36 #define CAM_DNG_LENS_INFO { 73,10, 292,10, 28,10, 41,10 } // See comments in camera.h -
branches/philmoz-uitest/platform/a630/kbd.c
r1344 r1935 1 2 #include <stdlib.h> 3 4 static long alt_mode_key_mask = 0x00001000; // = KEY_PRINT 5 static long alt_mode_key_reg = 2; 6 1 7 #include "../generic/kbd.c" 2 8 -
branches/philmoz-uitest/platform/a630/platform_camera.h
r1656 r1935 33 33 #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 34 34 #define CAM_EV_IN_VIDEO 1 35 #define CAM_ADJUSTABLE_ALT_BUTTON 1 35 36 36 37 #define CAM_DNG_LENS_INFO { 73,10, 292,10, 28,10, 41,10 } // See comments in camera.h -
branches/philmoz-uitest/platform/a640/kbd.c
r1344 r1935 1 2 #include <stdlib.h> 3 4 static long alt_mode_key_mask = 0x000001000; // = KEY_PRINT 5 static long alt_mode_key_reg = 2; 6 1 7 #include "../generic/kbd.c" 2 8 -
branches/philmoz-uitest/platform/a640/platform_camera.h
r1656 r1935 33 33 #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 34 34 #define CAM_EV_IN_VIDEO 1 35 #define CAM_ADJUSTABLE_ALT_BUTTON 1 35 36 36 37 #define CAM_DNG_LENS_INFO { 73,10, 292,10, 28,10, 41,10 } // See comments in camera.h -
branches/philmoz-uitest/platform/a700/kbd.c
r1344 r1935 1 2 #include <stdlib.h> 3 4 static long alt_mode_key_mask = 0x000001000; // = KEY_PRINT 5 static long alt_mode_key_reg = 2; 6 1 7 #include "../generic/kbd.c" 2 8 -
branches/philmoz-uitest/platform/a700/platform_camera.h
r1656 r1935 30 30 #define CAM_AF_SCAN_DURING_VIDEO_RECORD 2 31 31 #define CAM_EV_IN_VIDEO 1 32 #define CAM_ADJUSTABLE_ALT_BUTTON 1 32 33 33 34 #define CAM_DNG_LENS_INFO { 58,10, 348,10, 28,10, 48,10 } // See comments in camera.h -
branches/philmoz-uitest/platform/a710/kbd.c
r1344 r1935 1 2 #include <stdlib.h> 3 4 static long alt_mode_key_mask = 0x000001000; // = KEY_PRINT 5 static long alt_mode_key_reg = 2; 6 1 7 #include "../generic/kbd.c" 2 8 -
branches/philmoz-uitest/platform/a710/platform_camera.h
r1696 r1935 31 31 #define CAM_EV_IN_VIDEO 1 32 32 #define CAM_REAR_CURTAIN 1 // http://chdk.setepontos.com/index.php/topic,650.msg54434.html#msg54434 33 #define CAM_ADJUSTABLE_ALT_BUTTON 1 33 34 34 35 #define CAM_DNG_LENS_INFO { 58,10, 348,10, 28,10, 48,10 } // See comments in camera.h -
branches/philmoz-uitest/platform/g10/kbd.c
r1838 r1935 17 17 18 18 static long last_kbd_key = 0; 19 static long alt_mode_key_mask = 0x00000 400; // G1019 static long alt_mode_key_mask = 0x00000200; // default to G10 Print Key 20 20 21 21 extern void _GetKbdState(long*); -
branches/philmoz-uitest/platform/generic/kbd.c
r1736 r1935 27 27 #define SD_READONLY_FLAG (0x20000) 28 28 29 #if defined(CAMERA_a530) || defined(CAMERA_a540) 30 #define USB_MASK 0x4000 31 #define USB_IDX 2 32 #endif 33 34 35 #if defined(CAMERA_a630) || defined(CAMERA_a640) || defined(CAMERA_a610) || defined(CAMERA_a620) || defined(CAMERA_ixus800_sd700) || defined(CAMERA_ixus65_sd630) || defined(CAMERA_ixus850_sd800) || defined(CAMERA_ixus900_sd900) || defined (CAMERA_ixus70_sd1000) || defined (CAMERA_ixus950_sd850) || defined(CAMERA_a410) || defined(CAMERA_a430) || defined(CAMERA_a420) 36 #define USB_MASK 0x8000000 37 #define USB_IDX 1 38 #endif 39 29 40 #if defined(CAMERA_a710) || defined(CAMERA_a700) 30 41 #define USB_MASK 0x08 … … 32 43 #endif 33 44 34 #if defined(CAMERA_a630) || defined(CAMERA_a640) || defined(CAMERA_a610)\35 || defined(CAMERA_a620) || defined(CAMERA_ixus800_sd700) || defined(CAMERA_a410)\36 || defined(CAMERA_a420) || defined(CAMERA_a430)37 #define USB_MASK 0x800000038 #define USB_IDX 139 #endif40 41 #if defined(CAMERA_a530) || defined(CAMERA_a540)42 #define USB_MASK 0x400043 #define USB_IDX 244 #endif45 45 46 46 int get_usb_bit() … … 148 148 physw_status[1] = kbd_new_state[1]; 149 149 physw_status[2] = kbd_new_state[2]; 150 physw_status[alt_mode_key_reg] |= alt_mode_key_mask; 151 150 152 } else { 151 153 // override keys … … 176 178 } 177 179 180 void kbd_set_alt_mode_key_mask(long key) 181 { 182 int i; 183 for (i=0; keymap[i].hackkey; ++i) { 184 if (keymap[i].hackkey == key) { 185 alt_mode_key_mask = keymap[i].canonkey; 186 return; 187 } 188 } 189 } 178 190 179 191 void kbd_key_press(long key) -
branches/philmoz-uitest/platform/ixus800_sd700/kbd.c
r1344 r1935 1 2 #include <stdlib.h> 3 4 static long alt_mode_key_mask = 0x000001000; // = KEY_PRINT 5 static long alt_mode_key_reg = 2; 6 1 7 #include "../generic/kbd.c" 2 8 -
branches/philmoz-uitest/platform/ixus800_sd700/platform_camera.h
r1656 r1935 35 35 #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 36 36 #define CAM_AF_SCAN_DURING_VIDEO_RECORD 2 37 #define CAM_ADJUSTABLE_ALT_BUTTON 1 37 38 38 39 #define CAM_DNG_LENS_INFO { 58,10, 232,10, 28,10, 55,10 } // See comments in camera.h
Note: See TracChangeset
for help on using the changeset viewer.