Changeset 1935


Ignore:
Timestamp:
06/25/12 04:55:16 (11 months ago)
Author:
philmoz
Message:

Merged revision(s) 1931-1934 from trunk:
Update test branch with latest trunk changes.

Location:
branches/philmoz-uitest
Files:
37 edited
2 copied

Legend:

Unmodified
Added
Removed
  • branches/philmoz-uitest

  • branches/philmoz-uitest/camera_list.csv

    r1929 r1935  
    55a2000,100c,BETA,100a:100b, 
    66a2100,100a,ALPHA,,SKIP_AUTOBUILD 
     7a2200,100b,ALPHA,,SKIP_AUTOBUILD 
     8a2200,100d,ALPHA,,SKIP_AUTOBUILD 
    79a3000,100b,BETA,, 
    810a3000,100c,BETA,, 
  • branches/philmoz-uitest/core/action_stack.c

    r1649 r1935  
    99#include "action_stack.h" 
    1010 
     11extern int usb_sync_wait ; 
     12 
     13 
    1114typedef struct _action_stack 
    1215{ 
     
    213216int action_stack_standard(long p) 
    214217{ 
     218    long skey ; 
     219 
    215220    switch (p) 
    216221    { 
    217222    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); 
    219226        action_pop(); 
    220227        action_pop(); 
  • branches/philmoz-uitest/core/edgeoverlay.c

    r1874 r1935  
    662662    case EDGE_LIVE: 
    663663    { 
    664         edge_state_draw=0; 
     664        conf.edge_state_draw=0; 
    665665        // In this state we assume no edge overlay in memory, 
    666666        // but we are ready to create one if the user presses wishes so. 
     
    699699    case EDGE_FROZEN: 
    700700    { 
    701         edge_state_draw=1; 
     701        conf.edge_state_draw=1; 
    702702        // We have a stored edge overlay in memory and we display 
    703703        // it on screen in 'frozen' mode. 
  • branches/philmoz-uitest/core/edgeoverlay.h

    r1874 r1935  
    1616}; 
    1717 
    18 int edge_state_draw; 
    19  
    2018// Defines of exported to chdk symbols 
    2119#ifdef THIS_IS_CHDK_CORE 
  • branches/philmoz-uitest/core/gui.c

    r1927 r1935  
    14711471        static const char* names[]={ "Shrtcut", "Flash", "Video"}; 
    14721472        static const int keys[]={ KEY_PRINT, KEY_FLASH, KEY_VIDEO }; 
    1473     #elif defined(CAMERA_a570) || 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)  
    14741474        static const char* names[]={ "Print", "Display"}; 
    14751475        static const int keys[] = {KEY_PRINT, KEY_DISPLAY}; 
  • branches/philmoz-uitest/core/gui_osd.c

    r1830 r1935  
    280280    // edgeoverlay state 
    281281    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")); 
    284284    } 
    285285#endif 
  • branches/philmoz-uitest/core/usb_remote.c

    r1694 r1935  
    336336/*--------------------------------------------------------------------------------------------------------- 
    337337 
     338         clear_usb_power() 
     339 
     340  ---------------------------------------------------------------------------------------------------------*/ 
     341 
     342void 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 
    338352         get_usb_power() 
    339353 
     
    343357int get_usb_power(int mode) 
    344358{ 
    345         int x; 
     359        int x = 0; 
    346360 
    347361        switch( mode) 
     
    357371 
    358372                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 ) 
    364374                        { 
    365375                                if ( ++usb_buffer_out > &usb_buffer[USB_BUFFER_SIZE-1] ) usb_buffer_out = usb_buffer ; 
     
    377387                        logic_module_usb_count = 0; 
    378388                        break ; 
    379                          
    380                 default : 
    381                         x=0 ; 
     389 
     390                case CLEAR_USB_REGISTERS : 
     391                        clear_usb_power() ; 
    382392                        break ; 
    383393        } 
  • branches/philmoz-uitest/core/usb_remote.h

    r1618 r1935  
    109109        BUFFERED_PULSE , 
    110110        PULSE_COUNT, 
    111         LM_PULSE_COUNT 
     111        LM_PULSE_COUNT, 
     112        CLEAR_USB_REGISTERS 
    112113} ; 
    113114 
  • branches/philmoz-uitest/include/conf.h

    r1915 r1935  
    305305    int edge_overlay_play;              // whether edge overlay is switched on also for play mode 
    306306    color edge_overlay_color; 
     307    int edge_state_draw;                // Current state of overlay (Live/Frozen/Pano) [not saved to config file] 
    307308 
    308309    int synch_enable; 
  • branches/philmoz-uitest/platform/a410/kbd.c

    r1344 r1935  
     1 
     2#include <stdlib.h> 
     3 
     4static long alt_mode_key_mask = 0x00001000; // =  KEY_PRINT 
     5static long alt_mode_key_reg  = 2; 
     6 
    17#include "../generic/kbd.c" 
    28 
  • branches/philmoz-uitest/platform/a410/platform_camera.h

    r1696 r1935  
    3333    #define CAM_HAS_ND_FILTER               1 
    3434    #undef  CAM_HAS_MANUAL_FOCUS 
     35    #define CAM_ADJUSTABLE_ALT_BUTTON       1 
    3536 
    3637    #undef  CAM_HAS_USER_TV_MODES 
  • branches/philmoz-uitest/platform/a410/sub/100f/lib.c

    r1527 r1935  
    2222} 
    2323 
    24 /* 
    25 void *vid_get_viewport_live_fb() 
    26 { 
    27     return (void*)0; 
     24int 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; 
    2834} 
    29 */ 
     35 
     36int 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} 
    3047 
    3148void *vid_get_viewport_live_fb() // from a540 
     
    5774} 
    5875 
     76int vid_get_viewport_width() { 
     77    return vid_get_viewport_width_proper()>>1; 
     78} 
     79 
    5980long vid_get_viewport_height() 
    6081{ 
    61     // return ((mode_get()&MODE_MASK) == MODE_PLAY) ? 240 : 230; 
    62     return 240; 
     82    return vid_get_viewport_height_proper(); 
    6383} 
    6484 
     
    6787    return (char*)0x7F9F0; // @ffdd479c 
    6888}  
     89 
     90int vid_get_palette_type() { return 1; } 
     91int vid_get_palette_size() { return 16*4; } 
     92 
     93void *vid_get_bitmap_active_palette() { 
     94    return (void *)0x73028; // GetPaletteFromPhysicalScreen 
     95} 
     96 
     97void *vid_get_bitmap_active_buffer() 
     98{ 
     99    return (void*)(*(int*)0x6694); // @ffd0a170 DisplayPhysicalScreenWithYUVPalette 
     100} 
     101 
     102int 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 
     111int 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 
     120int 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 
     140int 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 
     4static long alt_mode_key_mask = 0x000001000; // =  KEY_PRINT 
     5static long alt_mode_key_reg  = 2; 
     6 
    17#include "../generic/kbd.c" 
    28 
  • branches/philmoz-uitest/platform/a420/platform_camera.h

    r1736 r1935  
    3030        #define CAM_DRAW_EXPOSITION                             1 
    3131        #undef  CAM_HAS_ERASE_BUTTON 
     32        #define CAM_ADJUSTABLE_ALT_BUTTON       1 
     33 
    3234        #undef  CAM_HAS_IRIS_DIAPHRAGM 
    3335        #define CAM_HAS_ND_FILTER                               1 
  • branches/philmoz-uitest/platform/a430/kbd.c

    r1641 r1935  
     1 
     2#include <stdlib.h> 
     3 
     4static long alt_mode_key_mask = 0x000001000; // =  KEY_PRINT 
     5static long alt_mode_key_reg  = 2; 
     6 
    17#include "../generic/kbd.c" 
    28 
  • branches/philmoz-uitest/platform/a430/platform_camera.h

    r1656 r1935  
    2929    #undef  CAM_HAS_ZOOM_LEVER 
    3030    #define CAM_DRAW_EXPOSITION             1 
    31     #undef  CAM_HAS_ERASE_BUTTON 
    3231    #undef  CAM_HAS_IRIS_DIAPHRAGM 
     32    #define CAM_ADJUSTABLE_ALT_BUTTON       1 
    3333    #define CAM_HAS_ND_FILTER               1 
    3434    #undef  CAM_HAS_MANUAL_FOCUS 
  • branches/philmoz-uitest/platform/a530/kbd.c

    r1344 r1935  
     1 
     2#include <stdlib.h> 
     3 
     4static long alt_mode_key_mask = 0x000001000; // =  KEY_PRINT 
     5static long alt_mode_key_reg  = 2; 
     6 
    17#include "../generic/kbd.c" 
    28 
  • branches/philmoz-uitest/platform/a530/platform_camera.h

    r1696 r1935  
    3636    #define CAM_AF_SCAN_DURING_VIDEO_RECORD 2 
    3737    #define CAM_EV_IN_VIDEO                 1 
     38    #define CAM_ADJUSTABLE_ALT_BUTTON       1 
    3839 
    3940    #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  
    11 
    22#include <stdlib.h> 
     3 
     4static long alt_mode_key_mask = 0x000001000; // =  KEY_PRINT 
     5static long alt_mode_key_reg  = 2; 
    36 
    47#include "../generic/kbd.c" 
  • branches/philmoz-uitest/platform/a540/platform_camera.h

    r1696 r1935  
    3030    #undef  CAM_HAS_IS 
    3131    #define CAM_CAN_MUTE_MICROPHONE         1 
     32    #define CAM_ADJUSTABLE_ALT_BUTTON       1 
    3233    #define CAM_AF_SCAN_DURING_VIDEO_RECORD 2 
    3334    #define CAM_EV_IN_VIDEO                 1 
  • branches/philmoz-uitest/platform/a610/kbd.c

    r1344 r1935  
     1 
     2#include <stdlib.h> 
     3 
     4static long alt_mode_key_mask = 0x000001000; // =  KEY_PRINT 
     5static long alt_mode_key_reg  = 2; 
     6 
    17#include "../generic/kbd.c" 
    28 
  • branches/philmoz-uitest/platform/a610/platform_camera.h

    r1656 r1935  
    3333    #define CAM_AF_SCAN_DURING_VIDEO_RECORD 2 
    3434    #define CAM_EV_IN_VIDEO                 1 
     35    #define CAM_ADJUSTABLE_ALT_BUTTON       1 
     36 
    3537    #define CAM_EXT_TV_RANGE                1 
    3638    #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 
     4static long alt_mode_key_mask = 0x000001000; // =  KEY_PRINT 
     5static long alt_mode_key_reg  = 2; 
     6 
    17#include "../generic/kbd.c" 
    28 
  • branches/philmoz-uitest/platform/a620/platform_camera.h

    r1656 r1935  
    3232    #define CAM_AF_SCAN_DURING_VIDEO_RECORD 2 
    3333    #define CAM_EV_IN_VIDEO                 1 
     34    #define CAM_ADJUSTABLE_ALT_BUTTON       1 
    3435 
    3536    #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 
     4static long alt_mode_key_mask = 0x00001000; // =  KEY_PRINT 
     5static long alt_mode_key_reg  = 2; 
     6 
    17#include "../generic/kbd.c" 
    28 
  • branches/philmoz-uitest/platform/a630/platform_camera.h

    r1656 r1935  
    3333    #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 
    3434    #define CAM_EV_IN_VIDEO                 1 
     35    #define CAM_ADJUSTABLE_ALT_BUTTON       1 
    3536 
    3637    #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 
     4static long alt_mode_key_mask = 0x000001000; // =  KEY_PRINT 
     5static long alt_mode_key_reg  = 2; 
     6 
    17#include "../generic/kbd.c" 
    28 
  • branches/philmoz-uitest/platform/a640/platform_camera.h

    r1656 r1935  
    3333    #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 
    3434    #define CAM_EV_IN_VIDEO                 1 
     35    #define CAM_ADJUSTABLE_ALT_BUTTON       1 
    3536 
    3637    #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 
     4static long alt_mode_key_mask = 0x000001000; // =  KEY_PRINT 
     5static long alt_mode_key_reg  = 2; 
     6 
    17#include "../generic/kbd.c" 
    28 
  • branches/philmoz-uitest/platform/a700/platform_camera.h

    r1656 r1935  
    3030    #define CAM_AF_SCAN_DURING_VIDEO_RECORD 2 
    3131    #define CAM_EV_IN_VIDEO                 1 
     32    #define CAM_ADJUSTABLE_ALT_BUTTON       1 
    3233 
    3334    #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 
     4static long alt_mode_key_mask = 0x000001000; // =  KEY_PRINT 
     5static long alt_mode_key_reg  = 2; 
     6 
    17#include "../generic/kbd.c" 
    28 
  • branches/philmoz-uitest/platform/a710/platform_camera.h

    r1696 r1935  
    3131    #define CAM_EV_IN_VIDEO                 1 
    3232    #define CAM_REAR_CURTAIN                1 // http://chdk.setepontos.com/index.php/topic,650.msg54434.html#msg54434  
     33    #define CAM_ADJUSTABLE_ALT_BUTTON       1 
    3334 
    3435    #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  
    1717 
    1818static long last_kbd_key = 0; 
    19 static long alt_mode_key_mask = 0x00000400;     // G10 
     19static long alt_mode_key_mask = 0x00000200;     // default to G10 Print Key 
    2020 
    2121extern void _GetKbdState(long*); 
  • branches/philmoz-uitest/platform/generic/kbd.c

    r1736 r1935  
    2727#define SD_READONLY_FLAG (0x20000) 
    2828 
     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 
    2940#if defined(CAMERA_a710) || defined(CAMERA_a700) 
    3041#define USB_MASK 0x08 
     
    3243#endif 
    3344 
    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 0x8000000 
    38 #define USB_IDX 1 
    39 #endif 
    40  
    41 #if defined(CAMERA_a530) || defined(CAMERA_a540) 
    42 #define USB_MASK 0x4000 
    43 #define USB_IDX 2 
    44 #endif 
    4545 
    4646int get_usb_bit()  
     
    148148        physw_status[1] = kbd_new_state[1]; 
    149149        physw_status[2] = kbd_new_state[2]; 
     150        physw_status[alt_mode_key_reg] |= alt_mode_key_mask; 
     151 
    150152    } else { 
    151153        // override keys 
     
    176178} 
    177179 
     180void 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} 
    178190 
    179191void kbd_key_press(long key) 
  • branches/philmoz-uitest/platform/ixus800_sd700/kbd.c

    r1344 r1935  
     1 
     2#include <stdlib.h> 
     3 
     4static long alt_mode_key_mask = 0x000001000; // =  KEY_PRINT 
     5static long alt_mode_key_reg  = 2; 
     6 
    17#include "../generic/kbd.c" 
    28 
  • branches/philmoz-uitest/platform/ixus800_sd700/platform_camera.h

    r1656 r1935  
    3535    #define CAM_SHOW_OSD_IN_SHOOT_MENU      1 
    3636    #define CAM_AF_SCAN_DURING_VIDEO_RECORD 2 
     37    #define CAM_ADJUSTABLE_ALT_BUTTON       1 
    3738 
    3839    #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.