Changeset 1718


Ignore:
Timestamp:
03/09/12 06:03:52 (15 months ago)
Author:
reyalp
Message:

Merged revision(s) 1716-1717 from branches/release-1_0:
a1000 updates from srsa_4c in http://chdk.setepontos.com/index.php?topic=650.msg81931#msg81931

  • CAM_STARTUP_CRASH_FILE_OPEN_FIX
  • enabled_refresh_physical_screen
  • use stubs from sig finder

ixus220_elph300hs updates from srsa_rc in http://chdk.setepontos.com/index.php?topic=650.msg82542#msg82542
fix recreview_hold and vid_get_viewport_fb_d()

Location:
trunk
Files:
25 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/platform/a1000/lib.c

    r1656 r1718  
    5555        _PostLEDMessage(&led_c);  
    5656}  
     57 
     58void vid_bitmap_refresh() //as used in other models 
     59{ 
     60        extern int enabled_refresh_physical_screen; 
     61        enabled_refresh_physical_screen=1; 
     62        _RefreshPhysicalScreen(1); 
     63} 
  • trunk/platform/a1000/platform_camera.h

    r1641 r1718  
    5454    #define CAM_ACTIVE_AREA_X2              3682 
    5555    #define CAM_ACTIVE_AREA_Y2              2764 
     56    #define CAM_STARTUP_CRASH_FILE_OPEN_FIX 1 
    5657//---------------------------------------------------------- 
  • trunk/platform/a1000/sub/100a/capt_seq.c

    r1641 r1718  
    33#include "core.h" 
    44 
    5 static long *nrflag = (long*)0x9F90; 
     5static long *nrflag = (long*)0x8594; 
    66 
    77#include "../../../generic/capt_seq.c" 
  • trunk/platform/a1000/sub/100a/lib.c

    r1641 r1718  
    4040void *vid_get_viewport_fb_d() 
    4141{ 
    42         return (void*)(*(int*)0x4F30); // 0x4EE8 + 0x50  
     42        return (void*)(*(int*)0x4f3c); // 0x4EE8 + 0x54  
    4343} 
    4444 
  • trunk/platform/a1000/sub/100a/stubs_entry.S

    r1641 r1718  
    1515// Stubs below should be checked. Stub not matched 100%, or difference found to current 'stubs_entry_2.S' 
    1616//    Name                                     Address      Rule  %  Comp to stubs_entry_2.S 
    17 //NSTUB(ExpCtrlTool_StopContiAE               ,0xffc1fbac) //104        *** != 0xffc1fabc 
    18 //NSTUB(Lseek                                 ,0xffc13484) //101        *** != 0xffc1354c 
    1917//NSTUB(PT_PlaySound                          ,0xffc48c7c) //102        *** != 0xffc48fbc 
    2018//NSTUB(SetAE_ShutterSpeed                    ,0xffe42b88) //102        *** != 0xffe3de6c 
     
    3533DEF(levent_table                            ,0xffeab5b8) // Found @0xffeab5b8 
    3634DEF(FlashParamsTable                        ,0xffeca0bc) // Found @0xffeca0bc 
    37 //DEF(movie_status                            ,0x000050a0) // Found @0xffc47cf8, ** != ** stubs_min = 0x000058a0 (0x5868+0x38) 
     35DEF(movie_status                            ,0x000050a0) // Found @0xffc47cf8 
    3836DEF(canon_menu_active                       ,0x00005480) // Found @0xffc59fb8 
    39 //DEF(canon_shoot_menu_active                 ,0x00009735) // Found @0xffd3b670, ** != ** stubs_min = 0x0000c05d (0xC05D) 
     37DEF(canon_shoot_menu_active                 ,0x00009735) // Found @0xffd3b670 
    4038DEF(playrec_mode                            ,0x00005228) // Found @0xffc4ec4c 
    4139DEF(zoom_status                             ,0x0000c0a4) // Found @0xffdfc7b0 
     
    4543// there are 8 entries in the table - set NUM_FL to 8 
    4644DEF(focus_len_table                         ,0xfffe297c) // Found @0xfffe297c 
    47 //DEF(zoom_busy                               ,0x00007fdc) // Found @0xffd03034, ** != ** stubs_min = 0x0000b4a4 (0xB4A4) 
    48 //DEF(focus_busy                              ,0x00007ee4) // Found @0xffcfebb4, ** != ** stubs_min = 0x00007ee8 (0x7EE8) 
    49 //DEF(recreview_hold                          ,0x000059e4) // Found @0xffc65b4c, ** != ** stubs_min = 0x000094c8 (0x94C8) 
     45DEF(zoom_busy                               ,0x00007fdc) // Found @0xffd03034 
     46DEF(focus_busy                              ,0x00007ee4) // Found @0xffcfebb4 
     47DEF(recreview_hold                          ,0x000059e4) // Found @0xffc65b4c 
    5048 
    5149// Values below go in 'lib.c': 
     
    108106NSTUB(ExitTask                                ,0xffc0bb50) //101 
    109107NSTUB(ExpCtrlTool_StartContiAE                ,0xffc1fa68) //104 
     108NSTUB(ExpCtrlTool_StopContiAE                 ,0xffc1fbac) //104 
    110109NSTUB(Fclose_Fut                              ,0xffc12d6c) //101 
    111110NSTUB(Feof_Fut                                ,0xffc12f58) //  1 
     
    139138NSTUB(LocalTime                               ,0xffc53768) //  1 
    140139NSTUB(LockMainPower                           ,0xffc5cdd0) //103 
     140NSTUB(Lseek                                   ,0xffc13484) //101 
    141141NSTUB(MakeDirectory_Fut                       ,0xffc12c64) //  1 
    142142NSTUB(MoveFocusLensToDistance                 ,0xffe403bc) //102 
  • trunk/platform/a1000/sub/100a/stubs_entry_2.S

    r1641 r1718  
    33 
    44// Override stubs_entry.S 
    5 NHSTUB(ExpCtrlTool_StopContiAE,     0xffc1fabc) 
    6 NHSTUB(Lseek,                       0xffc1354c) 
     5//NHSTUB(ExpCtrlTool_StopContiAE,     0xffc1fabc) 
     6//NHSTUB(Lseek,                       0xffc1354c) 
    77NHSTUB(PT_PlaySound,                0xffc48fbc) 
    88NHSTUB(SetAE_ShutterSpeed,          0xffe3de6c) 
  • trunk/platform/a1000/sub/100a/stubs_min.S

    r1641 r1718  
    2020// ROM:FF9571C8   ADRNE   R0, aZoomlenscontro @ "ZoomLensController.c" 
    2121// ROM:FF9571CC   BLNE    assert 
    22 DEF(zoom_busy,                          0xB4A4) //0xB37C + 0x34 
     22//DEF(zoom_busy,                          0xB4A4) //0xB37C + 0x34 
    2323 
    2424// Found in sub_FF950718 (<- sub_FFA0D148 <- sub_FFA0D394 <- sub_FFA0D408 
     
    3131// ROM:FF95077C   ADRNE   R0, aFocuslenscontr @ "FocusLensController.c" 
    3232// ROM:FF950780   BLNE    assert 
    33 DEF(focus_busy, 0x7EE8) //0xB274 + 8 or 7fd4 
     33//DEF(focus_busy, 0x7EE8) //0xB274 + 8 or 7fd4 
    3434 
    3535// Same as previous variable, unusable. Originally found it by peeking through 
     
    4444// ROM:FF982318   STRB    R0, [R1] 
    4545// ROM:FF98231C   STRB    R0, [R1,#1] 
    46 DEF(canon_shoot_menu_active,            0xC05D) // 0xC05C + 1 
     46//DEF(canon_shoot_menu_active,            0xC05D) // 0xC05C + 1 
    4747 
    4848 
     
    5353// ROM:FF9754B4 008                 LDR     R12, =0x3007 
    5454// ROM:FF9754B8 008                 LDR     R2, [R1,#0xCC] 
    55 DEF(recreview_hold,                     0x94C8) // 0xBD60 + 0xCC 
    56 DEF(movie_status,                       0x5868 + 0x38) 
     55//DEF(recreview_hold,                     0x94C8) // 0xBD60 + 0xCC 
     56//DEF(movie_status,                       0x5868 + 0x38) 
    5757DEF(mode_magic,                         0x58D4) 
     58DEF(enabled_refresh_physical_screen,    0xA460 + 0x30)  // Found in sub_ffd7a36c 
  • trunk/platform/a1000/sub/100b/capt_seq.c

    r1641 r1718  
    33#include "core.h" 
    44 
    5 static long *nrflag = (long*)0x9F90; 
     5static long *nrflag = (long*)0x8594; 
    66 
    77#include "../../../generic/capt_seq.c" 
  • trunk/platform/a1000/sub/100b/lib.c

    r1641 r1718  
    4040void *vid_get_viewport_fb_d() 
    4141{ 
    42         return (void*)(*(int*)0x4F30); // 0x4EE8 + 0x50  
     42        return (void*)(*(int*)0x4F3C); 
    4343} 
    4444 
  • trunk/platform/a1000/sub/100b/stubs_entry.S

    r1641 r1718  
    1515// Stubs below should be checked. Stub not matched 100%, or difference found to current 'stubs_entry_2.S' 
    1616//    Name                                     Address      Rule  %  Comp to stubs_entry_2.S 
    17 //NSTUB(ExpCtrlTool_StopContiAE               ,0xffc1fbac) //104        *** != 0xffc1fabc 
    18 //NSTUB(Lseek                                 ,0xffc13484) //101        *** != 0xffc1354c 
    1917//NSTUB(PT_PlaySound                          ,0xffc48c7c) //102        *** != 0xffc48fbc 
    2018//NSTUB(SetAE_ShutterSpeed                    ,0xffe42b88) //102        *** != 0xffe3de6c 
     
    3432DEF(physw_run                               ,0x00001be4) // Found @0xffc11064 
    3533DEF(levent_table                            ,0xffeab474) // Found @0xffeab474 
    36 //DEF(FlashParamsTable                        ,0xffec9f7c) // Found @0xffec9f7c, ** != ** stubs_min = 0xffeca0bc (0xFFECA0BC) 
    37 //DEF(movie_status                            ,0x000050a0) // Found @0xffc47cf8, ** != ** stubs_min = 0x000058a0 (0x5868+0x38) 
     34DEF(FlashParamsTable                        ,0xffec9f7c) // Found @0xffec9f7c 
     35DEF(movie_status                            ,0x000050a0) // Found @0xffc47cf8 
    3836DEF(canon_menu_active                       ,0x00005480) // Found @0xffc59fb8 
    39 //DEF(canon_shoot_menu_active                 ,0x00009735) // Found @0xffd3b670, ** != ** stubs_min = 0x0000c05d (0xC05D) 
     37DEF(canon_shoot_menu_active                 ,0x00009735) // Found @0xffd3b670 
    4038DEF(playrec_mode                            ,0x00005228) // Found @0xffc4ec4c 
    4139DEF(zoom_status                             ,0x0000c0a4) // Found @0xffdfc7b0 
     
    4543// there are 8 entries in the table - set NUM_FL to 8 
    4644DEF(focus_len_table                         ,0xfffe297c) // Found @0xfffe297c 
    47 //DEF(zoom_busy                               ,0x00007fdc) // Found @0xffd03034, ** != ** stubs_min = 0x0000b4a4 (0xB4A4) 
    48 //DEF(focus_busy                              ,0x00007ee4) // Found @0xffcfebb4, ** != ** stubs_min = 0x00007ee8 (0x7EE8) 
    49 //DEF(recreview_hold                          ,0x000059e4) // Found @0xffc65b4c, ** != ** stubs_min = 0x000094c8 (0x94C8) 
     45DEF(zoom_busy                               ,0x00007fdc) // Found @0xffd03034 
     46DEF(focus_busy                              ,0x00007ee4) // Found @0xffcfebb4 
     47DEF(recreview_hold                          ,0x000059e4) // Found @0xffc65b4c 
    5048 
    5149// Values below go in 'lib.c': 
     
    108106NSTUB(ExitTask                                ,0xffc0bb50) //101 
    109107NSTUB(ExpCtrlTool_StartContiAE                ,0xffc1fa68) //104 
     108NSTUB(ExpCtrlTool_StopContiAE                 ,0xffc1fbac) //104 
    110109NSTUB(Fclose_Fut                              ,0xffc12d6c) //101 
    111110NSTUB(Feof_Fut                                ,0xffc12f58) //  1 
     
    139138NSTUB(LocalTime                               ,0xffc53768) //  1 
    140139NSTUB(LockMainPower                           ,0xffc5cdd0) //103 
     140NSTUB(Lseek                                   ,0xffc13484) //101 
    141141NSTUB(MakeDirectory_Fut                       ,0xffc12c64) //  1 
    142142NSTUB(MoveFocusLensToDistance                 ,0xffe403bc) //102 
  • trunk/platform/a1000/sub/100b/stubs_entry_2.S

    r1641 r1718  
    33 
    44// Override stubs_entry.S 
    5 NHSTUB(ExpCtrlTool_StopContiAE,     0xFFC1FABC) 
    6 NHSTUB(Lseek,                       0xffc1354c) 
     5//NHSTUB(ExpCtrlTool_StopContiAE,     0xFFC1FABC) 
     6//NHSTUB(Lseek,                       0xffc1354c) 
    77NHSTUB(PT_PlaySound,                0xFFC48FBC) 
    88NHSTUB(SetAE_ShutterSpeed,          0xFFE3DE6C) 
  • trunk/platform/a1000/sub/100b/stubs_min.S

    r1641 r1718  
    1212DEF(led_table,                          0x2290) // 0x270C + 4 
    1313 
    14 //ROM:FFA0AFB8(a1000) // old - found at ROM:FFA4503C 
    15 DEF(FlashParamsTable,                   0xFFECA0BC) 
    16  
    1714// found in sub_FF957174 (called from MoveZoomLensWithPoint (sub_FF957B34)) 
    1815// ROM:FF957178   LDR     R4, =0xB37C 
     
    2320// ROM:FF9571C8   ADRNE   R0, aZoomlenscontro @ "ZoomLensController.c" 
    2421// ROM:FF9571CC   BLNE    assert 
    25 DEF(zoom_busy,                          0xB4A4) //0xB37C + 0x34 
     22//DEF(zoom_busy,                          0xB4A4) //0xB37C + 0x34 
    2623 
    2724// Found in sub_FF950718 (<- sub_FFA0D148 <- sub_FFA0D394 <- sub_FFA0D408 
     
    3431// ROM:FF95077C   ADRNE   R0, aFocuslenscontr @ "FocusLensController.c" 
    3532// ROM:FF950780   BLNE    assert 
    36 DEF(focus_busy,                         0x7EE8) //0xB274 + 8 or 7fd4 
     33//DEF(focus_busy,                         0x7EE8) //0xB274 + 8 or 7fd4 
    3734 
    3835// Same as previous variable, unusable. Originally found it by peeking through 
     
    4744// ROM:FF982318   STRB    R0, [R1] 
    4845// ROM:FF98231C   STRB    R0, [R1,#1] 
    49 DEF(canon_shoot_menu_active,            0xC05D) // 0xC05C + 1 
     46//DEF(canon_shoot_menu_active,            0xC05D) // 0xC05C + 1 
    5047 
    5148// Found in sub_FF9754AC. Again, ewavr found this one, he did supply one pointer 
     
    5552// ROM:FF9754B4 008                 LDR     R12, =0x3007 
    5653// ROM:FF9754B8 008                 LDR     R2, [R1,#0xCC] 
    57 DEF(recreview_hold,                     0x94C8) // 0xBD60 + 0xCC 
    58 DEF(movie_status,                       0x5868 + 0x38) 
     54//DEF(recreview_hold,                     0x94C8) // 0xBD60 + 0xCC 
     55//DEF(movie_status,                       0x5868 + 0x38) 
    5956DEF(mode_magic,                         0x58D4) 
     57DEF(enabled_refresh_physical_screen,    0xa460 + 0x30) // found in sub_ffd7a308 
  • trunk/platform/ixus220_elph300hs/sub/100c/lib.c

    r1448 r1718  
    5959void *vid_get_viewport_fb_d() 
    6060{ 
    61         //FF06C580 dword_FF06C580  DCD 0x3C70 
    62         //FF06D300                 STR     R12, [R5,#0x58 
    63         return (void*)(*(int*)(0x3C70+0x58));                   
    64  
     61        return (void*)(*(int*)(0x2c08+0x58)); 
    6562} 
    6663 
  • trunk/platform/ixus220_elph300hs/sub/100c/stubs_entry.S

    r1658 r1718  
    3636DEF(zoom_busy                               ,0x00006cf4) // Found @0xff97fd74 
    3737DEF(focus_busy                              ,0x00006b68) // Found @0xff97af60 
    38 //DEF(recreview_hold                          ,0x00003828) // Found @0xff8a6510, ** != ** stubs_min = 0x000094c4 (0x93D4+0xF0) 
     38//DEF(recreview_hold                          ,0x00003828) // Found @0xff8a6510,          stubs_min = 0x00003828 (0x00003828) 
    3939 
    4040// Values below go in 'lib.c': 
  • trunk/platform/ixus220_elph300hs/sub/100c/stubs_min.S

    r1641 r1718  
    11#include "stubs_asm.h" 
    22 
    3 DEF(recreview_hold,                     0x93D4 + 0xF0)  // FF1B6640 
     3DEF(recreview_hold,                     0x00003828) 
    44DEF(led_table,                          0x258C + 0x04)  // FF0557C4 
    55DEF(focus_len_table,                    0xfffea288)     // search for 21500 (longest focus length in micrometers) & 4300 (shortest length) 
  • trunk/platform/ixus220_elph300hs/sub/101a/lib.c

    r1448 r1718  
    5959void *vid_get_viewport_fb_d() 
    6060{ 
    61         //FF06C580 dword_FF06C580  DCD 0x3C70 
    62         //FF06D300                 STR     R12, [R5,#0x58 
    63         return (void*)(*(int*)(0x3C70+0x58));                   
    64  
     61        return (void*)(*(int*)(0x2c08+0x58)); 
    6562} 
    6663 
  • trunk/platform/ixus220_elph300hs/sub/101a/stubs_entry.S

    r1658 r1718  
    3636DEF(zoom_busy                               ,0x00006cf4) // Found @0xff97fd74 
    3737DEF(focus_busy                              ,0x00006b68) // Found @0xff97af60 
    38 //DEF(recreview_hold                          ,0x00003828) // Found @0xff8a6510, ** != ** stubs_min = 0x000094c4 (0x93D4+0xF0) 
     38//DEF(recreview_hold                          ,0x00003828) // Found @0xff8a6510,          stubs_min = 0x00003828 (0x00003828) 
    3939 
    4040// Values below go in 'lib.c': 
  • trunk/platform/ixus220_elph300hs/sub/101a/stubs_min.S

    r1641 r1718  
    11#include "stubs_asm.h" 
    22 
    3 DEF(recreview_hold,                     0x93D4 + 0xF0)  // FF1B6640 
     3DEF(recreview_hold,                     0x00003828) 
    44DEF(led_table,                          0x258C + 0x04)  // FF0557C4 
    55DEF(focus_len_table,                    0xfffea288)     // search for 21500 (longest focus length in micrometers) & 4300 (shortest length) 
  • trunk/platform/ixus220_elph300hs/sub/101c/lib.c

    r1448 r1718  
    5959void *vid_get_viewport_fb_d() 
    6060{ 
    61         //FF06C580 dword_FF06C580  DCD 0x3C70 
    62         //FF06D300                 STR     R12, [R5,#0x58 
    63         return (void*)(*(int*)(0x3C70+0x58));                   
    64  
     61        return (void*)(*(int*)(0x2c08+0x58)); 
    6562} 
    6663 
  • trunk/platform/ixus220_elph300hs/sub/101c/stubs_entry.S

    r1658 r1718  
    3636DEF(zoom_busy                               ,0x00006cf4) // Found @0xff97fd74 
    3737DEF(focus_busy                              ,0x00006b68) // Found @0xff97af60 
    38 //DEF(recreview_hold                          ,0x00003828) // Found @0xff8a6510, ** != ** stubs_min = 0x000094c4 (0x93D4+0xF0) 
     38//DEF(recreview_hold                          ,0x00003828) // Found @0xff8a6510,          stubs_min = 0x00003828 (0x00003828) 
    3939 
    4040// Values below go in 'lib.c': 
  • trunk/platform/ixus220_elph300hs/sub/101c/stubs_min.S

    r1641 r1718  
    11#include "stubs_asm.h" 
    22 
    3 DEF(recreview_hold,                     0x93D4 + 0xF0)  // FF1B6640 
     3DEF(recreview_hold,                     0x00003828) 
    44DEF(led_table,                          0x258C + 0x04)  // FF0557C4 
    55DEF(focus_len_table,                    0xfffea288)     // search for 21500 (longest focus length in micrometers) & 4300 (shortest length) 
  • trunk/platform/ixus220_elph300hs/sub/101g/lib.c

    r1550 r1718  
    5959void *vid_get_viewport_fb_d() 
    6060{ 
    61         //FF06C580 dword_FF06C580  DCD 0x3C70 
    62         //FF06D300                 STR     R12, [R5,#0x58 
    63         return (void*)(*(int*)(0x3C70+0x58));                   
    64  
     61        return (void*)(*(int*)(0x2c08+0x58)); 
    6562} 
    6663 
  • trunk/platform/ixus220_elph300hs/sub/101g/stubs_entry.S

    r1658 r1718  
    3636DEF(zoom_busy                               ,0x00006cf4) // Found @0xff97fd74 
    3737DEF(focus_busy                              ,0x00006b68) // Found @0xff97af60 
    38 //DEF(recreview_hold                          ,0x00003828) // Found @0xff8a6510, ** != ** stubs_min = 0x000094c4 (0x93D4+0xF0) 
     38//DEF(recreview_hold                          ,0x00003828) // Found @0xff8a6510,          stubs_min = 0x00003828 (0x00003828) 
    3939 
    4040// Values below go in 'lib.c': 
  • trunk/platform/ixus220_elph300hs/sub/101g/stubs_min.S

    r1641 r1718  
    77DEF(focus_len_table, 0xfffea288)                  // search for 21500 (longest focus length in micrometers) & 4300 (shortest length) 
    88 
     9DEF(recreview_hold,                     0x00003828) 
     10 
    911//not touched 
    10 DEF(recreview_hold, 0x93D4 + 0xF0)        // FF1B6640 
    1112DEF(led_table, 0x258C + 0x04)             // FF0557C4 
    1213 
Note: See TracChangeset for help on using the changeset viewer.