Changeset 1343


Ignore:
Timestamp:
09/25/11 02:22:38 (21 months ago)
Author:
philmoz
Message:
  • Merged recent changes from main trunk to this branch.
  • Added experimental color/palette code for G12/SX30/IXUS310. Loads custom CHDK colors into camera palette. Adds better icons from CHDK-DE.
Location:
branches/philmoz
Files:
120 edited

Legend:

Unmodified
Added
Removed
  • branches/philmoz

  • branches/philmoz/Makefile

    r1340 r1343  
    11topdir=./ 
    22srcdir=./ 
    3  
    4 #ifndef NO_INC_BUILD 
    5 #BUILD_NUMBER := $(shell expr $(BUILD_NUMBER) + 1) 
    6 #endif 
    73 
    84# Define the lists of cameras / firmware versions with a BETA status 
     
    9086version: FORCE 
    9187        echo "**** Build: $(BUILD_NUMBER)" 
    92 #       echo "BUILD_NUMBER := $(BUILD_NUMBER)" > version.inc 
    9388 
    9489FORCE: 
  • branches/philmoz/core/gui_batt.c

    r1234 r1343  
    4545 
    4646    int perc = get_batt_perc(); 
     47 
     48#ifdef  CAM_USE_COLORED_ICONS 
     49 
     50    // set bar color depending percent 
     51    color cl1 = (perc>50) ? COLOR_GREEN_DK :(perc<=20) ? COLOR_RED_DK : COLOR_YELLOW_DK; 
     52    color cl2 = (perc>50) ? COLOR_GREEN    :(perc<=20) ? COLOR_RED    : COLOR_YELLOW; 
     53    color cl3 = (perc>50) ? COLOR_GREEN_LT :(perc<=20) ? COLOR_RED_LT : COLOR_YELLOW_LT; 
     54 
     55    // icon 
     56    draw_vline(xx, yy+5, 2, COLOR_GREY_MED); 
     57    draw_filled_rect(xx+1, yy+4, xx+2, yy+8, MAKE_COLOR(COLOR_YELLOW_DK, COLOR_YELLOW_DK)); 
     58    draw_rect(xx+3, yy, xx+31, yy+12, MAKE_COLOR(COLOR_GREY_MED, COLOR_GREY_MED)); 
     59    draw_hline(xx+4, yy+1,  26, COLOR_GREY_LT); 
     60    draw_hline(xx+4, yy+11, 26, COLOR_GREY_MED); 
     61    // fill icon 
     62    draw_rect(xx+4,           yy+2,   xx+30,  yy+10,  MAKE_COLOR(cl1, cl1)); 
     63    draw_filled_rect(xx+5,    yy+6,   xx+28-(25*perc/100),  yy+9,  MAKE_COLOR(COLOR_GREY_MED, COLOR_GREY_MED)); 
     64    draw_filled_rect(xx+5,    yy+3,   xx+28-(25*perc/100),  yy+5,   MAKE_COLOR(COLOR_GREY_LT, COLOR_GREY_LT)); 
     65    draw_filled_rect(xx+29-(25*perc/100),    yy+6,     xx+29,   yy+9,  MAKE_COLOR(cl2, cl2)); 
     66    draw_filled_rect(xx+29-(25*perc/100),    yy+3,     xx+29,   yy+5,  MAKE_COLOR(cl3, cl3)); 
     67#else 
    4768    color cl = (perc<=10)?conf.osd_color_warn:(conf.batt_icon_color&0xFF); 
    4869 
    4970    // battery icon 
    50     draw_rect(xx+3-1,    yy+1,     xx+3+25+1, yy+1+10,  cl); 
    51     draw_rect(xx+3-3,    yy+1+2,   xx+3-2,    yy+1+8,   cl); 
     71    draw_rect(xx+3-1,     yy+1,     xx+3+25+1, yy+1+10,  cl); 
     72    draw_rect(xx+3-3,     yy+1+2,   xx+3-2,    yy+1+8,   cl); 
    5273    draw_vline(xx+3-4,    yy+1+2-1, 8,   COLOR_BLACK);  // l 
    5374    draw_hline(xx+3-2,    yy+1-1,   29,  COLOR_BLACK);  // t 
     
    6182    draw_filled_rect(xx+3, yy+1+1, x-1, yy+1+9, MAKE_COLOR(COLOR_TRANSPARENT, COLOR_BLACK)); 
    6283    draw_filled_rect(x, yy+1+1, xx+3+25, yy+1+9, MAKE_COLOR(cl, cl)); 
     84#endif 
    6385} 
    6486 
  • branches/philmoz/core/gui_draw.h

    r1333 r1343  
    200200#define COLOR_HISTO_RG_PLAY COLOR_YELLOW 
    201201 
    202 #elif CAM_BITMAP_PALETTE==7    // sx30, g12 
     202#elif CAM_BITMAP_PALETTE==7    // sx130is, s95 
    203203#define COLOR_TRANSPARENT   0x00 
    204204#define COLOR_WHITE         0x01 
     
    233233#define SCREEN_COLOR            0x1D 
    234234 
    235 #elif CAM_BITMAP_PALETTE==8    // s95 
     235#elif CAM_BITMAP_PALETTE==8    // a490, a495 
    236236#define COLOR_TRANSPARENT   0x00 
    237237#define COLOR_WHITE         0x01 
     
    366366#define COLOR_HISTO_RG_PLAY COLOR_YELLOW 
    367367 
    368 #elif CAM_BITMAP_PALETTE==12    //(IXUS 310) 
    369 #define COLOR_TRANSPARENT   0x00 
    370 #define COLOR_WHITE         0x01 
    371 #define COLOR_RED           0x1e 
     368#elif CAM_BITMAP_PALETTE==12    // IXUS 310, SX30, G12 
     369// Default Canon colors 
     370#define COLOR_TRANSPARENT   0x00 
     371#define COLOR_WHITE         0x01 
     372#define COLOR_BLACK         0xFF 
    372373#define COLOR_GREY          0x1a 
    373 #define COLOR_GREEN         0x17 
    374 #define COLOR_BLUE_LT       0x10 
    375 #define COLOR_BLUE          0x14 
    376 #define COLOR_YELLOW        0x74 
    377 #define COLOR_BLACK         0xFF 
    378 #define COLOR_BG            0x1b 
    379 #define COLOR_FG            COLOR_WHITE 
    380 #define COLOR_SELECTED_BG   0x0e 
     374#define COLOR_GREY_MED      0x16 
     375#define COLOR_GREY_LT       0x0E 
     376#undef SCREEN_COLOR 
     377#define SCREEN_COLOR        0x1D 
     378 
     379// CHDK colors loaded into these locations in the camera palette by load_chdk_palette() 
     380#define COLOR_RED           (CHDK_COLOR_BASE+0) 
     381#define COLOR_RED_DK        (CHDK_COLOR_BASE+1) 
     382#define COLOR_RED_LT        (CHDK_COLOR_BASE+2) 
     383#define COLOR_GREEN         (CHDK_COLOR_BASE+3) 
     384#define COLOR_GREEN_DK      (CHDK_COLOR_BASE+4) 
     385#define COLOR_GREEN_LT      (CHDK_COLOR_BASE+5) 
     386#define COLOR_BLUE          (CHDK_COLOR_BASE+6) 
     387#define COLOR_BLUE_DK       (CHDK_COLOR_BASE+7) 
     388#define COLOR_BLUE_LT       (CHDK_COLOR_BASE+8) 
     389#define COLOR_MAGENTA       (CHDK_COLOR_BASE+9) 
     390#define COLOR_YELLOW        (CHDK_COLOR_BASE+10) 
     391#define COLOR_YELLOW_DK     (CHDK_COLOR_BASE+11) 
     392#define COLOR_YELLOW_LT     (CHDK_COLOR_BASE+12) 
     393 
     394#define COLOR_CYAN          COLOR_BLUE_LT 
     395#define COLOR_BG            COLOR_GREY 
     396#define COLOR_FG            COLOR_WHITE 
     397#define COLOR_SELECTED_BG   COLOR_GREY_LT 
    381398#define COLOR_SELECTED_FG   COLOR_BLACK 
    382399#define COLOR_ALT_BG        COLOR_BG 
    383 #define COLOR_SPLASH_RED    COLOR_RED 
    384 #define COLOR_SPLASH_PINK   0x1e                        // Orange 
    385 #define COLOR_SPLASH_GREY   0x16 
    386 #define COLOR_HISTO_R       0x7a 
    387 #define COLOR_HISTO_R_PLAY  0x8f 
    388 #define COLOR_HISTO_B       0x7b 
    389 #define COLOR_HISTO_B_PLAY  0x90 
    390 #define COLOR_HISTO_G       0x7d 
    391 #define COLOR_HISTO_G_PLAY      0x91 
    392 #define COLOR_HISTO_BG      COLOR_BLUE_LT 
    393 #define COLOR_HISTO_RG      COLOR_YELLOW 
    394 #define COLOR_HISTO_RB      COLOR_RED 
    395 #define COLOR_HISTO_RB_PLAY COLOR_HISTO_RB 
    396 #define COLOR_HISTO_BG_PLAY COLOR_BLUE_LT 
    397 #define COLOR_HISTO_RG_PLAY 0x85 
    398 #undef SCREEN_COLOR 
    399 #define SCREEN_COLOR            0x1D 
     400 
     401#define COLOR_SPLASH_RED    COLOR_RED_DK 
     402#define COLOR_SPLASH_PINK   COLOR_RED_LT 
     403#define COLOR_SPLASH_GREY   COLOR_GREY_MED 
     404 
     405#define COLOR_HISTO_R       COLOR_RED 
     406#define COLOR_HISTO_R_PLAY  COLOR_RED 
     407#define COLOR_HISTO_B       COLOR_BLUE 
     408#define COLOR_HISTO_B_PLAY  COLOR_BLUE 
     409#define COLOR_HISTO_G       COLOR_GREEN 
     410#define COLOR_HISTO_G_PLAY  COLOR_GREEN 
     411#define COLOR_HISTO_BG      COLOR_CYAN 
     412#define COLOR_HISTO_BG_PLAY COLOR_CYAN 
     413#define COLOR_HISTO_RG      COLOR_YELLOW 
     414#define COLOR_HISTO_RG_PLAY COLOR_YELLOW 
     415#define COLOR_HISTO_RB      COLOR_MAGENTA 
     416#define COLOR_HISTO_RB_PLAY COLOR_MAGENTA 
    400417 
    401418#else 
  • branches/philmoz/core/gui_space.c

    r1320 r1343  
    9999    space_color(); 
    100100 
     101#ifdef  CAM_USE_COLORED_ICONS 
     102    color cl1 = COLOR_GREEN; 
     103    color cl2 = COLOR_GREEN_DK; 
     104    if (((conf.space_warn_type == 0) && (perc <= conf.space_perc_warn)) || 
     105        ((conf.space_warn_type == 1) && (GetFreeCardSpaceKb() <= conf.space_mb_warn*1024))) 
     106    { 
     107        cl1 = COLOR_RED; 
     108        cl2 = COLOR_RED_DK; 
     109    }  
     110   
     111    //icon 
     112    draw_hline(xx,    yy,    30,  COLOR_GREY_LT); 
     113    draw_vline(xx,    yy,    12,  COLOR_GREY_LT); 
     114    draw_vline(xx+31, yy,    18,  COLOR_GREY); 
     115    draw_line(xx+1,   yy+13, xx+5, yy+17, COLOR_GREY); 
     116    draw_hline(xx+6,  yy+18, 24,  COLOR_GREY); 
     117            
     118    draw_filled_rect(xx+1,  yy+1,   xx+30,   yy+13,  MAKE_COLOR(COLOR_GREY_MED, COLOR_GREY_MED)); 
     119    draw_filled_rect(xx+5,  yy+14,  xx+30,   yy+17,  MAKE_COLOR(COLOR_GREY_MED, COLOR_GREY_MED)); 
     120    draw_filled_rect(xx+3,  yy+14,  xx+6,    yy+15,  MAKE_COLOR(COLOR_GREY_MED, COLOR_GREY_MED)); 
     121     
     122    draw_filled_rect(xx+2,  yy+2,   xx+6,    yy+4,   MAKE_COLOR(COLOR_YELLOW_DK, COLOR_YELLOW_DK)); 
     123    draw_filled_rect(xx+2,  yy+6,   xx+6,    yy+7,   MAKE_COLOR(COLOR_YELLOW_DK, COLOR_YELLOW_DK)); 
     124    draw_filled_rect(xx+2,  yy+9,   xx+6,    yy+10,  MAKE_COLOR(COLOR_YELLOW_DK, COLOR_YELLOW_DK)); 
     125    draw_filled_rect(xx+2,  yy+12,  xx+6,    yy+13,  MAKE_COLOR(COLOR_YELLOW_DK, COLOR_YELLOW_DK)); 
     126    draw_filled_rect(xx+5,  yy+15,  xx+9,    yy+16,  MAKE_COLOR(COLOR_YELLOW_DK, COLOR_YELLOW_DK));    
     127     
     128    draw_hline(xx+8,  yy,    2, COLOR_TRANSPARENT); 
     129    draw_hline(xx+11, yy,    3, COLOR_GREY); 
     130    draw_hline(xx+11, yy+18, 2, COLOR_TRANSPARENT); 
     131 
     132    //fill icon 
     133    draw_rect(xx+9,         yy+4,   xx+28,   yy+13,  MAKE_COLOR(cl1, cl1)); 
     134    draw_filled_rect(xx+27-(17*perc/100),      yy+5,       xx+27,     yy+12,   MAKE_COLOR(cl2, cl2)); 
     135#else 
    101136#define LE  23 
    102137#define WI  15 
     
    131166    if (x>1) draw_hline(xx+2,      yy+WI-2,    x-2,     COLOR_BLACK); 
    132167    draw_hline(xx+x+1,             yy+WI-2,    LE-x-3,  MAKE_COLOR(cl, cl)); 
     168#endif 
    133169} 
    134170 
  • branches/philmoz/core/main.c

    r1175 r1343  
    168168 
    169169    while (1) { 
     170 
     171#ifdef  CAM_LOAD_CUSTOM_COLORS 
     172        load_chdk_palette(); 
     173#endif 
     174 
    170175        if (raw_data_available) { 
    171176            raw_need_postprocess = raw_savefile(); 
  • branches/philmoz/include/camera.h

    r1321 r1343  
    182182#undef CAM_DISABLE_RAW_IN_LOW_LIGHT_MODE         // For cameras with 'low light' mode that does now work with raw define this 
    183183 
     184#undef CAM_LOAD_CUSTOM_COLORS                   // Define to enable loading CHDK custom colors into the camera color palette 
     185                                                // requires load_chdk_palette() and vid_get_bitmap_active_palette() to be defined 
     186                                                // correctly for the camera along with 
     187#undef CAM_USE_COLORED_ICONS                    // If the color palette contains enough shades of red, green, yellow and grey 
     188                                                // defined then enable this use the better icons (from CHDK-DE). See gui_batt.c 
     189                                                // and gui_space.c. 
     190 
    184191//---------------------------------------------------------- 
    185192// Override Default values for Camera if necessary 
  • branches/philmoz/include/platform.h

    r1321 r1343  
    246246extern void *vid_get_bitmap_active_palette();           // Return current palette memory address 
    247247 
     248#ifdef CAM_LOAD_CUSTOM_COLORS 
     249// Color palette function 
     250extern void load_chdk_palette(); 
     251#endif 
    248252/******************************************************************/ 
    249253 
  • branches/philmoz/makefile.fw

    r1340 r1343  
    2222$(FW): 
    2323        if [ -d platform/$(CAM)/sub/$@ ] && [ $(CAM)-$@ != "$(findstring $(CAM)-$@,$(SKIP_AUTOBUILD))" ]; then \ 
    24                 $(MAKE) -s --no-print-directory FASTLOAD=$(FASTLOAD) PLATFORM=$(CAM) PLATFORMSUB=$@ NO_INC_BUILD=1 $(ACTION); \ 
     24                $(MAKE) -s --no-print-directory FASTLOAD=$(FASTLOAD) PLATFORM=$(CAM) PLATFORMSUB=$@ $(ACTION); \ 
    2525        fi 
  • branches/philmoz/platform/a1100/sub/100c/stubs_entry_2.S

    r1233 r1343  
    2424NHSTUB(platformsub_kbd_fetch_data,0xFFC30B28) 
    2525NHSTUB(LEDDrive,0xffc30088) 
    26 NHSTUB(Unmount_FileSystem,0xFFC00950)//null 
    27 NHSTUB(Mount_FileSystem,0xFFC00950)//null 
    2826NHSTUB(DoAFLock,0xFFC14F40) 
    2927NHSTUB(SetZoomActuatorSpeedPercent,0xFFC00950)//null 
    30 NHSTUB(rewinddir,0xFFC00950)//null 
    3128NHSTUB(UnlockAF,0xFFC14F78) 
    3229NHSTUB(SetScriptMode,0xFFC5CAB4) 
  • branches/philmoz/platform/a2000/sub/100c/stubs_entry_2.S

    r1018 r1343  
    168168NHSTUB(SetZoomActuatorSpeedPercent,     0xFFC00940) // nullsub 
    169169 
    170 // Those aren't used or don't exist in DryOS 
    171 NHSTUB(Unmount_FileSystem,                                      0xFFC00940) 
    172 NHSTUB(Mount_FileSystem,                                                0xFFC00940) 
    173 NHSTUB(rewinddir,                                                                               0xFFC00940) 
    174  
    175170NHSTUB(SetScriptMode,                                                                           0xFFC5C77C) // string 
    176171NHSTUB(Restart, 0xFFC189EC)  
  • branches/philmoz/platform/a470/sub/100e/stubs_entry_2.S

    r1320 r1343  
    3737NHSTUB(kbd_pwr_on,                                              0xffc00948) 
    3838NHSTUB(kbd_pwr_off,                                             0xffc00948) 
    39 NSTUB(Unmount_FileSystem, 0xffc00948) 
    40 NSTUB(Mount_FileSystem, 0xffc00948) 
    41 NSTUB(rewinddir, 0xffc00948) 
    4239NSTUB(SetZoomActuatorSpeedPercent, 0xffc00948) 
    4340//NSTUB(taskcreate_AudioTsk,                    0xFFC3591C) 
  • branches/philmoz/platform/a470/sub/101b/stubs_entry_2.S

    r1320 r1343  
    3737NHSTUB(kbd_pwr_on,                                              0xffc00948) 
    3838NHSTUB(kbd_pwr_off,                                             0xffc00948) 
    39 NSTUB(Unmount_FileSystem, 0xffc00948) 
    40 NSTUB(Mount_FileSystem, 0xffc00948) 
    41 NSTUB(rewinddir, 0xffc00948) 
    4239NSTUB(SetZoomActuatorSpeedPercent, 0xffc00948) 
    4340//NSTUB(taskcreate_AudioTsk,                    0xFFC3591C) 
  • branches/philmoz/platform/a470/sub/102c/stubs_entry_2.S

    r1320 r1343  
    3737NHSTUB(kbd_pwr_on,                                              0xffc00948) 
    3838NHSTUB(kbd_pwr_off,                                             0xffc00948) 
    39 NSTUB(Unmount_FileSystem, 0xffc00948) 
    40 NSTUB(Mount_FileSystem, 0xffc00948) 
    41 NSTUB(rewinddir, 0xffc00948) 
    4239NSTUB(SetZoomActuatorSpeedPercent, 0xffc00948) 
    4340//NSTUB(taskcreate_AudioTsk,                    0xFFC3591C) 
  • branches/philmoz/platform/a480/sub/100b/stubs_entry_2.S

    r1320 r1343  
    4343 
    4444NHSTUB(kbd_pwr_on, 0xFFC00954) 
    45 NHSTUB(rewinddir, 0xFFC00954) 
    4645NHSTUB(SetZoomActuatorSpeedPercent, 0xFFC00954) 
    47 NHSTUB(Mount_FileSystem, 0xFFC00954) 
    48 NHSTUB(Unmount_FileSystem, 0xFFC00954) 
    4946 
    5047 
  • branches/philmoz/platform/a490/sub/100f/stubs_entry_2.S

    r1320 r1343  
    6363 
    6464// --- Those aren't used or don't exist in DryOS (like A720 and other) 
    65 NHSTUB(Mount_FileSystem, 0xFFC00B20)                 // nullsub_1 
    66 NHSTUB(Unmount_FileSystem, 0xFFC00B20)               // nullsub_1 
    67 NHSTUB(rewinddir, 0xFFC00B20)                        // nullsub_1 
    6865NHSTUB(kbd_pwr_on, 0xFFC00B20) 
    6966NHSTUB(kbd_pwr_off, 0xFFC00B20) 
  • branches/philmoz/platform/a495/sub/100d/stubs_entry_2.S

    r1218 r1343  
    5454NHSTUB(WriteSDCard,  0xffcfcb1c )                               // 0xffcfc938 
    5555NHSTUB(GetImageFolder, 0xffcf1428)    
    56 NHSTUB(Mount_FileSystem, 0xffc00b20)    
    57 NHSTUB(Unmount_FileSystem, 0xffc00b20)    
    58 NHSTUB(rewinddir, 0xffc00b20)    
    5956NHSTUB(kbd_pwr_on, 0xffc00b20)    
    6057NHSTUB(kbd_pwr_off, 0xffc435e4)                 // 2011JUN26 was 0xffc00b20)    
  • branches/philmoz/platform/a495/sub/100e/stubs_entry_2.S

    r1218 r1343  
    5555NHSTUB(WriteSDCard, 0xffcfcbcc) // 0xffcfc9e8)  
    5656NHSTUB(GetImageFolder, 0xffcf1478)    
    57 NHSTUB(Mount_FileSystem, 0xffc00b20)    
    58 NHSTUB(Unmount_FileSystem, 0xffc00b20)    
    59 NHSTUB(rewinddir, 0xffc00b20)    
    6057NHSTUB(kbd_pwr_on, 0xffc00b20)    
    6158NHSTUB(kbd_pwr_off, 0xffc435e4)    
  • branches/philmoz/platform/a495/sub/100f/stubs_entry_2.S

    r1218 r1343  
    6565 
    6666// --- Those aren't used or don't exist in DryOS (like A720 and other) 
    67 NHSTUB(Mount_FileSystem, 0xFFC00B20)                 // nullsub_1 
    68 NHSTUB(Unmount_FileSystem, 0xFFC00B20)               // nullsub_1 
    69 NHSTUB(rewinddir, 0xFFC00B20)                        // nullsub_1 
    7067NHSTUB(kbd_pwr_on, 0xFFC00B20) 
    7168NHSTUB(kbd_pwr_off, 0xffc435e4) // 0xFFC00B20) 
  • branches/philmoz/platform/a580/sub/101b/stubs_entry_2.S

    r1320 r1343  
    66 
    77// These don't exist/aren't found in dryos 
    8 NHSTUB(Mount_FileSystem,            NULL_SUB) 
    98NHSTUB(SetZoomActuatorSpeedPercent, NULL_SUB) 
    10 NHSTUB(Unmount_FileSystem,          NULL_SUB) 
    11 NHSTUB(rewinddir,                   NULL_SUB) 
    129 
    1310// Additional 
  • branches/philmoz/platform/a590/sub/100e/stubs_entry_2.S

    r1320 r1343  
    5656//NSTUB(taskUnlock,                      0xFFC00948) 
    5757 
    58 // NULLSUBS 
    59 NHSTUB(Mount_FileSystem,                         0xFFC00948) 
    60 NHSTUB(Unmount_FileSystem,               0xFFC00948) 
    61 NHSTUB(rewinddir,                        0xFFC00948) 
    62  
    6358//NSTUB(CreatePhysicalVram,              0xFFC00948) 
    6459//NSTUB(CreateTaskStrict,                        0xFFC00948) 
  • branches/philmoz/platform/a590/sub/101b/stubs_entry_2.S

    r1320 r1343  
    3030 
    3131// NULLSUBS 
    32 NHSTUB(Unmount_FileSystem, 0xffc00948) 
    33 NHSTUB(Mount_FileSystem, 0xffc00948) 
    34 NHSTUB(rewinddir, 0xffc00948) 
    3532NHSTUB(SetZoomActuatorSpeedPercent, 0xffc00948) 
    3633 
  • branches/philmoz/platform/a650/sub/100d/stubs_entry_2.S

    r844 r1343  
    104104NSTUB(taskLock, 0xFFC00958) 
    105105NSTUB(taskUnlock, 0xFFC00958) 
    106 NSTUB(Mount_FileSystem, 0xFFC00958) 
    107 NSTUB(Unmount_FileSystem, 0xFFC00958) 
    108 NSTUB(rewinddir, 0xFFC00958) 
    109106NHSTUB(SetZoomActuatorSpeedPercent, 0xFFC00958)  
    110107NSTUB(CreatePhysicalVram,                0xFFC00958) 
  • branches/philmoz/platform/a720/sub/100c/stubs_entry_2.S

    r1190 r1343  
    155155//NSTUB(taskSuspend,                     0xFFC00958) 
    156156NSTUB(taskUnlock,                        0xFFC00958) 
    157 NSTUB(Mount_FileSystem,                  0xFFC00958) 
    158 NSTUB(Unmount_FileSystem,                0xFFC00958) 
    159 NSTUB(rewinddir,                         0xFFC00958) 
    160157NSTUB(CreatePhysicalVram,                0xFFC00958) 
    161158NSTUB(CreateTaskStrict,                  0xFFC00958) 
  • branches/philmoz/platform/d10/sub/100a/stubs_entry_2.S

    r1320 r1343  
    3838 
    3939// These don't exist/aren't found in dryos 
    40 NHSTUB(Mount_FileSystem,NULLSUB) // NULLSUB 
    41 NHSTUB(Unmount_FileSystem,NULLSUB) // NULLSUB 
    42 NHSTUB(rewinddir,NULLSUB) // NULLSUB 
    4340NHSTUB(SetZoomActuatorSpeedPercent,NULLSUB) // NULLSUB 
    4441 
  • branches/philmoz/platform/g10/sub/102a/stubs_entry_2.S

    r1333 r1343  
    1212 
    1313NHSTUB(kbd_pwr_on, 0xFF81093C ) 
    14 NHSTUB(rewinddir, 0xFF81093C ) 
    15 NHSTUB(Unmount_FileSystem, 0xFF81093C ) 
    16 NHSTUB(Mount_FileSystem, 0xFF81093C ) 
    1714NHSTUB(SetZoomActuatorSpeedPercent, 0xFF81093C ) 
    1815 
  • branches/philmoz/platform/g10/sub/103b/stubs_entry_2.S

    r1333 r1343  
    1212 
    1313NHSTUB(kbd_pwr_on, 0xFF81093C ) 
    14 NHSTUB(rewinddir, 0xFF81093C ) 
    15 NHSTUB(Unmount_FileSystem, 0xFF81093C ) 
    16 NHSTUB(Mount_FileSystem, 0xFF81093C ) 
    1714NHSTUB(SetZoomActuatorSpeedPercent, 0xFF81093C ) 
    1815 
  • branches/philmoz/platform/g10/sub/104a/stubs_entry_2.S

    r1333 r1343  
    1212 
    1313NHSTUB(kbd_pwr_on, 0xFF81093C ) 
    14 NHSTUB(rewinddir, 0xFF81093C ) 
    15 NHSTUB(Unmount_FileSystem, 0xFF81093C ) 
    16 NHSTUB(Mount_FileSystem, 0xFF81093C ) 
    1714NHSTUB(SetZoomActuatorSpeedPercent, 0xFF81093C ) 
    1815 
  • branches/philmoz/platform/g11/sub/100f/stubs_entry_2.S

    r1320 r1343  
    4343// nullsubs 
    4444NHSTUB(kbd_pwr_on, 0xFF810B04) // nullsub 
    45 NHSTUB(rewinddir,  0xFF810B04)  // nullsub 
    46 NHSTUB(Unmount_FileSystem, 0xFF810B04)  // nullsub 
    47 NHSTUB(Mount_FileSystem,   0xFF810B04)  // nullsub 
    4845NHSTUB(SetZoomActuatorSpeedPercent, 0xFF810B04)  // nullsub 
    4946 
  • branches/philmoz/platform/g11/sub/100j/stubs_entry_2.S

    r1320 r1343  
    4545// nullsubs 
    4646NHSTUB(kbd_pwr_on, 0xFF810B04) // nullsub 
    47 NHSTUB(rewinddir, 0xFF810B04)  // nullsub 
    48 NHSTUB(Unmount_FileSystem, 0xFF810B04)  // nullsub 
    49 NHSTUB(Mount_FileSystem, 0xFF810B04)  // nullsub 
    5047NHSTUB(SetZoomActuatorSpeedPercent, 0xFF810B04)  // nullsub 
    5148 
  • branches/philmoz/platform/g11/sub/100l/stubs_entry_2.S

    r1320 r1343  
    4545// nullsubs 
    4646NHSTUB(kbd_pwr_on, 0xFF810B04) // nullsub 
    47 NHSTUB(rewinddir, 0xFF810B04)  // nullsub 
    48 NHSTUB(Unmount_FileSystem, 0xFF810B04)  // nullsub 
    49 NHSTUB(Mount_FileSystem, 0xFF810B04)  // nullsub 
    5047NHSTUB(SetZoomActuatorSpeedPercent, 0xFF810B04)  // nullsub 
    5148 
  • branches/philmoz/platform/g12/lib.c

    r1320 r1343  
    139139    return (palette_buffer[active_palette_buffer]+8); 
    140140} 
     141 
     142// Function to load CHDK custom colors into active Canon palette 
     143void load_chdk_palette() 
     144{ 
     145    extern int active_palette_buffer; 
     146    // Only load for the standard record and playback palettes 
     147    if ((active_palette_buffer == 0) || (active_palette_buffer == 4)) 
     148    { 
     149        int *pal = (int*)vid_get_bitmap_active_palette(); 
     150        if (pal[CHDK_COLOR_BASE+0] != 0x33ADF62) 
     151        { 
     152            pal[CHDK_COLOR_BASE+0]  = 0x33ADF62;  // Red 
     153            pal[CHDK_COLOR_BASE+1]  = 0x326EA40;  // Dark Red 
     154            pal[CHDK_COLOR_BASE+2]  = 0x34CD57F;  // Light Red 
     155            pal[CHDK_COLOR_BASE+3]  = 0x373BFAE;  // Green 
     156            pal[CHDK_COLOR_BASE+4]  = 0x34BD6CA;  // Dark Green 
     157            pal[CHDK_COLOR_BASE+5]  = 0x395AB95;  // Light Green 
     158            pal[CHDK_COLOR_BASE+6]  = 0x34766F0;  // Blue 
     159            pal[CHDK_COLOR_BASE+7]  = 0x31250F3;  // Dark Blue 
     160            pal[CHDK_COLOR_BASE+8]  = 0x37F408F;  // Cyan 
     161            pal[CHDK_COLOR_BASE+9]  = 0x3512D5B;  // Magenta 
     162            pal[CHDK_COLOR_BASE+10] = 0x3A9A917;  // Yellow 
     163            pal[CHDK_COLOR_BASE+11] = 0x3819137;  // Dark Yellow 
     164            pal[CHDK_COLOR_BASE+12] = 0x3DED115;  // Light Yellow 
     165 
     166            extern char palette_control; 
     167            palette_control = 1; 
     168            vid_bitmap_refresh(); 
     169        } 
     170    } 
     171} 
  • branches/philmoz/platform/g12/platform_camera.h

    r1320 r1343  
    5959 
    6060    #undef CAM_BITMAP_PALETTE 
    61     #define CAM_BITMAP_PALETTE    7 
     61    #define CAM_BITMAP_PALETTE    12 
    6262 
    6363    #undef CAM_USES_ASPECT_CORRECTION 
     
    115115    #define CAM_DISABLE_RAW_IN_LOW_LIGHT_MODE   1       // For cameras with 'low light' mode that does now work with raw define this 
    116116 
     117    #define CAM_LOAD_CUSTOM_COLORS              1       // Enable loading CHDK colors into the camera palette memory/hardware 
     118    #define CHDK_COLOR_BASE                     0xB3    // Start color index for CHDK colors loaded into camera palette. 
     119    #define CAM_USE_COLORED_ICONS               1       // Enable using the CHDK-DE colored icons. 
     120 
    117121//---------------------------------------------------------- 
    118122 
  • branches/philmoz/platform/g12/sub/100c/stubs_entry_2.S

    r1320 r1343  
    77NHSTUB(kbd_pwr_off,                                             0xFF810B1C)                                                             // ??? not on sx20 or s95 
    88NHSTUB(kbd_pwr_on,                                              0xFF810B1C)                                                             // ??? not on sx20 or s95 
    9 NHSTUB(rewinddir,                                               0xFF810B1C) 
    109NHSTUB(SetZoomActuatorSpeedPercent,             0xFF810B1C) 
    11 NHSTUB(Unmount_FileSystem,                              0xFF810B1C) 
    12 NHSTUB(Mount_FileSystem,                                0xFF810B1C) 
  • branches/philmoz/platform/g12/sub/100c/stubs_min.S

    r1320 r1343  
    2222DEF(active_bitmap_buffer, 0xA610)                                       // 0xA5FC+0x14 (1.00c sub_FFA57B64 -> FFA57B68 + FFA57BB8) 
    2323DEF(bitmap_buffer, 0xA618)                                                      // FFA57BB4 
     24DEF(palette_control, 0xA5DC)                                            // sub_FFA53CDC (1.00c) 
    2425DEF(active_palette_buffer, 0xA5E4)                                      // sub_FFA53C24 (1.00c) 
    2526DEF(palette_buffer, 0xBBF5C)                                            // sub_FFA54118 (1.00c) 
  • branches/philmoz/platform/g12/sub/100e/stubs_entry_2.S

    r1320 r1343  
    77NHSTUB(kbd_pwr_off,                                             0xFF810B1C)                                                             // ??? not on sx20 or s95 
    88NHSTUB(kbd_pwr_on,                                              0xFF810B1C)                                                             // ??? not on sx20 or s95 
    9 NHSTUB(rewinddir,                                               0xFF810B1C) 
    109NHSTUB(SetZoomActuatorSpeedPercent,             0xFF810B1C) 
    11 NHSTUB(Unmount_FileSystem,                              0xFF810B1C) 
    12 NHSTUB(Mount_FileSystem,                                0xFF810B1C) 
  • branches/philmoz/platform/g12/sub/100e/stubs_min.S

    r1320 r1343  
    2222DEF(active_bitmap_buffer, 0xA610)                                       // 0xA5FC+0x14 (1.00e sub_FFA57B70 -> FFA57B74 + FFA57BC4) 
    2323DEF(bitmap_buffer, 0xA618)                                                      // FFA57BC0 
     24DEF(palette_control, 0xA5DC)                                            // sub_FFA53CDC (1.00c) 
    2425DEF(active_palette_buffer, 0xA5E4)                                      // sub_FFA53C24 (1.00c) 
    2526DEF(palette_buffer, 0xBBF5C)                                            // sub_FFA54118 (1.00c) 
  • branches/philmoz/platform/g12/sub/100f/stubs_entry_2.S

    r1333 r1343  
    77NHSTUB(kbd_pwr_off,                                             0xFF810B1C)                                                             // ??? not on sx20 or s95 
    88NHSTUB(kbd_pwr_on,                                              0xFF810B1C)                                                             // ??? not on sx20 or s95 
    9 NHSTUB(rewinddir,                                               0xFF810B1C) 
    109NHSTUB(SetZoomActuatorSpeedPercent,             0xFF810B1C) 
    11 NHSTUB(Unmount_FileSystem,                              0xFF810B1C) 
    12 NHSTUB(Mount_FileSystem,                                0xFF810B1C) 
  • branches/philmoz/platform/g12/sub/100f/stubs_min.S

    r1333 r1343  
    2222DEF(active_bitmap_buffer, 0xA610)                                       // 0xA5FC+0x14 (1.00f sub_FFA57B70 -> FFA57B74 + FFA57BC4) 
    2323DEF(bitmap_buffer, 0xA618)                                                      // FFA57BC0 
     24DEF(palette_control, 0xA5DC)                                            // sub_FFA53CDC (1.00c) 
    2425DEF(active_palette_buffer, 0xA5E4)                                      // sub_FFA53C24 (1.00c) 
    2526DEF(palette_buffer, 0xBBF5C)                                            // sub_FFA54118 (1.00c) 
  • branches/philmoz/platform/g12/sub/100g/stubs_entry_2.S

    r1321 r1343  
    77NHSTUB(kbd_pwr_off,                                             0xFF810B1C)                                                             // ??? not on sx20 or s95 
    88NHSTUB(kbd_pwr_on,                                              0xFF810B1C)                                                             // ??? not on sx20 or s95 
    9 NHSTUB(rewinddir,                                               0xFF810B1C) 
    109NHSTUB(SetZoomActuatorSpeedPercent,             0xFF810B1C) 
    11 NHSTUB(Unmount_FileSystem,                              0xFF810B1C) 
    12 NHSTUB(Mount_FileSystem,                                0xFF810B1C) 
  • branches/philmoz/platform/g12/sub/100g/stubs_min.S

    r1321 r1343  
    2222DEF(active_bitmap_buffer, 0xA610)                                       // 0xA5FC+0x14 (1.00g sub_FFA57B70 -> FFA57B74 + FFA57BC4) 
    2323DEF(bitmap_buffer, 0xA618)                                                      // FFA57BC0 
     24DEF(palette_control, 0xA5DC)                                            // sub_FFA53CDC (1.00c) 
    2425DEF(active_palette_buffer, 0xA5E4)                                      // sub_FFA53C24 (1.00c) 
    2526DEF(palette_buffer, 0xBBF5C)                                            // sub_FFA54118 (1.00c) 
  • branches/philmoz/platform/g9/sub/100d/stubs_entry_2.S

    r1018 r1343  
    170170// NSTUB(taskSuspend,                    0xFF810958) 
    171171NSTUB(taskUnlock,                        0xFF810958)  
    172 NSTUB(Mount_FileSystem,                  0xFF810958)  
    173 NSTUB(Unmount_FileSystem,                0xFF810958)  
    174 NSTUB(rewinddir,                         0xFF810958)  
    175172NSTUB(CreatePhysicalVram,                0xFF810958)   
    176173NSTUB(CreateTaskStrict,                  0xFF810958)   
  • branches/philmoz/platform/g9/sub/100g/stubs_entry_2.S

    r1018 r1343  
    164164// NSTUB(taskSuspend,                    0xFF810958) 
    165165NSTUB(taskUnlock,                        0xFF810958)  
    166 NSTUB(Mount_FileSystem,                  0xFF810958)  
    167 NSTUB(Unmount_FileSystem,                0xFF810958)  
    168 NSTUB(rewinddir,                         0xFF810958)  
    169166NSTUB(CreatePhysicalVram,                0xFF810958)   
    170167NSTUB(CreateTaskStrict,                  0xFF810958)   
  • branches/philmoz/platform/g9/sub/100i/stubs_entry_2.S

    r1320 r1343  
    44NHSTUB(kbd_pwr_off, 0xFF810958) // nullsub 
    55NHSTUB(kbd_pwr_on, 0xFF810958) // nullsub 
    6 NHSTUB(Mount_FileSystem, 0xFF810958) // nullsub 
    7 NHSTUB(Unmount_FileSystem, 0xFF810958) // nullsub 
    86NHSTUB(SetZoomActuatorSpeedPercent, 0xFF810958) // nullsub 
    97NHSTUB(PT_PlaySound, 0xFF866454)  
    10 NHSTUB(rewinddir, 0xFF810958) // nullsub 
    118NHSTUB(DoAFLock, 0xff8275cc) 
    129NHSTUB(UnlockAF, 0xff827638) 
  • branches/philmoz/platform/generic/wrappers.c

    r1340 r1343  
    115115    return _taskIdListGet(idlist,size); 
    116116} 
    117 #endif 
    118  
    119 long get_property_case(long id, void *buf, long bufsize) 
    120 { 
    121     return _GetPropertyCase(id, buf, bufsize); 
    122 } 
    123  
    124 long set_property_case(long id, void *buf, long bufsize) 
    125 { 
    126     return _SetPropertyCase(id, buf, bufsize); 
    127 } 
    128  
    129 long get_parameter_data(long id, void *buf, long bufsize) 
    130 { 
    131     return _GetParameterData(id|0x4000, buf, bufsize); 
    132 } 
    133  
    134 long set_parameter_data(long id, void *buf, long bufsize) 
    135 { 
    136     return _SetParameterData(id|0x4000, buf, bufsize); 
    137 } 
    138117 
    139118void remount_filesystem() 
     
    141120    _Unmount_FileSystem(); 
    142121    _Mount_FileSystem(); 
     122} 
     123#endif 
     124 
     125long get_property_case(long id, void *buf, long bufsize) 
     126{ 
     127    return _GetPropertyCase(id, buf, bufsize); 
     128} 
     129 
     130long set_property_case(long id, void *buf, long bufsize) 
     131{ 
     132    return _SetPropertyCase(id, buf, bufsize); 
     133} 
     134 
     135long get_parameter_data(long id, void *buf, long bufsize) 
     136{ 
     137    return _GetParameterData(id|0x4000, buf, bufsize); 
     138} 
     139 
     140long set_parameter_data(long id, void *buf, long bufsize) 
     141{ 
     142    return _SetParameterData(id|0x4000, buf, bufsize); 
    143143} 
    144144 
     
    425425} 
    426426 
     427/* not used 
    427428void rewinddir(DIR *d) { 
    428429    if(!d) { 
     
    431432    _rewinddir(d->dh); 
    432433} 
     434*/ 
     435 
    433436#endif // dryos dir functions 
    434437 
  • branches/philmoz/platform/ixus100_sd780/sub/100b/stubs_entry_2.S

    r1333 r1343  
    88NHSTUB(VbattGet, 0xff820644)    // 0xff91b708    
    99NHSTUB(vsprintf, 0xff81cba0)    
    10 NHSTUB(Mount_FileSystem, 0xff858bec)    
    11 NHSTUB(Unmount_FileSystem, 0xff858bec)    
    12 NHSTUB(rewinddir, 0xff858bec)    
    1310NHSTUB(SetZoomActuatorSpeedPercent, 0xff858bec)    
    1411NHSTUB(strchr, 0xff88779c)    
  • branches/philmoz/platform/ixus100_sd780/sub/100c/stubs_entry_2.S

    r1320 r1343  
    44NHSTUB(VbattGet,0xff820644)             // sigfinder2 
    55NHSTUB(vsprintf,0xFF81CBA0)             //eventproc_export_CPrintf look for function called before error txt 
    6 NHSTUB(Mount_FileSystem,0xFF858BEC)             //Do we fix? Not in Dryos? 
    7 NHSTUB(Unmount_FileSystem,0xFF858BEC)           //Do we fix? Not in Dryos? 
    8 NHSTUB(rewinddir,0xFF858BEC)                    //Do we fix? Not in Dryos? 
    96NHSTUB(SetZoomActuatorSpeedPercent,0xFF858BEC)  //Do we fix? Not in Dryos? 
    107NHSTUB(strchr,0xFF88779C)                       //search AND R2, R1, #0xFF then LDRB R1, [R0] 
  • branches/philmoz/platform/ixus120_sd940/sub/100e/stubs_entry_2.S

    r1216 r1343  
    8080NHSTUB(kbd_pwr_on , NULLSUB) 
    8181NHSTUB(kbd_pwr_off, NULLSUB) 
    82 NHSTUB(rewinddir, NULLSUB) 
    8382NHSTUB(SetZoomActuatorSpeedPercent, NULLSUB) 
    84 NHSTUB(Unmount_FileSystem, NULLSUB)      
    85 NHSTUB(Mount_FileSystem, NULLSUB) 
    8683 
  • branches/philmoz/platform/ixus120_sd940/sub/101a/stubs_entry_2.S

    r1216 r1343  
    7979NHSTUB(kbd_pwr_off, NULLSUB) 
    8080 
    81 NHSTUB(rewinddir, NULLSUB) 
    8281NHSTUB(SetZoomActuatorSpeedPercent, NULLSUB) 
    83 NHSTUB(Unmount_FileSystem, NULLSUB)      
    84 NHSTUB(Mount_FileSystem, NULLSUB) 
  • branches/philmoz/platform/ixus120_sd940/sub/102c/stubs_entry_2.S

    r1216 r1343  
    8787 
    8888// ignore 
    89 NHSTUB(rewinddir,NULLSUB) 
    9089NHSTUB(SetZoomActuatorSpeedPercent,NULLSUB) 
    91 NHSTUB(Mount_FileSystem,NULLSUB) 
    92 NHSTUB(Unmount_FileSystem,NULLSUB) 
    9390 
    9491// need to redo?? 
  • branches/philmoz/platform/ixus120_sd940/sub/103b/stubs_entry_2.S

    r1216 r1343  
    9898NHSTUB(kbd_pwr_on , NULLSUB)                                    //** not found in SD90 or SD940-102c 
    9999NHSTUB(kbd_pwr_off, NULLSUB)                                    //** 0xff858e10 = best match: 51% in finsig 
    100 NHSTUB(rewinddir, NULLSUB)                                              //** not found in SD90 or SD940-102c 
    101100NHSTUB(SetZoomActuatorSpeedPercent, NULLSUB)    //** not found in SD90 or SD940-102c 
    102 NHSTUB(Unmount_FileSystem, NULLSUB)                             //** not found in SD90 or SD940-102c 
    103 NHSTUB(Mount_FileSystem, NULLSUB)                               //** not found in SD90 or SD940-102c 
  • branches/philmoz/platform/ixus120_sd940/sub/103c/stubs_entry_2.S

    r1216 r1343  
    100100NHSTUB(kbd_pwr_on , NULLSUB)                                    //** not found in SD90 or SD940-102c 
    101101NHSTUB(kbd_pwr_off, NULLSUB)                                    //** 0xff858e10 = best match: 51% in finsig 
    102 NHSTUB(rewinddir, NULLSUB)                                              //** not found in SD90 or SD940-102c 
    103102NHSTUB(SetZoomActuatorSpeedPercent, NULLSUB)    //** not found in SD90 or SD940-102c 
    104 NHSTUB(Unmount_FileSystem, NULLSUB)                             //** not found in SD90 or SD940-102c 
    105 NHSTUB(Mount_FileSystem, NULLSUB)                               //** not found in SD90 or SD940-102c 
    106103 
    107104NHSTUB(GetImageFolder, 0xFF919078)      // function before 'GetCameraObjectTmpPath ERROR' string 
  • branches/philmoz/platform/ixus200_sd980/sub/101c/stubs_entry_2.S

    r1320 r1343  
    5656 
    5757NHSTUB(kbd_pwr_on,  0xFF810B04) 
    58 NHSTUB(Unmount_FileSystem,  0xFF810B04) 
    59 NHSTUB(Mount_FileSystem,  0xFF810B04) 
    6058NHSTUB(SetZoomActuatorSpeedPercent,  0xFF810B04) 
    61 NHSTUB(rewinddir,  0xFF810B04) 
    6259 
    6360NHSTUB(SetScriptMode, 0xFF810F4) 
  • branches/philmoz/platform/ixus200_sd980/sub/101d/stubs_entry_2.S

    r1320 r1343  
    5050    
    5151NHSTUB(kbd_pwr_on, 0xff810b04)    
    52 NHSTUB(Unmount_FileSystem, 0xff810b04)    
    53 NHSTUB(Mount_FileSystem, 0xff810b04)    
    5452NHSTUB(SetZoomActuatorSpeedPercent, 0xff810b04)    
    55 NHSTUB(rewinddir, 0xff810b04) 
    5653    
    5754NHSTUB(SetScriptMode, 0xff89079c)    
  • branches/philmoz/platform/ixus300_sd4000/sub/100d/stubs_entry_2.S

    r1320 r1343  
    5656 
    5757// --- Those aren't used or don't exist in DryOS (like A720 and other) 
    58 NHSTUB(Mount_FileSystem, NULLSUB)                 // nullsub_1 
    59 NHSTUB(Unmount_FileSystem, NULLSUB)               // nullsub_1 
    60 NHSTUB(rewinddir, NULLSUB)                        // nullsub_1 
    6158NHSTUB(kbd_pwr_off, NULLSUB)                      // nullsub_1, does not exist, like SD990 
    6259NHSTUB(kbd_pwr_on, NULLSUB)                       // nullsub_1, does not exist, like SD990 
  • branches/philmoz/platform/ixus310_elph500hs/kbd.c

    r1340 r1343  
    399399 
    400400    // Check if border of CHDK button is corrupted, force redraw if so 
    401     if (!draw_test_pixel(0, 80, (guiMode)?COLOR_RED:COLOR_WHITE)) redraw_buttons = 1; 
     401    if (!draw_test_pixel(0, 80, (guiMode)?COLOR_GREEN:COLOR_WHITE)) redraw_buttons = 1; 
    402402 
    403403    if (redraw_buttons) 
     
    411411        //c2 = MAKE_COLOR((camMode&MODE_VID)?COLOR_TRANSPARENT:COLOR_RED, (camMode&MODE_VID)?COLOR_RED:COLOR_WHITE); 
    412412        color c1 = MAKE_COLOR(COLOR_TRANSPARENT, COLOR_WHITE); 
    413         color c2 = MAKE_COLOR(COLOR_TRANSPARENT, COLOR_RED); 
     413        color c2 = MAKE_COLOR(COLOR_TRANSPARENT, COLOR_GREEN); 
    414414 
    415415        for (i=0; keymap[i].hackkey; i++) 
  • branches/philmoz/platform/ixus310_elph500hs/lib.c

    r1340 r1343  
    114114    return (palette_buffer[active_palette_buffer]+8); 
    115115} 
     116 
     117// Function to load CHDK custom colors into active Canon palette 
     118void load_chdk_palette() 
     119{ 
     120    extern int active_palette_buffer; 
     121    // Only load for the standard record and playback palettes 
     122    if ((active_palette_buffer == 0) || (active_palette_buffer == 16)) 
     123    { 
     124        int *pal = (int*)vid_get_bitmap_active_palette(); 
     125        if (pal[CHDK_COLOR_BASE+0] != 0x33ADF62) 
     126        { 
     127            pal[CHDK_COLOR_BASE+0]  = 0x33ADF62;  // Red 
     128            pal[CHDK_COLOR_BASE+1]  = 0x326EA40;  // Dark Red 
     129            pal[CHDK_COLOR_BASE+2]  = 0x34CD57F;  // Light Red 
     130            pal[CHDK_COLOR_BASE+3]  = 0x373BFAE;  // Green 
     131            pal[CHDK_COLOR_BASE+4]  = 0x34BD6CA;  // Dark Green 
     132            pal[CHDK_COLOR_BASE+5]  = 0x395AB95;  // Light Green 
     133            pal[CHDK_COLOR_BASE+6]  = 0x34766F0;  // Blue 
     134            pal[CHDK_COLOR_BASE+7]  = 0x31250F3;  // Dark Blue 
     135            pal[CHDK_COLOR_BASE+8]  = 0x37F408F;  // Cyan 
     136            pal[CHDK_COLOR_BASE+9]  = 0x3512D5B;  // Magenta 
     137            pal[CHDK_COLOR_BASE+10] = 0x3A9A917;  // Yellow 
     138            pal[CHDK_COLOR_BASE+11] = 0x3819137;  // Dark Yellow 
     139            pal[CHDK_COLOR_BASE+12] = 0x3DED115;  // Light Yellow 
     140 
     141            extern char palette_control; 
     142            palette_control = 1; 
     143            vid_bitmap_refresh(); 
     144        } 
     145    } 
     146} 
  • branches/philmoz/platform/ixus310_elph500hs/platform_camera.h

    r1340 r1343  
    128128    #define DNG_VERT_RLE_BADPIXELS      1       // Enable vertical run length compression of bad pixels, reduces badpixel.bin file size by approx 45% 
    129129 
     130    #define CAM_LOAD_CUSTOM_COLORS              1       // Enable loading CHDK colors into the camera palette memory/hardware 
     131    #define CHDK_COLOR_BASE                     0xB3    // Start color index for CHDK colors loaded into camera palette. 
     132    #define CAM_USE_COLORED_ICONS               1       // Enable using the CHDK-DE colored icons. 
     133 
    130134//---------------------------------------------------------- 
    131135 
  • branches/philmoz/platform/ixus310_elph500hs/sub/100a/stubs_entry_2.S

    r1340 r1343  
    44 
    55NHSTUB(kbd_pwr_on,                                              0xFF055974)             // null 
    6 NHSTUB(rewinddir,                                               0xFF055974)             // null 
    76NHSTUB(SetZoomActuatorSpeedPercent,             0xFF055974)             // null 
    8 NHSTUB(Unmount_FileSystem,                              0xFF055974)             // null 
    9 NHSTUB(Mount_FileSystem,                                0xFF055974)             // null 
    107 
    118NHSTUB(SetCDSGain,                                              0xFF384A38) 
  • branches/philmoz/platform/ixus310_elph500hs/sub/100a/stubs_min.S

    r1340 r1343  
    2727DEF(active_bitmap_buffer, 0xA45C)                                       // 0xA448+0x14 (1.00a sub_FF249A94 -> FF249A98 + FF249AF0) 
    2828DEF(bitmap_buffer, 0xA464)                                                      // FF249AEC 
     29DEF(palette_control, 0xA424)                                            // sub_FF244A48 (1.00a) 
    2930DEF(active_palette_buffer, 0xA42C)                                      // sub_FF244990 (1.00a) 
    3031DEF(palette_buffer, 0xC7DEC)                                            // sub_FF244E28 (1.00a) 
  • branches/philmoz/platform/ixus310_elph500hs/sub/101a/stubs_entry_2.S

    r1340 r1343  
    44 
    55NHSTUB(kbd_pwr_on,                                              0xFF055974)             // null 
    6 NHSTUB(rewinddir,                                               0xFF055974)             // null 
    76NHSTUB(SetZoomActuatorSpeedPercent,             0xFF055974)             // null 
    8 NHSTUB(Unmount_FileSystem,                              0xFF055974)             // null 
    9 NHSTUB(Mount_FileSystem,                                0xFF055974)             // null 
    107 
    118NHSTUB(SetCDSGain,                                              0xFF384A50) 
  • branches/philmoz/platform/ixus80_sd1100/sub/100c/stubs_entry_2.S

    r1320 r1343  
    2222// vx stuff 
    2323// not found or used in dryos 
    24 NHSTUB(rewinddir, do_nothing) 
    2524NHSTUB(SetZoomActuatorSpeedPercent, do_nothing) 
    26 NHSTUB(Unmount_FileSystem, do_nothing) 
    27 NHSTUB(Mount_FileSystem, do_nothing) 
    2825NHSTUB(taskUnlock, do_nothing) 
    2926NHSTUB(taskLock, do_nothing) 
  • branches/philmoz/platform/ixus80_sd1100/sub/101a/stubs_entry_2.S

    r1320 r1343  
    2121// vx stuff 
    2222// not found or used in dryos 
    23 NHSTUB(rewinddir, do_nothing) 
    2423NHSTUB(SetZoomActuatorSpeedPercent, do_nothing) 
    25 NHSTUB(Unmount_FileSystem, do_nothing) 
    26 NHSTUB(Mount_FileSystem, do_nothing) 
    2724NHSTUB(taskUnlock, do_nothing) 
    2825NHSTUB(taskLock, do_nothing) 
  • branches/philmoz/platform/ixus85_sd770/sub/100a/stubs_entry_2.S

    r1320 r1343  
    4545//Nullsubs 
    4646#define do_nothing 0xFFA7D820 
    47 NHSTUB(Mount_FileSystem,            do_nothing) 
    48 NHSTUB(Unmount_FileSystem,          do_nothing) 
    4947NHSTUB(SetZoomActuatorSpeedPercent, do_nothing) 
    50 NHSTUB(rewinddir,                   do_nothing) 
    5148NHSTUB(nullsub_35,                  do_nothing) 
    5249NHSTUB(nullsub_37,                  do_nothing) 
  • branches/philmoz/platform/ixus860_sd870/sub/100c/stubs_entry_2.S

    r1320 r1343  
    122122//NSTUB(taskSuspend,                     0xFF810958) 
    123123NSTUB(taskUnlock,                        0xFF810958) 
    124 NSTUB(Mount_FileSystem,                  0xFF810958) 
    125 NSTUB(Unmount_FileSystem,                0xFF810958) 
    126 NSTUB(rewinddir,                         0xFF810958) 
    127124NSTUB(CreatePhysicalVram,                0xFF810958) 
    128125NSTUB(CreateTaskStrict,                  0xFF810958) 
  • branches/philmoz/platform/ixus870_sd880/sub/100e/stubs_entry_2.S

    r1320 r1343  
    2121NHSTUB(UnlockAF, 0xFF825610)  // via aAfUnlock 
    2222NHSTUB(DoAFLock, 0xFF8255D8)  // via aAfLock 
    23 NHSTUB(rewinddir,NULL_SUB) 
    2423NHSTUB(SetZoomActuatorSpeedPercent,NULL_SUB) 
    25 NHSTUB(Mount_FileSystem,NULL_SUB) 
    26 NHSTUB(Unmount_FileSystem,NULL_SUB) 
    2724NHSTUB(platformsub_kbd_fetch_data, 0xFF846248)  // GetKbdState 
    2825NHSTUB(UnsetZoomForMovie,0xFF96079C) // via aZoomcon_Unsetz (used ixus980 dump) 
  • branches/philmoz/platform/ixus870_sd880/sub/101a/stubs_entry_2.S

    r1320 r1343  
    2424NHSTUB(UnlockAF, 0xFF825610)  // via aAfUnlock 
    2525NHSTUB(DoAFLock, 0xFF8255D8)  // via aAfLock 
    26 NHSTUB(rewinddir,NULL_SUB) 
    2726NHSTUB(SetZoomActuatorSpeedPercent,NULL_SUB) 
    28 NHSTUB(Mount_FileSystem,NULL_SUB) 
    29 NHSTUB(Unmount_FileSystem,NULL_SUB) 
    3027NHSTUB(platformsub_kbd_fetch_data, 0xFF846248)  // GetKbdState 
    3128NHSTUB(UnsetZoomForMovie,0xFF9607A0) // via aZoomcon_Unsetz (used ixus980 dump) 
  • branches/philmoz/platform/ixus870_sd880/sub/102b/stubs_entry_2.S

    r1320 r1343  
    2424NHSTUB(UnlockAF, 0xFF825610)  // via aAfUnlock 
    2525NHSTUB(DoAFLock, 0xFF8255D8)  // via aAfLock 
    26 NHSTUB(rewinddir,NULL_SUB) 
    2726NHSTUB(SetZoomActuatorSpeedPercent,NULL_SUB) 
    28 NHSTUB(Mount_FileSystem,NULL_SUB) 
    29 NHSTUB(Unmount_FileSystem,NULL_SUB) 
    3027NHSTUB(platformsub_kbd_fetch_data, 0xFF846248)  // GetKbdState 
    3128NHSTUB(UnsetZoomForMovie,0xFF9607A0) // via aZoomcon_Unsetz (used ixus980 dump) 
  • branches/philmoz/platform/ixus90_sd790/sub/100c/stubs_entry_2.S

    r1320 r1343  
    6767NHSTUB(taskLock,                0xFF810948) 
    6868NHSTUB(taskUnlock,              0xFF810948) 
    69 NHSTUB(Mount_FileSystem,        0xFF810948) 
    70 NHSTUB(Unmount_FileSystem,      0xFF810948) 
    71 NHSTUB(rewinddir,               0xFF810948) 
    7269NHSTUB(SetZoomActuatorSpeedPercent, 0xFF810948) 
    7370NHSTUB(utime,                  0xFF810948) 
  • branches/philmoz/platform/ixus90_sd790/sub/100d/stubs_entry_2.S

    r1320 r1343  
    6767NHSTUB(taskLock,                0xFF810948) 
    6868NHSTUB(taskUnlock,              0xFF810948) 
    69 NHSTUB(Mount_FileSystem,        0xFF810948) 
    70 NHSTUB(Unmount_FileSystem,      0xFF810948) 
    71 NHSTUB(rewinddir,               0xFF810948) 
    7269NHSTUB(SetZoomActuatorSpeedPercent, 0xFF810948) 
    7370NHSTUB(utime,                  0xFF810948) 
  • branches/philmoz/platform/ixus95_sd1200/sub/100c/stubs_entry_2.S

    r1320 r1343  
    6060 
    6161// Don't exist in dryos 
    62 NHSTUB(Mount_FileSystem, 0xFFC00950) // NULLSUB 
    63 NHSTUB(Unmount_FileSystem, 0xFFC00950) // NULLSUB 
    64 NHSTUB(rewinddir, 0xFFC00950) // NULLSUB 
    6562NHSTUB(SetZoomActuatorSpeedPercent, 0xFFC00950) // NULLSUB 
    6663 
  • branches/philmoz/platform/ixus960_sd950/sub/100d/stubs_entry_2.S

    r1320 r1343  
    5353//NSTUB(taskSuspend,                     0xFF810958) 
    5454NSTUB(taskUnlock,                              0xFF810958) 
    55 NSTUB(Mount_FileSystem,                  0xFF810958) 
    56 NSTUB(Unmount_FileSystem,                0xFF810958) 
    57 NSTUB(rewinddir,                               0xFF810958) 
    5855NSTUB(CreatePhysicalVram,                0xFF810958) 
    5956NSTUB(CreateTaskStrict,                  0xFF810958) 
  • branches/philmoz/platform/ixus970_sd890/sub/100b/stubs_entry_2.S

    r1320 r1343  
    4444 
    4545//Nullsubs 
    46 NHSTUB(Mount_FileSystem,            0xFF810948) 
    47 NHSTUB(Unmount_FileSystem,          0xFF810948) 
    4846NHSTUB(SetZoomActuatorSpeedPercent, 0xFF810948) 
    49 NHSTUB(rewinddir,                   0xFF810948) 
    5047NHSTUB(nullsub_35,                  0xFF810948) 
    5148NHSTUB(nullsub_37,                  0xFF810948) 
  • branches/philmoz/platform/ixus970_sd890/sub/100c/stubs_entry_2.S

    r1320 r1343  
    4747 
    4848//Nullsubs 
    49 NHSTUB(Mount_FileSystem,            0xFF810948) 
    50 NHSTUB(Unmount_FileSystem,          0xFF810948) 
    5149NHSTUB(SetZoomActuatorSpeedPercent, 0xFF810948) 
    52 NHSTUB(rewinddir,                   0xFF810948) 
    5350NHSTUB(nullsub_35,                  0xFF810948) 
    5451NHSTUB(nullsub_37,                  0xFF810948) 
  • branches/philmoz/platform/ixus970_sd890/sub/100f/stubs_entry_2.S

    r1320 r1343  
    4747 
    4848//Nullsubs 
    49 NHSTUB(Mount_FileSystem,            0xFF810948) 
    50 NHSTUB(Unmount_FileSystem,          0xFF810948) 
    5149NHSTUB(SetZoomActuatorSpeedPercent, 0xFF810948) 
    52 NHSTUB(rewinddir,                   0xFF810948) 
    5350NHSTUB(nullsub_35,                  0xFF810948) 
    5451NHSTUB(nullsub_37,                  0xFF810948) 
  • branches/philmoz/platform/ixus980_sd990/sub/100e/stubs_entry_2.S

    r1320 r1343  
    3838 
    3939// These don't exist/aren't found in dryos 
    40 NHSTUB(Mount_FileSystem,0xFF81093C) // NULLSUB 
    41 NHSTUB(Unmount_FileSystem,0xFF81093C) // NULLSUB 
    42 NHSTUB(rewinddir,0xFF81093C) // NULLSUB 
    4340NHSTUB(SetZoomActuatorSpeedPercent,0xFF81093C) // NULLSUB 
    4441 
  • branches/philmoz/platform/ixus980_sd990/sub/101b/stubs_entry_2.S

    r1320 r1343  
    3838 
    3939// These don't exist/aren't found in dryos 
    40 NHSTUB(Mount_FileSystem,0xFF81093C) // NULLSUB 
    41 NHSTUB(Unmount_FileSystem,0xFF81093C) // NULLSUB 
    42 NHSTUB(rewinddir,0xFF81093C) // NULLSUB 
    4340NHSTUB(SetZoomActuatorSpeedPercent,0xFF81093C) // NULLSUB 
    4441 
  • branches/philmoz/platform/s5is/sub/101a/stubs_entry_2.S

    r1018 r1343  
    162162NSTUB(memPartAlloc,                              0xFF81096C) 
    163163NSTUB(memPartFindMax,                    0xFF81096C) 
    164 NSTUB(Mount_FileSystem,                  0xFF81096C) 
    165164NSTUB(PhySw_testgpio,                    0xFF81096C) 
    166165NSTUB(ProtectFile,                               0xFF81096C) 
    167166NSTUB(readdir,                                   0xFF81096C) 
    168 NSTUB(rewinddir,                                 0xFF81096C) 
    169167NSTUB(taskCreateHookAdd,                         0xFF81096C) 
    170168NSTUB(taskDeleteHookAdd,                         0xFF81096C) 
     
    176174NSTUB(taskUnlock,                                0xFF81096C) 
    177175NSTUB(utime,                                     0xFF81096C) 
    178 NSTUB(Unmount_FileSystem,                0xFF81096C) 
    179176NSTUB(UIFS_WriteFirmInfoToFile,  0xFF81096C) 
    180177NSTUB(kbd_pwr_off,                               0xFF81096C) // Does not even exist, I think 
  • branches/philmoz/platform/s5is/sub/101b/stubs_entry_2.S

    r1018 r1343  
    162162NSTUB(memPartAlloc,                              0xFF81096C) 
    163163NSTUB(memPartFindMax,                    0xFF81096C) 
    164 NSTUB(Mount_FileSystem,                  0xFF81096C) 
    165164NSTUB(PhySw_testgpio,                    0xFF81096C) 
    166165NSTUB(ProtectFile,                               0xFF81096C) 
    167166NSTUB(readdir,                                   0xFF81096C) 
    168 NSTUB(rewinddir,                                 0xFF81096C) 
    169167NSTUB(taskCreateHookAdd,                         0xFF81096C) 
    170168NSTUB(taskDeleteHookAdd,                         0xFF81096C) 
     
    176174NSTUB(taskUnlock,                                0xFF81096C) 
    177175NSTUB(utime,                                     0xFF81096C) 
    178 NSTUB(Unmount_FileSystem,                0xFF81096C) 
    179176NSTUB(UIFS_WriteFirmInfoToFile,  0xFF81096C) 
    180177NSTUB(kbd_pwr_off,                               0xFF81096C) // Does not even exist, I think 
  • branches/philmoz/platform/s90/sub/100c/stubs_entry_2.S

    r1320 r1343  
    3030NHSTUB(kbd_pwr_off, 0xFF810B04) 
    3131NHSTUB(kbd_pwr_on, 0xFF810B04)//cannot locate 
    32 NHSTUB(rewinddir, 0xFF810B04)//cannot locate 
    3332NHSTUB(SetZoomActuatorSpeedPercent, 0xFF810B04)//cannot locate 
    34 NHSTUB(Unmount_FileSystem, 0xFF810B04)//cannot locate 
    35 NHSTUB(Mount_FileSystem, 0xFF810B04)//cannot locate 
    3633 
    3734NHSTUB(strrchr, 0xFF813FE4) // correction for sig.finder addr. 
  • branches/philmoz/platform/s90/sub/101a/stubs_entry_2.S

    r1320 r1343  
    3030 
    3131NHSTUB(kbd_pwr_on, 0xFF810B04)//cannot locate 
    32 NHSTUB(rewinddir, 0xFF810B04)//cannot locate 
    3332NHSTUB(SetZoomActuatorSpeedPercent, 0xFF810B04)//cannot locate 
    34 NHSTUB(Unmount_FileSystem, 0xFF810B04)//cannot locate 
    35 NHSTUB(Mount_FileSystem, 0xFF810B04)//cannot locate 
    3633NSTUB(kbd_pwr_off, 0xFF833350) 
    3734 
  • branches/philmoz/platform/s90/sub/101c/stubs_entry_2.S

    r1320 r1343  
    2828 
    2929NHSTUB(kbd_pwr_on, 0xFF810B04)//cannot locate 
    30 NHSTUB(rewinddir, 0xFF810B04)//cannot locate 
    3130NHSTUB(SetZoomActuatorSpeedPercent, 0xFF810B04)//cannot locate 
    32 NHSTUB(Unmount_FileSystem, 0xFF810B04)//cannot locate 
    33 NHSTUB(Mount_FileSystem, 0xFF810B04)//cannot locate 
    3431NSTUB(kbd_pwr_off, 0xFF833350) 
    3532 
  • branches/philmoz/platform/s95/sub/100e/stubs_entry_2.S

    r1244 r1343  
    102102NHSTUB(kbd_pwr_on, NULL_STUB) 
    103103NHSTUB(kbd_pwr_off, NULL_STUB) 
    104 NHSTUB(rewinddir, NULL_STUB) 
    105104NHSTUB(SetZoomActuatorSpeedPercent, NULL_STUB) 
    106 NHSTUB(Unmount_FileSystem, NULL_STUB) 
    107 NHSTUB(Mount_FileSystem, NULL_STUB) 
    108105 
    109106// added for PTP support 
  • branches/philmoz/platform/s95/sub/100h/stubs_entry_2.S

    r1244 r1343  
    102102NHSTUB(kbd_pwr_on, NULL_STUB) 
    103103NHSTUB(kbd_pwr_off, NULL_STUB) 
    104 NHSTUB(rewinddir, NULL_STUB) 
    105104NHSTUB(SetZoomActuatorSpeedPercent, NULL_STUB) 
    106 NHSTUB(Unmount_FileSystem, NULL_STUB) 
    107 NHSTUB(Mount_FileSystem, NULL_STUB) 
    108105 
    109106// added for PTP support 
  • branches/philmoz/platform/s95/sub/100i/stubs_entry_2.S

    r1244 r1343  
    1 // Note : This file generated by CHDK-PT. 
     1e// Note : This file generated by CHDK-PT. 
    22#include "stubs_asm.h" 
    33#define NULL_STUB 0xFF8391E0 
     
    102102NHSTUB(kbd_pwr_on, NULL_STUB) 
    103103NHSTUB(kbd_pwr_off, NULL_STUB) 
    104 NHSTUB(rewinddir, NULL_STUB) 
    105104NHSTUB(SetZoomActuatorSpeedPercent, NULL_STUB) 
    106 NHSTUB(Unmount_FileSystem, NULL_STUB) 
    107 NHSTUB(Mount_FileSystem, NULL_STUB) 
  • branches/philmoz/platform/s95/sub/100k/stubs_entry_2.S

    r1244 r1343  
    101101NHSTUB(kbd_pwr_on, NULL_STUB) 
    102102NHSTUB(kbd_pwr_off, NULL_STUB) 
    103 NHSTUB(rewinddir, NULL_STUB) 
    104103NHSTUB(SetZoomActuatorSpeedPercent, NULL_STUB) 
    105 NHSTUB(Unmount_FileSystem, NULL_STUB) 
    106 NHSTUB(Mount_FileSystem, NULL_STUB) 
    107104 
  • branches/philmoz/platform/sx1/sub/200h/stubs_entry_2.S

    r1320 r1343  
    3434NHSTUB(kbd_pwr_off, 0xFF81093C) 
    3535NHSTUB(kbd_pwr_on, 0xFF81093C) 
    36 NHSTUB(Mount_FileSystem, 0xFF81093C) 
    37 NHSTUB(Unmount_FileSystem, 0xFF81093C) 
    3836NHSTUB(SetZoomActuatorSpeedPercent, 0xFF81093C) 
    39 NHSTUB(rewinddir, 0xFF81093C) 
    4037NHSTUB(SetScriptMode, 0xFF885290) // "SetScriptMode" 
    4138 
  • branches/philmoz/platform/sx1/sub/201a/stubs_entry_2.S

    r1320 r1343  
    3434NHSTUB(kbd_pwr_off, 0xFF81093C) 
    3535NHSTUB(kbd_pwr_on, 0xFF81093C) 
    36 NHSTUB(Mount_FileSystem, 0xFF81093C) 
    37 NHSTUB(Unmount_FileSystem, 0xFF81093C) 
    3836NHSTUB(SetZoomActuatorSpeedPercent, 0xFF81093C) 
    39 NHSTUB(rewinddir, 0xFF81093C) 
    4037 
    4138NHSTUB(SetScriptMode, 0xFF885290) 
  • branches/philmoz/platform/sx10/sub/100c/stubs_entry_2.S

    r1320 r1343  
    3737NHSTUB(kbd_pwr_off, 0xFF81093C) 
    3838NHSTUB(kbd_pwr_on, 0xFF81093C) 
    39 NHSTUB(Mount_FileSystem, 0xFF81093C) 
    40 NHSTUB(Unmount_FileSystem, 0xFF81093C) 
    4139NHSTUB(SetZoomActuatorSpeedPercent, 0xFF81093C) 
    42 NHSTUB(rewinddir, 0xFF81093C) 
    4340 
    4441 
  • branches/philmoz/platform/sx10/sub/101a/stubs_entry_2.S

    r1320 r1343  
    3636NHSTUB(kbd_pwr_off, 0xFF81093C) 
    3737NHSTUB(kbd_pwr_on, 0xFF81093C) 
    38 NHSTUB(Mount_FileSystem, 0xFF81093C) 
    39 NHSTUB(Unmount_FileSystem, 0xFF81093C) 
    4038NHSTUB(SetZoomActuatorSpeedPercent, 0xFF81093C) 
    41 NHSTUB(rewinddir, 0xFF81093C) 
    4239NHSTUB(SetScriptMode, 0xFF880C80) // string 
    4340 
  • branches/philmoz/platform/sx10/sub/101b/stubs_entry_2.S

    r1320 r1343  
    3737NHSTUB(kbd_pwr_off, 0xFF81093C) 
    3838NHSTUB(kbd_pwr_on, 0xFF81093C) 
    39 NHSTUB(Mount_FileSystem, 0xFF81093C) 
    40 NHSTUB(Unmount_FileSystem, 0xFF81093C) 
    4139NHSTUB(SetZoomActuatorSpeedPercent, 0xFF81093C) 
    42 NHSTUB(rewinddir, 0xFF81093C) 
    43  
    4440 
    4541 
  • branches/philmoz/platform/sx10/sub/102b/stubs_entry_2.S

    r1320 r1343  
    3838NHSTUB(kbd_pwr_off, 0xFF81093C) 
    3939NHSTUB(kbd_pwr_on, 0xFF81093C) 
    40 NHSTUB(Mount_FileSystem, 0xFF81093C) 
    41 NHSTUB(Unmount_FileSystem, 0xFF81093C) 
    4240NHSTUB(SetZoomActuatorSpeedPercent, 0xFF81093C) 
    43 NHSTUB(rewinddir, 0xFF81093C) 
    44  
    45  
    46  
    4741 
    4842 
  • branches/philmoz/platform/sx10/sub/103a/stubs_entry_2.S

    r1320 r1343  
    3838NHSTUB(kbd_pwr_off, 0xFF81093C) 
    3939NHSTUB(kbd_pwr_on, 0xFF81093C) 
    40 NHSTUB(Mount_FileSystem, 0xFF81093C) 
    41 NHSTUB(Unmount_FileSystem, 0xFF81093C) 
    4240NHSTUB(SetZoomActuatorSpeedPercent, 0xFF81093C) 
    43 NHSTUB(rewinddir, 0xFF81093C) 
    44  
    45  
    46  
    47  
    4841 
    4942 
  • branches/philmoz/platform/sx100is/sub/100b/stubs_entry_2.S

    r1320 r1343  
    144144NSTUB(taskLock,                         0xFFC00958) 
    145145NSTUB(taskUnlock,                       0xFFC00958) 
    146 NSTUB(Mount_FileSystem,         0xFFC00958) 
    147 NSTUB(Unmount_FileSystem,       0xFFC00958) 
    148 NSTUB(rewinddir,                        0xFFC00958) 
    149146NSTUB(CreatePhysicalVram,       0xFFC00958) 
    150147NSTUB(CreateTaskStrict,         0xFFC00958) 
  • branches/philmoz/platform/sx100is/sub/100c/stubs_entry_2.S

    r1320 r1343  
    144144NSTUB(taskLock,                         0xFFC00958) 
    145145NSTUB(taskUnlock,                       0xFFC00958) 
    146 NSTUB(Mount_FileSystem,         0xFFC00958) 
    147 NSTUB(Unmount_FileSystem,       0xFFC00958) 
    148 NSTUB(rewinddir,                        0xFFC00958) 
    149146NSTUB(CreatePhysicalVram,       0xFFC00958) 
    150147NSTUB(CreateTaskStrict,         0xFFC00958) 
  • branches/philmoz/platform/sx110is/sub/100b/stubs_entry_2.S

    r1320 r1343  
    4949NHSTUB(Rec2PB, 0xFFC65A80) 
    5050 
    51 //do they really exists in dryos? --> point to nullsub 
    52 NHSTUB(Mount_FileSystem, 0xFFC00940) 
    53 NHSTUB(rewinddir, 0xFFC00940) 
    54 NHSTUB(Unmount_FileSystem, 0xFFC00940) 
    55  
    56  
    5751 
    5852// Added by finsig_dryos V2 to match old values found by finsig. 
  • branches/philmoz/platform/sx130is/sub/101c/stubs_entry_2.S

    r1320 r1343  
    103103   
    104104// These don't exist/aren't found in dryos 
    105 NHSTUB(Mount_FileSystem, NULL_STUB) 
    106 NHSTUB(Unmount_FileSystem, NULL_STUB)  
    107 NHSTUB(rewinddir, NULL_STUB)  
    108105NHSTUB(SetZoomActuatorSpeedPercent, NULL_STUB) 
    109106 
  • branches/philmoz/platform/sx130is/sub/101d/stubs_entry_2.S

    r1320 r1343  
    103103   
    104104// These don't exist/aren't found in dryos 
    105 NHSTUB(Mount_FileSystem, NULL_STUB) 
    106 NHSTUB(Unmount_FileSystem, NULL_STUB)  
    107 NHSTUB(rewinddir, NULL_STUB)  
    108105NHSTUB(SetZoomActuatorSpeedPercent, NULL_STUB) 
    109106 
  • branches/philmoz/platform/sx130is/sub/101f/stubs_entry_2.S

    r1320 r1343  
    101101   
    102102// These don't exist/aren't found in dryos 
    103 NHSTUB(Mount_FileSystem, NULL_STUB) 
    104 NHSTUB(Unmount_FileSystem, NULL_STUB)  
    105 NHSTUB(rewinddir, NULL_STUB)  
    106103NHSTUB(SetZoomActuatorSpeedPercent, NULL_STUB) 
    107104 
  • branches/philmoz/platform/sx20/sub/102b/stubs_entry_2.S

    r1320 r1343  
    5656 
    5757#NULL 
    58 NHSTUB(rewinddir,                                               0xFF810B04) // BX LR 
    5958NHSTUB(SetZoomActuatorSpeedPercent,             0xFF810B04) // BX LR 
    60 NHSTUB(Unmount_FileSystem,                              0xFF810B04) // BX LR 
    61 NHSTUB(Mount_FileSystem,                                0xFF810B04) // BX LR 
    6259NHSTUB(kbd_pwr_off,                                             0xFF810B04) // BX LR 
    6360NHSTUB(kbd_pwr_on,                                              0xFF810B04) // BX LR 
  • branches/philmoz/platform/sx20/sub/102d/stubs_entry_2.S

    r1320 r1343  
    5858 
    5959#NULL 
    60 NHSTUB(rewinddir,                                               0xFF810B04) // BX LR 
    6160NHSTUB(SetZoomActuatorSpeedPercent,             0xFF810B04) // BX LR 
    62 NHSTUB(Unmount_FileSystem,                              0xFF810B04) // BX LR 
    63 NHSTUB(Mount_FileSystem,                                0xFF810B04) // BX LR 
    6461NHSTUB(kbd_pwr_off,                                             0xFF810B04) // BX LR 
    6562NHSTUB(kbd_pwr_on,                                              0xFF810B04) // BX LR 
  • branches/philmoz/platform/sx200is/sub/100c/stubs_entry_2.S

    r1320 r1343  
    4848 
    4949NHSTUB(SetZoomActuatorSpeedPercent, 0xFF810950)   //  ???????????????????  may be around FFA5BCAC SetZoomActuatorSpeedPPS 
    50 NHSTUB(rewinddir, 0xFF810950)                     //  ??????????????????? 
    51 NHSTUB(Unmount_FileSystem, 0xFF810950)            //  ??????????????????? 
    52 NHSTUB(Mount_FileSystem, 0xFF810950)              //  ??????????????????? 
    5350NHSTUB(kbd_pwr_off, 0xFF810950)                   //  ??????????????????? 
    5451NHSTUB(kbd_pwr_on, 0xFF810950)                    //  ???????????????????  may be around FF848340 
  • branches/philmoz/platform/sx220hs/sub/100a/stubs_entry_2.S

    r1320 r1343  
    168168 
    169169////All pointed to NULL (nullsub_10 -> 0xFF02D4BC) 
    170 NHSTUB(Unmount_FileSystem, 0xFF02D4BC) 
    171 NHSTUB(Mount_FileSystem, 0xFF02D4BC) 
    172170NHSTUB(SetZoomActuatorSpeedPercent, 0xFF02D4BC) 
    173 NHSTUB(rewinddir, 0xFF02D4BC) 
    174171NSTUB(DisableDispatch,0xFF02D4BC) 
    175172NSTUB(CreatePhysicalVram,0xFF02D4BC) 
  • branches/philmoz/platform/sx220hs/sub/101a/stubs_entry_2.S

    r1320 r1343  
    170170////All pointed to NULL (nullsub_10 -> 0xFF02D4BC)   // SX220 
    171171NHSTUB(UnsetZoomForMovie, 0xFF02D4BC)  
    172 NHSTUB(Unmount_FileSystem, 0xFF02D4BC) 
    173 NHSTUB(Mount_FileSystem, 0xFF02D4BC) 
    174172NHSTUB(SetZoomActuatorSpeedPercent, 0xFF02D4BC) 
    175 NHSTUB(rewinddir, 0xFF02D4BC) 
    176173NSTUB(DisableDispatch,0xFF02D4BC) 
    177174NSTUB(CreatePhysicalVram,0xFF02D4BC) 
  • branches/philmoz/platform/sx220hs/sub/101b/stubs_entry_2.S

    r1333 r1343  
    170170////All pointed to NULL (nullsub_10 -> 0xFF02D4BC)   // SX220 
    171171NHSTUB(UnsetZoomForMovie, 0xFF02D4BC)  
    172 NHSTUB(Unmount_FileSystem, 0xFF02D4BC) 
    173 NHSTUB(Mount_FileSystem, 0xFF02D4BC) 
    174172NHSTUB(SetZoomActuatorSpeedPercent, 0xFF02D4BC) 
    175 NHSTUB(rewinddir, 0xFF02D4BC) 
    176173NSTUB(DisableDispatch,0xFF02D4BC) 
    177174NSTUB(CreatePhysicalVram,0xFF02D4BC) 
  • branches/philmoz/platform/sx230hs/sub/100c/stubs_entry_2.S

    r1333 r1343  
    99 
    1010// These don't exist/aren't found in dryos 
    11 NHSTUB(Mount_FileSystem,            NULL_SUB) 
    1211NHSTUB(SetZoomActuatorSpeedPercent, NULL_SUB) 
    13 NHSTUB(Unmount_FileSystem,          NULL_SUB) 
    1412NHSTUB(UnsetZoomForMovie,           NULL_SUB) 
    15 NHSTUB(rewinddir,                   NULL_SUB) 
    1613 
    1714// Additional 
  • branches/philmoz/platform/sx230hs/sub/101a/stubs_entry_2.S

    r1333 r1343  
    99 
    1010// These don't exist/aren't found in dryos 
    11 NHSTUB(Mount_FileSystem,            NULL_SUB) 
    1211NHSTUB(SetZoomActuatorSpeedPercent, NULL_SUB) 
    13 NHSTUB(Unmount_FileSystem,          NULL_SUB) 
    1412NHSTUB(UnsetZoomForMovie,           NULL_SUB) 
    15 NHSTUB(rewinddir,                   NULL_SUB) 
    1613 
    1714// Additional 
  • branches/philmoz/platform/sx230hs/sub/101b/stubs_entry_2.S

    r1333 r1343  
    1010 
    1111// These don't exist/aren't found in dryos 
    12 NHSTUB(Mount_FileSystem,            NULL_SUB) 
    1312NHSTUB(SetZoomActuatorSpeedPercent, NULL_SUB) 
    14 NHSTUB(Unmount_FileSystem,          NULL_SUB) 
    1513NHSTUB(UnsetZoomForMovie,           NULL_SUB) 
    16 NHSTUB(rewinddir,                   NULL_SUB) 
    1714 
    1815NHSTUB(LockAndRefresh, 0xff0ad294)    
  • branches/philmoz/platform/sx30/lib.c

    r1320 r1343  
    108108    return (palette_buffer[active_palette_buffer]+8); 
    109109} 
     110 
     111// Function to load CHDK custom colors into active Canon palette 
     112void load_chdk_palette() 
     113{ 
     114    extern int active_palette_buffer; 
     115    // Only load for the standard record and playback palettes 
     116    if ((active_palette_buffer == 0) || (active_palette_buffer == 4)) 
     117    { 
     118        int *pal = (int*)vid_get_bitmap_active_palette(); 
     119        if (pal[CHDK_COLOR_BASE+0] != 0x33ADF62) 
     120        { 
     121            pal[CHDK_COLOR_BASE+0]  = 0x33ADF62;  // Red 
     122            pal[CHDK_COLOR_BASE+1]  = 0x326EA40;  // Dark Red 
     123            pal[CHDK_COLOR_BASE+2]  = 0x34CD57F;  // Light Red 
     124            pal[CHDK_COLOR_BASE+3]  = 0x373BFAE;  // Green 
     125            pal[CHDK_COLOR_BASE+4]  = 0x34BD6CA;  // Dark Green 
     126            pal[CHDK_COLOR_BASE+5]  = 0x395AB95;  // Light Green 
     127            pal[CHDK_COLOR_BASE+6]  = 0x34766F0;  // Blue 
     128            pal[CHDK_COLOR_BASE+7]  = 0x31250F3;  // Dark Blue 
     129            pal[CHDK_COLOR_BASE+8]  = 0x37F408F;  // Cyan 
     130            pal[CHDK_COLOR_BASE+9]  = 0x3512D5B;  // Magenta 
     131            pal[CHDK_COLOR_BASE+10] = 0x3A9A917;  // Yellow 
     132            pal[CHDK_COLOR_BASE+11] = 0x3819137;  // Dark Yellow 
     133            pal[CHDK_COLOR_BASE+12] = 0x3DED115;  // Light Yellow 
     134 
     135            extern char palette_control; 
     136            palette_control = 1; 
     137            vid_bitmap_refresh(); 
     138        } 
     139    } 
     140} 
  • branches/philmoz/platform/sx30/platform_camera.h

    r1320 r1343  
    8585 
    8686        #undef CAM_BITMAP_PALETTE 
    87         #define CAM_BITMAP_PALETTE              7 
     87        #define CAM_BITMAP_PALETTE              12 
    8888 
    8989        //zebra letterbox for saving memory 
     
    111111    #define CAM_DISABLE_RAW_IN_LOW_LIGHT_MODE   1       // For cameras with 'low light' mode that does now work with raw define this 
    112112 
     113    #define CAM_LOAD_CUSTOM_COLORS              1       // Enable loading CHDK colors into the camera palette memory/hardware 
     114    #define CHDK_COLOR_BASE                     0xB3    // Start color index for CHDK colors loaded into camera palette. 
     115    #define CAM_USE_COLORED_ICONS               1       // Enable using the CHDK-DE colored icons. 
     116 
    113117//---------------------------------------------------------- 
  • branches/philmoz/platform/sx30/sub/100e/stubs_entry_2.S

    r1320 r1343  
    44NHSTUB(kbd_pwr_off,                                             0xFF810B1C)                                                             // ??? not on sx20 or s95 
    55NHSTUB(kbd_pwr_on,                                              0xFF810B1C)                                                             // ??? not on sx20 or s95 
    6 NHSTUB(rewinddir,                                               0xFF810B1C) 
    76NHSTUB(SetZoomActuatorSpeedPercent,             0xFF810B1C) 
    8 NHSTUB(Unmount_FileSystem,                              0xFF810B1C) 
    9 NHSTUB(Mount_FileSystem,                                0xFF810B1C) 
  • branches/philmoz/platform/sx30/sub/100e/stubs_min.S

    r1320 r1343  
    2020DEF(active_bitmap_buffer, 0xB1CC)                                       // 0xB1B8+0x14 (1.00e sub_FFA4A758 -> FFA4A75C + FFA4A7AC) 
    2121DEF(bitmap_buffer, 0xB1D4)                                                      // FFA4A7A8 
     22DEF(palette_control, 0xB198)                                            // sub_FFA4698C (1.00h) 
    2223DEF(active_palette_buffer, 0xB1A0)                                      // sub_FFA468D4 (1.00h) 
    2324DEF(palette_buffer, 0xCF9B4)                                            // sub_FFA46DC8 (1.00h) 
  • branches/philmoz/platform/sx30/sub/100h/stubs_entry_2.S

    r1320 r1343  
    44NHSTUB(kbd_pwr_off,                                             0xFF810B1C)                                                             // ??? not on sx20 or s95 
    55NHSTUB(kbd_pwr_on,                                              0xFF810B1C)                                                             // ??? not on sx20 or s95 
    6 NHSTUB(rewinddir,                                               0xFF810B1C) 
    76NHSTUB(SetZoomActuatorSpeedPercent,             0xFF810B1C) 
    8 NHSTUB(Unmount_FileSystem,                              0xFF810B1C) 
    9 NHSTUB(Mount_FileSystem,                                0xFF810B1C) 
  • branches/philmoz/platform/sx30/sub/100h/stubs_min.S

    r1320 r1343  
    2020DEF(active_bitmap_buffer, 0xB1CC)                                       // 0xB1B8+0x14 (1.00h sub_FFA4A814 -> FFA4A818 + FFA4A868) 
    2121DEF(bitmap_buffer, 0xB1D4)                                                      // FFA4A864 
     22DEF(palette_control, 0xB198)                                            // sub_FFA4698C (1.00h) 
    2223DEF(active_palette_buffer, 0xB1A0)                                      // sub_FFA468D4 (1.00h) 
    2324DEF(palette_buffer, 0xCF9B4)                                            // sub_FFA46DC8 (1.00h) 
  • branches/philmoz/platform/sx30/sub/100l/stubs_entry_2.S

    r1320 r1343  
    44NHSTUB(kbd_pwr_off,                                             0xFF810B1C)                                                             // ??? not on sx20 or s95 
    55NHSTUB(kbd_pwr_on,                                              0xFF810B1C)                                                             // ??? not on sx20 or s95 
    6 NHSTUB(rewinddir,                                               0xFF810B1C) 
    76NHSTUB(SetZoomActuatorSpeedPercent,             0xFF810B1C) 
    8 NHSTUB(Unmount_FileSystem,                              0xFF810B1C) 
    9 NHSTUB(Mount_FileSystem,                                0xFF810B1C) 
  • branches/philmoz/platform/sx30/sub/100l/stubs_min.S

    r1320 r1343  
    2020DEF(active_bitmap_buffer, 0xB1CC)                                       // 0xB1B8+0x14 (1.00l sub_FFA4A9BC -> FFA4A9C0 + FFA4AA10) 
    2121DEF(bitmap_buffer, 0xB1D4)                                                      // FFA4AA0C 
     22DEF(palette_control, 0xB198)                                            // sub_FFA4698C (1.00h) 
    2223DEF(active_palette_buffer, 0xB1A0)                                      // sub_FFA468D4 (1.00h) 
    2324DEF(palette_buffer, 0xCF9B4)                                            // sub_FFA46DC8 (1.00h) 
  • branches/philmoz/platform/sx30/sub/100n/stubs_entry_2.S

    r1333 r1343  
    44NHSTUB(kbd_pwr_off,                                             0xFF810B1C)                                                             // ??? not on sx20 or s95 
    55NHSTUB(kbd_pwr_on,                                              0xFF810B1C)                                                             // ??? not on sx20 or s95 
    6 NHSTUB(rewinddir,                                               0xFF810B1C) 
    76NHSTUB(SetZoomActuatorSpeedPercent,             0xFF810B1C) 
    8 NHSTUB(Unmount_FileSystem,                              0xFF810B1C) 
    9 NHSTUB(Mount_FileSystem,                                0xFF810B1C) 
  • branches/philmoz/platform/sx30/sub/100n/stubs_min.S

    r1333 r1343  
    2020DEF(active_bitmap_buffer, 0xB1CC)                                       // 0xB1B8+0x14 (1.00n sub_FFA4AA40 -> FFA4AA44 + FFA4AA94) 
    2121DEF(bitmap_buffer, 0xB1D4)                                                      // FFA4AA90 
     22DEF(palette_control, 0xB198)                                            // sub_FFA4698C (1.00h) 
    2223DEF(active_palette_buffer, 0xB1A0)                                      // sub_FFA468D4 (1.00h) 
    2324DEF(palette_buffer, 0xCF9B4)                                            // sub_FFA46DC8 (1.00h) 
  • branches/philmoz/platform/sx30/sub/100p/stubs_entry_2.S

    r1333 r1343  
    44NHSTUB(kbd_pwr_off,                                             0xFF810B1C)     // ??? not on sx20 or s95 (NOT USED) 
    55NHSTUB(kbd_pwr_on,                                              0xFF810B1C)     // ??? not on sx20 or s95 (NOT USED) 
    6 NHSTUB(rewinddir,                                               0xFF810B1C) 
    76NHSTUB(SetZoomActuatorSpeedPercent,             0xFF810B1C) 
    8 NHSTUB(Unmount_FileSystem,                              0xFF810B1C) // (NOT USED) 
    9 NHSTUB(Mount_FileSystem,                                0xFF810B1C) // (NOT USED) 
  • branches/philmoz/platform/sx30/sub/100p/stubs_min.S

    r1333 r1343  
    2020DEF(active_bitmap_buffer, 0xB1CC)                                       // 0xB1B8+0x14 (1.00p sub_FFA4AA40 -> FFA4AA44 + FFA4AA94) 
    2121DEF(bitmap_buffer, 0xB1D4)                                                      // FFA4AA90 
     22DEF(palette_control, 0xB198)                                            // sub_FFA4698C (1.00h) 
    2223DEF(active_palette_buffer, 0xB1A0)                                      // sub_FFA468D4 (1.00h) 
    2324DEF(palette_buffer, 0xCF9B4)                                            // sub_FFA46DC8 (1.00h) 
Note: See TracChangeset for help on using the changeset viewer.