Changeset 1401


Ignore:
Timestamp:
11/10/11 04:29:40 (19 months ago)
Author:
philmoz
Message:

Add SX40HS firmware 1.00g to development branch (ALPHA).

Location:
branches/philmoz
Files:
32 added
10 edited

Legend:

Unmodified
Added
Removed
  • branches/philmoz/camera_list.csv

    r1400 r1401  
    153153sx30,100n,,, 
    154154sx30,100p,,, 
     155sx40hs,100f,ALPHA,, 
     156sx40hs,100g,ALPHA,, 
    155157tx1,100g,,, 
    156158tx1,101b,,, 
  • branches/philmoz/core/gui.c

    r1400 r1401  
    101101 // KEY_LEFT/KEY_RIGHT is used for gui_subj_dist_override_value_enum (because of no separate ZOOM_IN/OUT) 
    102102 
    103 #elif defined(CAMERA_g7) || defined(CAMERA_sx10) || defined(CAMERA_sx1) || defined(CAMERA_sx20) || defined(CAMERA_sx30) 
     103#elif defined(CAMERA_g7) || defined(CAMERA_sx10) || defined(CAMERA_sx1) || defined(CAMERA_sx20) || defined(CAMERA_sx30) || defined(CAMERA_sx40hs) 
    104104//Alt mode 
    105105 #define SHORTCUT_TOGGLE_RAW          KEY_ERASE 
     
    12541254    static const char* names[]={ "Print", "Face"}; 
    12551255    static const int keys[]={ KEY_PRINT, KEY_FACE }; 
    1256 #elif defined(CAMERA_sx10) || defined(CAMERA_sx1) || defined(CAMERA_sx20) || defined(CAMERA_sx30) 
     1256#elif defined(CAMERA_sx10) || defined(CAMERA_sx1) || defined(CAMERA_sx20) || defined(CAMERA_sx30) || defined(CAMERA_sx40hs) 
    12571257    static const char* names[]={ "Shrtcut", "Flash", "Video"}; 
    12581258    static const int keys[]={ KEY_PRINT, KEY_FLASH, KEY_VIDEO }; 
  • branches/philmoz/core/gui_draw.h

    r1378 r1401  
    599599#elif CAM_BITMAP_PALETTE==12 
    600600 
    601 // Used by :- G12, SX30, IXUS310_ELPH500HS 
     601// Used by :- G12, SX30, SX40HS, IXUS310_ELPH500HS 
    602602 
    603603// Default Canon colors 
  • branches/philmoz/core/kbd.c

    r1400 r1401  
    5959#endif 
    6060 
    61 #if defined(CAMERA_sx30) 
     61#if defined(CAMERA_sx30) || defined(CAMERA_sx40hs) 
    6262#define ZSTEP_TABLE_SIZE 11 
    6363static int nTxtbl[]={0,20,40,60,80,100,120,140,160,180,200}; 
  • branches/philmoz/core/live_view.c

    r1378 r1401  
    55#include "core.h" 
    66#include "live_view.h" 
     7 
     8#ifdef CAM_CHDK_PTP 
    79 
    810// PTP Live View functions 
     
    114116    return 0; 
    115117} 
     118 
     119#endif 
  • branches/philmoz/core/live_view.h

    r1322 r1401  
    4343} lv_vid_info; 
    4444 
     45#ifdef CAM_CHDK_PTP 
    4546extern int live_view_data_handler(ptp_data *data, int flags, int arg2); 
     47#endif 
    4648 
    4749#endif // __LIVE_VIEW_H 
  • branches/philmoz/core/raw.c

    r1321 r1401  
    117117    int i; 
    118118    if (gamma[255]) return; 
    119 #if defined(CAMERA_sx30) || defined(CAMERA_g12) || defined(CAMERA_ixus310_elph500hs) 
     119#if defined(CAMERA_sx30) || defined(CAMERA_sx40hs) || defined(CAMERA_g12) || defined(CAMERA_ixus310_elph500hs) 
    120120    for (i=0; i<12; i++) gamma[i]=255*pow(i/255.0, 0.5); 
    121121    for (i=12; i<64; i++) gamma[i]=255*pow(i/255.0, 0.4); 
  • branches/philmoz/include/camera.h

    r1378 r1401  
    174174                                                // and gui_space.c. 
    175175 
     176#define CAM_USB_EVENTID                 0x902                   // Levent ID for USB control. Changed to 0x202 in DryOS R49 so needs to be overridable. 
     177 
    176178//---------------------------------------------------------- 
    177179// Override Default values for Camera if necessary 
  • branches/philmoz/platform/generic/wrappers.c

    r1343 r1401  
    13031303    if ( mode == 0 ) { 
    13041304        _Rec2PB(); 
    1305         _set_control_event(0x80000902); // 0x10A5 ConnectUSBCable 
     1305        _set_control_event(0x80000000|CAM_USB_EVENTID); // ConnectUSBCable 0x10A5 (0x10B3 in DryOS R49) 
    13061306    } else if ( mode == 1 ) { 
    1307         _set_control_event(0x902); // 0x10A6 DisconnectUSBCable 
     1307        _set_control_event(CAM_USB_EVENTID); // DisconnectUSBCable 0x10A6 (0x10B4 in DryOS R49) 
    13081308        _PB2Rec(); 
    13091309    } else return 0; 
  • branches/philmoz/tools/finsig_dryos.c

    r1400 r1401  
    24232423                                                                while ((*p != 0xFFFF) && (k < 50)) 
    24242424                                                                { 
    2425                                                                         if ((*p < 8000) || (*p > 8999)) 
     2425                                                                        if (((fw->dryos_ver < 49) && ((*p < 8000) || (*p > 8999))) || ((fw->dryos_ver == 49) && ((*p < 4000) || (*p > 4999)))) 
    24262426                                                                        { 
    24272427                                                                                osig *m = find_sig_val(modemap, *p); 
Note: See TracChangeset for help on using the changeset viewer.