Changeset 1737


Ignore:
Timestamp:
03/16/12 04:51:39 (15 months ago)
Author:
reyalp
Message:

update with r1722-r1736 from trunk

Location:
branches/reyalp-ptp-live
Files:
21 edited
6 copied

Legend:

Unmodified
Added
Removed
  • branches/reyalp-ptp-live

  • branches/reyalp-ptp-live/camera_list.csv

    r1641 r1737  
    44a1100,100c,BETA,, 
    55a2000,100c,BETA,100a:100b, 
     6a2100,100a,ALPHA,,SKIP_AUTOBUILD 
    67a3000,100b,BETA,, 
    78a3000,100c,BETA,, 
     
    1112a3300,100d,BETA,, 
    1213a410,100f,BETA,100e, 
     14a420,100b,ALPHA,, 
    1315a430,100b,BETA,, 
    1416a450,100d,,, 
     
    4244a710,100a,,, 
    4345a720,100c,,, 
     46a800,100c,BETA,, 
    4447d10,100a,BETA,100b, 
    4548g10,102a,,, 
     
    6467ixus100_sd780,100b,BETA,, 
    6568ixus100_sd780,100c,BETA,, 
    66 ixus120_sd940,100e,BETA,, 
    67 ixus120_sd940,101a,BETA,, 
    68 ixus120_sd940,102c,BETA,, 
    69 ixus120_sd940,103b,BETA,, 
    70 ixus120_sd940,103c,BETA,, 
     69ixus120_sd940,100e,,, 
     70ixus120_sd940,101a,,, 
     71ixus120_sd940,102c,,, 
     72ixus120_sd940,103b,,, 
     73ixus120_sd940,103c,,, 
    7174ixus200_sd980,101c,BETA,, 
    7275ixus200_sd980,101d,BETA,, 
     
    122125ixus980_sd990,100e,,, 
    123126ixus980_sd990,101b,,, 
    124 ixusizoom_sd30,100g,,, 
     127ixusizoom_sd30,100g,,100f, 
    125128ixusW_sd430,110a,,,SKIP_AUTOBUILD 
    126129s2is,100e,,, 
     
    153156sx130is,101f,BETA,, 
    154157sx150is,100a,ALPHA,, 
    155 sx20,100f,BETA,, 
     158sx20,100f,,, 
    156159sx20,102b,,, 
    157160sx20,102d,,102c, 
     
    162165sx230hs,100c,BETA,, 
    163166sx230hs,101a,BETA,, 
    164 sx230hs,101b,BETA,101c, 
     167sx230hs,101b,BETA,101c:101e, 
    165168sx30,100e,,, 
    166169sx30,100h,,, 
  • branches/reyalp-ptp-live/core/conf.c

    r1720 r1737  
    398398    CONF_INFO(245, conf.touchscreen_disable_shortcut_controls,  CONF_DEF_VALUE, i:0, NULL), 
    399399 
    400         // USB Icon enable & position 
     400    // USB Icon enable & position 
    401401    CONF_INFO(246, conf.usb_info_enable,            CONF_DEF_VALUE, i:0, NULL), 
    402402    CONF_INFO2(247, conf.usb_info_pos,              CONF_OSD_POS,   95,0), 
  • branches/reyalp-ptp-live/core/gui.c

    r1720 r1737  
    21112111        if (conf.unlock_optical_zoom_for_video && (movie_status==VIDEO_RECORD_IN_PROGRESS) &&  kbd_is_key_clicked(key)){ 
    21122112            short x; 
    2113             get_property_case(PROPCASE_DIGITAL_ZOOM_STATE, &x, sizeof(x)); 
    2114             if (x) { 
    2115                 get_property_case(PROPCASE_DIGITAL_ZOOM_POSITION, &x, sizeof(x)); 
    2116     #if defined (CAMERA_s90) || defined (CAMERA_s95) || defined (CAMERA_g12) || defined (CAMERA_a3000) 
    2117         if (x==0) zoom_status=ZOOM_OPTICAL_MAX; //ERR99: No zoom back from digital to optical zoom possible if set to medium 
    2118     #else 
    2119         if (x==0) zoom_status=ZOOM_OPTICAL_MEDIUM; 
     2113     get_property_case(PROPCASE_DIGITAL_ZOOM_STATE, &x, sizeof(x)); 
     2114     if (x) { 
     2115      get_property_case(PROPCASE_DIGITAL_ZOOM_POSITION, &x, sizeof(x)); 
     2116#if defined (CAMERA_s90) || defined (CAMERA_s95) || defined (CAMERA_g12) || defined (CAMERA_a3000) || defined (CAMERA_a800) 
     2117          if (x==0) zoom_status=ZOOM_OPTICAL_MAX; //ERR99: No zoom back from digital to optical zoom possible if set to medium 
     2118#else 
     2119          if (x==0) zoom_status=ZOOM_OPTICAL_MEDIUM; 
    21202120    #endif 
    21212121 
  • branches/reyalp-ptp-live/core/histogram.c

    r1720 r1737  
    141141        case 2: 
    142142        case 3: 
    143             x = 0;      // count how many blocks we have done on the current row (to skip unused buffer space at end of each row) 
     143            x = 0;  // count how many blocks we have done on the current row (to skip unused buffer space at end of each row) 
    144144            for (i=(histogram_stage-1)*6; i<viewport_size; i+=HISTO_STEP_SIZE*6) { 
    145145                y = img[i+1]; 
  • branches/reyalp-ptp-live/core/script.c

    r1720 r1737  
    2929    "@title Default Script\n" 
    3030    "]]\n" 
     31#if defined(VER_CHDK) 
     32    "chdk_def_lang=1\n" 
     33#else 
    3134    "chdk_def_lang=2\n" 
     35#endif 
    3236    "langs     = {}\n" 
    3337    "langs[1]  = {[\"name\"]=\"ENGLISH\",  [\"font_cp\"]=0,  [\"hint\"]=\"CHDK language changed to english\"}\n" 
  • branches/reyalp-ptp-live/include/modelist.h

    r1663 r1737  
    126126    MODE_FIREWORK           , // ixus1000 end 
    127127    MODE_LIVE               , // A3300is 
    128     MODE_DISCREET           , // A3300is 
     128    MODE_DISCREET                        , // A3300is 
     129    MODE_BLUR_REDUCTION     , // a800 
    129130}; 
    130131 
  • branches/reyalp-ptp-live/platform/a1000/sub/100a/stubs_entry_2.S

    r1720 r1737  
    33 
    44// Override stubs_entry.S 
    5 //NHSTUB(ExpCtrlTool_StopContiAE,     0xffc1fabc) 
    6 //NHSTUB(Lseek,                       0xffc1354c) 
    75NHSTUB(PT_PlaySound,                0xffc48fbc) 
    86NHSTUB(SetAE_ShutterSpeed,          0xffe3de6c) 
  • branches/reyalp-ptp-live/platform/a1000/sub/100a/stubs_min.S

    r1720 r1737  
    1212DEF(led_table,                          0x2290) // 0x270C + 4 
    1313 
    14 // found in sub_FF957174 (called from MoveZoomLensWithPoint (sub_FF957B34)) 
    15 // ROM:FF957178   LDR     R4, =0xB37C 
    16 // .. 
    17 // ROM:FF9571BC   LDR     R0, [R4,#0x34] 
    18 // ROM:FF9571C0   CMP     R0, #0 
    19 // ROM:FF9571C4   MOVNE   R1, #0xE0 
    20 // ROM:FF9571C8   ADRNE   R0, aZoomlenscontro @ "ZoomLensController.c" 
    21 // ROM:FF9571CC   BLNE    assert 
    22 //DEF(zoom_busy,                          0xB4A4) //0xB37C + 0x34 
    23  
    24 // Found in sub_FF950718 (<- sub_FFA0D148 <- sub_FFA0D394 <- sub_FFA0D408 
    25 //                                    <- MoveFocusLensToDistance (sub_FFA0D41C)) 
    26 // ROM:FF95071C   LDR     R4, =0xB274 
    27 // .. 
    28 // ROM:FF950770   LDR     R0, [R4,#8] 
    29 // ROM:FF950774   CMP     R0, #0 
    30 // ROM:FF950778   MOVNE   R1, #0x90 
    31 // ROM:FF95077C   ADRNE   R0, aFocuslenscontr @ "FocusLensController.c" 
    32 // ROM:FF950780   BLNE    assert 
    33 //DEF(focus_busy, 0x7EE8) //0xB274 + 8 or 7fd4 
    34  
    35 // Same as previous variable, unusable. Originally found it by peeking through 
    36 // memory and it looked suitable at first. This address along with 0xBE64 
    37 // (suitable as canon_shoot_menu_active, code agrees) looked suitable but I got 
    38 // the basic idea wrong. Listed for completeness. 
    39  
    40 // Found in sub_FF982310 (deactivates shoot menu?). Ewavr found it but didn't 
    41 // clearly specify where, so this is a guess. 
    42 // ROM:FF982310   LDR     R1, =0xC05C 
    43 // ROM:FF982314   MOV     R0, #0 
    44 // ROM:FF982318   STRB    R0, [R1] 
    45 // ROM:FF98231C   STRB    R0, [R1,#1] 
    46 //DEF(canon_shoot_menu_active,            0xC05D) // 0xC05C + 1 
    47  
    48  
    49 // Found in sub_FF9754AC. Again, ewavr found this one, he did supply one pointer 
    50 // 'search for LDR R12, =0x3007'. I guess this is the right one then :) 
    51 // ROM:FF9754AC 000                 STMFD   SP!, {R4,LR} 
    52 // ROM:FF9754B0 008                 LDR     R1, =0xBD60 
    53 // ROM:FF9754B4 008                 LDR     R12, =0x3007 
    54 // ROM:FF9754B8 008                 LDR     R2, [R1,#0xCC] 
    55 //DEF(recreview_hold,                     0x94C8) // 0xBD60 + 0xCC 
    56 //DEF(movie_status,                       0x5868 + 0x38) 
    5714DEF(mode_magic,                         0x58D4) 
    5815DEF(enabled_refresh_physical_screen,    0xA460 + 0x30)  // Found in sub_ffd7a36c 
  • branches/reyalp-ptp-live/platform/a1000/sub/100b/stubs_entry_2.S

    r1720 r1737  
    33 
    44// Override stubs_entry.S 
    5 //NHSTUB(ExpCtrlTool_StopContiAE,     0xFFC1FABC) 
    6 //NHSTUB(Lseek,                       0xffc1354c) 
    75NHSTUB(PT_PlaySound,                0xFFC48FBC) 
    86NHSTUB(SetAE_ShutterSpeed,          0xFFE3DE6C) 
  • branches/reyalp-ptp-live/platform/a1000/sub/100b/stubs_min.S

    r1720 r1737  
    1212DEF(led_table,                          0x2290) // 0x270C + 4 
    1313 
    14 // found in sub_FF957174 (called from MoveZoomLensWithPoint (sub_FF957B34)) 
    15 // ROM:FF957178   LDR     R4, =0xB37C 
    16 // .. 
    17 // ROM:FF9571BC   LDR     R0, [R4,#0x34] 
    18 // ROM:FF9571C0   CMP     R0, #0 
    19 // ROM:FF9571C4   MOVNE   R1, #0xE0 
    20 // ROM:FF9571C8   ADRNE   R0, aZoomlenscontro @ "ZoomLensController.c" 
    21 // ROM:FF9571CC   BLNE    assert 
    22 //DEF(zoom_busy,                          0xB4A4) //0xB37C + 0x34 
    23  
    24 // Found in sub_FF950718 (<- sub_FFA0D148 <- sub_FFA0D394 <- sub_FFA0D408 
    25 //                                    <- MoveFocusLensToDistance (sub_FFA0D41C)) 
    26 // ROM:FF95071C   LDR     R4, =0xB274 
    27 // .. 
    28 // ROM:FF950770   LDR     R0, [R4,#8] 
    29 // ROM:FF950774   CMP     R0, #0 
    30 // ROM:FF950778   MOVNE   R1, #0x90 
    31 // ROM:FF95077C   ADRNE   R0, aFocuslenscontr @ "FocusLensController.c" 
    32 // ROM:FF950780   BLNE    assert 
    33 //DEF(focus_busy,                         0x7EE8) //0xB274 + 8 or 7fd4 
    34  
    35 // Same as previous variable, unusable. Originally found it by peeking through 
    36 // memory and it looked suitable at first. This address along with 0xBE64 
    37 // (suitable as canon_shoot_menu_active, code agrees) looked suitable but I got 
    38 // the basic idea wrong. Listed for completeness. 
    39  
    40 // Found in sub_FF982310 (deactivates shoot menu?). Ewavr found it but didn't 
    41 // clearly specify where, so this is a guess. 
    42 // ROM:FF982310   LDR     R1, =0xC05C 
    43 // ROM:FF982314   MOV     R0, #0 
    44 // ROM:FF982318   STRB    R0, [R1] 
    45 // ROM:FF98231C   STRB    R0, [R1,#1] 
    46 //DEF(canon_shoot_menu_active,            0xC05D) // 0xC05C + 1 
    47  
    48 // Found in sub_FF9754AC. Again, ewavr found this one, he did supply one pointer 
    49 // 'search for LDR R12, =0x3007'. I guess this is the right one then :) 
    50 // ROM:FF9754AC 000                 STMFD   SP!, {R4,LR} 
    51 // ROM:FF9754B0 008                 LDR     R1, =0xBD60 
    52 // ROM:FF9754B4 008                 LDR     R12, =0x3007 
    53 // ROM:FF9754B8 008                 LDR     R2, [R1,#0xCC] 
    54 //DEF(recreview_hold,                     0x94C8) // 0xBD60 + 0xCC 
    55 //DEF(movie_status,                       0x5868 + 0x38) 
    5614DEF(mode_magic,                         0x58D4) 
    5715DEF(enabled_refresh_physical_screen,    0xa460 + 0x30) // found in sub_ffd7a308 
  • branches/reyalp-ptp-live/platform/generic/kbd.c

    r1628 r1737  
    3434#if     defined(CAMERA_a630) || defined(CAMERA_a640) || defined(CAMERA_a610)\ 
    3535        || defined(CAMERA_a620) || defined(CAMERA_ixus800_sd700) || defined(CAMERA_a410)\ 
    36     || defined(CAMERA_a430) 
     36    || defined(CAMERA_a420) || defined(CAMERA_a430) 
    3737#define USB_MASK 0x8000000 
    3838#define USB_IDX 1 
     
    5252        #elif           defined(CAMERA_a610) || defined(CAMERA_a620) || defined(CAMERA_a630)\ 
    5353                        || defined(CAMERA_a640) ||      defined(CAMERA_ixus800_sd700) || defined(CAMERA_a410)\ 
    54             || defined(CAMERA_a430) 
     54            || defined(CAMERA_a420) || defined(CAMERA_a430) 
    5555                x = (long)*mmio1; 
    5656        #elif defined(CAMERA_a710) || defined(CAMERA_a700) 
  • branches/reyalp-ptp-live/platform/ixus220_elph300hs/platform_camera.h

    r1711 r1737  
    4949    #define DNG_BADPIXEL_VALUE_LIMIT        16      // Camera sensor apparently has bad pixels with value > 0 & <=16 
    5050 
    51     #define CAM_DNG_LENS_INFO               { 50,10, 700,10, 31,10, 59,10 } // See comments in camera.h 
     51    #define CAM_DNG_LENS_INFO               { 43,10, 215,10, 27,10, 59,10 } // See comments in camera.h 
    5252    #define cam_CFAPattern  0x02010100 
    5353   
     
    6161    #define CAM_JPEG_WIDTH                  4000 
    6262    #define CAM_JPEG_HEIGHT                 3000 
    63     #define CAM_ACTIVE_AREA_X1              96 
    64     #define CAM_ACTIVE_AREA_Y1              24 
    65     #define CAM_ACTIVE_AREA_X2              4168 
    66     #define CAM_ACTIVE_AREA_Y2              3060 
     63    #define CAM_ACTIVE_AREA_X1              120 
     64    #define CAM_ACTIVE_AREA_Y1              36 
     65    #define CAM_ACTIVE_AREA_X2              4136 
     66    #define CAM_ACTIVE_AREA_Y2              3040 
    6767    #define PARAM_CAMERA_NAME               4       // parameter number for GetParameterData 
    6868    #undef  CAM_SENSOR_BITS_PER_PIXEL 
  • branches/reyalp-ptp-live/platform/ixus220_elph300hs/sub/100c/stubs_entry.S

    r1720 r1737  
    3434DEF(zoom_status                             ,0x0000ded8) // Found @0xffb078a0 
    3535DEF(some_flag_for_af_scan                   ,0x000071cc) // Found @0xff989240 
     36// focus_len_table contains zoom focus lengths for use in 'get_focal_length' (main.c). 
     37// each entry contains 3 int value(s), the first is the zoom focus length. 
     38// there are 64 entries in the table - set NUM_FL to 64 
     39//DEF(focus_len_table                         ,0xfffea288) // Found @0xfffea288,          stubs_min = 0xfffea288 (0xfffea288) 
    3640DEF(zoom_busy                               ,0x00006cf4) // Found @0xff97fd74 
    3741DEF(focus_busy                              ,0x00006b68) // Found @0xff97af60 
    38 //DEF(recreview_hold                          ,0x00003828) // Found @0xff8a6510,          stubs_min = 0x00003828 (0x00003828) 
     42DEF(recreview_hold                          ,0x00003828) // Found @0xff8a6510 
    3943 
    4044// Values below go in 'lib.c': 
  • branches/reyalp-ptp-live/platform/ixus220_elph300hs/sub/100c/stubs_min.S

    r1720 r1737  
    11#include "stubs_asm.h" 
    22 
    3 DEF(recreview_hold,                     0x00003828) 
    43DEF(led_table,                          0x258C + 0x04)  // FF0557C4 
    54DEF(focus_len_table,                    0xfffea288)     // search for 21500 (longest focus length in micrometers) & 4300 (shortest length) 
  • branches/reyalp-ptp-live/platform/ixus220_elph300hs/sub/101a/stubs_entry.S

    r1720 r1737  
    3434DEF(zoom_status                             ,0x0000ded8) // Found @0xffb078b8 
    3535DEF(some_flag_for_af_scan                   ,0x000071cc) // Found @0xff989240 
     36// focus_len_table contains zoom focus lengths for use in 'get_focal_length' (main.c). 
     37// each entry contains 3 int value(s), the first is the zoom focus length. 
     38// there are 64 entries in the table - set NUM_FL to 64 
     39//DEF(focus_len_table                         ,0xfffea288) // Found @0xfffea288,          stubs_min = 0xfffea288 (0xfffea288) 
    3640DEF(zoom_busy                               ,0x00006cf4) // Found @0xff97fd74 
    3741DEF(focus_busy                              ,0x00006b68) // Found @0xff97af60 
    38 //DEF(recreview_hold                          ,0x00003828) // Found @0xff8a6510,          stubs_min = 0x00003828 (0x00003828) 
     42DEF(recreview_hold                          ,0x00003828) // Found @0xff8a6510 
    3943 
    4044// Values below go in 'lib.c': 
  • branches/reyalp-ptp-live/platform/ixus220_elph300hs/sub/101a/stubs_min.S

    r1720 r1737  
    11#include "stubs_asm.h" 
    22 
    3 DEF(recreview_hold,                     0x00003828) 
    43DEF(led_table,                          0x258C + 0x04)  // FF0557C4 
    54DEF(focus_len_table,                    0xfffea288)     // search for 21500 (longest focus length in micrometers) & 4300 (shortest length) 
  • branches/reyalp-ptp-live/platform/ixus220_elph300hs/sub/101c/stubs_entry.S

    r1720 r1737  
    3434DEF(zoom_status                             ,0x0000ded8) // Found @0xffb078cc 
    3535DEF(some_flag_for_af_scan                   ,0x000071cc) // Found @0xff989240 
     36// focus_len_table contains zoom focus lengths for use in 'get_focal_length' (main.c). 
     37// each entry contains 3 int value(s), the first is the zoom focus length. 
     38// there are 64 entries in the table - set NUM_FL to 64 
     39//DEF(focus_len_table                         ,0xfffea288) // Found @0xfffea288,          stubs_min = 0xfffea288 (0xfffea288) 
    3640DEF(zoom_busy                               ,0x00006cf4) // Found @0xff97fd74 
    3741DEF(focus_busy                              ,0x00006b68) // Found @0xff97af60 
    38 //DEF(recreview_hold                          ,0x00003828) // Found @0xff8a6510,          stubs_min = 0x00003828 (0x00003828) 
     42DEF(recreview_hold                          ,0x00003828) // Found @0xff8a6510 
    3943 
    4044// Values below go in 'lib.c': 
  • branches/reyalp-ptp-live/platform/ixus220_elph300hs/sub/101c/stubs_min.S

    r1720 r1737  
    11#include "stubs_asm.h" 
    22 
    3 DEF(recreview_hold,                     0x00003828) 
    43DEF(led_table,                          0x258C + 0x04)  // FF0557C4 
    54DEF(focus_len_table,                    0xfffea288)     // search for 21500 (longest focus length in micrometers) & 4300 (shortest length) 
  • branches/reyalp-ptp-live/platform/ixus220_elph300hs/sub/101g/stubs_entry.S

    r1720 r1737  
    3434DEF(zoom_status                             ,0x0000ded8) // Found @0xffb07900 
    3535DEF(some_flag_for_af_scan                   ,0x000071cc) // Found @0xff989240 
     36// focus_len_table contains zoom focus lengths for use in 'get_focal_length' (main.c). 
     37// each entry contains 3 int value(s), the first is the zoom focus length. 
     38// there are 64 entries in the table - set NUM_FL to 64 
     39//DEF(focus_len_table                         ,0xfffea288) // Found @0xfffea288,          stubs_min = 0xfffea288 (0xfffea288) 
    3640DEF(zoom_busy                               ,0x00006cf4) // Found @0xff97fd74 
    3741DEF(focus_busy                              ,0x00006b68) // Found @0xff97af60 
    38 //DEF(recreview_hold                          ,0x00003828) // Found @0xff8a6510,          stubs_min = 0x00003828 (0x00003828) 
     42DEF(recreview_hold                          ,0x00003828) // Found @0xff8a6510 
    3943 
    4044// Values below go in 'lib.c': 
  • branches/reyalp-ptp-live/platform/ixus220_elph300hs/sub/101g/stubs_min.S

    r1720 r1737  
    77DEF(focus_len_table, 0xfffea288)                  // search for 21500 (longest focus length in micrometers) & 4300 (shortest length) 
    88 
    9 DEF(recreview_hold,                     0x00003828) 
    10  
    119//not touched 
    1210DEF(led_table, 0x258C + 0x04)             // FF0557C4 
Note: See TracChangeset for help on using the changeset viewer.