Changeset 1258
- Timestamp:
- 07/31/11 02:31:11 (22 months ago)
- Location:
- trunk/platform/sx130is
- Files:
-
- 6 edited
-
lib.c (modified) (1 diff)
-
platform_camera.h (modified) (3 diffs)
-
shooting.c (modified) (4 diffs)
-
sub/101c/makefile.inc (modified) (1 diff)
-
sub/101d/makefile.inc (modified) (1 diff)
-
sub/101f/makefile.inc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/platform/sx130is/lib.c
r1128 r1258 152 152 153 153 int get_flash_params_count(void){ 154 return 132;154 return 0x9a; 155 155 } 156 156 -
trunk/platform/sx130is/platform_camera.h
r1224 r1258 61 61 #undef CAM_SENSOR_BITS_PER_PIXEL 62 62 #define CAM_SENSOR_BITS_PER_PIXEL 12 63 #undef CAM_WHITE_LEVEL64 #define CAM_WHITE_LEVEL ((1<<CAM_SENSOR_BITS_PER_PIXEL)-1)65 #undef CAM_BLACK_LEVEL66 #define CAM_BLACK_LEVEL 12767 63 68 64 #define CAM_EXT_TV_RANGE 1 … … 71 67 // copied from the SX200 which has the same video buffer size 72 68 #undef CAM_USES_ASPECT_CORRECTION 73 #undef CAM_USES_ASPECT_YCORRECTION74 69 #define CAM_USES_ASPECT_CORRECTION 1 //camera uses the modified graphics primitives to map screens an viewports to buffers more sized 75 #define CAM_USES_ASPECT_YCORRECTION 0 //only uses mappings on x coordinate76 77 #undef ASPECT_XCORRECTION78 #define ASPECT_XCORRECTION(x) ((x)<<1)79 80 #undef ASPECT_GRID_XCORRECTION81 #define ASPECT_GRID_XCORRECTION(x) (x) //grids are designed on a 360x240 basis and screen is 320x240, we need x*320/360=x*8/982 #undef ASPECT_GRID_YCORRECTION83 #define ASPECT_GRID_YCORRECTION(y) (y) //y correction for grids made on a 360x240 As the buffer is 720x240 we have no correction here.84 85 #undef ASPECT_VIEWPORT_XCORRECTION86 #define ASPECT_VIEWPORT_XCORRECTION(x) ASPECT_GRID_XCORRECTION(x)87 #undef ASPECT_VIEWPORT_YCORRECTION88 #define ASPECT_VIEWPORT_YCORRECTION(y) (y)89 90 //games mappings91 #undef GAMES_SCREEN_WIDTH92 #define GAMES_SCREEN_WIDTH 36093 #undef GAMES_SCREEN_HEIGHT94 #define GAMES_SCREEN_HEIGHT 24095 #undef ASPECT_GAMES_XCORRECTION96 // 720/360=2 same aspect than grids and viewport but another approach: there is a lot of corrections to do in game's code, and we decide to paint directly on display buffer wirh another resolution97 // used by gui.c that configures the draw environment (trhough new draw_gui function) depending on gui_mode: we have then 360x240 for games (but deformed output:circles are not circles) and 320x240 for98 // other modes in perfect aspect ratio 4/3: slightly better visualization: file menus more readable, ...99 #define ASPECT_GAMES_XCORRECTION(x) (((x)<<1))100 #undef ASPECT_GAMES_YCORRECTION101 #define ASPECT_GAMES_YCORRECTION(y) ((y)) //none102 70 103 71 #define CAM_ZEBRA_ASPECT_ADJUST 1 … … 129 97 // Used to enabled bracketing in custom timer, required on many recent cameras 130 98 // see http://chdk.setepontos.com/index.php/topic,3994.405.html 99 100 #define CAM_DETECT_SCREEN_ERASE 1 // Turn on guard pixels to detect screen erase and redraw CHDK buttons and menus 131 101 132 102 //---------------------------------------------------------- 133 134 //********135 /////SX200136 //******** -
trunk/platform/sx130is/shooting.c
r1191 r1258 84 84 85 85 86 /* 87 http://www.usa.canon.com/cusa/consumer/products/cameras/digital_cameras/powershot_sx130_is#Specifications 88 Shooting Modes: 89 M, Av, Tv, P, Auto, Easy, Portrait, Landscape, Kids & Pets, SCN, Movie 90 91 SCN Scene Modes: 92 Smart Shutter, Low Light, Super Vivid, Poster Effect, Color Accent, Color Swap, 93 Fish-eye Effect, Miniature Effect, Beach, Foliage, Snow, Fireworks 94 95 Movie Modes: 96 Standard, Miniature Effect, Color Accent, Color Swap 97 98 Smart Shutter Modes: 99 Smile, Wink Self-timer, Face Self-Timer 100 */ 86 101 // Corrected for SX130 87 102 static const CapturemodeMap modemap[] = { … … 93 108 { MODE_KIDS_PETS, 32786 }, 94 109 { MODE_LANDSCAPE, 32782 }, 95 { MODE_PORTRAIT, 32 873 },110 { MODE_PORTRAIT, 32783 }, 96 111 { MODE_EASY, 33314 }, 97 112 … … 99 114 { MODE_VIDEO_COLOR_SWAP, 2613 }, 100 115 { MODE_VIDEO_STD, 2614 }, 101 //{ MODE_VIDEO_MINIATURE, 2620 }, // not defined in modelist.h116 { MODE_VIDEO_MINIATURE, 2620 }, 102 117 103 { MODE_SCN_SMART_SHUTTER, 16938 }, 118 { MODE_SCN_FACE_SELF_TIMER,16936 }, 119 { MODE_SCN_SMART_SHUTTER, 16937 }, 120 { MODE_SCN_WINK_SELF_TIMER,16938 }, 104 121 { MODE_SCN_LOWLIGHT, 16417 }, 105 122 { MODE_SCN_SUPER_VIVID, 16934 }, … … 112 129 { MODE_SCN_FOLIAGE, 16405 }, 113 130 { MODE_SCN_SNOW, 16406 }, 114 { MODE_SCN_FIREWORK, 1640 6}131 { MODE_SCN_FIREWORK, 16408 } 115 132 }; 116 133 -
trunk/platform/sx130is/sub/101c/makefile.inc
r1201 r1258 23 23 # Set up size variables for EXMEM 24 24 EXMEM_HEAP_SKIP=0x2F7600 #(0x44000000-0x43D08A00) from sub_FF8885CC = size of video buffers in EXMEM area 25 EXMEM_BUFFER_SIZE=0x200000 # Amount of EXMEM memory to allocate for CHDK = 42B25 EXMEM_BUFFER_SIZE=0x200000 # Amount of EXMEM memory to allocate for CHDK = 2MB 26 26 27 27 # points to the start of the memory pool used by the firmware -
trunk/platform/sx130is/sub/101d/makefile.inc
r1201 r1258 23 23 # Set up size variables for EXMEM 24 24 EXMEM_HEAP_SKIP=0x2F7600 #(0x44000000-0x43D08A00) from sub_FF8885CC = size of video buffers in EXMEM area 25 EXMEM_BUFFER_SIZE=0x200000 # Amount of EXMEM memory to allocate for CHDK = 42B25 EXMEM_BUFFER_SIZE=0x200000 # Amount of EXMEM memory to allocate for CHDK = 2MB 26 26 27 27 # points to the start of the memory pool used by the firmware -
trunk/platform/sx130is/sub/101f/makefile.inc
r1239 r1258 23 23 # Set up size variables for EXMEM 24 24 EXMEM_HEAP_SKIP=0x2F7600 #(0x44000000-0x43D08A00) from sub_FF8885CC = size of video buffers in EXMEM area 25 EXMEM_BUFFER_SIZE=0x200000 # Amount of EXMEM memory to allocate for CHDK = 42B25 EXMEM_BUFFER_SIZE=0x200000 # Amount of EXMEM memory to allocate for CHDK = 2MB 26 26 27 27 # points to the start of the memory pool used by the firmware
Note: See TracChangeset
for help on using the changeset viewer.