Changeset 1237 for trunk


Ignore:
Timestamp:
07/14/11 11:00:55 (23 months ago)
Author:
msl
Message:

S95 (Thx whim)
http://chdk.setepontos.com/index.php?topic=650.msg70137#msg70137
+ correction JPG width/height & CAM_ACTIVE_AREA

A1100 (Thx philmoz)
http://chdk.setepontos.com/index.php?topic=650.msg70148#msg70148

  • new palette for a1100

G12/SX30/SX220 (Thx funnel & philmoz)
http://chdk.setepontos.com/index.php?topic=650.msg70150#msg70150

  • new definition CAM_AV_OVERRIDE_IRIS_FIX

SX220 (Thx funnel)
http://chdk.setepontos.com/index.php?topic=650.msg70150#msg70150

  • added the adjustable ALT button code in core/gui.c and camera/kbd.c

+ fixed and added two new modes in camera/shooting.c modelist

  • added CAM_KEY_CLICK_DELAY 150 to platform_camera.h like the sx30 to fix the button clicks in ptp
Location:
trunk
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • trunk/core/gui.c

    r1235 r1237  
    13431343    static const char* names[]={ "Print", "Display"}; 
    13441344    static const int keys[] = {KEY_PRINT, KEY_DISPLAY}; 
     1345#elif defined(CAMERA_sx220hs) 
     1346    static const char* names[]={ "Disp+Set", "Display", "Video"}; 
     1347    static const int keys[] = {KEY_PRINT, KEY_DISPLAY, KEY_VIDEO}; 
    13451348#else 
    13461349    #error camera alt-buttons not defined 
  • trunk/core/gui_draw.h

    r1234 r1237  
    288288#define COLOR_HISTO_BG_PLAY COLOR_BLUE_LT 
    289289#define COLOR_HISTO_RG_PLAY COLOR_YELLOW 
     290#undef SCREEN_COLOR 
     291#define SCREEN_COLOR            0x1D 
     292#elif CAM_BITMAP_PALETTE==10 //(a1100) 
     293#define COLOR_TRANSPARENT   0x00 
     294#define COLOR_WHITE         0x0A 
     295#define COLOR_RED           0x6B 
     296#define COLOR_GREY          0x17 
     297#define COLOR_GREEN         0x96 
     298#define COLOR_BLUE_LT       0x79 
     299#define COLOR_BLUE          0x8A 
     300#define COLOR_YELLOW        0x54 
     301#define COLOR_BLACK         0xFF 
     302#define COLOR_BG            0x1F 
     303#define COLOR_FG            COLOR_WHITE 
     304#define COLOR_SELECTED_BG   COLOR_RED 
     305#define COLOR_SELECTED_FG   COLOR_WHITE 
     306#define COLOR_ALT_BG        0x87 
     307#define COLOR_SPLASH_RED    0x60 
     308#define COLOR_SPLASH_PINK   0xBD 
     309#define COLOR_SPLASH_GREY   0x16 
     310// colors for blended histo 
     311#define COLOR_HISTO_R       COLOR_RED 
     312#define COLOR_HISTO_R_PLAY  COLOR_RED 
     313#define COLOR_HISTO_B       COLOR_BLUE 
     314#define COLOR_HISTO_G       COLOR_GREEN 
     315#define COLOR_HISTO_G_PLAY  COLOR_GREEN 
     316#define COLOR_HISTO_BG      COLOR_BLUE_LT 
     317#define COLOR_HISTO_RG      COLOR_YELLOW 
     318#define COLOR_HISTO_RB      0x66 
     319#define COLOR_HISTO_RB_PLAY 0xE2 
     320#define COLOR_HISTO_B_PLAY  0xCC 
     321#define COLOR_HISTO_BG_PLAY 0x99 
     322#define COLOR_HISTO_RG_PLAY 0x66 
    290323#undef SCREEN_COLOR 
    291324#define SCREEN_COLOR            0x1D 
  • trunk/include/camera.h

    r1224 r1237  
    161161                                                // see http://chdk.setepontos.com/index.php/topic,3994.405.html 
    162162 
     163#undef CAM_AV_OVERRIDE_IRIS_FIX                                 // for cameras that require _MoveIrisWithAv function to override Av. 
     164 
    163165//---------------------------------------------------------- 
    164166// Override Default values for Camera if necessary 
  • trunk/platform/a1100/platform_camera.h

    r1233 r1237  
    5353    // color 
    5454    #undef CAM_BITMAP_PALETTE 
    55     #define CAM_BITMAP_PALETTE              2 
     55    #define CAM_BITMAP_PALETTE              10 
    5656 
    5757    // pattern 
  • trunk/platform/g12/platform_camera.h

    r1224 r1237  
    109109                                                // Used to enabled bracketing in custom timer, required on many recent cameras 
    110110                                                // see http://chdk.setepontos.com/index.php/topic,3994.405.html 
    111  
     111         
     112        #define CAM_AV_OVERRIDE_IRIS_FIX        1                               // for cameras that require _MoveIrisWithAv function to override Av. 
    112113//---------------------------------------------------------- 
    113114 
  • trunk/platform/generic/shooting.c

    r1232 r1237  
    700700 if(is_now) { 
    701701   _SetPropertyCase(PROPCASE_AV, &v, sizeof(v)); 
    702         #if defined(CAMERA_sx220hs) 
     702        #if CAM_AV_OVERRIDE_IRIS_FIX 
    703703        extern int _MoveIrisWithAv(short*); 
    704704        _MoveIrisWithAv(&v); 
     
    11481148    { 
    11491149        shooting_set_av96_direct(value, SET_NOW); 
    1150 // sx30 and g12 apparently do not set aperture from propcase in continuous mode 
    1151 // TODO if this is common to other models it should become a camera.h define 
    1152 #if defined(CAMERA_sx30) || defined(CAMERA_g12) || defined(CAMERA_sx220hs) 
    1153         extern int _MoveIrisWithAv(short*); 
    1154         _MoveIrisWithAv(&value); 
    1155 #endif 
    11561150    } 
    11571151} 
  • trunk/platform/s95/platform_camera.h

    r1224 r1237  
    9999    #define cam_CalibrationIlluminant1 17 // Standard Light A 
    100100 
    101     // cropping 
    102     #define CAM_JPEG_WIDTH  3600 
    103     #define CAM_JPEG_HEIGHT 2700 
    104     #define CAM_ACTIVE_AREA_X1 52 
    105     #define CAM_ACTIVE_AREA_Y1 14 
    106     #define CAM_ACTIVE_AREA_X2 3648 
    107     #define CAM_ACTIVE_AREA_Y2 2736 
     101    // cropping. modified to be more in line with G11 and S90 
     102    #define CAM_JPEG_WIDTH  3648     // 3600 
     103    #define CAM_JPEG_HEIGHT 2736     // 2700 
     104    #define CAM_ACTIVE_AREA_X1 16    // 52 
     105    #define CAM_ACTIVE_AREA_Y1 8     // 14 
     106    #define CAM_ACTIVE_AREA_X2 3692  // 3648 
     107    #define CAM_ACTIVE_AREA_Y2 2776  // 2736 
    108108 
    109109   #define CAM_ZEBRA_ASPECT_ADJUST 1 
  • trunk/platform/sx220hs/kbd.c

    r1230 r1237  
    1919static int remote_key, remote_count; 
    2020static int shoot_counter=0; 
    21 //static long alt_mode_key_mask = 0x00010800; // disp + set 
     21static long alt_mode_key_mask = 0x00010800; // disp + set 
    2222static int alt_mode_led=0; 
    2323extern void _GetKbdState(long*); 
     
    7878        { 0, 0, 0 } 
    7979}; 
     80 
     81void kbd_set_alt_mode_key_mask(long key) 
     82{ 
     83        int i; 
     84        for (i=0; keymap[i].hackkey; ++i) { 
     85                if (keymap[i].hackkey == key) { 
     86                        alt_mode_key_mask = keymap[i].canonkey; 
     87                        return; 
     88                } 
     89        } 
     90} 
    8091 
    8192void my_blinkk(void) { 
  • trunk/platform/sx220hs/platform_camera.h

    r1230 r1237  
    2121// don't override them again in here. 
    2222 
    23         #define CAM_DRIVE_MODE_FROM_TIMER_MODE 1 
     23        #define CAM_AV_OVERRIDE_IRIS_FIX                1               // for cameras that require _MoveIrisWithAv function to override Av. 
     24        #define CAM_KEY_CLICK_DELAY                     150 
     25        #define CAM_ADJUSTABLE_ALT_BUTTON               1 
     26        #define CAM_DRIVE_MODE_FROM_TIMER_MODE  1 
    2427 
    2528    #define CAM_DRYOS_2_3_R39                   1 
  • trunk/platform/sx220hs/shooting.c

    r1230 r1237  
    118118        { MODE_SCN_HIGHSPEED_BURST,     16904  }, 
    119119        { MODE_SCN_BEST_IMAGE,          16905  }, 
    120         { MODE_SCN_TOY_CAMERA,                   9862  }, 
    121         { MODE_SCN_MONOCHROME,                   9754  }, 
     120        { MODE_SCN_TOY_CAMERA,                   8751  }, 
     121        { MODE_SCN_MONOCHROME,                   8754  }, 
     122        { MODE_SCN_WINK_SELF_TIMER,             16938  }, 
     123    { MODE_SCN_FACE_SELF_TIMER,         16936  }, 
    122124}; 
    123125 
  • trunk/platform/sx30/platform_camera.h

    r1224 r1237  
    105105                                                // Used to enabled bracketing in custom timer, required on many recent cameras 
    106106                                                // see http://chdk.setepontos.com/index.php/topic,3994.405.html 
    107  
     107         
     108        #define CAM_AV_OVERRIDE_IRIS_FIX        1                               // for cameras that require _MoveIrisWithAv function to override Av. 
    108109//---------------------------------------------------------- 
Note: See TracChangeset for help on using the changeset viewer.