- Timestamp:
- 07/14/11 11:00:55 (23 months ago)
- Location:
- trunk
- Files:
-
- 11 edited
-
core/gui.c (modified) (1 diff)
-
core/gui_draw.h (modified) (1 diff)
-
include/camera.h (modified) (1 diff)
-
platform/a1100/platform_camera.h (modified) (1 diff)
-
platform/g12/platform_camera.h (modified) (1 diff)
-
platform/generic/shooting.c (modified) (2 diffs)
-
platform/s95/platform_camera.h (modified) (1 diff)
-
platform/sx220hs/kbd.c (modified) (2 diffs)
-
platform/sx220hs/platform_camera.h (modified) (1 diff)
-
platform/sx220hs/shooting.c (modified) (1 diff)
-
platform/sx30/platform_camera.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/core/gui.c
r1235 r1237 1343 1343 static const char* names[]={ "Print", "Display"}; 1344 1344 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}; 1345 1348 #else 1346 1349 #error camera alt-buttons not defined -
trunk/core/gui_draw.h
r1234 r1237 288 288 #define COLOR_HISTO_BG_PLAY COLOR_BLUE_LT 289 289 #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 290 323 #undef SCREEN_COLOR 291 324 #define SCREEN_COLOR 0x1D -
trunk/include/camera.h
r1224 r1237 161 161 // see http://chdk.setepontos.com/index.php/topic,3994.405.html 162 162 163 #undef CAM_AV_OVERRIDE_IRIS_FIX // for cameras that require _MoveIrisWithAv function to override Av. 164 163 165 //---------------------------------------------------------- 164 166 // Override Default values for Camera if necessary -
trunk/platform/a1100/platform_camera.h
r1233 r1237 53 53 // color 54 54 #undef CAM_BITMAP_PALETTE 55 #define CAM_BITMAP_PALETTE 255 #define CAM_BITMAP_PALETTE 10 56 56 57 57 // pattern -
trunk/platform/g12/platform_camera.h
r1224 r1237 109 109 // Used to enabled bracketing in custom timer, required on many recent cameras 110 110 // 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. 112 113 //---------------------------------------------------------- 113 114 -
trunk/platform/generic/shooting.c
r1232 r1237 700 700 if(is_now) { 701 701 _SetPropertyCase(PROPCASE_AV, &v, sizeof(v)); 702 #if defined(CAMERA_sx220hs)702 #if CAM_AV_OVERRIDE_IRIS_FIX 703 703 extern int _MoveIrisWithAv(short*); 704 704 _MoveIrisWithAv(&v); … … 1148 1148 { 1149 1149 shooting_set_av96_direct(value, SET_NOW); 1150 // sx30 and g12 apparently do not set aperture from propcase in continuous mode1151 // TODO if this is common to other models it should become a camera.h define1152 #if defined(CAMERA_sx30) || defined(CAMERA_g12) || defined(CAMERA_sx220hs)1153 extern int _MoveIrisWithAv(short*);1154 _MoveIrisWithAv(&value);1155 #endif1156 1150 } 1157 1151 } -
trunk/platform/s95/platform_camera.h
r1224 r1237 99 99 #define cam_CalibrationIlluminant1 17 // Standard Light A 100 100 101 // cropping 102 #define CAM_JPEG_WIDTH 36 00103 #define CAM_JPEG_HEIGHT 27 00104 #define CAM_ACTIVE_AREA_X1 52105 #define CAM_ACTIVE_AREA_Y1 14106 #define CAM_ACTIVE_AREA_X2 36 48107 #define CAM_ACTIVE_AREA_Y2 27 36101 // 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 108 108 109 109 #define CAM_ZEBRA_ASPECT_ADJUST 1 -
trunk/platform/sx220hs/kbd.c
r1230 r1237 19 19 static int remote_key, remote_count; 20 20 static int shoot_counter=0; 21 //static long alt_mode_key_mask = 0x00010800; // disp + set21 static long alt_mode_key_mask = 0x00010800; // disp + set 22 22 static int alt_mode_led=0; 23 23 extern void _GetKbdState(long*); … … 78 78 { 0, 0, 0 } 79 79 }; 80 81 void 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 } 80 91 81 92 void my_blinkk(void) { -
trunk/platform/sx220hs/platform_camera.h
r1230 r1237 21 21 // don't override them again in here. 22 22 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 24 27 25 28 #define CAM_DRYOS_2_3_R39 1 -
trunk/platform/sx220hs/shooting.c
r1230 r1237 118 118 { MODE_SCN_HIGHSPEED_BURST, 16904 }, 119 119 { 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 }, 122 124 }; 123 125 -
trunk/platform/sx30/platform_camera.h
r1224 r1237 105 105 // Used to enabled bracketing in custom timer, required on many recent cameras 106 106 // 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. 108 109 //----------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.