Changeset 1893


Ignore:
Timestamp:
06/02/12 22:40:08 (12 months ago)
Author:
reyalp
Message:

update live view branch to trunk 1891

Location:
branches/reyalp-ptp-live
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • branches/reyalp-ptp-live

  • branches/reyalp-ptp-live/core/gui.c

    r1878 r1893  
    19831983        { 
    19841984            --show_md_grid; 
    1985             if (module_mdetect_load()) 
     1985            // If motion detect library loaded then display the MD grid 
     1986            // Don't call 'module_mdetect_load' here as we don't want to load 
     1987            // the module, just see if it was already loaded. 
     1988            if (libmotiondetect) 
    19861989                libmotiondetect->md_draw_grid(); 
    19871990        } 
  • branches/reyalp-ptp-live/core/modules.c

    r1814 r1893  
    164164} 
    165165 
     166void module_mdetect_unload() 
     167{ 
     168        if (libmotiondetect) 
     169    { 
     170        module_unload(MODULE_NAME_MDETECT);   
     171        libmotiondetect = 0; 
     172    } 
     173} 
     174 
    166175 
    167176/************* DYNAMIC LIBRARY ZEBRA ******/ 
  • branches/reyalp-ptp-live/core/motion_detector.h

    r1711 r1893  
    119119        extern struct libmotiondetect_sym* libmotiondetect; 
    120120    extern struct libmotiondetect_sym* module_mdetect_load();           // 0fail, addr-ok 
     121    extern void module_mdetect_unload(); 
    121122#else 
    122123        // This section is for module 
  • branches/reyalp-ptp-live/core/script.c

    r1737 r1893  
    612612            break; 
    613613        case AS_MOTION_DETECTOR: 
    614             if (module_mdetect_load()) 
     614            // If motion detect module loaded then run the MD code 
     615            // Don't call module_mdetect_load here as it may cause the 
     616            // module to be re-loaded after the script is interrupted 
     617            if (libmotiondetect) 
    615618            { 
    616619                if (libmotiondetect->md_detect_motion()==0) 
     
    717720    } 
    718721    // If motion detect library loaded then shut down motion detector 
    719     // Don't call 'module_mdetect_load' here as we don't want to load 
    720     // the module, just see if it was already loaded. 
    721     if (libmotiondetect) 
    722         libmotiondetect->md_close_motion_detector(); 
     722    module_mdetect_unload(); 
     723 
    723724        shot_histogram_set(0); 
    724725    kbd_key_release_all(); 
  • branches/reyalp-ptp-live/platform/sx200is/lib.c

    r1889 r1893  
    6767{ 
    6868    extern int active_palette_buffer; 
    69     extern char* palette_buffer[]; 
    70     return (palette_buffer[active_palette_buffer]+0xC); 
     69    extern int** palette_buffer_ptr; 
     70    return (palette_buffer_ptr[active_palette_buffer]+0x3); 
    7171} 
     72 
    7273// Function to load CHDK custom colors into active Canon palette 
    7374void load_chdk_palette() 
  • branches/reyalp-ptp-live/platform/sx200is/sub/100c/stubs_entry.S

    r1878 r1893  
    55//   DRYOS R31 (DRYOS version 2.3, release #0031) 
    66//   Firmware Ver GM1.00C 
    7 //   Possible corrupt firmware dump - file size to small for start address 0xff810000 
    8 //     file size = 4.00MB, should be 7.94MB 
    9 //   Could not find Camera name - possible corrupt firmware dump 
     7//   Canon PowerShot SX200 IS 
    108 
    119// Values for makefile.inc 
    1210//   PLATFORMOSVER = 31 
     11//   PLATFORMID = 12736 (0x31c0) // Found @ 0xfffe0130 
    1312//   MAXRAMADDR = 0x03ffffff 
     13//   KEYSYS = d4                 // Found @ 0xffff356c 
     14//   NEED_ENCODED_DISKBOOT = 2   // Found @ 0xffff357c 
    1415 
    1516// Stubs below should be checked. Stub not matched 100%, or difference found to current 'stubs_entry_2.S' 
     
    3435DEF(zoom_status                             ,0x0000b850) // Found @0xffa775d0 
    3536DEF(some_flag_for_af_scan                   ,0x00006af8) // Found @0xff93b340 
     37// focus_len_table contains zoom focus lengths for use in 'get_focal_length' (main.c). 
     38// each entry contains 3 int value(s), the first is the zoom focus length. 
     39// there are 126 entries in the table - set NUM_FL to 126 
     40DEF(focus_len_table                         ,0xfffe8538) // Found @0xfffe8538 
    3641DEF(zoom_busy                               ,0x000064f0) // Found @0xff9342b4 
    3742DEF(focus_busy                              ,0x000063f8) // Found @0xff92e97c 
  • branches/reyalp-ptp-live/platform/sx200is/sub/100c/stubs_min.S

    r1889 r1893  
    44DEF(enabled_refresh_physical_screen,    0x8e04 + 0x30)  //found at FF9D4918 and FF9D4F38 
    55DEF(led_table,                          0x24AC + 0x04)  // found at FF847374 
    6 DEF(palette_buffer,                 0x15B5A0) // ref by 0x8D9C, sub_FF9CFC10 
     6DEF(palette_buffer_ptr,               0x8D9C) // points to 0x15B5A0, sub_FF9CFC10 
    77DEF(active_palette_buffer,            0x8D8C) // sub_FF9CFE34 
    88DEF(palette_control,                  0x8D88) // sub_FF9CFE34 
Note: See TracChangeset for help on using the changeset viewer.