| 1 | #ifndef CAMERA_H |
|---|
| 2 | #define CAMERA_H |
|---|
| 3 | |
|---|
| 4 | //========================================================== |
|---|
| 5 | // Camera-dependent settings |
|---|
| 6 | //========================================================== |
|---|
| 7 | |
|---|
| 8 | //---------------------------------------------------------- |
|---|
| 9 | // Default values |
|---|
| 10 | //---------------------------------------------------------- |
|---|
| 11 | #undef CAM_RAW_ROWPIX // Number of pixels in RAW row |
|---|
| 12 | #undef CAM_RAW_ROWS // Number of rows in RAW |
|---|
| 13 | |
|---|
| 14 | #undef CAM_DRYOS // Camera is DryOS-based |
|---|
| 15 | #undef CAM_PROPSET // Camera's properties group (the generation) |
|---|
| 16 | |
|---|
| 17 | #undef CAM_SWIVEL_SCREEN // Camera has rotated LCD screen |
|---|
| 18 | #define CAM_USE_ZOOM_FOR_MF 1 // Zoom lever can be used for manual focus adjustments |
|---|
| 19 | #undef CAM_ADJUSTABLE_ALT_BUTTON // ALT-button can be set from menu |
|---|
| 20 | #define CAM_REMOTE 1 // Camera supports USB-remote |
|---|
| 21 | #define CAM_SYNCH 1 // Camera supports SDM precision synch |
|---|
| 22 | #undef CAM_MULTIPART // Camera supports SD-card multipartitioning |
|---|
| 23 | #define CAM_HAS_ZOOM_LEVER 1 // Camera has dedicated zoom buttons |
|---|
| 24 | #undef CAM_DRAW_EXPOSITION // Output expo-pair on screen (for cameras which (sometimes) don't do that) |
|---|
| 25 | #define CAM_HAS_ERASE_BUTTON 1 // Camera has dedicated erase button |
|---|
| 26 | #define CAM_HAS_IRIS_DIAPHRAGM 1 // Camera has real diaphragm mechanism |
|---|
| 27 | #undef CAM_HAS_ND_FILTER // Camera has build-in ND filter |
|---|
| 28 | #define CAM_CAN_SD_OVER_NOT_IN_MF 1 // Camera allows subject distance (focus) override when not in manual focus mode |
|---|
| 29 | #define CAM_CAN_SD_OVERRIDE 1 // Camera allows to do subject distance override |
|---|
| 30 | #define CAM_HAS_MANUAL_FOCUS 1 // Camera has manual focus mode |
|---|
| 31 | #define CAM_HAS_USER_TV_MODES 1 // Camera has tv-priority or manual modes with ability to set tv value |
|---|
| 32 | #undef CAM_SHOW_OSD_IN_SHOOT_MENU // On some cameras Canon shoot menu has additional functionality and useful in this case to see CHDK OSD in this mode |
|---|
| 33 | #define CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO 1 // Camera can unlock optical zoom in video (if it is locked) |
|---|
| 34 | #undef CAM_FEATURE_FEATHER // Cameras with "feather" or touch wheel. |
|---|
| 35 | #define CAM_HAS_IS 1 // Camera has image stabilizer |
|---|
| 36 | #undef CAM_HAS_JOGDIAL // Camera has a "jog dial" |
|---|
| 37 | |
|---|
| 38 | #undef CAM_CONSOLE_LOG_ENABLED // Development: internal camera stdout -> A/stdout.txt |
|---|
| 39 | #define CAM_CHDK_HAS_EXT_VIDEO_MENU 1 // In CHDK for this camera realized adjustable video compression |
|---|
| 40 | #undef CAM_CAN_MUTE_MICROPHONE // Camera has function to mute microphone |
|---|
| 41 | |
|---|
| 42 | #define CAM_EMUL_KEYPRESS_DELAY 40 // Delay to interpret <alt>-button press as longpress |
|---|
| 43 | #define CAM_EMUL_KEYPRESS_DURATION 5 // Length of keypress emulation |
|---|
| 44 | |
|---|
| 45 | #define CAM_MENU_BORDERWIDTH 30 // Related to screen layout somehow. |
|---|
| 46 | // TODO someone explain what this does, probably doesn't really belong here |
|---|
| 47 | |
|---|
| 48 | #undef CAM_AF_SCAN_DURING_VIDEO_RECORD // CHDK can make single AF scan during video record |
|---|
| 49 | #undef CAM_HAS_VIDEO_BUTTON // Camera can take stills in video mode, and vice versa |
|---|
| 50 | #undef CAM_EV_IN_VIDEO // CHDK can change exposure in video mode |
|---|
| 51 | #define CAM_VIDEO_CONTROL 1 // pause / unpause video recordings |
|---|
| 52 | |
|---|
| 53 | #define ZOOM_OVERRIDE 0 // Shall zoom-override be used? default 0 becoz not implemented right now |
|---|
| 54 | #undef DNG_SUPPORT |
|---|
| 55 | #undef CAM_REAR_CURTAIN // Camera do not have front/rear curtain flash sync in menu |
|---|
| 56 | #undef CAM_BRACKETING // Cameras that have bracketing (focus & ev) in original firmware already, most likely s- & g-series (propcase for digic III not found yet!) |
|---|
| 57 | #undef CAM_EXT_TV_RANGE // CHDK can make exposure time longer than 64s |
|---|
| 58 | #undef CAM_CHDK_PTP // include CHDK PTP support |
|---|
| 59 | |
|---|
| 60 | #define CAM_UNCACHED_BIT 0x10000000 // bit indicating the uncached memory |
|---|
| 61 | |
|---|
| 62 | #define CAM_MAKE "Canon" |
|---|
| 63 | #define CAM_SENSOR_BITS_PER_PIXEL 10 // Bits per pixel. 10 is standard, 12 is supported except for curves |
|---|
| 64 | #define CAM_WHITE_LEVEL ((1<<CAM_SENSOR_BITS_PER_PIXEL)-1) |
|---|
| 65 | #define CAM_BLACK_LEVEL 31 |
|---|
| 66 | |
|---|
| 67 | #define CAM_BITMAP_PALETTE 1 // which color set is used for this camera |
|---|
| 68 | |
|---|
| 69 | #undef CAM_HAS_VARIABLE_ASPECT // can switch between 16:9 and 4:3 |
|---|
| 70 | #define DEFAULT_RAW_EXT 1 // extension to use for raw (see raw_exts in conf.c) |
|---|
| 71 | |
|---|
| 72 | // by nandoide sept-2009 |
|---|
| 73 | //zebra adjust buffer height: show use at sx200is: needed for save memory space |
|---|
| 74 | #define ZEBRA_HMARGIN0 0 |
|---|
| 75 | |
|---|
| 76 | //aspect corrections |
|---|
| 77 | #define CAM_USES_ASPECT_CORRECTION 0 //if true, camera uses a modified graphics primitives to draw with exact display aspect-ratio. |
|---|
| 78 | // Could slow the graphics output (but not perceived on sx200is), but adds rectangle drawing optimizations to compensate. |
|---|
| 79 | // To extend to other cameras see sx200is camera.h comments in and comments on core gui_draw.c |
|---|
| 80 | #define CAM_USES_ASPECT_YCORRECTION 0 |
|---|
| 81 | |
|---|
| 82 | //menu, alt (default) |
|---|
| 83 | #define ASPECT_XCORRECTION(x) ( ((x)<<1) ) //see comments on 200is |
|---|
| 84 | #define ASPECT_YCORRECTION(y) ( (y) ) //no correction the same for coordinate y. I think there are no cameras actually needing both corrections. |
|---|
| 85 | //viewport, defaults used if there is no aspect correction |
|---|
| 86 | #define ASPECT_VIEWPORT_XCORRECTION(x) ( (x) ) // see comments on 200is |
|---|
| 87 | #define ASPECT_VIEWPORT_YCORRECTION(y) ( (y) ) //no correction |
|---|
| 88 | |
|---|
| 89 | #define EDGE_HMARGIN 0 //define sup and inf screen margins on edge overlay without overlay. Necessary to save memory buffer space. sx200is needs values other than 0 |
|---|
| 90 | // end of section by nandoid |
|---|
| 91 | |
|---|
| 92 | #undef CAM_QUALITY_OVERRIDE //camera may need shooting quality override (sx200is lacks SuperFine quality) |
|---|
| 93 | |
|---|
| 94 | #undef CAM_ZEBRA_ASPECT_ADJUST // zebra needs to account for real bitmap size being different from what lib.c reports |
|---|
| 95 | // also used by some cameras with normal bitmap layouts for memory saving ? |
|---|
| 96 | #undef CAM_ZEBRA_NOBUF // zebra draws directly on bitmap buffer. Requires above as well |
|---|
| 97 | //---------------------------------------------------------- |
|---|
| 98 | // Overridden values for each camera |
|---|
| 99 | //---------------------------------------------------------- |
|---|
| 100 | |
|---|
| 101 | //========================================================== |
|---|
| 102 | // G-series |
|---|
| 103 | //========================================================== |
|---|
| 104 | #if defined (CAMERA_g7) |
|---|
| 105 | #define CAM_PROPSET 1 |
|---|
| 106 | |
|---|
| 107 | #define CAM_RAW_ROWPIX 3736 // for 10 MP |
|---|
| 108 | #define CAM_RAW_ROWS 2772 // for 10 MP |
|---|
| 109 | |
|---|
| 110 | #undef CAM_USE_ZOOM_FOR_MF |
|---|
| 111 | #define CAM_ADJUSTABLE_ALT_BUTTON 1 |
|---|
| 112 | #define CAM_MULTIPART 1 |
|---|
| 113 | #define CAM_HAS_ND_FILTER 1 |
|---|
| 114 | #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 |
|---|
| 115 | #define CAM_HAS_JOGDIAL 1 |
|---|
| 116 | #define DNG_SUPPORT 1 |
|---|
| 117 | // pattern |
|---|
| 118 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 119 | // color |
|---|
| 120 | #define CAM_COLORMATRIX1 \ |
|---|
| 121 | 575419, 1000000,-185557, 1000000, -77898, 1000000, \ |
|---|
| 122 | -213702, 1000000, 733569, 1000000, 81514, 1000000, \ |
|---|
| 123 | -24604, 1000000, 131906, 1000000, 280378, 1000000 |
|---|
| 124 | |
|---|
| 125 | #define cam_CalibrationIlluminant1 1 // Daylight |
|---|
| 126 | // cropping |
|---|
| 127 | #define CAM_JPEG_WIDTH 3648 |
|---|
| 128 | #define CAM_JPEG_HEIGHT 2736 |
|---|
| 129 | #define CAM_ACTIVE_AREA_X1 14 |
|---|
| 130 | #define CAM_ACTIVE_AREA_Y1 8 |
|---|
| 131 | #define CAM_ACTIVE_AREA_X2 3682 |
|---|
| 132 | #define CAM_ACTIVE_AREA_Y2 2764 |
|---|
| 133 | // camera name |
|---|
| 134 | #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData |
|---|
| 135 | #define CAM_BRACKETING 1 |
|---|
| 136 | #define DNG_EXT_FROM ".DPS" |
|---|
| 137 | //---------------------------------------------------------- |
|---|
| 138 | |
|---|
| 139 | #elif defined (CAMERA_g9) |
|---|
| 140 | #define CAM_PROPSET 2 |
|---|
| 141 | #define CAM_DRYOS 1 |
|---|
| 142 | |
|---|
| 143 | #define CAM_RAW_ROWPIX 4104 // for 12 MP |
|---|
| 144 | #define CAM_RAW_ROWS 3048 // for 12 MP |
|---|
| 145 | #define CAM_HAS_ND_FILTER 1 |
|---|
| 146 | #define CAM_ADJUSTABLE_ALT_BUTTON 1 |
|---|
| 147 | #undef CAM_EMUL_KEYPRESS_DURATION |
|---|
| 148 | #define CAM_EMUL_KEYPRESS_DURATION 10 |
|---|
| 149 | #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 |
|---|
| 150 | #define CAM_HAS_JOGDIAL 1 |
|---|
| 151 | // #define CAM_CONSOLE_LOG_ENABLED 1 |
|---|
| 152 | #define CAM_BRACKETING 1 |
|---|
| 153 | #define CAM_MULTIPART 1 |
|---|
| 154 | #define CAM_EXT_TV_RANGE 1 |
|---|
| 155 | //---------------------------------------------------------- |
|---|
| 156 | |
|---|
| 157 | |
|---|
| 158 | //========================================================== |
|---|
| 159 | // A-series |
|---|
| 160 | //========================================================== |
|---|
| 161 | #elif defined (CAMERA_a430) |
|---|
| 162 | #define CAM_PROPSET 1 |
|---|
| 163 | |
|---|
| 164 | #define CAM_RAW_ROWPIX 2392 // for 4 MP 1/3" sensor size |
|---|
| 165 | #define CAM_RAW_ROWS 1752 // for 4 MP 1/3" sensor size |
|---|
| 166 | |
|---|
| 167 | #undef CAM_USE_ZOOM_FOR_MF |
|---|
| 168 | #undef CAM_HAS_ZOOM_LEVER |
|---|
| 169 | #define CAM_DRAW_EXPOSITION 1 |
|---|
| 170 | #undef CAM_HAS_ERASE_BUTTON |
|---|
| 171 | #undef CAM_HAS_IRIS_DIAPHRAGM |
|---|
| 172 | #define CAM_HAS_ND_FILTER 1 |
|---|
| 173 | #undef CAM_HAS_MANUAL_FOCUS |
|---|
| 174 | #undef CAM_HAS_USER_TV_MODES |
|---|
| 175 | #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 |
|---|
| 176 | #undef CAM_HAS_IS |
|---|
| 177 | #define CAM_CAN_MUTE_MICROPHONE 1 |
|---|
| 178 | #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 |
|---|
| 179 | #define CAM_EV_IN_VIDEO 1 |
|---|
| 180 | #define DNG_SUPPORT 1 |
|---|
| 181 | // pattern |
|---|
| 182 | #define cam_CFAPattern 0x01000201 // Green Blue Red Green |
|---|
| 183 | // color |
|---|
| 184 | #define CAM_COLORMATRIX1 \ |
|---|
| 185 | 479627, 1000000, -156240, 1000000, -84926, 1000000, \ |
|---|
| 186 | -215238, 1000000, 534902, 1000000, 60219, 1000000, \ |
|---|
| 187 | -96906, 1000000, 148194, 1000000, 191583, 1000000 |
|---|
| 188 | |
|---|
| 189 | #define CAM_CONSOLE_LOG_ENABLED 1 |
|---|
| 190 | #define cam_CalibrationIlluminant1 1 // Daylight |
|---|
| 191 | // cropping |
|---|
| 192 | #define CAM_JPEG_WIDTH 2272 |
|---|
| 193 | #define CAM_JPEG_HEIGHT 1704 |
|---|
| 194 | #define CAM_ACTIVE_AREA_X1 0 |
|---|
| 195 | #define CAM_ACTIVE_AREA_Y1 8 |
|---|
| 196 | #define CAM_ACTIVE_AREA_X2 2336 |
|---|
| 197 | #define CAM_ACTIVE_AREA_Y2 1748 |
|---|
| 198 | // camera name |
|---|
| 199 | #define PARAM_CAMERA_NAME 3 // parameter number for GetParameterData |
|---|
| 200 | #define CAM_BRACKETING 1 |
|---|
| 201 | // #define CAM_MULTIPART 1 |
|---|
| 202 | //---------------------------------------------------------- |
|---|
| 203 | |
|---|
| 204 | #elif defined (CAMERA_a450) |
|---|
| 205 | #define CAM_PROPSET 2 |
|---|
| 206 | |
|---|
| 207 | #define CAM_RAW_ROWPIX 2664 // for 5 MP 1/3" sensor size |
|---|
| 208 | #define CAM_RAW_ROWS 1968 // for 5 MP 1/3" sensor size |
|---|
| 209 | |
|---|
| 210 | #undef CAM_USE_ZOOM_FOR_MF |
|---|
| 211 | #undef CAM_HAS_ZOOM_LEVER |
|---|
| 212 | #define CAM_DRAW_EXPOSITION 1 |
|---|
| 213 | #undef CAM_HAS_ERASE_BUTTON |
|---|
| 214 | #undef CAM_HAS_IRIS_DIAPHRAGM |
|---|
| 215 | #define CAM_HAS_ND_FILTER 1 |
|---|
| 216 | #undef CAM_HAS_MANUAL_FOCUS |
|---|
| 217 | #undef CAM_HAS_USER_TV_MODES |
|---|
| 218 | #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 |
|---|
| 219 | #undef CAM_HAS_IS |
|---|
| 220 | #define CAM_CAN_MUTE_MICROPHONE 1 |
|---|
| 221 | #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 |
|---|
| 222 | #define CAM_EV_IN_VIDEO 1 |
|---|
| 223 | #define DNG_SUPPORT 1 |
|---|
| 224 | // pattern |
|---|
| 225 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 226 | // color |
|---|
| 227 | #define CAM_COLORMATRIX1 \ |
|---|
| 228 | 652279, 1000000, -199279, 1000000, -101833, 1000000, \ |
|---|
| 229 | -159819, 1000000, 619308, 1000000, 78172, 1000000, \ |
|---|
| 230 | -58827, 1000000, 150963, 1000000, 264216, 1000000 |
|---|
| 231 | |
|---|
| 232 | #define cam_CalibrationIlluminant1 1 // Daylight |
|---|
| 233 | // cropping |
|---|
| 234 | #define CAM_JPEG_WIDTH 2592 |
|---|
| 235 | #define CAM_JPEG_HEIGHT 1944 |
|---|
| 236 | #define CAM_ACTIVE_AREA_X1 6 |
|---|
| 237 | #define CAM_ACTIVE_AREA_Y1 6 |
|---|
| 238 | #define CAM_ACTIVE_AREA_X2 2618 |
|---|
| 239 | #define CAM_ACTIVE_AREA_Y2 1962 |
|---|
| 240 | // camera name |
|---|
| 241 | #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData |
|---|
| 242 | //---------------------------------------------------------- |
|---|
| 243 | |
|---|
| 244 | #elif defined (CAMERA_a460) |
|---|
| 245 | #define CAM_PROPSET 2 |
|---|
| 246 | |
|---|
| 247 | #define CAM_RAW_ROWPIX 2664 // for 5 MP 1/3" sensor size |
|---|
| 248 | #define CAM_RAW_ROWS 1968 // for 5 MP 1/3" sensor size |
|---|
| 249 | |
|---|
| 250 | #undef CAM_USE_ZOOM_FOR_MF |
|---|
| 251 | #undef CAM_HAS_ZOOM_LEVER |
|---|
| 252 | #define CAM_DRAW_EXPOSITION 1 |
|---|
| 253 | #undef CAM_HAS_ERASE_BUTTON |
|---|
| 254 | #undef CAM_HAS_IRIS_DIAPHRAGM |
|---|
| 255 | #define CAM_HAS_ND_FILTER 1 |
|---|
| 256 | #undef CAM_HAS_MANUAL_FOCUS |
|---|
| 257 | #undef CAM_HAS_USER_TV_MODES |
|---|
| 258 | #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 |
|---|
| 259 | #undef CAM_HAS_IS |
|---|
| 260 | #define CAM_CAN_MUTE_MICROPHONE 1 |
|---|
| 261 | #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 |
|---|
| 262 | #define CAM_EV_IN_VIDEO 1 |
|---|
| 263 | #define DNG_SUPPORT 1 |
|---|
| 264 | // pattern |
|---|
| 265 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 266 | // color |
|---|
| 267 | #define CAM_COLORMATRIX1 \ |
|---|
| 268 | 649324, 1000000,-233893, 1000000, -88521, 1000000, \ |
|---|
| 269 | -158955, 1000000, 593407, 1000000, 69775, 1000000, \ |
|---|
| 270 | -44551, 1000000, 136891, 1000000, 254362, 1000000 |
|---|
| 271 | |
|---|
| 272 | #define cam_CalibrationIlluminant1 1 // Daylight |
|---|
| 273 | // cropping |
|---|
| 274 | #define CAM_JPEG_WIDTH 2592 |
|---|
| 275 | #define CAM_JPEG_HEIGHT 1944 |
|---|
| 276 | #define CAM_ACTIVE_AREA_X1 6 |
|---|
| 277 | #define CAM_ACTIVE_AREA_Y1 6 |
|---|
| 278 | #define CAM_ACTIVE_AREA_X2 2618 |
|---|
| 279 | #define CAM_ACTIVE_AREA_Y2 1962 |
|---|
| 280 | // camera name |
|---|
| 281 | #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData |
|---|
| 282 | #define DNG_EXT_FROM ".DPS" |
|---|
| 283 | //---------------------------------------------------------- |
|---|
| 284 | |
|---|
| 285 | #elif defined (CAMERA_a470) |
|---|
| 286 | #define CAM_PROPSET 2 |
|---|
| 287 | #define CAM_DRYOS 1 |
|---|
| 288 | |
|---|
| 289 | #define CAM_RAW_ROWPIX 3152 // for 7 MP |
|---|
| 290 | #define CAM_RAW_ROWS 2340 // for 7 MP |
|---|
| 291 | |
|---|
| 292 | #undef CAM_USE_ZOOM_FOR_MF |
|---|
| 293 | #undef CAM_HAS_ZOOM_LEVER |
|---|
| 294 | #undef CAM_HAS_ERASE_BUTTON |
|---|
| 295 | #undef CAM_HAS_IRIS_DIAPHRAGM |
|---|
| 296 | #define CAM_HAS_ND_FILTER 1 |
|---|
| 297 | #undef CAM_HAS_MANUAL_FOCUS |
|---|
| 298 | #undef CAM_HAS_USER_TV_MODES |
|---|
| 299 | #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 |
|---|
| 300 | #undef CAM_HAS_IS |
|---|
| 301 | #define CAM_CAN_MUTE_MICROPHONE 1 |
|---|
| 302 | #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 |
|---|
| 303 | #define CAM_EV_IN_VIDEO 1 |
|---|
| 304 | #define DNG_SUPPORT 1 |
|---|
| 305 | #define CAM_MULTIPART 1 |
|---|
| 306 | |
|---|
| 307 | // pattern |
|---|
| 308 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 309 | // color |
|---|
| 310 | #define CAM_COLORMATRIX1 \ |
|---|
| 311 | 673251, 1000000,-200684, 1000000, -98680, 1000000, \ |
|---|
| 312 | -163638, 1000000, 651247, 1000000, 74004, 1000000, \ |
|---|
| 313 | 14221, 1000000, 52979, 1000000, 265291, 1000000 |
|---|
| 314 | #define cam_CalibrationIlluminant1 1 // Daylight |
|---|
| 315 | // cropping |
|---|
| 316 | #define CAM_JPEG_WIDTH 3096 |
|---|
| 317 | #define CAM_JPEG_HEIGHT 2324 |
|---|
| 318 | #define CAM_ACTIVE_AREA_X1 12 |
|---|
| 319 | #define CAM_ACTIVE_AREA_Y1 8 |
|---|
| 320 | #define CAM_ACTIVE_AREA_X2 3108 |
|---|
| 321 | #define CAM_ACTIVE_AREA_Y2 2332 |
|---|
| 322 | // camera name |
|---|
| 323 | #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData |
|---|
| 324 | //#define DNG_EXT_FROM ".DPS" |
|---|
| 325 | //---------------------------------------------------------- |
|---|
| 326 | |
|---|
| 327 | #elif defined (CAMERA_a480) |
|---|
| 328 | #define CAM_PROPSET 2 |
|---|
| 329 | #define CAM_DRYOS 1 |
|---|
| 330 | |
|---|
| 331 | #define CAM_RAW_ROWPIX 3720 |
|---|
| 332 | #define CAM_RAW_ROWS 2772 |
|---|
| 333 | |
|---|
| 334 | #undef CAM_USE_ZOOM_FOR_MF |
|---|
| 335 | #undef CAM_HAS_ERASE_BUTTON |
|---|
| 336 | #undef CAM_HAS_IRIS_DIAPHRAGM |
|---|
| 337 | #define CAM_HAS_ND_FILTER 1 |
|---|
| 338 | #undef CAM_HAS_MANUAL_FOCUS |
|---|
| 339 | #undef CAM_HAS_USER_TV_MODES |
|---|
| 340 | #undef CAM_HAS_IS |
|---|
| 341 | #define CAM_MULTIPART 1 |
|---|
| 342 | #undef CAM_VIDEO_CONTROL |
|---|
| 343 | #define CAM_REAR_CURTAIN 1 |
|---|
| 344 | #undef DEFAULT_RAW_EXT |
|---|
| 345 | #define DEFAULT_RAW_EXT 2 // use .CR2 |
|---|
| 346 | #define CAM_EXT_TV_RANGE 1 |
|---|
| 347 | #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 |
|---|
| 348 | #define CAM_CAN_MUTE_MICROPHONE 1 |
|---|
| 349 | #define CAM_EV_IN_VIDEO 1 |
|---|
| 350 | |
|---|
| 351 | #define DNG_SUPPORT 1 |
|---|
| 352 | // pattern |
|---|
| 353 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 354 | // color |
|---|
| 355 | |
|---|
| 356 | #define CAM_COLORMATRIX1 \ |
|---|
| 357 | 827547, 1000000, -290458, 1000000, -126086, 1000000, \ |
|---|
| 358 | -12829, 1000000, 530507, 1000000, 50537, 1000000, \ |
|---|
| 359 | 5181, 1000000, 48183, 1000000, 245014, 1000000 |
|---|
| 360 | |
|---|
| 361 | #define cam_CalibrationIlluminant1 1 // Daylight |
|---|
| 362 | // cropping |
|---|
| 363 | #define CAM_JPEG_WIDTH 3648 |
|---|
| 364 | #define CAM_JPEG_HEIGHT 2736 |
|---|
| 365 | #define CAM_ACTIVE_AREA_X1 6 |
|---|
| 366 | #define CAM_ACTIVE_AREA_Y1 12 |
|---|
| 367 | #define CAM_ACTIVE_AREA_X2 3690 |
|---|
| 368 | #define CAM_ACTIVE_AREA_Y2 2772 |
|---|
| 369 | |
|---|
| 370 | // camera name |
|---|
| 371 | #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData |
|---|
| 372 | #undef CAM_SENSOR_BITS_PER_PIXEL |
|---|
| 373 | #undef CAM_WHITE_LEVEL |
|---|
| 374 | #undef CAM_BLACK_LEVEL |
|---|
| 375 | #define CAM_SENSOR_BITS_PER_PIXEL 12 |
|---|
| 376 | #define CAM_WHITE_LEVEL ((1<<CAM_SENSOR_BITS_PER_PIXEL)-1) |
|---|
| 377 | #define CAM_BLACK_LEVEL 127 |
|---|
| 378 | //---------------------------------------------------------- |
|---|
| 379 | |
|---|
| 380 | #elif defined (CAMERA_a530) |
|---|
| 381 | #define CAM_PROPSET 1 |
|---|
| 382 | |
|---|
| 383 | // 2672x1968 image - like most other 5m sensors |
|---|
| 384 | #define CAM_RAW_ROWPIX 2672 // for 5 MP |
|---|
| 385 | #define CAM_RAW_ROWS 1968 // for 5 MP |
|---|
| 386 | // 2672x1992 image - eventually probably real sensor size |
|---|
| 387 | // #define CAM_RAW_ROWPIX 2672 // for 5 MP |
|---|
| 388 | // #define CAM_RAW_ROWS 1992 // for 5 MP |
|---|
| 389 | |
|---|
| 390 | #undef CAM_USE_ZOOM_FOR_MF |
|---|
| 391 | #define CAM_HAS_ERASE_BUTTON 1 |
|---|
| 392 | #undef CAM_HAS_IRIS_DIAPHRAGM |
|---|
| 393 | #define CAM_HAS_ND_FILTER 1 |
|---|
| 394 | #define CAM_HAS_MANUAL_FOCUS 1 |
|---|
| 395 | #define CAM_DRAW_EXPOSITION 1 |
|---|
| 396 | #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 |
|---|
| 397 | #undef CAM_CAN_SD_OVER_NOT_IN_MF |
|---|
| 398 | #undef CAM_HAS_IS |
|---|
| 399 | #define CAM_CAN_MUTE_MICROPHONE 1 |
|---|
| 400 | #define CAM_AF_SCAN_DURING_VIDEO_RECORD 2 |
|---|
| 401 | #define CAM_EV_IN_VIDEO 1 |
|---|
| 402 | #define DNG_SUPPORT 1 |
|---|
| 403 | // pattern |
|---|
| 404 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 405 | // color |
|---|
| 406 | #define CAM_COLORMATRIX1 \ |
|---|
| 407 | 725264, 1000000,-240542, 1000000, -122310, 1000000, \ |
|---|
| 408 | -210248, 1000000, 656077, 1000000, 52390, 1000000, \ |
|---|
| 409 | -11282, 1000000, 70400, 1000000, 300712, 1000000 |
|---|
| 410 | |
|---|
| 411 | #define cam_CalibrationIlluminant1 1 // Daylight |
|---|
| 412 | // cropping |
|---|
| 413 | #define CAM_JPEG_WIDTH 2592 |
|---|
| 414 | #define CAM_JPEG_HEIGHT 1944 |
|---|
| 415 | #define CAM_ACTIVE_AREA_X1 12 |
|---|
| 416 | #define CAM_ACTIVE_AREA_Y1 20 |
|---|
| 417 | #define CAM_ACTIVE_AREA_X2 2628 |
|---|
| 418 | #define CAM_ACTIVE_AREA_Y2 1968 |
|---|
| 419 | // camera name |
|---|
| 420 | #define PARAM_CAMERA_NAME 3 // parameter number for GetParameterData |
|---|
| 421 | #define DNG_EXT_FROM ".DPS" |
|---|
| 422 | |
|---|
| 423 | #define CAM_EXT_TV_RANGE 1 |
|---|
| 424 | //---------------------------------------------------------- |
|---|
| 425 | |
|---|
| 426 | #elif defined (CAMERA_a540) |
|---|
| 427 | #define CAM_PROPSET 1 |
|---|
| 428 | |
|---|
| 429 | #define CAM_RAW_ROWPIX 2888 // for 6 MP |
|---|
| 430 | #define CAM_RAW_ROWS 2136 // for 6 MP |
|---|
| 431 | |
|---|
| 432 | #undef CAM_USE_ZOOM_FOR_MF |
|---|
| 433 | #define CAM_HAS_ERASE_BUTTON 1 |
|---|
| 434 | #define CAM_HAS_IRIS_DIAPHRAGM 1 |
|---|
| 435 | #undef CAM_HAS_ND_FILTER |
|---|
| 436 | #define CAM_HAS_MANUAL_FOCUS 1 |
|---|
| 437 | #undef CAM_DRAW_EXPOSITION |
|---|
| 438 | #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 |
|---|
| 439 | #undef CAM_HAS_IS |
|---|
| 440 | #define CAM_CAN_MUTE_MICROPHONE 1 |
|---|
| 441 | #define CAM_AF_SCAN_DURING_VIDEO_RECORD 2 |
|---|
| 442 | #define CAM_EV_IN_VIDEO 1 |
|---|
| 443 | #define DNG_SUPPORT 1 |
|---|
| 444 | // pattern |
|---|
| 445 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 446 | // color |
|---|
| 447 | #define CAM_COLORMATRIX1 \ |
|---|
| 448 | 687147, 1000000,-201964, 1000000, -125024, 1000000, \ |
|---|
| 449 | -148403, 1000000, 566810, 1000000, 45401, 1000000, \ |
|---|
| 450 | -9472, 1000000, 63186, 1000000, 208602, 1000000 |
|---|
| 451 | |
|---|
| 452 | #define cam_CalibrationIlluminant1 1 // Daylight |
|---|
| 453 | // cropping |
|---|
| 454 | #define CAM_JPEG_WIDTH 2816 |
|---|
| 455 | #define CAM_JPEG_HEIGHT 2112 |
|---|
| 456 | #define CAM_ACTIVE_AREA_X1 44 |
|---|
| 457 | #define CAM_ACTIVE_AREA_Y1 8 |
|---|
| 458 | #define CAM_ACTIVE_AREA_X2 2884 |
|---|
| 459 | #define CAM_ACTIVE_AREA_Y2 2136 |
|---|
| 460 | // camera name |
|---|
| 461 | #define PARAM_CAMERA_NAME 3 // parameter number for GetParameterData |
|---|
| 462 | #define DNG_EXT_FROM ".DPS" |
|---|
| 463 | |
|---|
| 464 | #define CAM_EXT_TV_RANGE 1 |
|---|
| 465 | |
|---|
| 466 | #define CAM_CHDK_PTP 1 // include CHDK PTP support |
|---|
| 467 | |
|---|
| 468 | //---------------------------------------------------------- |
|---|
| 469 | |
|---|
| 470 | #elif defined (CAMERA_a550) |
|---|
| 471 | #define CAM_PROPSET 2 |
|---|
| 472 | |
|---|
| 473 | #define CAM_RAW_ROWPIX 3152 // for 7 MP |
|---|
| 474 | #define CAM_RAW_ROWS 2340 // for 7 MP |
|---|
| 475 | |
|---|
| 476 | #undef CAM_USE_ZOOM_FOR_MF |
|---|
| 477 | #define CAM_MULTIPART 1 |
|---|
| 478 | #undef CAM_HAS_ERASE_BUTTON |
|---|
| 479 | #undef CAM_HAS_IRIS_DIAPHRAGM |
|---|
| 480 | #define CAM_HAS_ND_FILTER 1 |
|---|
| 481 | #undef CAM_HAS_MANUAL_FOCUS |
|---|
| 482 | #undef CAM_HAS_USER_TV_MODES |
|---|
| 483 | #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 |
|---|
| 484 | #undef CAM_HAS_IS |
|---|
| 485 | #define CAM_CAN_MUTE_MICROPHONE 1 |
|---|
| 486 | #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 |
|---|
| 487 | #define DNG_SUPPORT 1 |
|---|
| 488 | // pattern |
|---|
| 489 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 490 | // color |
|---|
| 491 | #define CAM_COLORMATRIX1 \ |
|---|
| 492 | 673251, 1000000,-200684, 1000000, -98680, 1000000, \ |
|---|
| 493 | -163638, 1000000, 651247, 1000000, 74004, 1000000, \ |
|---|
| 494 | 14221, 1000000, 52979, 1000000, 265291, 1000000 |
|---|
| 495 | |
|---|
| 496 | #define cam_CalibrationIlluminant1 1 // Daylight |
|---|
| 497 | // cropping |
|---|
| 498 | #define CAM_JPEG_WIDTH 3072 |
|---|
| 499 | #define CAM_JPEG_HEIGHT 2304 |
|---|
| 500 | #define CAM_ACTIVE_AREA_X1 36 |
|---|
| 501 | #define CAM_ACTIVE_AREA_Y1 12 |
|---|
| 502 | #define CAM_ACTIVE_AREA_X2 3148 |
|---|
| 503 | #define CAM_ACTIVE_AREA_Y2 2340 |
|---|
| 504 | // camera name |
|---|
| 505 | #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData |
|---|
| 506 | #define DNG_EXT_FROM ".DPS" |
|---|
| 507 | |
|---|
| 508 | #define CAM_EXT_TV_RANGE 1 |
|---|
| 509 | //---------------------------------------------------------- |
|---|
| 510 | |
|---|
| 511 | #elif defined (CAMERA_a560) |
|---|
| 512 | #define CAM_PROPSET 2 |
|---|
| 513 | |
|---|
| 514 | #define CAM_RAW_ROWPIX 3152 // for 7 MP |
|---|
| 515 | #define CAM_RAW_ROWS 2340 // for 7 MP |
|---|
| 516 | |
|---|
| 517 | #undef CAM_USE_ZOOM_FOR_MF |
|---|
| 518 | #define CAM_MULTIPART 1 |
|---|
| 519 | #undef CAM_HAS_ERASE_BUTTON |
|---|
| 520 | #undef CAM_HAS_IRIS_DIAPHRAGM |
|---|
| 521 | #define CAM_HAS_ND_FILTER 1 |
|---|
| 522 | #undef CAM_HAS_MANUAL_FOCUS |
|---|
| 523 | #undef CAM_HAS_USER_TV_MODES |
|---|
| 524 | #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 |
|---|
| 525 | #undef CAM_HAS_IS |
|---|
| 526 | #define CAM_CAN_MUTE_MICROPHONE 1 |
|---|
| 527 | #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 |
|---|
| 528 | #define DNG_SUPPORT 1 |
|---|
| 529 | // pattern |
|---|
| 530 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 531 | // color |
|---|
| 532 | #define CAM_COLORMATRIX1 \ |
|---|
| 533 | 15265, 1, -6193, 1, -1558, 1, \ |
|---|
| 534 | -4125, 1, 12116, 1, 2010, 1, \ |
|---|
| 535 | -888, 1, 1639, 1, 5220, 1 |
|---|
| 536 | |
|---|
| 537 | #define cam_CalibrationIlluminant1 17 // Standard light A |
|---|
| 538 | // cropping |
|---|
| 539 | #define CAM_JPEG_WIDTH 3072 |
|---|
| 540 | #define CAM_JPEG_HEIGHT 2304 |
|---|
| 541 | #define CAM_ACTIVE_AREA_X1 38 |
|---|
| 542 | #define CAM_ACTIVE_AREA_Y1 14 |
|---|
| 543 | #define CAM_ACTIVE_AREA_X2 3146 |
|---|
| 544 | #define CAM_ACTIVE_AREA_Y2 2338 |
|---|
| 545 | // camera name |
|---|
| 546 | #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData |
|---|
| 547 | #define DNG_EXT_FROM ".DPS" |
|---|
| 548 | |
|---|
| 549 | #define CAM_EXT_TV_RANGE 1 |
|---|
| 550 | //---------------------------------------------------------- |
|---|
| 551 | |
|---|
| 552 | #elif defined (CAMERA_a570) |
|---|
| 553 | #define CAM_PROPSET 2 |
|---|
| 554 | |
|---|
| 555 | #define CAM_RAW_ROWPIX 3152 // for 7 MP |
|---|
| 556 | #define CAM_RAW_ROWS 2340 // for 7 MP |
|---|
| 557 | #define CAM_MULTIPART 1 |
|---|
| 558 | #define CAM_CAN_MUTE_MICROPHONE 1 |
|---|
| 559 | #define CAM_ADJUSTABLE_ALT_BUTTON 1 |
|---|
| 560 | #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 |
|---|
| 561 | #define CAM_EV_IN_VIDEO 1 |
|---|
| 562 | #define DNG_SUPPORT 1 |
|---|
| 563 | #define CAM_REAR_CURTAIN 1 |
|---|
| 564 | // pattern |
|---|
| 565 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 566 | // color |
|---|
| 567 | #define CAM_COLORMATRIX1 \ |
|---|
| 568 | 528283, 1000000,-144259, 1000000, -85966, 1000000, \ |
|---|
| 569 | -202789, 1000000, 736563, 1000000, 73008, 1000000, \ |
|---|
| 570 | -27130, 1000000, 107702, 1000000, 264543, 1000000 |
|---|
| 571 | |
|---|
| 572 | #define cam_CalibrationIlluminant1 1 // Daylight |
|---|
| 573 | // cropping |
|---|
| 574 | #define CAM_JPEG_WIDTH 3072 |
|---|
| 575 | #define CAM_JPEG_HEIGHT 2304 |
|---|
| 576 | #define CAM_ACTIVE_AREA_X1 38 |
|---|
| 577 | #define CAM_ACTIVE_AREA_Y1 14 |
|---|
| 578 | #define CAM_ACTIVE_AREA_X2 3146 |
|---|
| 579 | #define CAM_ACTIVE_AREA_Y2 2338 |
|---|
| 580 | // camera name |
|---|
| 581 | #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData |
|---|
| 582 | |
|---|
| 583 | #define DNG_EXT_FROM ".DPS" |
|---|
| 584 | #define CAM_EXT_TV_RANGE 1 |
|---|
| 585 | //---------------------------------------------------------- |
|---|
| 586 | |
|---|
| 587 | #elif defined (CAMERA_a590) |
|---|
| 588 | #define CAM_ADJUSTABLE_ALT_BUTTON 1 |
|---|
| 589 | #define CAM_PROPSET 2 |
|---|
| 590 | #define CAM_DRYOS 1 |
|---|
| 591 | |
|---|
| 592 | #define CAM_RAW_ROWPIX 3336 // for new 8 MP |
|---|
| 593 | #define CAM_RAW_ROWS 2480 // for new 8 MP |
|---|
| 594 | |
|---|
| 595 | #define CAM_USE_ZOOM_FOR_MF 1 |
|---|
| 596 | |
|---|
| 597 | #define CAM_CAN_MUTE_MICROPHONE 1 |
|---|
| 598 | #define CAM_HAS_IRIS_DIAPHRAGM 1 |
|---|
| 599 | #undef CAM_HAS_ND_FILTER |
|---|
| 600 | |
|---|
| 601 | #define CAM_HAS_MANUAL_FOCUS 1 |
|---|
| 602 | |
|---|
| 603 | #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 |
|---|
| 604 | //#define CAM_EV_IN_VIDEO 1 // not working on 101b!!! |
|---|
| 605 | #define DNG_SUPPORT 1 |
|---|
| 606 | // pattern |
|---|
| 607 | #define cam_CFAPattern 0x01000201 // Green Blue Red Green |
|---|
| 608 | // color |
|---|
| 609 | #define CAM_COLORMATRIX1 \ |
|---|
| 610 | 726857, 1000000, -176454, 1000000, -124118, 1000000, \ |
|---|
| 611 | -71340, 1000000, 592001, 1000000, 75622, 1000000, \ |
|---|
| 612 | 63222, 1000000, 50547, 1000000, 219582, 1000000 |
|---|
| 613 | |
|---|
| 614 | #define cam_CalibrationIlluminant1 1 // Daylight |
|---|
| 615 | // cropping |
|---|
| 616 | #define CAM_JPEG_WIDTH 3264 |
|---|
| 617 | #define CAM_JPEG_HEIGHT 2448 |
|---|
| 618 | #define CAM_ACTIVE_AREA_X1 12 |
|---|
| 619 | #define CAM_ACTIVE_AREA_Y1 10 |
|---|
| 620 | // note: the above contains some pixels which have valid data, |
|---|
| 621 | // but are not at the same levels as the rest of the frame |
|---|
| 622 | // the values below crop the "different" looking pixels. |
|---|
| 623 | //#define CAM_ACTIVE_AREA_X1 16 |
|---|
| 624 | //#define CAM_ACTIVE_AREA_Y1 18 |
|---|
| 625 | #define CAM_ACTIVE_AREA_X2 3300 |
|---|
| 626 | #define CAM_ACTIVE_AREA_Y2 2480 |
|---|
| 627 | |
|---|
| 628 | // camera name |
|---|
| 629 | #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData |
|---|
| 630 | |
|---|
| 631 | #define CAM_EXT_TV_RANGE 1 |
|---|
| 632 | #define CAM_MULTIPART 1 |
|---|
| 633 | #define CAM_CHDK_PTP 1 // include CHDK PTP support |
|---|
| 634 | //---------------------------------------------------------- |
|---|
| 635 | |
|---|
| 636 | #elif defined (CAMERA_a610) |
|---|
| 637 | #define CAM_PROPSET 1 |
|---|
| 638 | |
|---|
| 639 | #define CAM_RAW_ROWPIX 2672 // for 5 MP |
|---|
| 640 | #define CAM_RAW_ROWS 1968 // for 5 MP |
|---|
| 641 | |
|---|
| 642 | #define CAM_SWIVEL_SCREEN 1 |
|---|
| 643 | #undef CAM_CAN_SD_OVER_NOT_IN_MF |
|---|
| 644 | #undef CAM_HAS_IS |
|---|
| 645 | #define CAM_CAN_MUTE_MICROPHONE 1 |
|---|
| 646 | #define CAM_AF_SCAN_DURING_VIDEO_RECORD 2 |
|---|
| 647 | #define CAM_EV_IN_VIDEO 1 |
|---|
| 648 | #define DNG_SUPPORT 1 |
|---|
| 649 | // pattern |
|---|
| 650 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 651 | // color |
|---|
| 652 | #define CAM_COLORMATRIX1 \ |
|---|
| 653 | 15887, 10000, -6524, 10000, -1622, 10000, \ |
|---|
| 654 | -5467, 10000, 13449, 10000, 2209, 10000, \ |
|---|
| 655 | -1325, 10000, 1859, 10000, 5172, 10000 |
|---|
| 656 | |
|---|
| 657 | #define cam_CalibrationIlluminant1 17 // Standard light A |
|---|
| 658 | // cropping |
|---|
| 659 | #define CAM_JPEG_WIDTH 2592 |
|---|
| 660 | #define CAM_JPEG_HEIGHT 1944 |
|---|
| 661 | #define CAM_ACTIVE_AREA_X1 14 |
|---|
| 662 | #define CAM_ACTIVE_AREA_Y1 10 |
|---|
| 663 | #define CAM_ACTIVE_AREA_X2 2626 |
|---|
| 664 | #define CAM_ACTIVE_AREA_Y2 1966 |
|---|
| 665 | // camera name |
|---|
| 666 | #define PARAM_CAMERA_NAME 3 // parameter number for GetParameterData |
|---|
| 667 | |
|---|
| 668 | #define DNG_EXT_FROM ".DPS" |
|---|
| 669 | //---------------------------------------------------------- |
|---|
| 670 | |
|---|
| 671 | #elif defined (CAMERA_a620) |
|---|
| 672 | #define CAM_PROPSET 1 |
|---|
| 673 | |
|---|
| 674 | #define CAM_RAW_ROWPIX 3152 // for 7 MP |
|---|
| 675 | #define CAM_RAW_ROWS 2340 // for 7 MP |
|---|
| 676 | |
|---|
| 677 | #define CAM_SWIVEL_SCREEN 1 |
|---|
| 678 | #undef CAM_CAN_SD_OVER_NOT_IN_MF |
|---|
| 679 | #undef CAM_HAS_IS |
|---|
| 680 | #define CAM_CAN_MUTE_MICROPHONE 1 |
|---|
| 681 | #define CAM_AF_SCAN_DURING_VIDEO_RECORD 2 |
|---|
| 682 | #define CAM_EV_IN_VIDEO 1 |
|---|
| 683 | #define DNG_SUPPORT 1 |
|---|
| 684 | // pattern |
|---|
| 685 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 686 | // color |
|---|
| 687 | #define CAM_COLORMATRIX1 \ |
|---|
| 688 | 15265, 10000, -6193, 10000, -1558, 10000, \ |
|---|
| 689 | -4125, 10000, 12116, 10000, 2010, 10000, \ |
|---|
| 690 | -888, 10000, 1639, 10000, 5220, 10000 |
|---|
| 691 | |
|---|
| 692 | #define cam_CalibrationIlluminant1 17 // Standard light A |
|---|
| 693 | // cropping |
|---|
| 694 | #define CAM_JPEG_WIDTH 3072 |
|---|
| 695 | #define CAM_JPEG_HEIGHT 2304 |
|---|
| 696 | #define CAM_ACTIVE_AREA_X1 38 |
|---|
| 697 | #define CAM_ACTIVE_AREA_Y1 14 |
|---|
| 698 | #define CAM_ACTIVE_AREA_X2 3146 |
|---|
| 699 | #define CAM_ACTIVE_AREA_Y2 2338 |
|---|
| 700 | // camera name |
|---|
| 701 | #define PARAM_CAMERA_NAME 3 // parameter number for GetParameterData |
|---|
| 702 | #define DNG_EXT_FROM ".DPS" |
|---|
| 703 | //---------------------------------------------------------- |
|---|
| 704 | |
|---|
| 705 | #elif defined (CAMERA_a630) |
|---|
| 706 | #define CAM_PROPSET 1 |
|---|
| 707 | |
|---|
| 708 | #define CAM_RAW_ROWPIX 3344 // for 8 MP |
|---|
| 709 | #define CAM_RAW_ROWS 2484 // for 8 MP |
|---|
| 710 | |
|---|
| 711 | #define CAM_SWIVEL_SCREEN 1 |
|---|
| 712 | #define CAM_MULTIPART 1 |
|---|
| 713 | #undef CAM_CAN_SD_OVER_NOT_IN_MF |
|---|
| 714 | #undef CAM_HAS_IS |
|---|
| 715 | #define CAM_CAN_MUTE_MICROPHONE 1 |
|---|
| 716 | #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 |
|---|
| 717 | #define CAM_EV_IN_VIDEO 1 |
|---|
| 718 | #define DNG_SUPPORT 1 |
|---|
| 719 | // pattern |
|---|
| 720 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 721 | // color |
|---|
| 722 | #define CAM_COLORMATRIX1 \ |
|---|
| 723 | 656080, 1000000,-226478, 1000000, -85884, 1000000, \ |
|---|
| 724 | -194636, 1000000, 687905, 1000000, 37862, 1000000, \ |
|---|
| 725 | 22873, 1000000, 75523, 1000000, 265822, 1000000 |
|---|
| 726 | |
|---|
| 727 | #define cam_CalibrationIlluminant1 1 // Daylight |
|---|
| 728 | // cropping |
|---|
| 729 | #define CAM_JPEG_WIDTH 3264 |
|---|
| 730 | #define CAM_JPEG_HEIGHT 2448 |
|---|
| 731 | #define CAM_ACTIVE_AREA_X1 14 |
|---|
| 732 | #define CAM_ACTIVE_AREA_Y1 8 |
|---|
| 733 | #define CAM_ACTIVE_AREA_X2 3298 |
|---|
| 734 | #define CAM_ACTIVE_AREA_Y2 2476 |
|---|
| 735 | // camera name |
|---|
| 736 | #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData |
|---|
| 737 | #define DNG_EXT_FROM ".DPS" |
|---|
| 738 | #define CAM_EXT_TV_RANGE 1 |
|---|
| 739 | //---------------------------------------------------------- |
|---|
| 740 | |
|---|
| 741 | #elif defined (CAMERA_a640) |
|---|
| 742 | #define CAM_PROPSET 1 |
|---|
| 743 | |
|---|
| 744 | #define CAM_RAW_ROWPIX 3736 // for 10 MP |
|---|
| 745 | #define CAM_RAW_ROWS 2772 // for 10 MP |
|---|
| 746 | |
|---|
| 747 | #define CAM_SWIVEL_SCREEN 1 |
|---|
| 748 | #define CAM_MULTIPART 1 |
|---|
| 749 | #undef CAM_CAN_SD_OVER_NOT_IN_MF |
|---|
| 750 | #undef CAM_HAS_IS |
|---|
| 751 | #define CAM_CAN_MUTE_MICROPHONE 1 |
|---|
| 752 | #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 |
|---|
| 753 | #define CAM_EV_IN_VIDEO 1 |
|---|
| 754 | #define DNG_SUPPORT 1 |
|---|
| 755 | // pattern |
|---|
| 756 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 757 | // color |
|---|
| 758 | #define CAM_COLORMATRIX1 \ |
|---|
| 759 | 13124, 10000, -5329, 10000, -1390, 10000, \ |
|---|
| 760 | -3602, 10000, 11658, 10000, 1944, 10000, \ |
|---|
| 761 | -1612, 10000, 2863, 10000, 4885, 10000 |
|---|
| 762 | |
|---|
| 763 | #define cam_CalibrationIlluminant1 17 // Standard light A |
|---|
| 764 | // cropping |
|---|
| 765 | #define CAM_JPEG_WIDTH 3648 |
|---|
| 766 | #define CAM_JPEG_HEIGHT 2736 |
|---|
| 767 | #define CAM_ACTIVE_AREA_X1 14 |
|---|
| 768 | #define CAM_ACTIVE_AREA_Y1 8 |
|---|
| 769 | #define CAM_ACTIVE_AREA_X2 3682 |
|---|
| 770 | #define CAM_ACTIVE_AREA_Y2 2764 |
|---|
| 771 | // camera name |
|---|
| 772 | #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData |
|---|
| 773 | #define DNG_EXT_FROM ".DPS" |
|---|
| 774 | //---------------------------------------------------------- |
|---|
| 775 | |
|---|
| 776 | #elif defined (CAMERA_a650) |
|---|
| 777 | #define CAM_PROPSET 2 |
|---|
| 778 | #define CAM_DRYOS 1 |
|---|
| 779 | |
|---|
| 780 | #define CAM_RAW_ROWPIX 4104 // for 12 MP |
|---|
| 781 | #define CAM_RAW_ROWS 3048 // for 12 MP |
|---|
| 782 | |
|---|
| 783 | #define CAM_ADJUSTABLE_ALT_BUTTON 1 |
|---|
| 784 | #define CAM_SWIVEL_SCREEN 1 |
|---|
| 785 | #define CAM_CAN_MUTE_MICROPHONE 1 |
|---|
| 786 | |
|---|
| 787 | #undef CAM_EMUL_KEYPRESS_DURATION |
|---|
| 788 | #define CAM_EMUL_KEYPRESS_DURATION 10 |
|---|
| 789 | #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 |
|---|
| 790 | #define CAM_EV_IN_VIDEO 1 |
|---|
| 791 | #define DNG_SUPPORT 1 |
|---|
| 792 | // pattern |
|---|
| 793 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 794 | // color |
|---|
| 795 | #define CAM_COLORMATRIX1 \ |
|---|
| 796 | 913762, 1000000, -261578, 1000000, -135582, 1000000, \ |
|---|
| 797 | -99049, 1000000, 1067089, 1000000, 61442, 1000000, \ |
|---|
| 798 | 48717, 1000000, 96802, 1000000, 412056, 1000000 |
|---|
| 799 | |
|---|
| 800 | #define cam_CalibrationIlluminant1 1 // Daylight |
|---|
| 801 | // cropping |
|---|
| 802 | #define CAM_JPEG_WIDTH 4000 |
|---|
| 803 | #define CAM_JPEG_HEIGHT 3000 |
|---|
| 804 | #define CAM_ACTIVE_AREA_X1 52 |
|---|
| 805 | #define CAM_ACTIVE_AREA_Y1 14 |
|---|
| 806 | #define CAM_ACTIVE_AREA_X2 4076 |
|---|
| 807 | #define CAM_ACTIVE_AREA_Y2 3030 |
|---|
| 808 | // camera name |
|---|
| 809 | #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData |
|---|
| 810 | |
|---|
| 811 | #define DNG_EXT_FROM ".CR2" |
|---|
| 812 | //---------------------------------------------------------- |
|---|
| 813 | |
|---|
| 814 | #elif defined (CAMERA_a700) |
|---|
| 815 | #define CAM_PROPSET 1 |
|---|
| 816 | |
|---|
| 817 | #define CAM_RAW_ROWPIX 2888 // for 6 MP |
|---|
| 818 | #define CAM_RAW_ROWS 2136 // for 6 MP |
|---|
| 819 | |
|---|
| 820 | #undef CAM_HAS_IS |
|---|
| 821 | #define CAM_CAN_MUTE_MICROPHONE 1 |
|---|
| 822 | #define CAM_AF_SCAN_DURING_VIDEO_RECORD 2 |
|---|
| 823 | #define CAM_EV_IN_VIDEO 1 |
|---|
| 824 | #define DNG_SUPPORT 1 |
|---|
| 825 | // pattern |
|---|
| 826 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 827 | // color |
|---|
| 828 | #define CAM_COLORMATRIX1 \ |
|---|
| 829 | 14062, 10000, -5199, 10000, -1446, 10000, \ |
|---|
| 830 | -4712, 10000, 12470, 10000, 2243, 10000, \ |
|---|
| 831 | -1286, 10000, 2028, 10000, 4836, 10000 |
|---|
| 832 | |
|---|
| 833 | #define cam_CalibrationIlluminant1 17 // Standard light A |
|---|
| 834 | // cropping |
|---|
| 835 | #define CAM_JPEG_WIDTH 2816 |
|---|
| 836 | #define CAM_JPEG_HEIGHT 2112 |
|---|
| 837 | #define CAM_ACTIVE_AREA_X1 44 |
|---|
| 838 | #define CAM_ACTIVE_AREA_Y1 8 |
|---|
| 839 | #define CAM_ACTIVE_AREA_X2 2884 |
|---|
| 840 | #define CAM_ACTIVE_AREA_Y2 2136 |
|---|
| 841 | // camera name |
|---|
| 842 | #define PARAM_CAMERA_NAME 3 // parameter number for GetParameterData |
|---|
| 843 | #define DNG_EXT_FROM ".DPS" |
|---|
| 844 | //---------------------------------------------------------- |
|---|
| 845 | |
|---|
| 846 | #elif defined (CAMERA_a710) |
|---|
| 847 | #define CAM_PROPSET 1 |
|---|
| 848 | |
|---|
| 849 | #define CAM_RAW_ROWPIX 3152 // for 7 MP |
|---|
| 850 | #define CAM_RAW_ROWS 2340 // for 7 MP |
|---|
| 851 | |
|---|
| 852 | #define CAM_MULTIPART 1 |
|---|
| 853 | #define CAM_CAN_MUTE_MICROPHONE 1 |
|---|
| 854 | #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 |
|---|
| 855 | #define CAM_EV_IN_VIDEO 1 |
|---|
| 856 | #define DNG_SUPPORT 1 |
|---|
| 857 | #define CAM_REAR_CURTAIN 1 // http://chdk.setepontos.com/index.php/topic,650.msg54434.html#msg54434 |
|---|
| 858 | // pattern |
|---|
| 859 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 860 | // color |
|---|
| 861 | #define CAM_COLORMATRIX1 \ |
|---|
| 862 | 13349, 10000, -4141, 10000, -2128, 10000, \ |
|---|
| 863 | -4189, 10000, 13178, 10000, 1044, 10000, \ |
|---|
| 864 | -1037, 10000, 2326, 10000, 4720, 10000 |
|---|
| 865 | |
|---|
| 866 | #define cam_CalibrationIlluminant1 1 // Daylight |
|---|
| 867 | // cropping |
|---|
| 868 | #define CAM_JPEG_WIDTH 3072 |
|---|
| 869 | #define CAM_JPEG_HEIGHT 2304 |
|---|
| 870 | #define CAM_ACTIVE_AREA_X1 38 |
|---|
| 871 | #define CAM_ACTIVE_AREA_Y1 14 |
|---|
| 872 | #define CAM_ACTIVE_AREA_X2 3146 |
|---|
| 873 | #define CAM_ACTIVE_AREA_Y2 2338 |
|---|
| 874 | // camera name |
|---|
| 875 | #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData |
|---|
| 876 | |
|---|
| 877 | #define DNG_EXT_FROM ".DPS" |
|---|
| 878 | |
|---|
| 879 | #define CAM_EXT_TV_RANGE 1 |
|---|
| 880 | //---------------------------------------------------------- |
|---|
| 881 | |
|---|
| 882 | #elif defined (CAMERA_a720) |
|---|
| 883 | #define CAM_PROPSET 2 |
|---|
| 884 | #define CAM_DRYOS 1 |
|---|
| 885 | |
|---|
| 886 | #define CAM_RAW_ROWPIX 3336 // for new 8 MP |
|---|
| 887 | #define CAM_RAW_ROWS 2480 // for new 8 MP |
|---|
| 888 | |
|---|
| 889 | #define CAM_MULTIPART 1 |
|---|
| 890 | #define CAM_ADJUSTABLE_ALT_BUTTON 1 |
|---|
| 891 | #define CAM_CAN_MUTE_MICROPHONE 1 |
|---|
| 892 | #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 |
|---|
| 893 | #define CAM_EV_IN_VIDEO 1 |
|---|
| 894 | #undef CAM_VIDEO_CONTROL |
|---|
| 895 | #define DNG_SUPPORT 1 |
|---|
| 896 | // pattern |
|---|
| 897 | #define cam_CFAPattern 0x01000201 // Green Blue Red Green |
|---|
| 898 | // color |
|---|
| 899 | #define CAM_COLORMATRIX1 \ |
|---|
| 900 | 640019, 1000000, -220031, 1000000, -96241, 1000000, \ |
|---|
| 901 | -77419, 1000000, 639766, 1000000, 44009, 1000000, \ |
|---|
| 902 | 17965, 1000000, 78396, 1000000, 231868, 1000000 |
|---|
| 903 | |
|---|
| 904 | #define cam_CalibrationIlluminant1 1 // Daylight |
|---|
| 905 | // cropping |
|---|
| 906 | #define CAM_JPEG_WIDTH 3264 |
|---|
| 907 | #define CAM_JPEG_HEIGHT 2448 |
|---|
| 908 | #define CAM_ACTIVE_AREA_X1 10 |
|---|
| 909 | #define CAM_ACTIVE_AREA_Y1 8 |
|---|
| 910 | #define CAM_ACTIVE_AREA_X2 3302 |
|---|
| 911 | #define CAM_ACTIVE_AREA_Y2 2474 |
|---|
| 912 | // camera name |
|---|
| 913 | #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData |
|---|
| 914 | |
|---|
| 915 | #define DNG_EXT_FROM ".CR2" |
|---|
| 916 | #define CAM_CHDK_PTP 1 // include CHDK PTP support |
|---|
| 917 | //---------------------------------------------------------- |
|---|
| 918 | |
|---|
| 919 | #elif defined (CAMERA_a2000) |
|---|
| 920 | //////////////////////////////// |
|---|
| 921 | // Sure values |
|---|
| 922 | //////////////////////////////// |
|---|
| 923 | #define CAM_PROPSET 2 |
|---|
| 924 | #define CAM_DRYOS 1 |
|---|
| 925 | |
|---|
| 926 | #define CAM_RAW_ROWPIX 3720 |
|---|
| 927 | #define CAM_RAW_ROWS 2772 |
|---|
| 928 | |
|---|
| 929 | #define CAM_JPEG_WIDTH 3648 |
|---|
| 930 | #define CAM_JPEG_HEIGHT 2736 |
|---|
| 931 | |
|---|
| 932 | #define DNG_SUPPORT 1 |
|---|
| 933 | |
|---|
| 934 | #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData |
|---|
| 935 | |
|---|
| 936 | #undef CAM_HAS_IRIS_DIAPHRAGM |
|---|
| 937 | #define CAM_HAS_ND_FILTER 1 |
|---|
| 938 | |
|---|
| 939 | //////////////////////////////// |
|---|
| 940 | // Almost sure, sensor data taken from |
|---|
| 941 | // ixus870_sd880 which should have same sensor.. |
|---|
| 942 | //////////////////////////////// |
|---|
| 943 | #undef CAM_SENSOR_BITS_PER_PIXEL |
|---|
| 944 | #undef CAM_WHITE_LEVEL |
|---|
| 945 | #undef CAM_BLACK_LEVEL |
|---|
| 946 | #define CAM_SENSOR_BITS_PER_PIXEL 12 |
|---|
| 947 | #define CAM_WHITE_LEVEL ((1<<CAM_SENSOR_BITS_PER_PIXEL)-1) |
|---|
| 948 | #define CAM_BLACK_LEVEL 127 |
|---|
| 949 | |
|---|
| 950 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 951 | #define CAM_COLORMATRIX1 \ |
|---|
| 952 | 827547, 1000000, -290458, 1000000, -126086, 1000000, \ |
|---|
| 953 | -12829, 1000000, 530507, 1000000, 50537, 1000000, \ |
|---|
| 954 | 5181, 1000000, 48183, 1000000, 245014, 1000000 |
|---|
| 955 | #define cam_CalibrationIlluminant1 1 // Daylight |
|---|
| 956 | |
|---|
| 957 | // cropping (from ixus870_sd880) |
|---|
| 958 | #define CAM_ACTIVE_AREA_X1 14 |
|---|
| 959 | #define CAM_ACTIVE_AREA_Y1 8 |
|---|
| 960 | #define CAM_ACTIVE_AREA_X2 3682 |
|---|
| 961 | #define CAM_ACTIVE_AREA_Y2 2764 |
|---|
| 962 | |
|---|
| 963 | #undef CAM_HAS_MANUAL_FOCUS |
|---|
| 964 | // for the purposes of CHDK, the FACE button is treated as the erase button |
|---|
| 965 | // #undef CAM_HAS_ERASE_BUTTON |
|---|
| 966 | //---------------------------------------------------------- |
|---|
| 967 | |
|---|
| 968 | #elif defined (CAMERA_d10) |
|---|
| 969 | #define CAM_PROPSET 2 |
|---|
| 970 | #define CAM_DRYOS 1 |
|---|
| 971 | |
|---|
| 972 | #define CAM_RAW_ROWPIX 4104 // 12 MP 12bpp |
|---|
| 973 | #define CAM_RAW_ROWS 3048 // from " CrwAddress %lx, CrwSize H %ld V %ld\r" |
|---|
| 974 | |
|---|
| 975 | #undef CAM_HAS_ERASE_BUTTON |
|---|
| 976 | #undef CAM_USE_ZOOM_FOR_MF |
|---|
| 977 | #define CAM_MULTIPART 1 |
|---|
| 978 | #undef CAM_HAS_IRIS_DIAPHRAGM |
|---|
| 979 | #define CAM_HAS_ND_FILTER 1 |
|---|
| 980 | |
|---|
| 981 | // TODO |
|---|
| 982 | #undef CAM_REMOTE |
|---|
| 983 | #undef CAM_SYNCH |
|---|
| 984 | |
|---|
| 985 | #define CAM_HAS_ZOOM_LEVER 1 // note, has zoom in/out buttons, not lever |
|---|
| 986 | |
|---|
| 987 | |
|---|
| 988 | // TODO |
|---|
| 989 | // #define CAM_CAN_SD_OVER_NOT_IN_MF 1 // Camera allows subject distance (focus) override when not in manual focus mode |
|---|
| 990 | // #define CAM_CAN_SD_OVERRIDE 1 // Camera allows to do subject distance override |
|---|
| 991 | |
|---|
| 992 | #define CAM_HAS_MANUAL_FOCUS 1 |
|---|
| 993 | // long shutter is acutally user TV, may work ? |
|---|
| 994 | #undef CAM_HAS_USER_TV_MODES |
|---|
| 995 | #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 |
|---|
| 996 | #define CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO 1 |
|---|
| 997 | // TODO this doesn't seem to be working |
|---|
| 998 | #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 |
|---|
| 999 | #define CAM_CHDK_HAS_EXT_VIDEO_MENU 1 // In CHDK for this camera realized adjustable video compression |
|---|
| 1000 | |
|---|
| 1001 | #define CAM_HAS_IS 1 |
|---|
| 1002 | #undef CAM_HAS_JOGDIAL |
|---|
| 1003 | |
|---|
| 1004 | #undef CAM_VIDEO_CONTROL |
|---|
| 1005 | #define CAM_VIDEO_QUALITY_ONLY 1 |
|---|
| 1006 | |
|---|
| 1007 | #define DNG_SUPPORT 1 |
|---|
| 1008 | |
|---|
| 1009 | // #define CAM_EXT_TV_RANGE 1 |
|---|
| 1010 | |
|---|
| 1011 | #undef CAM_UNCACHED_BIT |
|---|
| 1012 | #define CAM_UNCACHED_BIT 0x40000000 |
|---|
| 1013 | |
|---|
| 1014 | #undef CAM_BITMAP_PALETTE |
|---|
| 1015 | // OK looks similar to ixus100 based on forum posts |
|---|
| 1016 | #define CAM_BITMAP_PALETTE 5 |
|---|
| 1017 | |
|---|
| 1018 | #define CAM_QUALITY_OVERRIDE 1 |
|---|
| 1019 | #undef CAM_SENSOR_BITS_PER_PIXEL |
|---|
| 1020 | #define CAM_SENSOR_BITS_PER_PIXEL 12 |
|---|
| 1021 | #undef CAM_WHITE_LEVEL |
|---|
| 1022 | #define CAM_WHITE_LEVEL ((1<<CAM_SENSOR_BITS_PER_PIXEL)-1) |
|---|
| 1023 | #undef CAM_BLACK_LEVEL |
|---|
| 1024 | #define CAM_BLACK_LEVEL 127 |
|---|
| 1025 | |
|---|
| 1026 | #define cam_CFAPattern 0x01000201 // Green Blue Red Green |
|---|
| 1027 | |
|---|
| 1028 | #define CAM_COLORMATRIX1 \ |
|---|
| 1029 | 14052, 10000, -5229, 10000, -1156, 10000, \ |
|---|
| 1030 | -1325, 10000, 9420, 10000, 2252, 10000, \ |
|---|
| 1031 | -498, 10000, 1957, 10000, 4116, 10000 |
|---|
| 1032 | #define cam_CalibrationIlluminant1 21 // D65 |
|---|
| 1033 | |
|---|
| 1034 | // cropping OK |
|---|
| 1035 | #define CAM_JPEG_WIDTH 4000 |
|---|
| 1036 | #define CAM_JPEG_HEIGHT 3000 |
|---|
| 1037 | #define CAM_ACTIVE_AREA_X1 0 // some data all the way to left, normal 8 ? |
|---|
| 1038 | #define CAM_ACTIVE_AREA_Y1 10 |
|---|
| 1039 | #define CAM_ACTIVE_AREA_X2 4072 // or 4024 |
|---|
| 1040 | #define CAM_ACTIVE_AREA_Y2 3040 // or 3041 or 3020 |
|---|
| 1041 | |
|---|
| 1042 | // camera name OK |
|---|
| 1043 | #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData |
|---|
| 1044 | |
|---|
| 1045 | // XXXX |
|---|
| 1046 | #undef CAM_USES_ASPECT_CORRECTION |
|---|
| 1047 | #undef CAM_USES_ASPECT_YCORRECTION |
|---|
| 1048 | #define CAM_USES_ASPECT_CORRECTION 1 //camera uses the modified graphics primitives to map screens an viewports to buffers more sized |
|---|
| 1049 | #define CAM_USES_ASPECT_YCORRECTION 0 //only uses mappings on x coordinate |
|---|
| 1050 | |
|---|
| 1051 | #undef ASPECT_XCORRECTION |
|---|
| 1052 | #define ASPECT_XCORRECTION(x) ( ((x)<<1) ) |
|---|
| 1053 | |
|---|
| 1054 | // Note color palette affects grids! |
|---|
| 1055 | #undef ASPECT_GRID_XCORRECTION |
|---|
| 1056 | #define ASPECT_GRID_XCORRECTION(x) ( (x) ) |
|---|
| 1057 | |
|---|
| 1058 | #undef ASPECT_GRID_YCORRECTION |
|---|
| 1059 | #define ASPECT_GRID_YCORRECTION(y) ( (y) ) |
|---|
| 1060 | |
|---|
| 1061 | #undef ASPECT_VIEWPORT_XCORRECTION |
|---|
| 1062 | #define ASPECT_VIEWPORT_XCORRECTION(x) ASPECT_GRID_XCORRECTION(x) |
|---|
| 1063 | #undef ASPECT_VIEWPORT_YCORRECTION |
|---|
| 1064 | #define ASPECT_VIEWPORT_YCORRECTION(y) ( (y) ) |
|---|
| 1065 | |
|---|
| 1066 | // Note color palette affects games! |
|---|
| 1067 | //games mappings |
|---|
| 1068 | #undef GAMES_SCREEN_WIDTH |
|---|
| 1069 | #undef GAMES_SCREEN_HEIGHT |
|---|
| 1070 | #define GAMES_SCREEN_WIDTH 360 |
|---|
| 1071 | #define GAMES_SCREEN_HEIGHT 240 |
|---|
| 1072 | #undef ASPECT_GAMES_XCORRECTION |
|---|
| 1073 | // 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 resolution |
|---|
| 1074 | // 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 for |
|---|
| 1075 | // other modes in perfect aspect ratio 4/3: slightly better visualization: file menus more readable, ... |
|---|
| 1076 | #define ASPECT_GAMES_XCORRECTION(x) ( ((x)<<1) ) |
|---|
| 1077 | #undef ASPECT_GAMES_YCORRECTION |
|---|
| 1078 | #define ASPECT_GAMES_YCORRECTION(y) ( (y) ) //none |
|---|
| 1079 | |
|---|
| 1080 | #define CAM_ZEBRA_ASPECT_ADJUST 1 |
|---|
| 1081 | |
|---|
| 1082 | #define CAM_CHDK_PTP 1 // include CHDK PTP support |
|---|
| 1083 | |
|---|
| 1084 | //---------------------------------------------------------- |
|---|
| 1085 | |
|---|
| 1086 | |
|---|
| 1087 | //========================================================== |
|---|
| 1088 | // SD-Series (IXUS-Series) |
|---|
| 1089 | //========================================================== |
|---|
| 1090 | #elif defined (CAMERA_ixus40_sd300) |
|---|
| 1091 | #define CAM_PROPSET 1 |
|---|
| 1092 | |
|---|
| 1093 | #define CAM_RAW_ROWPIX 2400 |
|---|
| 1094 | #define CAM_RAW_ROWS 1766 |
|---|
| 1095 | |
|---|
| 1096 | #define CAM_USE_ZOOM_FOR_MF 1 |
|---|
| 1097 | #undef CAM_HAS_ERASE_BUTTON |
|---|
| 1098 | #undef CAM_HAS_IRIS_DIAPHRAGM |
|---|
| 1099 | #define CAM_HAS_ND_FILTER 1 |
|---|
| 1100 | #undef CAM_HAS_MANUAL_FOCUS |
|---|
| 1101 | #undef CAM_HAS_USER_TV_MODES |
|---|
| 1102 | #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 |
|---|
| 1103 | #undef CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO |
|---|
| 1104 | #undef CAM_HAS_IS |
|---|
| 1105 | #undef CAM_CONSOLE_LOG_ENABLED |
|---|
| 1106 | |
|---|
| 1107 | |
|---|
| 1108 | #define DNG_SUPPORT 1 |
|---|
| 1109 | // pattern |
|---|
| 1110 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 1111 | // color |
|---|
| 1112 | #define CAM_COLORMATRIX1 \ |
|---|
| 1113 | 652674, 1000000, -172074, 1000000, -107575, 1000000, \ |
|---|
| 1114 | -139063, 1000000, 594517, 1000000, 60252, 1000000, \ |
|---|
| 1115 | -9088, 1000000, 82013, 1000000, 238080, 1000000 |
|---|
| 1116 | |
|---|
| 1117 | #define cam_CalibrationIlluminant1 1 // Daylight |
|---|
| 1118 | // cropping |
|---|
| 1119 | #define CAM_JPEG_WIDTH 2272 |
|---|
| 1120 | #define CAM_JPEG_HEIGHT 1704 |
|---|
| 1121 | #define CAM_ACTIVE_AREA_X1 12 |
|---|
| 1122 | #define CAM_ACTIVE_AREA_Y1 12 |
|---|
| 1123 | #define CAM_ACTIVE_AREA_X2 2356 |
|---|
| 1124 | #define CAM_ACTIVE_AREA_Y2 1764 |
|---|
| 1125 | // camera name |
|---|
| 1126 | #define PARAM_CAMERA_NAME 2 // parameter number for GetParameterData |
|---|
| 1127 | //---------------------------------------------------------- |
|---|
| 1128 | |
|---|
| 1129 | #elif defined (CAMERA_ixus50_sd400) |
|---|
| 1130 | #define CAM_PROPSET 1 |
|---|
| 1131 | |
|---|
| 1132 | #define CAM_RAW_ROWPIX 2672 // for 5 MP |
|---|
| 1133 | #define CAM_RAW_ROWS 1968 // for 5 MP |
|---|
| 1134 | |
|---|
| 1135 | #undef CAM_SYNCH |
|---|
| 1136 | #undef CAM_USE_ZOOM_FOR_MF |
|---|
| 1137 | #undef CAM_HAS_ERASE_BUTTON |
|---|
| 1138 | #undef CAM_HAS_IRIS_DIAPHRAGM |
|---|
| 1139 | #define CAM_HAS_ND_FILTER 1 |
|---|
| 1140 | #undef CAM_HAS_MANUAL_FOCUS |
|---|
| 1141 | #undef CAM_HAS_USER_TV_MODES |
|---|
| 1142 | #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 |
|---|
| 1143 | #undef CAM_HAS_IS |
|---|
| 1144 | //#define CAM_CONSOLE_LOG_ENABLED 1 |
|---|
| 1145 | #undef CAM_VIDEO_CONTROL |
|---|
| 1146 | #define DNG_SUPPORT 1 |
|---|
| 1147 | // pattern |
|---|
| 1148 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 1149 | // color |
|---|
| 1150 | #define CAM_COLORMATRIX1 \ |
|---|
| 1151 | 685247, 1000000, -204939, 1000000, -106531, 1000000, \ |
|---|
| 1152 | -267616, 1000000, 790509, 1000000, 73359, 1000000, \ |
|---|
| 1153 | 32401, 1000000, 15655, 1000000, 314892, 1000000 |
|---|
| 1154 | |
|---|
| 1155 | #define cam_CalibrationIlluminant1 1 // Daylight |
|---|
| 1156 | // cropping |
|---|
| 1157 | #define CAM_JPEG_WIDTH 2592 |
|---|
| 1158 | #define CAM_JPEG_HEIGHT 1944 |
|---|
| 1159 | #define CAM_ACTIVE_AREA_X1 12 |
|---|
| 1160 | #define CAM_ACTIVE_AREA_Y1 8 |
|---|
| 1161 | #define CAM_ACTIVE_AREA_X2 2628 |
|---|
| 1162 | #define CAM_ACTIVE_AREA_Y2 1968 |
|---|
| 1163 | // camera name |
|---|
| 1164 | #define PARAM_CAMERA_NAME 2 // parameter number for GetParameterData |
|---|
| 1165 | //---------------------------------------------------------- |
|---|
| 1166 | |
|---|
| 1167 | #elif defined (CAMERA_ixusizoom_sd30) |
|---|
| 1168 | #define CAM_PROPSET 1 |
|---|
| 1169 | |
|---|
| 1170 | #define CAM_RAW_ROWPIX 2672 // for 5 MP |
|---|
| 1171 | #define CAM_RAW_ROWS 1968 // for 5 MP |
|---|
| 1172 | |
|---|
| 1173 | #undef CAM_SYNCH |
|---|
| 1174 | #undef CAM_USE_ZOOM_FOR_MF |
|---|
| 1175 | #undef CAM_HAS_ERASE_BUTTON |
|---|
| 1176 | #undef CAM_HAS_IRIS_DIAPHRAGM |
|---|
| 1177 | #define CAM_HAS_ND_FILTER 1 |
|---|
| 1178 | #undef CAM_HAS_MANUAL_FOCUS |
|---|
| 1179 | #undef CAM_HAS_USER_TV_MODES |
|---|
| 1180 | #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 |
|---|
| 1181 | #undef CAM_HAS_IS |
|---|
| 1182 | //#define CAM_CONSOLE_LOG_ENABLED 1 |
|---|
| 1183 | #undef CAM_VIDEO_CONTROL |
|---|
| 1184 | //---------------------------------------------------------- |
|---|
| 1185 | |
|---|
| 1186 | #elif defined (CAMERA_ixus55_sd450) |
|---|
| 1187 | #define CAM_PROPSET 1 |
|---|
| 1188 | |
|---|
| 1189 | #define CAM_RAW_ROWPIX 2672 // for 5 MP |
|---|
| 1190 | #define CAM_RAW_ROWS 1968 // for 5 MP |
|---|
| 1191 | |
|---|
| 1192 | #undef CAM_USE_ZOOM_FOR_MF |
|---|
| 1193 | #undef CAM_HAS_ERASE_BUTTON |
|---|
| 1194 | #undef CAM_HAS_IRIS_DIAPHRAGM |
|---|
| 1195 | #define CAM_HAS_ND_FILTER 1 |
|---|
| 1196 | #undef CAM_HAS_MANUAL_FOCUS |
|---|
| 1197 | #undef CAM_HAS_USER_TV_MODES |
|---|
| 1198 | #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 |
|---|
| 1199 | #undef CAM_HAS_IS |
|---|
| 1200 | #define CAM_AF_SCAN_DURING_VIDEO_RECORD 2 |
|---|
| 1201 | #define DNG_SUPPORT 1 |
|---|
| 1202 | // pattern |
|---|
| 1203 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 1204 | // color |
|---|
| 1205 | #define CAM_COLORMATRIX1 \ |
|---|
| 1206 | 536034, 1000000, -173429, 1000000, -89823, 1000000, \ |
|---|
| 1207 | -290416, 1000000, 735807, 1000000, 47894, 1000000, \ |
|---|
| 1208 | -71455, 1000000, 114314, 1000000, 274533, 1000000 |
|---|
| 1209 | |
|---|
| 1210 | #define cam_CalibrationIlluminant1 1 // Daylight |
|---|
| 1211 | // cropping |
|---|
| 1212 | #define CAM_JPEG_WIDTH 2592 |
|---|
| 1213 | #define CAM_JPEG_HEIGHT 1944 |
|---|
| 1214 | #define CAM_ACTIVE_AREA_X1 12 |
|---|
| 1215 | #define CAM_ACTIVE_AREA_Y1 8 |
|---|
| 1216 | #define CAM_ACTIVE_AREA_X2 2628 |
|---|
| 1217 | #define CAM_ACTIVE_AREA_Y2 1968 |
|---|
| 1218 | // camera name |
|---|
| 1219 | #define PARAM_CAMERA_NAME 3 // parameter number for GetParameterData |
|---|
| 1220 | #define DNG_EXT_FROM ".DPS" |
|---|
| 1221 | //---------------------------------------------------------- |
|---|
| 1222 | |
|---|
| 1223 | #elif defined (CAMERA_ixus60_sd600) |
|---|
| 1224 | #define CAM_PROPSET 1 |
|---|
| 1225 | |
|---|
| 1226 | #define CAM_RAW_ROWPIX 2888 // for 6 MP |
|---|
| 1227 | #define CAM_RAW_ROWS 2136 // for 6 MP |
|---|
| 1228 | |
|---|
| 1229 | #undef CAM_SYNCH |
|---|
| 1230 | #undef CAM_USE_ZOOM_FOR_MF |
|---|
| 1231 | #undef CAM_HAS_ERASE_BUTTON |
|---|
| 1232 | #undef CAM_HAS_IRIS_DIAPHRAGM |
|---|
| 1233 | #define CAM_HAS_ND_FILTER 1 |
|---|
| 1234 | #undef CAM_HAS_MANUAL_FOCUS |
|---|
| 1235 | #undef CAM_HAS_USER_TV_MODES |
|---|
| 1236 | #define CAM_DRAW_EXPOSITION 1 |
|---|
| 1237 | #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 |
|---|
| 1238 | #define CAM_FEATURE_FEATHER 1 |
|---|
| 1239 | |
|---|
| 1240 | // #define CAM_CONSOLE_LOG_ENABLED 1 //100a won't compile if this is defined ("undefined reference to `_iosDevFind'") |
|---|
| 1241 | #undef CAM_CHDK_HAS_EXT_VIDEO_MENU |
|---|
| 1242 | #undef CAM_HAS_IS |
|---|
| 1243 | #define DNG_SUPPORT 1 |
|---|
| 1244 | // pattern |
|---|
| 1245 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 1246 | // color |
|---|
| 1247 | #define CAM_COLORMATRIX1 \ |
|---|
| 1248 | 767398, 1000000, -227658, 1000000, -144213, 1000000, \ |
|---|
| 1249 | -217466, 1000000, 669319, 1000000, 38180, 1000000, \ |
|---|
| 1250 | -23152, 1000000, 77743, 1000000, 238669, 1000000 |
|---|
| 1251 | |
|---|
| 1252 | #define cam_CalibrationIlluminant1 1 // Daylight |
|---|
| 1253 | // cropping |
|---|
| 1254 | #define CAM_JPEG_WIDTH 2816 |
|---|
| 1255 | #define CAM_JPEG_HEIGHT 2112 |
|---|
| 1256 | #define CAM_ACTIVE_AREA_X1 44 |
|---|
| 1257 | #define CAM_ACTIVE_AREA_Y1 8 |
|---|
| 1258 | #define CAM_ACTIVE_AREA_X2 2884 |
|---|
| 1259 | #define CAM_ACTIVE_AREA_Y2 2136 |
|---|
| 1260 | // camera name |
|---|
| 1261 | #define PARAM_CAMERA_NAME 3 // parameter number for GetParameterData |
|---|
| 1262 | //---------------------------------------------------------- |
|---|
| 1263 | |
|---|
| 1264 | #elif defined (CAMERA_ixus65_sd630) |
|---|
| 1265 | #define CAM_PROPSET 1 |
|---|
| 1266 | |
|---|
| 1267 | #define CAM_RAW_ROWPIX 2888 // for 6 MP |
|---|
| 1268 | #define CAM_RAW_ROWS 2136 // for 6 MP |
|---|
| 1269 | |
|---|
| 1270 | #undef CAM_USE_ZOOM_FOR_MF |
|---|
| 1271 | #undef CAM_HAS_ERASE_BUTTON |
|---|
| 1272 | #undef CAM_HAS_IRIS_DIAPHRAGM |
|---|
| 1273 | #define CAM_HAS_ND_FILTER 1 |
|---|
| 1274 | #undef CAM_HAS_MANUAL_FOCUS |
|---|
| 1275 | #undef CAM_HAS_USER_TV_MODES |
|---|
| 1276 | #define CAM_DRAW_EXPOSITION 1 |
|---|
| 1277 | #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 |
|---|
| 1278 | #undef CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO |
|---|
| 1279 | #define CAM_FEATURE_FEATHER 1 |
|---|
| 1280 | |
|---|
| 1281 | #define CAM_CONSOLE_LOG_ENABLED 1 |
|---|
| 1282 | #undef CAM_HAS_IS |
|---|
| 1283 | #undef CAM_CHDK_HAS_EXT_VIDEO_MENU |
|---|
| 1284 | #define DNG_SUPPORT 1 |
|---|
| 1285 | // pattern |
|---|
| 1286 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 1287 | // color |
|---|
| 1288 | #define CAM_COLORMATRIX1 \ |
|---|
| 1289 | 783384, 1000000, -227078, 1000000, -127919, 1000000, \ |
|---|
| 1290 | -181247, 1000000, 661743, 1000000, 58868, 1000000, \ |
|---|
| 1291 | 25727, 1000000, 43891, 1000000, 247655, 1000000 |
|---|
| 1292 | |
|---|
| 1293 | #define cam_CalibrationIlluminant1 1 // Daylight |
|---|
| 1294 | // cropping |
|---|
| 1295 | #define CAM_JPEG_WIDTH 2816 |
|---|
| 1296 | #define CAM_JPEG_HEIGHT 2112 |
|---|
| 1297 | #define CAM_ACTIVE_AREA_X1 44 |
|---|
| 1298 | #define CAM_ACTIVE_AREA_Y1 8 |
|---|
| 1299 | #define CAM_ACTIVE_AREA_X2 2884 |
|---|
| 1300 | #define CAM_ACTIVE_AREA_Y2 2136 |
|---|
| 1301 | // camera name |
|---|
| 1302 | #define PARAM_CAMERA_NAME 3 // parameter number for GetParameterData |
|---|
| 1303 | #define DNG_EXT_FROM ".DPS" |
|---|
| 1304 | //---------------------------------------------------------- |
|---|
| 1305 | |
|---|
| 1306 | #elif defined (CAMERA_ixus75_sd750) |
|---|
| 1307 | #define CAM_PROPSET 2 |
|---|
| 1308 | |
|---|
| 1309 | #define CAM_RAW_ROWPIX 3152 // for 7 MP |
|---|
| 1310 | #define CAM_RAW_ROWS 2340 // for 7 MP |
|---|
| 1311 | |
|---|
| 1312 | /* |
|---|
| 1313 | #undef CAM_USE_ZOOM_FOR_MF |
|---|
| 1314 | #undef CAM_HAS_ERASE_BUTTON |
|---|
| 1315 | #undef CAM_HAS_IRIS_DIAPHRAGM |
|---|
| 1316 | #define CAM_HAS_ND_FILTER 1 |
|---|
| 1317 | #undef CAM_HAS_MANUAL_FOCUS |
|---|
| 1318 | #undef CAM_HAS_USER_TV_MODES |
|---|
| 1319 | #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 |
|---|
| 1320 | #undef CAM_HAS_IS |
|---|
| 1321 | */ |
|---|
| 1322 | |
|---|
| 1323 | #undef CAM_SWIVEL_SCREEN // Camera has rotated LCD screen |
|---|
| 1324 | #undef CAM_USE_ZOOM_FOR_MF // Zoom lever can be used for manual focus adjustments |
|---|
| 1325 | #undef CAM_ADJUSTABLE_ALT_BUTTON // ALT-button can be set from menu |
|---|
| 1326 | #undef CAM_REMOTE // Camera supports USB-remote |
|---|
| 1327 | #define CAM_MULTIPART 1 // Camera supports SD-card multipartitioning |
|---|
| 1328 | #define CAM_HAS_ZOOM_LEVER 1 // Camera has dedicated zoom buttons |
|---|
| 1329 | #undef CAM_DRAW_EXPOSITION // Output expo-pair on screen (for cameras which (sometimes) don't do that) |
|---|
| 1330 | #undef CAM_HAS_ERASE_BUTTON // Camera has dedicated erase button |
|---|
| 1331 | #undef CAM_HAS_IRIS_DIAPHRAGM |
|---|
| 1332 | #define CAM_HAS_ND_FILTER 1 // Camera has build-in ND filter |
|---|
| 1333 | #undef CAM_CAN_SD_OVER_NOT_IN_MF // Camera allows subject distance (focus) override when not in manual focus mode |
|---|
| 1334 | #undef CAM_CAN_SD_OVERRIDE // Camera allows to do subject distance override |
|---|
| 1335 | #undef CAM_HAS_MANUAL_FOCUS // Camera has manual focus mode |
|---|
| 1336 | #define CAM_HAS_USER_TV_MODES 1 // Camera has tv-priority or manual modes with ability to set tv value |
|---|
| 1337 | #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 // On some cameras Canon shoot menu has additional functionality and useful in this case to see CHDK OSD in this mode |
|---|
| 1338 | // #undef CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO // adress for zoom_status missing, probably more |
|---|
| 1339 | #define CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO 1 // Camera can unlock optical zoom in video (if it is locked) |
|---|
| 1340 | #define CAM_FEATURE_FEATHER 1 // Cameras with "feather" or touch wheel. |
|---|
| 1341 | #undef CAM_HAS_IS // Camera has image stabilizer |
|---|
| 1342 | |
|---|
| 1343 | // #define CAM_CONSOLE_LOG_ENABLED 1 // Development: internal camera stdout -> A/stdout.txt |
|---|
| 1344 | #define DNG_SUPPORT 1 |
|---|
| 1345 | // pattern |
|---|
| 1346 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 1347 | // color |
|---|
| 1348 | #define CAM_COLORMATRIX1 \ |
|---|
| 1349 | 689833, 1000000, -198299, 1000000, -101299, 1000000, \ |
|---|
| 1350 | -164267, 1000000, 667466, 1000000, 74132, 1000000, \ |
|---|
| 1351 | -36515, 1000000, 123872, 1000000, 248498, 1000000 |
|---|
| 1352 | |
|---|
| 1353 | #define cam_CalibrationIlluminant1 1 // Daylight |
|---|
| 1354 | // cropping |
|---|
| 1355 | #define CAM_JPEG_WIDTH 3072 |
|---|
| 1356 | #define CAM_JPEG_HEIGHT 2304 |
|---|
| 1357 | #define CAM_ACTIVE_AREA_X1 38 |
|---|
| 1358 | #define CAM_ACTIVE_AREA_Y1 14 |
|---|
| 1359 | #define CAM_ACTIVE_AREA_X2 3146 |
|---|
| 1360 | #define CAM_ACTIVE_AREA_Y2 2338 |
|---|
| 1361 | // camera name |
|---|
| 1362 | #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData |
|---|
| 1363 | |
|---|
| 1364 | #define DNG_EXT_FROM ".DPS" |
|---|
| 1365 | //---------------------------------------------------------- |
|---|
| 1366 | |
|---|
| 1367 | #elif defined (CAMERA_ixus70_sd1000) |
|---|
| 1368 | #define CAM_PROPSET 2 |
|---|
| 1369 | |
|---|
| 1370 | #define CAM_RAW_ROWPIX 3152 // for 7 MP |
|---|
| 1371 | #define CAM_RAW_ROWS 2340 // for 7 MP |
|---|
| 1372 | |
|---|
| 1373 | #undef CAM_USE_ZOOM_FOR_MF |
|---|
| 1374 | #undef CAM_HAS_ERASE_BUTTON |
|---|
| 1375 | #undef CAM_HAS_IRIS_DIAPHRAGM |
|---|
| 1376 | #define CAM_HAS_ND_FILTER 1 |
|---|
| 1377 | #undef CAM_HAS_MANUAL_FOCUS |
|---|
| 1378 | #undef CAM_HAS_USER_TV_MODES |
|---|
| 1379 | #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 |
|---|
| 1380 | #undef CAM_HAS_IS |
|---|
| 1381 | #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 |
|---|
| 1382 | #define DNG_SUPPORT 1 |
|---|
| 1383 | #define CAM_MULTIPART 1 |
|---|
| 1384 | // pattern |
|---|
| 1385 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 1386 | // color |
|---|
| 1387 | #define CAM_COLORMATRIX1 \ |
|---|
| 1388 | 652674, 1000000, -172074, 1000000, -107575, 1000000, \ |
|---|
| 1389 | -139063, 1000000, 594517, 1000000, 60252, 1000000, \ |
|---|
| 1390 | -9088, 1000000, 82013, 1000000, 238048, 1000000 |
|---|
| 1391 | |
|---|
| 1392 | #define cam_CalibrationIlluminant1 1 // Daylight |
|---|
| 1393 | // cropping |
|---|
| 1394 | #define CAM_JPEG_WIDTH 3072 |
|---|
| 1395 | #define CAM_JPEG_HEIGHT 2304 |
|---|
| 1396 | #define CAM_ACTIVE_AREA_X1 38 |
|---|
| 1397 | #define CAM_ACTIVE_AREA_Y1 14 |
|---|
| 1398 | #define CAM_ACTIVE_AREA_X2 3146 |
|---|
| 1399 | #define CAM_ACTIVE_AREA_Y2 2338 |
|---|
| 1400 | // camera name |
|---|
| 1401 | #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData |
|---|
| 1402 | |
|---|
| 1403 | #define DNG_EXT_FROM ".DPS" |
|---|
| 1404 | |
|---|
| 1405 | #define CAM_EXT_TV_RANGE 1 |
|---|
| 1406 | //---------------------------------------------------------- |
|---|
| 1407 | |
|---|
| 1408 | #elif defined (CAMERA_ixus80_sd1100) |
|---|
| 1409 | #define CAM_PROPSET 2 |
|---|
| 1410 | #define CAM_DRYOS 1 |
|---|
| 1411 | |
|---|
| 1412 | #define CAM_RAW_ROWPIX 3336 // for new 8 MP |
|---|
| 1413 | #define CAM_RAW_ROWS 2480 // for new 8 MP |
|---|
| 1414 | |
|---|
| 1415 | #undef CAM_USE_ZOOM_FOR_MF |
|---|
| 1416 | #undef CAM_HAS_ERASE_BUTTON |
|---|
| 1417 | #undef CAM_HAS_IRIS_DIAPHRAGM |
|---|
| 1418 | #define CAM_HAS_ND_FILTER 1 |
|---|
| 1419 | #undef CAM_HAS_MANUAL_FOCUS |
|---|
| 1420 | #undef CAM_HAS_USER_TV_MODES |
|---|
| 1421 | #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 |
|---|
| 1422 | // TODO / test |
|---|
| 1423 | #undef CAM_REMOTE |
|---|
| 1424 | #define CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO 1 |
|---|
| 1425 | #undef CAM_CAN_MUTE_MICROPHONE |
|---|
| 1426 | #define CAM_AF_SCAN_DURING_VIDEO_RECORD 0 |
|---|
| 1427 | #define DNG_SUPPORT 1 |
|---|
| 1428 | // pattern |
|---|
| 1429 | #define cam_CFAPattern 0x01000201 // Green Blue Red Green |
|---|
| 1430 | // color |
|---|
| 1431 | #define CAM_COLORMATRIX1 \ |
|---|
| 1432 | 893969, 1000000, -343107, 1000000, -119590, 1000000, \ |
|---|
| 1433 | -41350, 1000000, 581255, 1000000, 49523, 1000000, \ |
|---|
| 1434 | 24221, 1000000, 47554, 1000000, 209996, 1000000 |
|---|
| 1435 | |
|---|
| 1436 | #define cam_CalibrationIlluminant1 1 // Daylight |
|---|
| 1437 | // cropping |
|---|
| 1438 | #define CAM_JPEG_WIDTH 3264 |
|---|
| 1439 | #define CAM_JPEG_HEIGHT 2448 |
|---|
| 1440 | #define CAM_ACTIVE_AREA_X1 6 |
|---|
| 1441 | #define CAM_ACTIVE_AREA_Y1 6 |
|---|
| 1442 | #define CAM_ACTIVE_AREA_X2 3304 |
|---|
| 1443 | #define CAM_ACTIVE_AREA_Y2 2476 |
|---|
| 1444 | // camera name |
|---|
| 1445 | #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData |
|---|
| 1446 | |
|---|
| 1447 | #define CAM_EXT_TV_RANGE 1 |
|---|
| 1448 | //---------------------------------------------------------- |
|---|
| 1449 | |
|---|
| 1450 | #elif defined (CAMERA_ixus700_sd500) |
|---|
| 1451 | #define CAM_PROPSET 1 |
|---|
| 1452 | |
|---|
| 1453 | #define CAM_RAW_ROWPIX 3152 // for 7 MP |
|---|
| 1454 | #define CAM_RAW_ROWS 2340 // for 7 MP |
|---|
| 1455 | |
|---|
| 1456 | #undef CAM_SYNCH |
|---|
| 1457 | #undef CAM_USE_ZOOM_FOR_MF |
|---|
| 1458 | #define CAM_DRAW_EXPOSITION 1 |
|---|
| 1459 | #undef CAM_HAS_ERASE_BUTTON |
|---|
| 1460 | #undef CAM_HAS_IRIS_DIAPHRAGM |
|---|
| 1461 | #define CAM_HAS_ND_FILTER 1 |
|---|
| 1462 | #undef CAM_HAS_MANUAL_FOCUS |
|---|
| 1463 | #undef CAM_HAS_USER_TV_MODES |
|---|
| 1464 | #undef CAM_CAN_SD_OVERRIDE |
|---|
| 1465 | #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 |
|---|
| 1466 | #undef CAM_HAS_IS |
|---|
| 1467 | #define CAM_MULTIPART 1 |
|---|
| 1468 | #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 |
|---|
| 1469 | #define DNG_SUPPORT 1 |
|---|
| 1470 | // pattern |
|---|
| 1471 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 1472 | // color |
|---|
| 1473 | #define CAM_COLORMATRIX1 \ |
|---|
| 1474 | 15265, 1, -6193, 1, -1558, 1, \ |
|---|
| 1475 | -4125, 1, 12116, 1, 2010, 1, \ |
|---|
| 1476 | -888, 1, 1639, 1, 5220, 1 |
|---|
| 1477 | |
|---|
| 1478 | #define cam_CalibrationIlluminant1 17 // Standard light A |
|---|
| 1479 | // cropping |
|---|
| 1480 | #define CAM_JPEG_WIDTH 3072 |
|---|
| 1481 | #define CAM_JPEG_HEIGHT 2304 |
|---|
| 1482 | #define CAM_ACTIVE_AREA_X1 38 |
|---|
| 1483 | #define CAM_ACTIVE_AREA_Y1 14 |
|---|
| 1484 | #define CAM_ACTIVE_AREA_X2 3146 |
|---|
| 1485 | #define CAM_ACTIVE_AREA_Y2 2338 |
|---|
| 1486 | // camera name |
|---|
| 1487 | #define PARAM_CAMERA_NAME 2 // parameter number for GetParameterData |
|---|
| 1488 | #define DNG_EXT_FROM ".DPS" |
|---|
| 1489 | //---------------------------------------------------------- |
|---|
| 1490 | |
|---|
| 1491 | #elif defined (CAMERA_ixus750_sd550) |
|---|
| 1492 | #define CAM_PROPSET 1 |
|---|
| 1493 | |
|---|
| 1494 | #define CAM_RAW_ROWPIX 3152 // for 7 MP |
|---|
| 1495 | #define CAM_RAW_ROWS 2340 // for 7 MP |
|---|
| 1496 | |
|---|
| 1497 | #define CAM_USE_ZOOM_FOR_MF 1 |
|---|
| 1498 | #define CAM_DRAW_EXPOSITION 1 |
|---|
| 1499 | #undef CAM_HAS_ERASE_BUTTON |
|---|
| 1500 | #undef CAM_HAS_IRIS_DIAPHRAGM |
|---|
| 1501 | #define CAM_HAS_ND_FILTER 1 |
|---|
| 1502 | #undef CAM_HAS_MANUAL_FOCUS |
|---|
| 1503 | #undef CAM_HAS_USER_TV_MODES |
|---|
| 1504 | #define CAM_CAN_SD_OVERRIDE 1 |
|---|
| 1505 | #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 |
|---|
| 1506 | #undef CAM_HAS_IS |
|---|
| 1507 | #define CAM_MULTIPART 1 |
|---|
| 1508 | #undef CAM_SYNCH |
|---|
| 1509 | #define DNG_SUPPORT 1 |
|---|
| 1510 | // pattern |
|---|
| 1511 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 1512 | // color |
|---|
| 1513 | #define CAM_COLORMATRIX1 \ |
|---|
| 1514 | 580280, 1000000, -172239, 1000000, -89707, 1000000, \ |
|---|
| 1515 | -206596, 1000000, 634926, 1000000, 63877, 1000000, \ |
|---|
| 1516 | 10377, 1000000, 62053, 1000000, 242646, 1000000 |
|---|
| 1517 | |
|---|
| 1518 | #define cam_CalibrationIlluminant1 1 // Daylight |
|---|
| 1519 | // cropping |
|---|
| 1520 | #define CAM_JPEG_WIDTH 3072 |
|---|
| 1521 | #define CAM_JPEG_HEIGHT 2304 |
|---|
| 1522 | #define CAM_ACTIVE_AREA_X1 36 |
|---|
| 1523 | #define CAM_ACTIVE_AREA_Y1 12 |
|---|
| 1524 | #define CAM_ACTIVE_AREA_X2 3148 |
|---|
| 1525 | #define CAM_ACTIVE_AREA_Y2 2340 |
|---|
| 1526 | // camera name |
|---|
| 1527 | #define PARAM_CAMERA_NAME 3 // parameter number for GetParameterData |
|---|
| 1528 | //---------------------------------------------------------- |
|---|
| 1529 | |
|---|
| 1530 | #elif defined (CAMERA_ixus800_sd700) |
|---|
| 1531 | #define CAM_PROPSET 1 |
|---|
| 1532 | |
|---|
| 1533 | #define CAM_RAW_ROWPIX 2888 // for 6 MP |
|---|
| 1534 | #define CAM_RAW_ROWS 2136 // for 6 MP |
|---|
| 1535 | |
|---|
| 1536 | #undef CAM_USE_ZOOM_FOR_MF |
|---|
| 1537 | #define CAM_DRAW_EXPOSITION 1 |
|---|
| 1538 | #undef CAM_HAS_ERASE_BUTTON |
|---|
| 1539 | #undef CAM_HAS_IRIS_DIAPHRAGM |
|---|
| 1540 | #define CAM_HAS_ND_FILTER 1 |
|---|
| 1541 | #undef CAM_HAS_MANUAL_FOCUS |
|---|
| 1542 | #undef CAM_HAS_USER_TV_MODES |
|---|
| 1543 | #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 |
|---|
| 1544 | #define CAM_AF_SCAN_DURING_VIDEO_RECORD 2 |
|---|
| 1545 | #define DNG_SUPPORT 1 |
|---|
| 1546 | |
|---|
| 1547 | // Warning! DNG4PS2 has both ixus800 and sd700 support with different CFA patterns and color matrices. |
|---|
| 1548 | // Used settings for IXUS800 |
|---|
| 1549 | |
|---|
| 1550 | // pattern |
|---|
| 1551 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 1552 | // color |
|---|
| 1553 | #define CAM_COLORMATRIX1 \ |
|---|
| 1554 | 14062, 1, -5199, 1, -1446, 1, \ |
|---|
| 1555 | -4712, 1, 12470, 1, 2243, 1, \ |
|---|
| 1556 | -1286, 1, 2028, 1, 4836, 1 |
|---|
| 1557 | |
|---|
| 1558 | #define cam_CalibrationIlluminant1 17 // Standard light A |
|---|
| 1559 | // cropping |
|---|
| 1560 | #define CAM_JPEG_WIDTH 2816 |
|---|
| 1561 | #define CAM_JPEG_HEIGHT 2112 |
|---|
| 1562 | #define CAM_ACTIVE_AREA_X1 44 |
|---|
| 1563 | #define CAM_ACTIVE_AREA_Y1 8 |
|---|
| 1564 | #define CAM_ACTIVE_AREA_X2 2884 |
|---|
| 1565 | #define CAM_ACTIVE_AREA_Y2 2136 |
|---|
| 1566 | // camera name |
|---|
| 1567 | #define PARAM_CAMERA_NAME 3 // parameter number for GetParameterData |
|---|
| 1568 | #define DNG_EXT_FROM ".DPS" |
|---|
| 1569 | //---------------------------------------------------------- |
|---|
| 1570 | |
|---|
| 1571 | #elif defined (CAMERA_ixus850_sd800) |
|---|
| 1572 | #define CAM_PROPSET 1 |
|---|
| 1573 | |
|---|
| 1574 | #define CAM_RAW_ROWPIX 3152 // for 7 MP |
|---|
| 1575 | #define CAM_RAW_ROWS 2340 // for 7 MP |
|---|
| 1576 | |
|---|
| 1577 | #undef CAM_USE_ZOOM_FOR_MF |
|---|
| 1578 | #undef CAM_HAS_ERASE_BUTTON |
|---|
| 1579 | #undef CAM_HAS_IRIS_DIAPHRAGM |
|---|
| 1580 | #define CAM_HAS_ND_FILTER 1 |
|---|
| 1581 | #undef CAM_HAS_MANUAL_FOCUS |
|---|
| 1582 | #undef CAM_HAS_USER_TV_MODES |
|---|
| 1583 | #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 |
|---|
| 1584 | #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 |
|---|
| 1585 | #define CAM_MULTIPART 1 |
|---|
| 1586 | #define DNG_SUPPORT 1 |
|---|
| 1587 | // pattern |
|---|
| 1588 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 1589 | // color |
|---|
| 1590 | #define CAM_COLORMATRIX1 \ |
|---|
| 1591 | 661014, 1000000, -189364, 1000000, -115797, 1000000, \ |
|---|
| 1592 | -168772, 1000000, 661827, 1000000, 47392, 1000000, \ |
|---|
| 1593 | -35846, 1000000, 107148, 1000000, 233705, 1000000 |
|---|
| 1594 | |
|---|
| 1595 | #define cam_CalibrationIlluminant1 17 // Standard light A |
|---|
| 1596 | // cropping |
|---|
| 1597 | #define CAM_JPEG_WIDTH 3072 |
|---|
| 1598 | #define CAM_JPEG_HEIGHT 2304 |
|---|
| 1599 | #define CAM_ACTIVE_AREA_X1 12 |
|---|
| 1600 | #define CAM_ACTIVE_AREA_Y1 8 |
|---|
| 1601 | #define CAM_ACTIVE_AREA_X2 3108 |
|---|
| 1602 | #define CAM_ACTIVE_AREA_Y2 2332 |
|---|
| 1603 | // camera name |
|---|
| 1604 | #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData |
|---|
| 1605 | |
|---|
| 1606 | #define DNG_EXT_FROM ".DPS" |
|---|
| 1607 | //---------------------------------------------------------- |
|---|
| 1608 | |
|---|
| 1609 | #elif defined (CAMERA_ixus900_sd900) |
|---|
| 1610 | #define CAM_PROPSET 1 // ToDo: test if correct |
|---|
| 1611 | |
|---|
| 1612 | #define CAM_RAW_ROWPIX 3672 // value from RAW file (3648px + 24px) |
|---|
| 1613 | #define CAM_RAW_ROWS 2760 // value from RAW file (2736 + 24px) |
|---|
| 1614 | |
|---|
| 1615 | //#undef CAM_USE_ZOOM_FOR_MF |
|---|
| 1616 | #define CAM_DRAW_EXPOSITION 1 // ToDo: test if required |
|---|
| 1617 | #undef CAM_HAS_ERASE_BUTTON |
|---|
| 1618 | #undef CAM_HAS_IRIS_DIAPHRAGM |
|---|
| 1619 | #define CAM_HAS_ND_FILTER 1 |
|---|
| 1620 | //#undef CAM_CAN_SD_OVER_NOT_IN_MF |
|---|
| 1621 | //#undef CAM_CAN_SD_OVERRIDE |
|---|
| 1622 | #undef CAM_HAS_IS |
|---|
| 1623 | #undef CAM_HAS_MANUAL_FOCUS |
|---|
| 1624 | #undef CAM_HAS_USER_TV_MODES |
|---|
| 1625 | #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 // force CHDK OSD to show in record more |
|---|
| 1626 | #define CAM_FEATURE_FEATHER 1 |
|---|
| 1627 | //#define CAM_CONSOLE_LOG_ENABLED 1 // ToDo: LOG stuff is disabled/removed |
|---|
| 1628 | #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 |
|---|
| 1629 | #define CAM_MULTIPART 1 |
|---|
| 1630 | #define DNG_SUPPORT 1 |
|---|
| 1631 | |
|---|
| 1632 | // pattern |
|---|
| 1633 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 1634 | // color (from G7) |
|---|
| 1635 | #define CAM_COLORMATRIX1 \ |
|---|
| 1636 | 575419, 1000000,-185557, 1000000, -77898, 1000000, \ |
|---|
| 1637 | -213702, 1000000, 733569, 1000000, 81514, 1000000, \ |
|---|
| 1638 | -24604, 1000000, 131906, 1000000, 280378, 1000000 |
|---|
| 1639 | /* |
|---|
| 1640 | // SD800 |
|---|
| 1641 | #define CAM_COLORMATRIX1 \ |
|---|
| 1642 | 661014, 1000000, -189364, 1000000, -115797, 1000000, \ |
|---|
| 1643 | -168772, 1000000, 661827, 1000000, 47392, 1000000, \ |
|---|
| 1644 | -35846, 1000000, 107148, 1000000, 233705, 1000000 |
|---|
| 1645 | */ |
|---|
| 1646 | #define cam_CalibrationIlluminant1 1 // ToDo: Daylight (first selectable Illuminant Calibration mode ?) |
|---|
| 1647 | |
|---|
| 1648 | // cropping |
|---|
| 1649 | #define CAM_JPEG_WIDTH 3648 |
|---|
| 1650 | #define CAM_JPEG_HEIGHT 2736 |
|---|
| 1651 | #define CAM_ACTIVE_AREA_X1 14 // ??? from G7, A640 |
|---|
| 1652 | #define CAM_ACTIVE_AREA_Y1 8 // ??? from G7, A640 |
|---|
| 1653 | //#define CAM_ACTIVE_AREA_X2 3672 // from RAW file |
|---|
| 1654 | //#define CAM_ACTIVE_AREA_Y2 2760 // from RAW file |
|---|
| 1655 | #define CAM_ACTIVE_AREA_X2 3682 // ??? from G7, A640, CAM_JPEG_WIDTH + 40 |
|---|
| 1656 | #define CAM_ACTIVE_AREA_Y2 2764 // ??? from G7, A640, CAM_JPEG_HEIGHT + 40 |
|---|
| 1657 | // camera name |
|---|
| 1658 | #define PARAM_CAMERA_NAME 4 // camera param id of EXIF camera model |
|---|
| 1659 | |
|---|
| 1660 | #define DNG_EXT_TO ".DPS" |
|---|
| 1661 | //---------------------------------------------------------- |
|---|
| 1662 | |
|---|
| 1663 | #elif defined (CAMERA_ixus860_sd870) |
|---|
| 1664 | #define CAM_PROPSET 2 |
|---|
| 1665 | #define CAM_DRYOS 1 |
|---|
| 1666 | |
|---|
| 1667 | #define CAM_RAW_ROWPIX 3336 // for new 8 MP |
|---|
| 1668 | #define CAM_RAW_ROWS 2480 // for new 8 MP |
|---|
| 1669 | |
|---|
| 1670 | #undef CAM_USE_ZOOM_FOR_MF |
|---|
| 1671 | #undef CAM_HAS_ERASE_BUTTON |
|---|
| 1672 | #undef CAM_HAS_IRIS_DIAPHRAGM |
|---|
| 1673 | #define CAM_HAS_ND_FILTER 1 |
|---|
| 1674 | #undef CAM_HAS_MANUAL_FOCUS |
|---|
| 1675 | #undef CAM_HAS_USER_TV_MODES |
|---|
| 1676 | #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 |
|---|
| 1677 | #define CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO 1 |
|---|
| 1678 | #undef CAM_CAN_MUTE_MICROPHONE |
|---|
| 1679 | #undef CAM_VIDEO_CONTROL |
|---|
| 1680 | #define DNG_SUPPORT 1 |
|---|
| 1681 | // pattern |
|---|
| 1682 | #define cam_CFAPattern 0x01000201 // Green Blue Red Green |
|---|
| 1683 | // color |
|---|
| 1684 | #define CAM_COLORMATRIX1 \ |
|---|
| 1685 | 747939, 1000000, -268233, 1000000, -129266, 1000000, \ |
|---|
| 1686 | -50633, 1000000, 515687, 1000000, 23509, 1000000, \ |
|---|
| 1687 | -21341, 1000000, 76495, 1000000, 186385, 1000000 |
|---|
| 1688 | |
|---|
| 1689 | #define cam_CalibrationIlluminant1 1 // Daylight |
|---|
| 1690 | // cropping |
|---|
| 1691 | #define CAM_JPEG_WIDTH 3264 |
|---|
| 1692 | #define CAM_JPEG_HEIGHT 2448 |
|---|
| 1693 | #define CAM_ACTIVE_AREA_X1 10 |
|---|
| 1694 | #define CAM_ACTIVE_AREA_Y1 8 |
|---|
| 1695 | #define CAM_ACTIVE_AREA_X2 3302 |
|---|
| 1696 | #define CAM_ACTIVE_AREA_Y2 2474 |
|---|
| 1697 | // camera name |
|---|
| 1698 | #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData |
|---|
| 1699 | |
|---|
| 1700 | #define DNG_EXT_FROM ".CR2" |
|---|
| 1701 | //---------------------------------------------------------- |
|---|
| 1702 | |
|---|
| 1703 | #elif defined (CAMERA_ixus870_sd880) |
|---|
| 1704 | // Camera details |
|---|
| 1705 | #define CAM_DRYOS 1 |
|---|
| 1706 | #define CAM_PROPSET 2 |
|---|
| 1707 | |
|---|
| 1708 | #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 |
|---|
| 1709 | #define CAM_BITMAP_PALETTE 1 |
|---|
| 1710 | #define CAM_BRACKETING 1 // XXX |
|---|
| 1711 | #define CAM_CAN_SD_OVER_NOT_IN_MF 1 |
|---|
| 1712 | #define CAM_CAN_SD_OVERRIDE 1 |
|---|
| 1713 | #define CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO 1 |
|---|
| 1714 | #define CAM_EXT_TV_RANGE 1 |
|---|
| 1715 | #define CAM_HAS_IS 1 |
|---|
| 1716 | #define CAM_HAS_JOGDIAL 1 |
|---|
| 1717 | #define CAM_HAS_ND_FILTER 1 |
|---|
| 1718 | #define CAM_HAS_ZOOM_LEVER 1 |
|---|
| 1719 | #define CAM_MULTIPART 1 |
|---|
| 1720 | #define CAM_REMOTE 1 |
|---|
| 1721 | #define CAM_SYNCH 1 |
|---|
| 1722 | #define CAM_CHDK_PTP 1 |
|---|
| 1723 | #undef CAM_UNCACHED_BIT |
|---|
| 1724 | #define CAM_UNCACHED_BIT 0x40000000 // 0xFF874198 (via ExMem.FreeCacheable |
|---|
| 1725 | #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData |
|---|
| 1726 | |
|---|
| 1727 | #undef CAM_CAN_MUTE_MICROPHONE // XXX |
|---|
| 1728 | #undef CAM_HAS_ERASE_BUTTON |
|---|
| 1729 | #undef CAM_HAS_IRIS_DIAPHRAGM |
|---|
| 1730 | #undef CAM_HAS_MANUAL_FOCUS |
|---|
| 1731 | #undef CAM_HAS_USER_TV_MODES // XXX |
|---|
| 1732 | #undef CAM_HAS_VIDEO_BUTTON // XXX |
|---|
| 1733 | #undef CAM_EV_IN_VIDEO // XXX |
|---|
| 1734 | #undef CAM_REAR_CURTAIN |
|---|
| 1735 | |
|---|
| 1736 | #define CAM_JPEG_WIDTH 3648 |
|---|
| 1737 | #define CAM_JPEG_HEIGHT 2736 |
|---|
| 1738 | #define CAM_RAW_ROWPIX 3720 |
|---|
| 1739 | #define CAM_RAW_ROWS 2772 |
|---|
| 1740 | #define CAM_ACTIVE_AREA_X1 14 // XXX |
|---|
| 1741 | #define CAM_ACTIVE_AREA_Y1 8 // XXX |
|---|
| 1742 | #define CAM_ACTIVE_AREA_X2 3682 // XXX |
|---|
| 1743 | #define CAM_ACTIVE_AREA_Y2 2764 // XXX |
|---|
| 1744 | |
|---|
| 1745 | #undef CAM_SENSOR_BITS_PER_PIXEL |
|---|
| 1746 | #undef CAM_WHITE_LEVEL |
|---|
| 1747 | #undef CAM_BLACK_LEVEL |
|---|
| 1748 | #define CAM_SENSOR_BITS_PER_PIXEL 12 |
|---|
| 1749 | #define CAM_WHITE_LEVEL ((1<<CAM_SENSOR_BITS_PER_PIXEL)-1) // XXX |
|---|
| 1750 | #define CAM_BLACK_LEVEL 127 // XXX |
|---|
| 1751 | |
|---|
| 1752 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 1753 | #define CAM_COLORMATRIX1 \ |
|---|
| 1754 | 827547, 1000000, -290458, 1000000, -126086, 1000000, \ |
|---|
| 1755 | -12829, 1000000, 530507, 1000000, 50537, 1000000, \ |
|---|
| 1756 | 5181, 1000000, 48183, 1000000, 245014, 1000000 // XXX |
|---|
| 1757 | #define cam_CalibrationIlluminant1 1 // Daylight XXX |
|---|
| 1758 | |
|---|
| 1759 | |
|---|
| 1760 | // CHDK functionality |
|---|
| 1761 | #define CAM_CHDK_HAS_EXT_VIDEO_MENU 1 // XXX |
|---|
| 1762 | #define CAM_EMUL_KEYPRESS_DELAY 40 |
|---|
| 1763 | #define CAM_EMUL_KEYPRESS_DURATION 5 |
|---|
| 1764 | #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 |
|---|
| 1765 | #undef DEFAULT_RAW_EXT |
|---|
| 1766 | #define DEFAULT_RAW_EXT 2 // use .CR2 |
|---|
| 1767 | #define DNG_SUPPORT 1 |
|---|
| 1768 | |
|---|
| 1769 | #undef CAM_ADJUSTABLE_ALT_BUTTON |
|---|
| 1770 | #undef CAM_CONSOLE_LOG_ENABLED |
|---|
| 1771 | #undef CAM_DRAW_EXPOSITION // XXX |
|---|
| 1772 | #undef CAM_FEATURE_FEATHER // XXX |
|---|
| 1773 | #undef CAM_USE_ZOOM_FOR_MF |
|---|
| 1774 | #undef CAM_VIDEO_CONTROL // XXX |
|---|
| 1775 | //---------------------------------------------------------- |
|---|
| 1776 | |
|---|
| 1777 | #elif defined (CAMERA_ixus950_sd850) |
|---|
| 1778 | #define CAM_EXT_TV_RANGE 1 |
|---|
| 1779 | #define CAM_PROPSET 2 |
|---|
| 1780 | |
|---|
| 1781 | #define CAM_RAW_ROWPIX 3336 // for new 8 MP |
|---|
| 1782 | #define CAM_RAW_ROWS 2480 // for new 8 MP |
|---|
| 1783 | |
|---|
| 1784 | #undef CAM_USE_ZOOM_FOR_MF |
|---|
| 1785 | #undef CAM_HAS_ERASE_BUTTON |
|---|
| 1786 | #undef CAM_HAS_IRIS_DIAPHRAGM |
|---|
| 1787 | #define CAM_HAS_ND_FILTER 1 |
|---|
| 1788 | #undef CAM_HAS_MANUAL_FOCUS |
|---|
| 1789 | #undef CAM_HAS_USER_TV_MODES |
|---|
| 1790 | #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 |
|---|
| 1791 | #define CAM_MULTIPART 1 |
|---|
| 1792 | #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 |
|---|
| 1793 | #define DNG_SUPPORT 1 |
|---|
| 1794 | // pattern |
|---|
| 1795 | #define cam_CFAPattern 0x01000201 // Green Blue Red Green |
|---|
| 1796 | // color |
|---|
| 1797 | #define CAM_COLORMATRIX1 \ |
|---|
| 1798 | 14573, 1, -5482, 1, -1546, 1, \ |
|---|
| 1799 | -1266, 1, 9799, 1, 1468, 1, \ |
|---|
| 1800 | -1040, 1, 1912, 1, 3810, 1 |
|---|
| 1801 | |
|---|
| 1802 | #define cam_CalibrationIlluminant1 1 // Daylight |
|---|
| 1803 | // cropping |
|---|
| 1804 | #define CAM_JPEG_WIDTH 3264 |
|---|
| 1805 | #define CAM_JPEG_HEIGHT 2448 |
|---|
| 1806 | #define CAM_ACTIVE_AREA_X1 10 |
|---|
| 1807 | #define CAM_ACTIVE_AREA_Y1 8 |
|---|
| 1808 | #define CAM_ACTIVE_AREA_X2 3302 |
|---|
| 1809 | #define CAM_ACTIVE_AREA_Y2 2474 |
|---|
| 1810 | // camera name |
|---|
| 1811 | #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData |
|---|
| 1812 | #define DNG_EXT_FROM ".DPS" |
|---|
| 1813 | //---------------------------------------------------------- |
|---|
| 1814 | |
|---|
| 1815 | #elif defined (CAMERA_ixus960_sd950) |
|---|
| 1816 | #define CAM_PROPSET 2 |
|---|
| 1817 | #define CAM_DRYOS 1 |
|---|
| 1818 | |
|---|
| 1819 | #define CAM_RAW_ROWPIX 4104 |
|---|
| 1820 | #define CAM_RAW_ROWS 3048 |
|---|
| 1821 | |
|---|
| 1822 | #undef CAM_USE_ZOOM_FOR_MF |
|---|
| 1823 | #undef CAM_HAS_ERASE_BUTTON |
|---|
| 1824 | #undef CAM_HAS_IRIS_DIAPHRAGM |
|---|
| 1825 | #define CAM_HAS_ND_FILTER 1 |
|---|
| 1826 | #undef CAM_HAS_MANUAL_FOCUS |
|---|
| 1827 | #undef CAM_HAS_USER_TV_MODES |
|---|
| 1828 | #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 |
|---|
| 1829 | #define DNG_SUPPORT 1 |
|---|
| 1830 | // pattern |
|---|
| 1831 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 1832 | // color |
|---|
| 1833 | #define CAM_COLORMATRIX1 \ |
|---|
| 1834 | 913762, 1000000, -261578, 1000000, -135582, 1000000, \ |
|---|
| 1835 | -99049, 1000000, 1067089, 1000000, 61442, 1000000, \ |
|---|
| 1836 | 48717, 1000000, 96802, 1000000, 412056, 1000000 |
|---|
| 1837 | |
|---|
| 1838 | #define cam_CalibrationIlluminant1 1 // Daylight |
|---|
| 1839 | // cropping |
|---|
| 1840 | #define CAM_JPEG_WIDTH 4000 |
|---|
| 1841 | #define CAM_JPEG_HEIGHT 3000 |
|---|
| 1842 | #define CAM_ACTIVE_AREA_X1 48 |
|---|
| 1843 | #define CAM_ACTIVE_AREA_Y1 12 |
|---|
| 1844 | #define CAM_ACTIVE_AREA_X2 4080 |
|---|
| 1845 | #define CAM_ACTIVE_AREA_Y2 3036 |
|---|
| 1846 | // camera name |
|---|
| 1847 | #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData |
|---|
| 1848 | |
|---|
| 1849 | #define DNG_EXT_FROM ".CR2" |
|---|
| 1850 | //---------------------------------------------------------- |
|---|
| 1851 | |
|---|
| 1852 | #elif defined (CAMERA_ixus970_sd890) |
|---|
| 1853 | #define CAM_PROPSET 2 |
|---|
| 1854 | #define CAM_DRYOS 1 |
|---|
| 1855 | |
|---|
| 1856 | #define CAM_RAW_ROWPIX 3720 |
|---|
| 1857 | #define CAM_RAW_ROWS 2772 |
|---|
| 1858 | |
|---|
| 1859 | #undef CAM_USE_ZOOM_FOR_MF |
|---|
| 1860 | #undef CAM_HAS_ERASE_BUTTON |
|---|
| 1861 | #undef CAM_HAS_IRIS_DIAPHRAGM |
|---|
| 1862 | #define CAM_HAS_ND_FILTER 1 |
|---|
| 1863 | #undef CAM_HAS_MANUAL_FOCUS |
|---|
| 1864 | #define CAM_MULTIPART 1 |
|---|
| 1865 | #define CAM_HAS_JOGDIAL 1 |
|---|
| 1866 | #define CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO 1 |
|---|
| 1867 | #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 |
|---|
| 1868 | #define DNG_SUPPORT 1 |
|---|
| 1869 | #define CAM_EXT_TV_RANGE 1 |
|---|
| 1870 | |
|---|
| 1871 | // pattern |
|---|
| 1872 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 1873 | |
|---|
| 1874 | // color |
|---|
| 1875 | #define CAM_COLORMATRIX1 \ |
|---|
| 1876 | 827547, 1000000, -290458, 1000000, -126086, 1000000, \ |
|---|
| 1877 | -12829, 1000000, 530507, 1000000, 50537, 1000000, \ |
|---|
| 1878 | 5181, 1000000, 48183, 1000000, 245014, 1000000 |
|---|
| 1879 | #define cam_CalibrationIlluminant1 1 // Daylight |
|---|
| 1880 | |
|---|
| 1881 | // cropping |
|---|
| 1882 | #define CAM_JPEG_WIDTH 3648 |
|---|
| 1883 | #define CAM_JPEG_HEIGHT 2736 |
|---|
| 1884 | #define CAM_ACTIVE_AREA_X1 6 |
|---|
| 1885 | #define CAM_ACTIVE_AREA_Y1 12 |
|---|
| 1886 | #define CAM_ACTIVE_AREA_X2 3690 |
|---|
| 1887 | #define CAM_ACTIVE_AREA_Y2 2772 |
|---|
| 1888 | |
|---|
| 1889 | // camera name |
|---|
| 1890 | #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData |
|---|
| 1891 | |
|---|
| 1892 | // 12 bit support |
|---|
| 1893 | #undef CAM_SENSOR_BITS_PER_PIXEL |
|---|
| 1894 | #undef CAM_WHITE_LEVEL |
|---|
| 1895 | #undef CAM_BLACK_LEVEL |
|---|
| 1896 | #define CAM_SENSOR_BITS_PER_PIXEL 12 |
|---|
| 1897 | #define CAM_WHITE_LEVEL ((1<<CAM_SENSOR_BITS_PER_PIXEL)-1) |
|---|
| 1898 | #define CAM_BLACK_LEVEL 127 |
|---|
| 1899 | //---------------------------------------------------------- |
|---|
| 1900 | |
|---|
| 1901 | #elif defined (CAMERA_ixus980_sd990) |
|---|
| 1902 | #define CAM_PROPSET 2 // all values checked so far match propset 2 |
|---|
| 1903 | #define CAM_DRYOS 1 |
|---|
| 1904 | |
|---|
| 1905 | #define CAM_RAW_ROWPIX 4480 // 14.7 MP 12bpp |
|---|
| 1906 | #define CAM_RAW_ROWS 3348 |
|---|
| 1907 | |
|---|
| 1908 | #undef CAM_USE_ZOOM_FOR_MF |
|---|
| 1909 | #undef CAM_HAS_ERASE_BUTTON |
|---|
| 1910 | #define CAM_MULTIPART 1 |
|---|
| 1911 | #undef CAM_HAS_IRIS_DIAPHRAGM |
|---|
| 1912 | #define CAM_HAS_ND_FILTER 1 |
|---|
| 1913 | #define CAM_HAS_MANUAL_FOCUS 1 |
|---|
| 1914 | #define CAM_HAS_USER_TV_MODES 1 //include M/P ? needed to make Tv bracketing work |
|---|
| 1915 | #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 |
|---|
| 1916 | #define CAM_CHDK_HAS_EXT_VIDEO_MENU 1 |
|---|
| 1917 | #undef CAM_VIDEO_CONTROL |
|---|
| 1918 | #undef CAM_UNCACHED_BIT // shut up compiler |
|---|
| 1919 | #define CAM_UNCACHED_BIT 0x40000000 |
|---|
| 1920 | #undef CAM_BITMAP_PALETTE |
|---|
| 1921 | #define CAM_BITMAP_PALETTE 2 |
|---|
| 1922 | |
|---|
| 1923 | #undef CAM_BLACK_LEVEL |
|---|
| 1924 | #define CAM_BLACK_LEVEL 127 |
|---|
| 1925 | #define CAM_HAS_JOGDIAL 1 |
|---|
| 1926 | // #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 |
|---|
| 1927 | #define CAM_VIDEO_QUALITY_ONLY 1 |
|---|
| 1928 | #define CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO 1 |
|---|
| 1929 | #undef CAM_SENSOR_BITS_PER_PIXEL |
|---|
| 1930 | #define CAM_SENSOR_BITS_PER_PIXEL 12 |
|---|
| 1931 | #undef CAM_WHITE_LEVEL |
|---|
| 1932 | #define CAM_WHITE_LEVEL ((1<<CAM_SENSOR_BITS_PER_PIXEL)-1) |
|---|
| 1933 | |
|---|
| 1934 | #define DNG_SUPPORT 1 |
|---|
| 1935 | // pattern |
|---|
| 1936 | #define cam_CFAPattern 0x01000201 // Green Blue Red Green |
|---|
| 1937 | // color preliminary |
|---|
| 1938 | #define CAM_COLORMATRIX1 \ |
|---|
| 1939 | 837237, 1000000, -290137, 1000000, -128156, 1000000, \ |
|---|
| 1940 | -127762, 1000000, 643909, 1000000, 52973, 1000000, \ |
|---|
| 1941 | 4446, 1000000, 88354, 1000000, 224246, 1000000 |
|---|
| 1942 | |
|---|
| 1943 | #define cam_CalibrationIlluminant1 1 // Daylight |
|---|
| 1944 | // cropping |
|---|
| 1945 | #define CAM_JPEG_WIDTH 4416 |
|---|
| 1946 | #define CAM_JPEG_HEIGHT 3312 |
|---|
| 1947 | #define CAM_ACTIVE_AREA_X1 12 |
|---|
| 1948 | #define CAM_ACTIVE_AREA_Y1 12 |
|---|
| 1949 | #define CAM_ACTIVE_AREA_X2 4444 |
|---|
| 1950 | #define CAM_ACTIVE_AREA_Y2 3324 |
|---|
| 1951 | // camera name |
|---|
| 1952 | #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData sd990: OK |
|---|
| 1953 | |
|---|
| 1954 | // copied from DavidBs D10 stuff |
|---|
| 1955 | #undef CAM_USES_ASPECT_CORRECTION |
|---|
| 1956 | #undef CAM_USES_ASPECT_YCORRECTION |
|---|
| 1957 | #define CAM_USES_ASPECT_CORRECTION 1 //camera uses the modified graphics primitives to map screens an viewports to buffers more sized |
|---|
| 1958 | #define CAM_USES_ASPECT_YCORRECTION 0 //only uses mappings on x coordinate |
|---|
| 1959 | |
|---|
| 1960 | #undef ASPECT_XCORRECTION |
|---|
| 1961 | #define ASPECT_XCORRECTION(x) ( ((x)<<1) ) |
|---|
| 1962 | |
|---|
| 1963 | // Note color palette affects grids! |
|---|
| 1964 | #undef ASPECT_GRID_XCORRECTION |
|---|
| 1965 | #define ASPECT_GRID_XCORRECTION(x) ( (x) ) |
|---|
| 1966 | |
|---|
| 1967 | #undef ASPECT_GRID_YCORRECTION |
|---|
| 1968 | #define ASPECT_GRID_YCORRECTION(y) ( (y) ) |
|---|
| 1969 | |
|---|
| 1970 | #undef ASPECT_VIEWPORT_XCORRECTION |
|---|
| 1971 | #define ASPECT_VIEWPORT_XCORRECTION(x) ASPECT_GRID_XCORRECTION(x) |
|---|
| 1972 | #undef ASPECT_VIEWPORT_YCORRECTION |
|---|
| 1973 | #define ASPECT_VIEWPORT_YCORRECTION(y) ( (y) ) |
|---|
| 1974 | |
|---|
| 1975 | // Note color palette affects games! |
|---|
| 1976 | //games mappings |
|---|
| 1977 | #undef GAMES_SCREEN_WIDTH |
|---|
| 1978 | #undef GAMES_SCREEN_HEIGHT |
|---|
| 1979 | #define GAMES_SCREEN_WIDTH 360 |
|---|
| 1980 | #define GAMES_SCREEN_HEIGHT 240 |
|---|
| 1981 | #undef ASPECT_GAMES_XCORRECTION |
|---|
| 1982 | // 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 resolution |
|---|
| 1983 | // used by gui.c that configures the draw environment (through new draw_gui function) depending on gui_mode: we have then 360x240 for games (but deformed output:circles are not circles) and 320x240 for |
|---|
| 1984 | // other modes in perfect aspect ratio 4/3: slightly better visualization: file menus more readable, ... |
|---|
| 1985 | #define ASPECT_GAMES_XCORRECTION(x) ( ((x)<<1) ) |
|---|
| 1986 | #undef ASPECT_GAMES_YCORRECTION |
|---|
| 1987 | #define ASPECT_GAMES_YCORRECTION(y) ( (y) ) //none |
|---|
| 1988 | |
|---|
| 1989 | #define CAM_ZEBRA_ASPECT_ADJUST 1 |
|---|
| 1990 | |
|---|
| 1991 | // #define DNG_EXT_FROM ".CR2" |
|---|
| 1992 | //---------------------------------------------------------- |
|---|
| 1993 | |
|---|
| 1994 | #elif defined (CAMERA_ixus100_sd780) |
|---|
| 1995 | #define CAM_PROPSET 2 |
|---|
| 1996 | #define CAM_DRYOS 1 |
|---|
| 1997 | |
|---|
| 1998 | #define CAM_RAW_ROWPIX 4080 // 12 MP 12bpp |
|---|
| 1999 | #define CAM_RAW_ROWS 3048 // VERIFY_SD780 Found RAW #s by searching " CrwAddress %lx, CrwSize H %ld V %ld\r" |
|---|
| 2000 | |
|---|
| 2001 | #undef CAM_HAS_ERASE_BUTTON |
|---|
| 2002 | #undef CAM_USE_ZOOM_FOR_MF |
|---|
| 2003 | #define CAM_MULTIPART 1 |
|---|
| 2004 | #undef CAM_HAS_IRIS_DIAPHRAGM |
|---|
| 2005 | #define CAM_HAS_ND_FILTER 1 |
|---|
| 2006 | |
|---|
| 2007 | #undef CAM_REMOTE |
|---|
| 2008 | #undef CAM_SYNCH |
|---|
| 2009 | |
|---|
| 2010 | #define CAM_HAS_ZOOM_LEVER 1 |
|---|
| 2011 | |
|---|
| 2012 | // #define CAM_CAN_SD_OVER_NOT_IN_MF 1 // Camera allows subject distance (focus) override when not in manual focus mode |
|---|
| 2013 | // #define CAM_CAN_SD_OVERRIDE 1 // Camera allows to do subject distance override |
|---|
| 2014 | |
|---|
| 2015 | #undef CAM_HAS_MANUAL_FOCUS |
|---|
| 2016 | #define CAM_HAS_USER_TV_MODES 1 |
|---|
| 2017 | #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 |
|---|
| 2018 | #define CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO 1 |
|---|
| 2019 | #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 |
|---|
| 2020 | #define CAM_CHDK_HAS_EXT_VIDEO_MENU 1 |
|---|
| 2021 | |
|---|
| 2022 | #define CAM_HAS_IS 1 |
|---|
| 2023 | #undef CAM_HAS_JOGDIAL |
|---|
| 2024 | |
|---|
| 2025 | #undef CAM_VIDEO_CONTROL |
|---|
| 2026 | #define CAM_VIDEO_QUALITY_ONLY 1 |
|---|
| 2027 | #define DNG_SUPPORT 1 |
|---|
| 2028 | |
|---|
| 2029 | #define CAM_EXT_TV_RANGE 1 |
|---|
| 2030 | |
|---|
| 2031 | #undef CAM_UNCACHED_BIT |
|---|
| 2032 | #define CAM_UNCACHED_BIT 0x40000000 |
|---|
| 2033 | |
|---|
| 2034 | #undef CAM_BITMAP_PALETTE |
|---|
| 2035 | #define CAM_BITMAP_PALETTE 5 |
|---|
| 2036 | |
|---|
| 2037 | #undef ZEBRA_HMARGIN0 |
|---|
| 2038 | #define ZEBRA_HMARGIN0 150 //zebra adjust buffer height: show use at sx200is: needed for save memory space |
|---|
| 2039 | |
|---|
| 2040 | #define CAM_QUALITY_OVERRIDE 1 |
|---|
| 2041 | #undef CAM_SENSOR_BITS_PER_PIXEL |
|---|
| 2042 | #define CAM_SENSOR_BITS_PER_PIXEL 12 |
|---|
| 2043 | #undef CAM_WHITE_LEVEL |
|---|
| 2044 | #define CAM_WHITE_LEVEL ((1<<CAM_SENSOR_BITS_PER_PIXEL)-1) |
|---|
| 2045 | #undef CAM_BLACK_LEVEL |
|---|
| 2046 | #define CAM_BLACK_LEVEL 127 |
|---|
| 2047 | |
|---|
| 2048 | // pattern |
|---|
| 2049 | //RealRom:FFA99FB4 ADR R0, aObRG1G2BLdLdLd ; "\n OB : (R, G1, G2, B) = (%ld, %ld, %ld"... |
|---|
| 2050 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 2051 | |
|---|
| 2052 | // color preliminary (see DNG4PS2 wiki) |
|---|
| 2053 | #define CAM_COLORMATRIX1 \ |
|---|
| 2054 | 661840, 1000000, -185671, 1000000, -97110, 1000000, \ |
|---|
| 2055 | -83661, 1000000, 578860, 1000000, 32308, 1000000, \ |
|---|
| 2056 | -8681, 1000000, 70356, 1000000, 207341, 1000000 |
|---|
| 2057 | |
|---|
| 2058 | //Here is an alternate CAM_COLORMATRIX1 - Current one is nice for me but hey I'm no colour expert. |
|---|
| 2059 | //XYZ -> Camera matrix: |
|---|
| 2060 | //0.459395 -0.129083 -0.068085 |
|---|
| 2061 | //-0.055837 0.400827 0.020378 |
|---|
| 2062 | //-0.004622 0.048662 0.139970 |
|---|
| 2063 | |
|---|
| 2064 | #define cam_CalibrationIlluminant1 17 // Standard Light A |
|---|
| 2065 | |
|---|
| 2066 | // cropping |
|---|
| 2067 | #define CAM_JPEG_WIDTH 4000 |
|---|
| 2068 | #define CAM_JPEG_HEIGHT 3000 |
|---|
| 2069 | #define CAM_ACTIVE_AREA_X1 40 |
|---|
| 2070 | #define CAM_ACTIVE_AREA_Y1 24 |
|---|
| 2071 | #define CAM_ACTIVE_AREA_X2 4056 |
|---|
| 2072 | #define CAM_ACTIVE_AREA_Y2 3040 |
|---|
| 2073 | // camera name |
|---|
| 2074 | #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData sd990: OK |
|---|
| 2075 | |
|---|
| 2076 | #undef CAM_USES_ASPECT_CORRECTION |
|---|
| 2077 | #undef CAM_USES_ASPECT_YCORRECTION |
|---|
| 2078 | #define CAM_USES_ASPECT_CORRECTION 1 //camera uses the modified graphics primitives to map screens an viewports to buffers more sized |
|---|
| 2079 | #define CAM_USES_ASPECT_YCORRECTION 0 //only uses mappings on x coordinate |
|---|
| 2080 | |
|---|
| 2081 | #undef ASPECT_XCORRECTION |
|---|
| 2082 | #define ASPECT_XCORRECTION(x) ( ((x)<<1) ) |
|---|
| 2083 | |
|---|
| 2084 | // Note color palette affects grids! |
|---|
| 2085 | #undef ASPECT_GRID_XCORRECTION |
|---|
| 2086 | #define ASPECT_GRID_XCORRECTION(x) ( (x) ) |
|---|
| 2087 | |
|---|
| 2088 | #undef ASPECT_GRID_YCORRECTION |
|---|
| 2089 | #define ASPECT_GRID_YCORRECTION(y) ( (y) ) |
|---|
| 2090 | |
|---|
| 2091 | #undef ASPECT_VIEWPORT_XCORRECTION |
|---|
| 2092 | #define ASPECT_VIEWPORT_XCORRECTION(x) ASPECT_GRID_XCORRECTION(x) |
|---|
| 2093 | #undef ASPECT_VIEWPORT_YCORRECTION |
|---|
| 2094 | #define ASPECT_VIEWPORT_YCORRECTION(y) ( (y) ) |
|---|
| 2095 | |
|---|
| 2096 | // Note color palette affects games! |
|---|
| 2097 | //games mappings |
|---|
| 2098 | #undef GAMES_SCREEN_WIDTH |
|---|
| 2099 | #undef GAMES_SCREEN_HEIGHT |
|---|
| 2100 | #define GAMES_SCREEN_WIDTH 360 |
|---|
| 2101 | #define GAMES_SCREEN_HEIGHT 240 |
|---|
| 2102 | #undef ASPECT_GAMES_XCORRECTION |
|---|
| 2103 | // 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 resolution |
|---|
| 2104 | // used by gui.c that configures the draw environment (through new draw_gui function) depending on gui_mode: we have then 360x240 for games (but deformed output:circles are not circles) and 320x240 for |
|---|
| 2105 | // other modes in perfect aspect ratio 4/3: slightly better visualization: file menus more readable, ... |
|---|
| 2106 | #define ASPECT_GAMES_XCORRECTION(x) ( ((x)<<1) ) |
|---|
| 2107 | #undef ASPECT_GAMES_YCORRECTION |
|---|
| 2108 | #define ASPECT_GAMES_YCORRECTION(y) ( (y) ) //none |
|---|
| 2109 | #define CAM_ZEBRA_ASPECT_ADJUST 1 |
|---|
| 2110 | // camera has little free memory |
|---|
| 2111 | #define CAM_ZEBRA_NOBUF 1 |
|---|
| 2112 | //---------------------------------------------------------- |
|---|
| 2113 | |
|---|
| 2114 | #elif defined (CAMERA_ixus90_sd790) |
|---|
| 2115 | #define CAM_PROPSET 2 |
|---|
| 2116 | #define CAM_DRYOS 1 |
|---|
| 2117 | |
|---|
| 2118 | #define CAM_RAW_ROWPIX 3720 |
|---|
| 2119 | #define CAM_RAW_ROWS 2772 |
|---|
| 2120 | |
|---|
| 2121 | #undef CAM_USE_ZOOM_FOR_MF |
|---|
| 2122 | #undef CAM_HAS_ERASE_BUTTON |
|---|
| 2123 | #define CAM_MULTIPART 1 |
|---|
| 2124 | #undef CAM_HAS_IRIS_DIAPHRAGM |
|---|
| 2125 | #undef CAM_HAS_MANUAL_FOCUS |
|---|
| 2126 | |
|---|
| 2127 | #define CAM_HAS_ND_FILTER 1 |
|---|
| 2128 | #undef CAM_HAS_USER_TV_MODES |
|---|
| 2129 | #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 |
|---|
| 2130 | #define CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO 1 |
|---|
| 2131 | #define CAM_HAS_JOGDIAL 1 |
|---|
| 2132 | #undef CAM_VIDEO_CONTROL |
|---|
| 2133 | #define CAM_EXT_TV_RANGE 1 // CHDK can make exposure time longer than 64s |
|---|
| 2134 | |
|---|
| 2135 | #define DNG_SUPPORT 1 |
|---|
| 2136 | // pattern |
|---|
| 2137 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 2138 | // color |
|---|
| 2139 | #define CAM_COLORMATRIX1 \ |
|---|
| 2140 | 827547, 1000000, -290458, 1000000, -126086, 1000000, \ |
|---|
| 2141 | -12829, 1000000, 530507, 1000000, 50537, 1000000, \ |
|---|
| 2142 | 5181, 1000000, 48183, 1000000, 245014, 1000000 |
|---|
| 2143 | #define cam_CalibrationIlluminant1 1 // Daylight |
|---|
| 2144 | |
|---|
| 2145 | // cropping |
|---|
| 2146 | #define CAM_JPEG_WIDTH 3648 |
|---|
| 2147 | #define CAM_JPEG_HEIGHT 2736 |
|---|
| 2148 | #define CAM_ACTIVE_AREA_X1 6 |
|---|
| 2149 | #define CAM_ACTIVE_AREA_Y1 12 |
|---|
| 2150 | #define CAM_ACTIVE_AREA_X2 3690 |
|---|
| 2151 | #define CAM_ACTIVE_AREA_Y2 2772 |
|---|
| 2152 | |
|---|
| 2153 | // camera name |
|---|
| 2154 | #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData |
|---|
| 2155 | #undef CAM_SENSOR_BITS_PER_PIXEL |
|---|
| 2156 | #undef CAM_WHITE_LEVEL |
|---|
| 2157 | #undef CAM_BLACK_LEVEL |
|---|
| 2158 | #define CAM_SENSOR_BITS_PER_PIXEL 12 |
|---|
| 2159 | #define CAM_WHITE_LEVEL ((1<<CAM_SENSOR_BITS_PER_PIXEL)-1) |
|---|
| 2160 | #define CAM_BLACK_LEVEL 127 |
|---|
| 2161 | //---------------------------------------------------------- |
|---|
| 2162 | |
|---|
| 2163 | #elif defined (CAMERA_ixus85_sd770) |
|---|
| 2164 | #define CAM_PROPSET 2 |
|---|
| 2165 | #define CAM_DRYOS 1 |
|---|
| 2166 | |
|---|
| 2167 | #define CAM_RAW_ROWPIX 3720 |
|---|
| 2168 | #define CAM_RAW_ROWS 2772 |
|---|
| 2169 | |
|---|
| 2170 | #undef CAM_USE_ZOOM_FOR_MF |
|---|
| 2171 | #undef CAM_HAS_ERASE_BUTTON |
|---|
| 2172 | #define CAM_MULTIPART 1 |
|---|
| 2173 | #undef CAM_HAS_IRIS_DIAPHRAGM |
|---|
| 2174 | #undef CAM_HAS_MANUAL_FOCUS |
|---|
| 2175 | |
|---|
| 2176 | #define CAM_HAS_ND_FILTER 1 |
|---|
| 2177 | #undef CAM_HAS_USER_TV_MODES |
|---|
| 2178 | #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 |
|---|
| 2179 | #define CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO 1 |
|---|
| 2180 | #undef CAM_HAS_JOGDIAL |
|---|
| 2181 | #undef CAM_VIDEO_CONTROL |
|---|
| 2182 | #define CAM_EXT_TV_RANGE 1 // CHDK can make exposure time longer than 64s |
|---|
| 2183 | |
|---|
| 2184 | #define DNG_SUPPORT 1 |
|---|
| 2185 | // pattern |
|---|
| 2186 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 2187 | // color |
|---|
| 2188 | #define CAM_COLORMATRIX1 \ |
|---|
| 2189 | 827547, 1000000, -290458, 1000000, -126086, 1000000, \ |
|---|
| 2190 | -12829, 1000000, 530507, 1000000, 50537, 1000000, \ |
|---|
| 2191 | 5181, 1000000, 48183, 1000000, 245014, 1000000 |
|---|
| 2192 | #define cam_CalibrationIlluminant1 1 // Daylight |
|---|
| 2193 | |
|---|
| 2194 | // cropping |
|---|
| 2195 | #define CAM_JPEG_WIDTH 3648 |
|---|
| 2196 | #define CAM_JPEG_HEIGHT 2736 |
|---|
| 2197 | #define CAM_ACTIVE_AREA_X1 6 |
|---|
| 2198 | #define CAM_ACTIVE_AREA_Y1 12 |
|---|
| 2199 | #define CAM_ACTIVE_AREA_X2 3690 |
|---|
| 2200 | #define CAM_ACTIVE_AREA_Y2 2772 |
|---|
| 2201 | |
|---|
| 2202 | // camera name |
|---|
| 2203 | #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData |
|---|
| 2204 | #undef CAM_SENSOR_BITS_PER_PIXEL |
|---|
| 2205 | #undef CAM_WHITE_LEVEL |
|---|
| 2206 | #undef CAM_BLACK_LEVEL |
|---|
| 2207 | #define CAM_SENSOR_BITS_PER_PIXEL 12 |
|---|
| 2208 | #define CAM_WHITE_LEVEL ((1<<CAM_SENSOR_BITS_PER_PIXEL)-1) |
|---|
| 2209 | #define CAM_BLACK_LEVEL 127 |
|---|
| 2210 | //---------------------------------------------------------- |
|---|
| 2211 | |
|---|
| 2212 | #elif defined (CAMERA_ixus95_sd1200) |
|---|
| 2213 | #define CAM_PROPSET 2 |
|---|
| 2214 | #define CAM_DRYOS 1 |
|---|
| 2215 | |
|---|
| 2216 | #define CAM_RAW_ROWPIX 3720 |
|---|
| 2217 | #define CAM_RAW_ROWS 2772 |
|---|
| 2218 | |
|---|
| 2219 | #undef CAM_HAS_ERASE_BUTTON |
|---|
| 2220 | #define CAM_USE_ZOOM_FOR_MF 1 |
|---|
| 2221 | #define CAM_MULTIPART 1 |
|---|
| 2222 | #undef CAM_HAS_IRIS_DIAPHRAGM |
|---|
| 2223 | #define CAM_HAS_ND_FILTER 1 |
|---|
| 2224 | |
|---|
| 2225 | #undef CAM_SYNCH |
|---|
| 2226 | |
|---|
| 2227 | #define CAM_HAS_ZOOM_LEVER 1 |
|---|
| 2228 | |
|---|
| 2229 | #undef CAM_HAS_MANUAL_FOCUS |
|---|
| 2230 | #define CAM_HAS_USER_TV_MODES 1 |
|---|
| 2231 | #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 |
|---|
| 2232 | #define CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO 1 |
|---|
| 2233 | //#define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 |
|---|
| 2234 | #undef CAM_AF_SCAN_DURING_VIDEO_RECORD //TODO: change to define and find NSTUB |
|---|
| 2235 | #define CAM_CHDK_HAS_EXT_VIDEO_MENU 1 |
|---|
| 2236 | |
|---|
| 2237 | #define CAM_HAS_IS 1 |
|---|
| 2238 | #undef CAM_HAS_JOGDIAL |
|---|
| 2239 | |
|---|
| 2240 | #undef CAM_VIDEO_CONTROL |
|---|
| 2241 | #define CAM_VIDEO_QUALITY_ONLY 1 |
|---|
| 2242 | #define DNG_SUPPORT 1 |
|---|
| 2243 | |
|---|
| 2244 | //#define CAM_EXT_TV_RANGE 1 |
|---|
| 2245 | |
|---|
| 2246 | #undef CAM_UNCACHED_BIT // shut up compiler |
|---|
| 2247 | #define CAM_UNCACHED_BIT 0x40000000 |
|---|
| 2248 | |
|---|
| 2249 | #undef CAM_BITMAP_PALETTE |
|---|
| 2250 | #define CAM_BITMAP_PALETTE 2 |
|---|
| 2251 | |
|---|
| 2252 | #define CAM_QUALITY_OVERRIDE 1 |
|---|
| 2253 | #undef CAM_SENSOR_BITS_PER_PIXEL |
|---|
| 2254 | #define CAM_SENSOR_BITS_PER_PIXEL 12 |
|---|
| 2255 | #undef CAM_WHITE_LEVEL |
|---|
| 2256 | #define CAM_WHITE_LEVEL ((1<<CAM_SENSOR_BITS_PER_PIXEL)-1) |
|---|
| 2257 | #undef CAM_BLACK_LEVEL |
|---|
| 2258 | #define CAM_BLACK_LEVEL 127 |
|---|
| 2259 | |
|---|
| 2260 | // pattern |
|---|
| 2261 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 2262 | |
|---|
| 2263 | // color preliminary |
|---|
| 2264 | // from para in forum |
|---|
| 2265 | #define CAM_COLORMATRIX1 \ |
|---|
| 2266 | 1484685, 1000000, -530958, 1000000, -208054, 1000000, \ |
|---|
| 2267 | 143142, 1000000, 793552, 1000000, 83907, 1000000, \ |
|---|
| 2268 | 146290, 1000000, -44679, 1000000, 430414, 1000000 |
|---|
| 2269 | |
|---|
| 2270 | #define cam_CalibrationIlluminant1 1 // Daylight |
|---|
| 2271 | |
|---|
| 2272 | // cropping |
|---|
| 2273 | #define CAM_JPEG_WIDTH 3648 |
|---|
| 2274 | #define CAM_JPEG_HEIGHT 2736 |
|---|
| 2275 | #define CAM_ACTIVE_AREA_X1 8 |
|---|
| 2276 | #define CAM_ACTIVE_AREA_Y1 12 |
|---|
| 2277 | #define CAM_ACTIVE_AREA_X2 3692 |
|---|
| 2278 | #define CAM_ACTIVE_AREA_Y2 2772 |
|---|
| 2279 | |
|---|
| 2280 | // camera name |
|---|
| 2281 | #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData |
|---|
| 2282 | |
|---|
| 2283 | // aspect correction |
|---|
| 2284 | #undef CAM_USES_ASPECT_CORRECTION |
|---|
| 2285 | #undef CAM_USES_ASPECT_YCORRECTION |
|---|
| 2286 | #define CAM_USES_ASPECT_CORRECTION 1 //camera uses the modified graphics primitives to map screens an viewports to buffers more sized |
|---|
| 2287 | #define CAM_USES_ASPECT_YCORRECTION 0 //only uses mappings on x coordinate |
|---|
| 2288 | |
|---|
| 2289 | #undef ASPECT_XCORRECTION |
|---|
| 2290 | #define ASPECT_XCORRECTION(x) ( ((x)<<1) ) |
|---|
| 2291 | |
|---|
| 2292 | // Note color palette affects grids! |
|---|
| 2293 | #undef ASPECT_GRID_XCORRECTION |
|---|
| 2294 | #define ASPECT_GRID_XCORRECTION(x) ( (x) ) |
|---|
| 2295 | |
|---|
| 2296 | #undef ASPECT_GRID_YCORRECTION |
|---|
| 2297 | #define ASPECT_GRID_YCORRECTION(y) ( (y) ) |
|---|
| 2298 | |
|---|
| 2299 | #undef ASPECT_VIEWPORT_XCORRECTION |
|---|
| 2300 | #define ASPECT_VIEWPORT_XCORRECTION(x) ASPECT_GRID_XCORRECTION(x) |
|---|
| 2301 | #undef ASPECT_VIEWPORT_YCORRECTION |
|---|
| 2302 | #define ASPECT_VIEWPORT_YCORRECTION(y) ( (y) ) |
|---|
| 2303 | |
|---|
| 2304 | //games mappings |
|---|
| 2305 | #undef GAMES_SCREEN_WIDTH |
|---|
| 2306 | #undef GAMES_SCREEN_HEIGHT |
|---|
| 2307 | #define GAMES_SCREEN_WIDTH 360 |
|---|
| 2308 | #define GAMES_SCREEN_HEIGHT 240 |
|---|
| 2309 | #undef ASPECT_GAMES_XCORRECTION |
|---|
| 2310 | // 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 resolution |
|---|
| 2311 | // 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 for |
|---|
| 2312 | // other modes in perfect aspect ratio 4/3: slightly better visualization: file menus more readable, ... |
|---|
| 2313 | #define ASPECT_GAMES_XCORRECTION(x) ( ((x)<<1) ) |
|---|
| 2314 | #undef ASPECT_GAMES_YCORRECTION |
|---|
| 2315 | #define ASPECT_GAMES_YCORRECTION(y) ( (y) ) //none |
|---|
| 2316 | |
|---|
| 2317 | #define CAM_ZEBRA_ASPECT_ADJUST 1 |
|---|
| 2318 | // camera has very little free memory |
|---|
| 2319 | #define CAM_ZEBRA_NOBUF 1 |
|---|
| 2320 | |
|---|
| 2321 | //---------------------------------------------------------- |
|---|
| 2322 | |
|---|
| 2323 | |
|---|
| 2324 | //========================================================== |
|---|
| 2325 | // S-Series |
|---|
| 2326 | //========================================================== |
|---|
| 2327 | #elif defined (CAMERA_s2is) |
|---|
| 2328 | #define CAM_PROPSET 1 |
|---|
| 2329 | |
|---|
| 2330 | #define CAM_RAW_ROWPIX 2672 // for 5 MP |
|---|
| 2331 | #define CAM_RAW_ROWS 1968 // for 5 MP |
|---|
| 2332 | |
|---|
| 2333 | #undef CAM_SYNCH |
|---|
| 2334 | #define CAM_SWIVEL_SCREEN 1 |
|---|
| 2335 | #define CAM_ADJUSTABLE_ALT_BUTTON 1 |
|---|
| 2336 | #undef CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO |
|---|
| 2337 | #define CAM_HAS_VIDEO_BUTTON 1 |
|---|
| 2338 | #undef CAM_VIDEO_CONTROL |
|---|
| 2339 | #define DNG_SUPPORT 1 |
|---|
| 2340 | // pattern |
|---|
| 2341 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 2342 | // color |
|---|
| 2343 | #define CAM_COLORMATRIX1 \ |
|---|
| 2344 | 547708, 1000000, -143462, 1000000, -99243, 1000000, \ |
|---|
| 2345 | -186838, 1000000, 663925, 1000000, 50970, 1000000, \ |
|---|
| 2346 | -5810, 1000000, 79162, 1000000, 266988, 1000000 |
|---|
| 2347 | |
|---|
| 2348 | #define cam_CalibrationIlluminant1 1 // Daylight |
|---|
| 2349 | // cropping |
|---|
| 2350 | #define CAM_JPEG_WIDTH 2592 |
|---|
| 2351 | #define CAM_JPEG_HEIGHT 1944 |
|---|
| 2352 | #define CAM_ACTIVE_AREA_X1 14 |
|---|
| 2353 | #define CAM_ACTIVE_AREA_Y1 10 |
|---|
| 2354 | #define CAM_ACTIVE_AREA_X2 2626 |
|---|
| 2355 | #define CAM_ACTIVE_AREA_Y2 1966 |
|---|
| 2356 | // camera name |
|---|
| 2357 | #define PARAM_CAMERA_NAME 2 // parameter number for GetParameterData |
|---|
| 2358 | #define CAM_BRACKETING 1 |
|---|
| 2359 | #define DNG_EXT_FROM ".DPS" |
|---|
| 2360 | //---------------------------------------------------------- |
|---|
| 2361 | |
|---|
| 2362 | #elif defined (CAMERA_s3is) |
|---|
| 2363 | #define CAM_PROPSET 1 |
|---|
| 2364 | |
|---|
| 2365 | #define CAM_RAW_ROWPIX 2888 // for 6 MP |
|---|
| 2366 | #define CAM_RAW_ROWS 2136 // for 6 MP |
|---|
| 2367 | |
|---|
| 2368 | #undef CAM_SYNCH |
|---|
| 2369 | #define CAM_SWIVEL_SCREEN 1 |
|---|
| 2370 | #define CAM_ADJUSTABLE_ALT_BUTTON 1 |
|---|
| 2371 | #define CAM_MULTIPART 1 |
|---|
| 2372 | #undef CAM_CAN_SD_OVER_NOT_IN_MF |
|---|
| 2373 | #undef CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO |
|---|
| 2374 | #define CAM_HAS_VIDEO_BUTTON 1 |
|---|
| 2375 | #define DNG_SUPPORT 1 |
|---|
| 2376 | // pattern |
|---|
| 2377 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 2378 | // color |
|---|
| 2379 | #define CAM_COLORMATRIX1 \ |
|---|
| 2380 | 14062, 10000, -5199, 10000, -1446, 10000, \ |
|---|
| 2381 | -4712, 10000, 12470, 10000, 2243, 10000, \ |
|---|
| 2382 | -1286, 10000, 2028, 10000, 4836, 10000 |
|---|
| 2383 | |
|---|
| 2384 | #define cam_CalibrationIlluminant1 17 // Standard light A |
|---|
| 2385 | // cropping |
|---|
| 2386 | #define CAM_JPEG_WIDTH 2816 |
|---|
| 2387 | #define CAM_JPEG_HEIGHT 2112 |
|---|
| 2388 | #define CAM_ACTIVE_AREA_X1 44 |
|---|
| 2389 | #define CAM_ACTIVE_AREA_Y1 8 |
|---|
| 2390 | #define CAM_ACTIVE_AREA_X2 2884 |
|---|
| 2391 | #define CAM_ACTIVE_AREA_Y2 2136 |
|---|
| 2392 | // camera name |
|---|
| 2393 | #define PARAM_CAMERA_NAME 3 // parameter number for GetParameterData |
|---|
| 2394 | #define CAM_BRACKETING 1 |
|---|
| 2395 | #define DNG_EXT_FROM ".DPS" |
|---|
| 2396 | |
|---|
| 2397 | #define CAM_EXT_TV_RANGE 1 |
|---|
| 2398 | //---------------------------------------------------------- |
|---|
| 2399 | |
|---|
| 2400 | #elif defined (CAMERA_s5is) |
|---|
| 2401 | #define CAM_PROPSET 2 |
|---|
| 2402 | #define CAM_DRYOS 1 |
|---|
| 2403 | |
|---|
| 2404 | #define CAM_RAW_ROWPIX 3336 // for new 8 MP |
|---|
| 2405 | #define CAM_RAW_ROWS 2480 // for new 8 MP |
|---|
| 2406 | |
|---|
| 2407 | #define CAM_SWIVEL_SCREEN 1 |
|---|
| 2408 | #define CAM_ADJUSTABLE_ALT_BUTTON 1 |
|---|
| 2409 | #undef CAM_CAN_SD_OVER_NOT_IN_MF |
|---|
| 2410 | #undef CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO |
|---|
| 2411 | #define CAM_HAS_VIDEO_BUTTON 1 |
|---|
| 2412 | #define CAM_EXT_TV_RANGE 1 |
|---|
| 2413 | #define DNG_SUPPORT 1 |
|---|
| 2414 | // pattern |
|---|
| 2415 | #define cam_CFAPattern 0x01000201 // Green Blue Red Green |
|---|
| 2416 | // color |
|---|
| 2417 | #define CAM_COLORMATRIX1 \ |
|---|
| 2418 | 650591, 1000000, -199585, 1000000, -123118, 1000000, \ |
|---|
| 2419 | -69617, 1000000, 583926, 1000000, 34354, 1000000, \ |
|---|
| 2420 | -19113, 1000000, 82163, 1000000, 210786, 1000000 |
|---|
| 2421 | |
|---|
| 2422 | #define cam_CalibrationIlluminant1 1 // Daylight |
|---|
| 2423 | // cropping |
|---|
| 2424 | #define CAM_JPEG_WIDTH 3264 |
|---|
| 2425 | #define CAM_JPEG_HEIGHT 2448 |
|---|
| 2426 | #define CAM_ACTIVE_AREA_X1 10 |
|---|
| 2427 | #define CAM_ACTIVE_AREA_Y1 8 |
|---|
| 2428 | #define CAM_ACTIVE_AREA_X2 3302 |
|---|
| 2429 | #define CAM_ACTIVE_AREA_Y2 2474 |
|---|
| 2430 | // camera name |
|---|
| 2431 | #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData |
|---|
| 2432 | #define CAM_BRACKETING 1 |
|---|
| 2433 | #define DNG_EXT_FROM ".DPS" |
|---|
| 2434 | //---------------------------------------------------------- |
|---|
| 2435 | |
|---|
| 2436 | |
|---|
| 2437 | //========================================================== |
|---|
| 2438 | // TX-Series |
|---|
| 2439 | //========================================================== |
|---|
| 2440 | #elif defined (CAMERA_tx1) |
|---|
| 2441 | #define CAM_PROPSET 2 |
|---|
| 2442 | |
|---|
| 2443 | #define CAM_RAW_ROWPIX 3152 // for 7 MP |
|---|
| 2444 | #define CAM_RAW_ROWS 2340 // for 7 MP |
|---|
| 2445 | |
|---|
| 2446 | #define CAM_SWIVEL_SCREEN 1 |
|---|
| 2447 | #define CAM_HAS_ND_FILTER 1 |
|---|
| 2448 | #undef CAM_HAS_ERASE_BUTTON |
|---|
| 2449 | #undef CAM_HAS_MANUAL_FOCUS |
|---|
| 2450 | #undef CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO |
|---|
| 2451 | #define CAM_MULTIPART 1 |
|---|
| 2452 | #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 |
|---|
| 2453 | #define CAM_HAS_VIDEO_BUTTON 1 |
|---|
| 2454 | #define DNG_SUPPORT 1 |
|---|
| 2455 | // pattern |
|---|
| 2456 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 2457 | // color |
|---|
| 2458 | #define CAM_COLORMATRIX1 \ |
|---|
| 2459 | 510370, 1000000, -68998, 1000000, -86859, 1000000, \ |
|---|
| 2460 | -279980, 1000000, 766686, 1000000, 67944, 1000000, \ |
|---|
| 2461 | -14382, 1000000, 113688, 1000000, 239853, 1000000 |
|---|
| 2462 | |
|---|
| 2463 | #define cam_CalibrationIlluminant1 1 // Daylight |
|---|
| 2464 | // cropping |
|---|
| 2465 | #define CAM_JPEG_WIDTH 3072 |
|---|
| 2466 | #define CAM_JPEG_HEIGHT 2304 |
|---|
| 2467 | #define CAM_ACTIVE_AREA_X1 12 |
|---|
| 2468 | #define CAM_ACTIVE_AREA_Y1 8 |
|---|
| 2469 | #define CAM_ACTIVE_AREA_X2 3108 |
|---|
| 2470 | #define CAM_ACTIVE_AREA_Y2 2332 |
|---|
| 2471 | // camera name |
|---|
| 2472 | #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData |
|---|
| 2473 | #define DNG_EXT_FROM ".DPS" |
|---|
| 2474 | //---------------------------------------------------------- |
|---|
| 2475 | |
|---|
| 2476 | |
|---|
| 2477 | //========================================================== |
|---|
| 2478 | // SX-Series |
|---|
| 2479 | //========================================================== |
|---|
| 2480 | #elif defined (CAMERA_sx100is) |
|---|
| 2481 | #define CAM_PROPSET 2 |
|---|
| 2482 | #define CAM_DRYOS 1 |
|---|
| 2483 | |
|---|
| 2484 | #define CAM_RAW_ROWPIX 3336 // for new 8 MP |
|---|
| 2485 | #define CAM_RAW_ROWS 2480 // for new 8 MP |
|---|
| 2486 | #undef CAM_SYNCH |
|---|
| 2487 | #define CAM_CAN_MUTE_MICROPHONE 1 |
|---|
| 2488 | #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 |
|---|
| 2489 | #define CAM_ADJUSTABLE_ALT_BUTTON 1 |
|---|
| 2490 | #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 |
|---|
| 2491 | #undef CAM_VIDEO_CONTROL |
|---|
| 2492 | #define DNG_SUPPORT 1 |
|---|
| 2493 | #define CAM_REAR_CURTAIN 1 |
|---|
| 2494 | #define CAM_HAS_JOGDIAL 1 |
|---|
| 2495 | // pattern |
|---|
| 2496 | #define cam_CFAPattern 0x01000201 // Green Blue Red Green |
|---|
| 2497 | // color |
|---|
| 2498 | #define CAM_COLORMATRIX1 \ |
|---|
| 2499 | 656793, 1000000, -168702, 1000000, -108030, 1000000, \ |
|---|
| 2500 | -2711, 1000000, 661538, 1000000, 37919, 1000000, \ |
|---|
| 2501 | 77255, 1000000, 48834, 1000000, 241797, 1000000 |
|---|
| 2502 | |
|---|
| 2503 | #define cam_CalibrationIlluminant1 1 // Daylight |
|---|
| 2504 | // cropping |
|---|
| 2505 | #define CAM_JPEG_WIDTH 3264 |
|---|
| 2506 | #define CAM_JPEG_HEIGHT 2448 |
|---|
| 2507 | #define CAM_ACTIVE_AREA_X1 10 |
|---|
| 2508 | #define CAM_ACTIVE_AREA_Y1 8 |
|---|
| 2509 | #define CAM_ACTIVE_AREA_X2 3302 |
|---|
| 2510 | #define CAM_ACTIVE_AREA_Y2 2474 |
|---|
| 2511 | // camera name |
|---|
| 2512 | #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData |
|---|
| 2513 | |
|---|
| 2514 | #define DNG_EXT_FROM ".CR2" |
|---|
| 2515 | #define CAM_MULTIPART 1 |
|---|
| 2516 | //---------------------------------------------------------- |
|---|
| 2517 | |
|---|
| 2518 | #elif defined (CAMERA_sx10) |
|---|
| 2519 | #define CAM_PROPSET 2 |
|---|
| 2520 | #define CAM_DRYOS 1 |
|---|
| 2521 | |
|---|
| 2522 | #define CAM_RAW_ROWPIX 3720 |
|---|
| 2523 | #define CAM_RAW_ROWS 2772 |
|---|
| 2524 | |
|---|
| 2525 | #define CAM_SWIVEL_SCREEN 1 |
|---|
| 2526 | #define CAM_ADJUSTABLE_ALT_BUTTON 1 |
|---|
| 2527 | #undef CAM_CAN_SD_OVER_NOT_IN_MF |
|---|
| 2528 | #undef CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO |
|---|
| 2529 | #define CAM_HAS_VIDEO_BUTTON 1 |
|---|
| 2530 | #define CAM_VIDEO_QUALITY_ONLY 1 |
|---|
| 2531 | #define CAM_BRACKETING 1 |
|---|
| 2532 | #undef CAM_VIDEO_CONTROL |
|---|
| 2533 | #define CAM_MULTIPART 1 |
|---|
| 2534 | #define CAM_HAS_JOGDIAL 1 |
|---|
| 2535 | #undef CAM_USE_ZOOM_FOR_MF |
|---|
| 2536 | #undef CAM_UNCACHED_BIT // shut up compiler |
|---|
| 2537 | #define CAM_UNCACHED_BIT 0x40000000 |
|---|
| 2538 | |
|---|
| 2539 | #define DNG_SUPPORT 1 |
|---|
| 2540 | // pattern |
|---|
| 2541 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 2542 | // color |
|---|
| 2543 | |
|---|
| 2544 | #define CAM_COLORMATRIX1 \ |
|---|
| 2545 | 827547, 1000000, -290458, 1000000, -126086, 1000000, \ |
|---|
| 2546 | -12829, 1000000, 530507, 1000000, 50537, 1000000, \ |
|---|
| 2547 | 5181, 1000000, 48183, 1000000, 245014, 1000000 |
|---|
| 2548 | |
|---|
| 2549 | #define cam_CalibrationIlluminant1 1 // Daylight |
|---|
| 2550 | // cropping |
|---|
| 2551 | #define CAM_JPEG_WIDTH 3648 |
|---|
| 2552 | #define CAM_JPEG_HEIGHT 2736 |
|---|
| 2553 | #define CAM_ACTIVE_AREA_X1 6 |
|---|
| 2554 | #define CAM_ACTIVE_AREA_Y1 12 |
|---|
| 2555 | #define CAM_ACTIVE_AREA_X2 3690 |
|---|
| 2556 | #define CAM_ACTIVE_AREA_Y2 2772 |
|---|
| 2557 | // camera name |
|---|
| 2558 | #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData |
|---|
| 2559 | #undef CAM_SENSOR_BITS_PER_PIXEL |
|---|
| 2560 | #undef CAM_WHITE_LEVEL |
|---|
| 2561 | #undef CAM_BLACK_LEVEL |
|---|
| 2562 | #define CAM_SENSOR_BITS_PER_PIXEL 12 |
|---|
| 2563 | #define CAM_WHITE_LEVEL ((1<<CAM_SENSOR_BITS_PER_PIXEL)-1) |
|---|
| 2564 | #define CAM_BLACK_LEVEL 127 |
|---|
| 2565 | |
|---|
| 2566 | #define CAM_EXT_TV_RANGE 1 |
|---|
| 2567 | //---------------------------------------------------------- |
|---|
| 2568 | |
|---|
| 2569 | #elif defined (CAMERA_sx1) |
|---|
| 2570 | #define CAM_PROPSET 2 |
|---|
| 2571 | #define CAM_DRYOS 1 |
|---|
| 2572 | |
|---|
| 2573 | #define CAM_RAW_ROWPIX 4152 |
|---|
| 2574 | #define CAM_RAW_ROWS 2772 |
|---|
| 2575 | |
|---|
| 2576 | #define CAM_SWIVEL_SCREEN 1 |
|---|
| 2577 | #define CAM_ADJUSTABLE_ALT_BUTTON 1 |
|---|
| 2578 | #undef CAM_CAN_SD_OVER_NOT_IN_MF |
|---|
| 2579 | #undef CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO |
|---|
| 2580 | #define CAM_HAS_VIDEO_BUTTON 1 |
|---|
| 2581 | #define CAM_VIDEO_QUALITY_ONLY 1 |
|---|
| 2582 | #define CAM_BRACKETING 1 |
|---|
| 2583 | #undef CAM_VIDEO_CONTROL |
|---|
| 2584 | #define CAM_MULTIPART 1 |
|---|
| 2585 | #define CAM_HAS_JOGDIAL 1 |
|---|
| 2586 | #undef CAM_USE_ZOOM_FOR_MF |
|---|
| 2587 | #undef CAM_UNCACHED_BIT // shut up compiler |
|---|
| 2588 | #define CAM_UNCACHED_BIT 0x40000000 |
|---|
| 2589 | |
|---|
| 2590 | #define DNG_SUPPORT 1 |
|---|
| 2591 | // pattern |
|---|
| 2592 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 2593 | // color |
|---|
| 2594 | |
|---|
| 2595 | #define CAM_COLORMATRIX1 \ |
|---|
| 2596 | 827547, 1000000, -290458, 1000000, -126086, 1000000, \ |
|---|
| 2597 | -12829, 1000000, 530507, 1000000, 50537, 1000000, \ |
|---|
| 2598 | 5181, 1000000, 48183, 1000000, 245014, 1000000 |
|---|
| 2599 | |
|---|
| 2600 | #define cam_CalibrationIlluminant1 1 // Daylight |
|---|
| 2601 | // cropping |
|---|
| 2602 | #define CAM_JPEG_WIDTH 3648 |
|---|
| 2603 | #define CAM_JPEG_HEIGHT 2736 |
|---|
| 2604 | #define CAM_ACTIVE_AREA_X1 344 |
|---|
| 2605 | #define CAM_ACTIVE_AREA_Y1 24 |
|---|
| 2606 | #define CAM_ACTIVE_AREA_X2 3991 |
|---|
| 2607 | #define CAM_ACTIVE_AREA_Y2 2759 |
|---|
| 2608 | // camera name |
|---|
| 2609 | #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData |
|---|
| 2610 | #undef CAM_SENSOR_BITS_PER_PIXEL |
|---|
| 2611 | #undef CAM_WHITE_LEVEL |
|---|
| 2612 | #undef CAM_BLACK_LEVEL |
|---|
| 2613 | #define CAM_SENSOR_BITS_PER_PIXEL 12 |
|---|
| 2614 | #define CAM_WHITE_LEVEL ((1<<CAM_SENSOR_BITS_PER_PIXEL)-1) |
|---|
| 2615 | #define CAM_BLACK_LEVEL 127 |
|---|
| 2616 | |
|---|
| 2617 | #define CAM_EXT_TV_RANGE 1 |
|---|
| 2618 | |
|---|
| 2619 | #define CAM_HAS_VARIABLE_ASPECT 1 |
|---|
| 2620 | //---------------------------------------------------------- |
|---|
| 2621 | |
|---|
| 2622 | //******** |
|---|
| 2623 | /////SX110 |
|---|
| 2624 | //******** |
|---|
| 2625 | #elif defined (CAMERA_sx110is) |
|---|
| 2626 | #define CAM_COLORMATRIX1 \ |
|---|
| 2627 | 530200, 1000000, -42600, 1000000, -33000, 1000000, \ |
|---|
| 2628 | -525400, 1000000, 1092700, 1000000, 223700, 1000000, \ |
|---|
| 2629 | -103700, 1000000, 117900, 1000000, 421600, 1000000 |
|---|
| 2630 | #define CAM_ACTIVE_AREA_X1 8 |
|---|
| 2631 | #define CAM_ACTIVE_AREA_Y1 14 |
|---|
| 2632 | #define CAM_ACTIVE_AREA_X2 3688 |
|---|
| 2633 | #define CAM_ACTIVE_AREA_Y2 2772 |
|---|
| 2634 | |
|---|
| 2635 | #define CAM_PROPSET 2 |
|---|
| 2636 | #define CAM_DRYOS 1 |
|---|
| 2637 | #define CAM_RAW_ROWPIX 3720 |
|---|
| 2638 | #define CAM_RAW_ROWS 2772 |
|---|
| 2639 | #undef CAM_SYNCH |
|---|
| 2640 | #define CAM_CAN_MUTE_MICROPHONE 1 |
|---|
| 2641 | #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 |
|---|
| 2642 | #define CAM_REAR_CURTAIN 1 |
|---|
| 2643 | #define CAM_ADJUSTABLE_ALT_BUTTON 1 |
|---|
| 2644 | #define CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO 1 |
|---|
| 2645 | #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 |
|---|
| 2646 | #undef CAM_VIDEO_CONTROL |
|---|
| 2647 | #define CAM_MULTIPART 1 |
|---|
| 2648 | #define CAM_HAS_JOGDIAL 1 |
|---|
| 2649 | #undef CAM_USE_ZOOM_FOR_MF |
|---|
| 2650 | #undef CAM_UNCACHED_BIT // shut up compiler |
|---|
| 2651 | #define CAM_UNCACHED_BIT 0x40000000 |
|---|
| 2652 | #undef CAM_SENSOR_BITS_PER_PIXEL |
|---|
| 2653 | #define CAM_SENSOR_BITS_PER_PIXEL 12 |
|---|
| 2654 | #undef CAM_WHITE_LEVEL |
|---|
| 2655 | #define CAM_WHITE_LEVEL ((1<<CAM_SENSOR_BITS_PER_PIXEL)-1) |
|---|
| 2656 | // black level set to 128 per reports on the forum |
|---|
| 2657 | #undef CAM_BLACK_LEVEL |
|---|
| 2658 | #define CAM_BLACK_LEVEL 128 |
|---|
| 2659 | #define DNG_SUPPORT 1 |
|---|
| 2660 | #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData |
|---|
| 2661 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 2662 | #define cam_CalibrationIlluminant1 1 // Daylight |
|---|
| 2663 | #define CAM_JPEG_WIDTH 3456 |
|---|
| 2664 | #define CAM_JPEG_HEIGHT 2592 |
|---|
| 2665 | //---------------------------------------------------------- |
|---|
| 2666 | |
|---|
| 2667 | //******** |
|---|
| 2668 | /////SX200 |
|---|
| 2669 | //******** |
|---|
| 2670 | #elif defined (CAMERA_sx200is) |
|---|
| 2671 | // copied from SX10 and modified |
|---|
| 2672 | #define CAM_PROPSET 2 |
|---|
| 2673 | #define CAM_DRYOS 1 |
|---|
| 2674 | #define CAM_RAW_ROWPIX 4080 // from calcs see 100C lib.c |
|---|
| 2675 | #define CAM_RAW_ROWS 3048 // " " " " " |
|---|
| 2676 | |
|---|
| 2677 | #undef CAM_CAN_SD_OVER_NOT_IN_MF |
|---|
| 2678 | #undef CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO |
|---|
| 2679 | #define CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO 1 |
|---|
| 2680 | |
|---|
| 2681 | #define CAM_VIDEO_QUALITY_ONLY 1 |
|---|
| 2682 | |
|---|
| 2683 | #undef CAM_VIDEO_CONTROL |
|---|
| 2684 | #define CAM_MULTIPART 1 |
|---|
| 2685 | #define CAM_HAS_JOGDIAL 1 |
|---|
| 2686 | #undef CAM_USE_ZOOM_FOR_MF |
|---|
| 2687 | #undef CAM_UNCACHED_BIT // shut up compiler |
|---|
| 2688 | #define CAM_UNCACHED_BIT 0x40000000 |
|---|
| 2689 | #define DNG_SUPPORT 1 |
|---|
| 2690 | // pattern |
|---|
| 2691 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 2692 | // color |
|---|
| 2693 | //need fixing ***************************************************** |
|---|
| 2694 | #define CAM_COLORMATRIX1 \ |
|---|
| 2695 | 14134, 1000000, -5576, 1000000, -1527, 1000000, \ |
|---|
| 2696 | -1991, 1000000, 10719, 1000000, 1273, 1000000, \ |
|---|
| 2697 | -1158, 1000000, 1929, 1000000, 3581, 1000000 |
|---|
| 2698 | |
|---|
| 2699 | #define cam_CalibrationIlluminant1 17 // Standard Light A |
|---|
| 2700 | // cropping |
|---|
| 2701 | #define CAM_JPEG_WIDTH 4000 |
|---|
| 2702 | #define CAM_JPEG_HEIGHT 3000 |
|---|
| 2703 | #define CAM_ACTIVE_AREA_X1 52 |
|---|
| 2704 | #define CAM_ACTIVE_AREA_Y1 14 |
|---|
| 2705 | #define CAM_ACTIVE_AREA_X2 4052 |
|---|
| 2706 | #define CAM_ACTIVE_AREA_Y2 3014 |
|---|
| 2707 | // camera name |
|---|
| 2708 | #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData |
|---|
| 2709 | #undef CAM_SENSOR_BITS_PER_PIXEL |
|---|
| 2710 | #undef CAM_WHITE_LEVEL |
|---|
| 2711 | #undef CAM_BLACK_LEVEL |
|---|
| 2712 | #define CAM_SENSOR_BITS_PER_PIXEL 12 |
|---|
| 2713 | #define CAM_WHITE_LEVEL ((1<<CAM_SENSOR_BITS_PER_PIXEL)-1) |
|---|
| 2714 | #define CAM_BLACK_LEVEL 127 |
|---|
| 2715 | |
|---|
| 2716 | #define CAM_EXT_TV_RANGE 1 |
|---|
| 2717 | #undef CAM_BITMAP_PALETTE |
|---|
| 2718 | #define CAM_BITMAP_PALETTE 3 |
|---|
| 2719 | #undef CAM_HAS_ERASE_BUTTON |
|---|
| 2720 | #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 |
|---|
| 2721 | |
|---|
| 2722 | //nandoide sept-2009 |
|---|
| 2723 | #undef CAM_USES_ASPECT_CORRECTION |
|---|
| 2724 | #undef CAM_USES_ASPECT_YCORRECTION |
|---|
| 2725 | #define CAM_USES_ASPECT_CORRECTION 1 //camera uses the modified graphics primitives to map screens an viewports to buffers more sized |
|---|
| 2726 | #define CAM_USES_ASPECT_YCORRECTION 0 //only uses mappings on x coordinate |
|---|
| 2727 | |
|---|
| 2728 | // reyalp TODO not sure this stuff belongs in camera.h there will probably only be a few different setups |
|---|
| 2729 | // maybe we can just have one CAM_ options that picks what to use ? |
|---|
| 2730 | // values need to be better documented |
|---|
| 2731 | // reyalp - I guess these are bitmap ? |
|---|
| 2732 | //default mappings |
|---|
| 2733 | #undef ASPECT_XCORRECTION |
|---|
| 2734 | #define ASPECT_XCORRECTION(x) ( ( ((x)<<3) + (x) ) >>2 ) //correction x*screen_buffer_width/screen_width = x*720/320 = x*9/4 = (x<<3 + x)>>2 |
|---|
| 2735 | |
|---|
| 2736 | //grids |
|---|
| 2737 | #undef ASPECT_GRID_XCORRECTION |
|---|
| 2738 | #define ASPECT_GRID_XCORRECTION(x) ( ((x)<<3)/9 ) //grids are designed on a 360x240 basis and screen is 320x240, we need x*320/360=x*8/9 |
|---|
| 2739 | #undef ASPECT_GRID_YCORRECTION |
|---|
| 2740 | #define ASPECT_GRID_YCORRECTION(y) ( (y) ) //y correction for grids made on a 360x240 As the buffer is 720x240 we have no correction here. |
|---|
| 2741 | |
|---|
| 2742 | //viewport |
|---|
| 2743 | #undef ASPECT_VIEWPORT_XCORRECTION |
|---|
| 2744 | #define ASPECT_VIEWPORT_XCORRECTION(x) ASPECT_GRID_XCORRECTION(x) //viewport is 360x240 and screen 320x240, we need x*320/360=x*8/9, equal than grids, used by edgeoverlay |
|---|
| 2745 | #undef ASPECT_VIEWPORT_YCORRECTION |
|---|
| 2746 | #define ASPECT_VIEWPORT_YCORRECTION(y) ( (y) ) |
|---|
| 2747 | #undef EDGE_HMARGIN |
|---|
| 2748 | #define EDGE_HMARGIN 28 |
|---|
| 2749 | |
|---|
| 2750 | //games mappings |
|---|
| 2751 | #undef GAMES_SCREEN_WIDTH |
|---|
| 2752 | #undef GAMES_SCREEN_HEIGHT |
|---|
| 2753 | #define GAMES_SCREEN_WIDTH 360 |
|---|
| 2754 | #define GAMES_SCREEN_HEIGHT 240 |
|---|
| 2755 | #undef ASPECT_GAMES_XCORRECTION |
|---|
| 2756 | // 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 resolution |
|---|
| 2757 | // used by gui.c that configures the draw environment (through new draw_gui function) depending on gui_mode: we have then 360x240 for games (but deformed output:circles are not circles) and 320x240 for |
|---|
| 2758 | // other modes in perfect aspect ratio 4/3: slightly better visualization: file menus more readable, ... |
|---|
| 2759 | #define ASPECT_GAMES_XCORRECTION(x) ( ((x)<<1) ) |
|---|
| 2760 | #undef ASPECT_GAMES_YCORRECTION |
|---|
| 2761 | #define ASPECT_GAMES_YCORRECTION(y) ( (y) ) //none |
|---|
| 2762 | |
|---|
| 2763 | //zebra letterbox for saving memory |
|---|
| 2764 | #undef ZEBRA_HMARGIN0 |
|---|
| 2765 | #define ZEBRA_HMARGIN0 30 //this 30 rows are not used by the display buffer is 720x240 effective, no 960x270, i.e. (270-240) reduction in widht possible but not done (more difficult to manage it and slower). |
|---|
| 2766 | |
|---|
| 2767 | //end nandoide sept-2009 |
|---|
| 2768 | #define CAM_QUALITY_OVERRIDE 1 |
|---|
| 2769 | #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 |
|---|
| 2770 | #define CAM_ZEBRA_ASPECT_ADJUST 1 |
|---|
| 2771 | //---------------------------------------------------------- |
|---|
| 2772 | |
|---|
| 2773 | #elif defined (CAMERA_g11) |
|---|
| 2774 | #define CAM_DRYOS_2_3_R39 1 |
|---|
| 2775 | #define CAM_PROPSET 3 |
|---|
| 2776 | #define CAM_DRYOS 1 |
|---|
| 2777 | #undef CAM_USE_ZOOM_FOR_MF |
|---|
| 2778 | #define CAM_RAW_ROWPIX 3744 // See g11 lib.c |
|---|
| 2779 | #define CAM_RAW_ROWS 2784 // See g11 lib.c |
|---|
| 2780 | #undef CAM_EMUL_KEYPRESS_DURATION |
|---|
| 2781 | #define CAM_EMUL_KEYPRESS_DURATION 10 |
|---|
| 2782 | |
|---|
| 2783 | #undef CAM_MENU_BORDERWIDTH |
|---|
| 2784 | #define CAM_MENU_BORDERWIDTH 10 |
|---|
| 2785 | |
|---|
| 2786 | #define CAM_QUALITY_OVERRIDE 1 |
|---|
| 2787 | #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 |
|---|
| 2788 | #define CAM_HAS_JOGDIAL 1 |
|---|
| 2789 | #undef CAM_CONSOLE_LOG_ENABLED // Development: internal camera stdout -> A/stdout.txt |
|---|
| 2790 | #define CAM_BRACKETING 1 |
|---|
| 2791 | #define CAM_MULTIPART 1 |
|---|
| 2792 | #define CAM_EXT_TV_RANGE 1 |
|---|
| 2793 | #undef OPT_CURVES |
|---|
| 2794 | #undef CAM_UNCACHED_BIT |
|---|
| 2795 | #define CAM_UNCACHED_BIT 0x40000000 // G11 @FF888204(via ExMem.FreeCacheable) |
|---|
| 2796 | |
|---|
| 2797 | #define CAM_SWIVEL_SCREEN 1 |
|---|
| 2798 | #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 |
|---|
| 2799 | |
|---|
| 2800 | // camera name |
|---|
| 2801 | #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData |
|---|
| 2802 | #undef CAM_SENSOR_BITS_PER_PIXEL |
|---|
| 2803 | #undef CAM_WHITE_LEVEL |
|---|
| 2804 | #undef CAM_BLACK_LEVEL |
|---|
| 2805 | #define CAM_SENSOR_BITS_PER_PIXEL 12 |
|---|
| 2806 | #define CAM_WHITE_LEVEL ((1<<CAM_SENSOR_BITS_PER_PIXEL)-1) |
|---|
| 2807 | #define CAM_BLACK_LEVEL 127 |
|---|
| 2808 | |
|---|
| 2809 | #undef CAM_USES_ASPECT_CORRECTION |
|---|
| 2810 | #undef CAM_USES_ASPECT_YCORRECTION |
|---|
| 2811 | #define CAM_USES_ASPECT_CORRECTION 1 //camera uses the modified graphics primitives to map screens an viewports to buffers more sized |
|---|
| 2812 | #define CAM_USES_ASPECT_YCORRECTION 0 //only uses mappings on x coordinate |
|---|
| 2813 | //games mappings |
|---|
| 2814 | #undef GAMES_SCREEN_WIDTH |
|---|
| 2815 | #undef GAMES_SCREEN_HEIGHT |
|---|
| 2816 | #define GAMES_SCREEN_WIDTH 360 |
|---|
| 2817 | #define GAMES_SCREEN_HEIGHT 240 |
|---|
| 2818 | |
|---|
| 2819 | #undef CAM_BITMAP_PALETTE |
|---|
| 2820 | #define CAM_BITMAP_PALETTE 4 |
|---|
| 2821 | |
|---|
| 2822 | |
|---|
| 2823 | #undef ASPECT_XCORRECTION |
|---|
| 2824 | #define ASPECT_XCORRECTION(x) ( ( ((x)<<3) + (x) ) >>2 ) |
|---|
| 2825 | #undef ASPECT_GAMES_XCORRECTION |
|---|
| 2826 | #define ASPECT_GAMES_XCORRECTION(x) ( ((x)<<1) ) |
|---|
| 2827 | #undef ASPECT_GAMES_YCORRECTION |
|---|
| 2828 | #define ASPECT_GAMES_YCORRECTION(y) ( (y) ) //none |
|---|
| 2829 | |
|---|
| 2830 | #undef ASPECT_GRID_XCORRECTION |
|---|
| 2831 | #define ASPECT_GRID_XCORRECTION(x) ( ((x)<<3)/9 ) //grids are designed on a 360x240 basis and screen is 320x240, we need x*320/360=x*8/9 |
|---|
| 2832 | #undef ASPECT_GRID_YCORRECTION |
|---|
| 2833 | #define ASPECT_GRID_YCORRECTION(y) ( (y) ) //y correction for grids made on a 360x240 As the buffer is 720x240 we have no correction here. |
|---|
| 2834 | |
|---|
| 2835 | #undef ASPECT_VIEWPORT_XCORRECTION |
|---|
| 2836 | #define ASPECT_VIEWPORT_XCORRECTION(x) ASPECT_GRID_XCORRECTION(x) //viewport is 360x240 and screen 320x240, we need x*320/360=x*8/9, equal than grids, used by edgeoverlay |
|---|
| 2837 | #undef ASPECT_VIEWPORT_YCORRECTION |
|---|
| 2838 | #define ASPECT_VIEWPORT_YCORRECTION(y) ( (y) ) |
|---|
| 2839 | #undef EDGE_HMARGIN |
|---|
| 2840 | #define EDGE_HMARGIN 28 |
|---|
| 2841 | |
|---|
| 2842 | /**** From SX200IS, ok for G11 ?*/ |
|---|
| 2843 | #define DNG_SUPPORT 1 |
|---|
| 2844 | // pattern |
|---|
| 2845 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 2846 | // color |
|---|
| 2847 | //need fixing ***************************************************** |
|---|
| 2848 | #define CAM_COLORMATRIX1 \ |
|---|
| 2849 | 14134, 1000000, -5576, 1000000, -1527, 1000000, \ |
|---|
| 2850 | -1991, 1000000, 10719, 1000000, 1273, 1000000, \ |
|---|
| 2851 | -1158, 1000000, 1929, 1000000, 3581, 1000000 |
|---|
| 2852 | #define cam_CalibrationIlluminant1 17 // Standard Light A |
|---|
| 2853 | |
|---|
| 2854 | // cropping |
|---|
| 2855 | //g11 values from Amit Talwar |
|---|
| 2856 | #define CAM_JPEG_WIDTH 3648 |
|---|
| 2857 | #define CAM_JPEG_HEIGHT 2736 |
|---|
| 2858 | #define CAM_ACTIVE_AREA_X1 16 |
|---|
| 2859 | #define CAM_ACTIVE_AREA_Y1 8 |
|---|
| 2860 | #define CAM_ACTIVE_AREA_X2 3692 |
|---|
| 2861 | #define CAM_ACTIVE_AREA_Y2 2776 |
|---|
| 2862 | |
|---|
| 2863 | /**** From SX200IS, ok for G11 END?*/ |
|---|
| 2864 | #define CAM_ZEBRA_ASPECT_ADJUST 1 |
|---|
| 2865 | //---------------------------------------------------------- |
|---|
| 2866 | |
|---|
| 2867 | #elif defined (CAMERA_s90) |
|---|
| 2868 | #define CAM_DRYOS_2_3_R39 1 |
|---|
| 2869 | #define CAM_PROPSET 3 |
|---|
| 2870 | #define CAM_DRYOS 1 |
|---|
| 2871 | #undef CAM_USE_ZOOM_FOR_MF |
|---|
| 2872 | #define CAM_RAW_ROWPIX 3744 // See g11 lib.c |
|---|
| 2873 | #define CAM_RAW_ROWS 2784 // See g11 lib.c |
|---|
| 2874 | #undef CAM_EMUL_KEYPRESS_DURATION |
|---|
| 2875 | #define CAM_EMUL_KEYPRESS_DURATION 10 |
|---|
| 2876 | |
|---|
| 2877 | #undef CAM_MENU_BORDERWIDTH |
|---|
| 2878 | #define CAM_MENU_BORDERWIDTH 10 |
|---|
| 2879 | |
|---|
| 2880 | #define CAM_QUALITY_OVERRIDE 1 |
|---|
| 2881 | #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 |
|---|
| 2882 | #define CAM_HAS_JOGDIAL 1 |
|---|
| 2883 | #undef CAM_HAS_ERASE_BUTTON |
|---|
| 2884 | #undef CAM_CONSOLE_LOG_ENABLED // Development: internal camera stdout -> A/stdout.txt |
|---|
| 2885 | #define CAM_BRACKETING 1 |
|---|
| 2886 | #define CAM_MULTIPART 1 |
|---|
| 2887 | #define CAM_EXT_TV_RANGE 1 |
|---|
| 2888 | #undef OPT_CURVES |
|---|
| 2889 | #undef CAM_UNCACHED_BIT |
|---|
| 2890 | #define CAM_UNCACHED_BIT 0x40000000 // S90 @FF8875FC(via ExMem.FreeCacheable) |
|---|
| 2891 | |
|---|
| 2892 | #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 |
|---|
| 2893 | |
|---|
| 2894 | // camera name |
|---|
| 2895 | #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData |
|---|
| 2896 | #undef CAM_SENSOR_BITS_PER_PIXEL |
|---|
| 2897 | #undef CAM_WHITE_LEVEL |
|---|
| 2898 | #undef CAM_BLACK_LEVEL |
|---|
| 2899 | #define CAM_SENSOR_BITS_PER_PIXEL 12 |
|---|
| 2900 | #define CAM_WHITE_LEVEL ((1<<CAM_SENSOR_BITS_PER_PIXEL)-1) |
|---|
| 2901 | #define CAM_BLACK_LEVEL 127 |
|---|
| 2902 | |
|---|
| 2903 | #undef CAM_USES_ASPECT_CORRECTION |
|---|
| 2904 | #undef CAM_USES_ASPECT_YCORRECTION |
|---|
| 2905 | #define CAM_USES_ASPECT_CORRECTION 1 //camera uses the modified graphics primitives to map screens an viewports to buffers more sized |
|---|
| 2906 | #define CAM_USES_ASPECT_YCORRECTION 0 //only uses mappings on x coordinate |
|---|
| 2907 | //games mappings |
|---|
| 2908 | #undef GAMES_SCREEN_WIDTH |
|---|
| 2909 | #undef GAMES_SCREEN_HEIGHT |
|---|
| 2910 | #define GAMES_SCREEN_WIDTH 360 |
|---|
| 2911 | #define GAMES_SCREEN_HEIGHT 240 |
|---|
| 2912 | |
|---|
| 2913 | #undef CAM_BITMAP_PALETTE |
|---|
| 2914 | #define CAM_BITMAP_PALETTE 4 |
|---|
| 2915 | |
|---|
| 2916 | #undef ASPECT_XCORRECTION |
|---|
| 2917 | #define ASPECT_XCORRECTION(x) ( ( ((x)<<3) + (x) ) >>2 ) |
|---|
| 2918 | #undef ASPECT_GAMES_XCORRECTION |
|---|
| 2919 | #define ASPECT_GAMES_XCORRECTION(x) ( ((x)<<1) ) |
|---|
| 2920 | #undef ASPECT_GAMES_YCORRECTION |
|---|
| 2921 | #define ASPECT_GAMES_YCORRECTION(y) ( (y) ) //none |
|---|
| 2922 | |
|---|
| 2923 | #undef ASPECT_GRID_XCORRECTION |
|---|
| 2924 | #define ASPECT_GRID_XCORRECTION(x) ( ((x)<<3)/9 ) //grids are designed on a 360x240 basis and screen is 320x240, we need x*320/360=x*8/9 |
|---|
| 2925 | #undef ASPECT_GRID_YCORRECTION |
|---|
| 2926 | #define ASPECT_GRID_YCORRECTION(y) ( (y) ) //y correction for grids made on a 360x240 As the buffer is 720x240 we have no correction here. |
|---|
| 2927 | |
|---|
| 2928 | #undef ASPECT_VIEWPORT_XCORRECTION |
|---|
| 2929 | #define ASPECT_VIEWPORT_XCORRECTION(x) ASPECT_GRID_XCORRECTION(x) //viewport is 360x240 and screen 320x240, we need x*320/360=x*8/9, equal than grids, used by edgeoverlay |
|---|
| 2930 | #undef ASPECT_VIEWPORT_YCORRECTION |
|---|
| 2931 | #define ASPECT_VIEWPORT_YCORRECTION(y) ( (y) ) |
|---|
| 2932 | #undef EDGE_HMARGIN |
|---|
| 2933 | #define EDGE_HMARGIN 28 |
|---|
| 2934 | |
|---|
| 2935 | /**** From SX200IS, ok for S90 ?*/ |
|---|
| 2936 | #define DNG_SUPPORT 1 |
|---|
| 2937 | // pattern |
|---|
| 2938 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 2939 | // color |
|---|
| 2940 | //need fixing ***************************************************** |
|---|
| 2941 | #define CAM_COLORMATRIX1 \ |
|---|
| 2942 | 14134, 1000000, -5576, 1000000, -1527, 1000000, \ |
|---|
| 2943 | -1991, 1000000, 10719, 1000000, 1273, 1000000, \ |
|---|
| 2944 | -1158, 1000000, 1929, 1000000, 3581, 1000000 |
|---|
| 2945 | #define cam_CalibrationIlluminant1 17 // Standard Light A |
|---|
| 2946 | |
|---|
| 2947 | // cropping -> G11 |
|---|
| 2948 | #define CAM_JPEG_WIDTH 3648 |
|---|
| 2949 | #define CAM_JPEG_HEIGHT 2736 |
|---|
| 2950 | #define CAM_ACTIVE_AREA_X1 16 |
|---|
| 2951 | #define CAM_ACTIVE_AREA_Y1 8 |
|---|
| 2952 | #define CAM_ACTIVE_AREA_X2 3692 |
|---|
| 2953 | #define CAM_ACTIVE_AREA_Y2 2776 |
|---|
| 2954 | /**** From SX200IS, ok for S90 END?*/ |
|---|
| 2955 | |
|---|
| 2956 | #define CAM_ZEBRA_ASPECT_ADJUST 1 |
|---|
| 2957 | //---------------------------------------------------------- |
|---|
| 2958 | |
|---|
| 2959 | #elif defined (CAMERA_sx20) |
|---|
| 2960 | #define CAM_PROPSET 3 |
|---|
| 2961 | #define CAM_DRYOS 1 |
|---|
| 2962 | #define CAM_DRYOS_2_3_R39 1 |
|---|
| 2963 | |
|---|
| 2964 | #define CAM_RAW_ROWPIX 4080 |
|---|
| 2965 | #define CAM_RAW_ROWS 3048 |
|---|
| 2966 | |
|---|
| 2967 | #define CAM_SWIVEL_SCREEN 1 |
|---|
| 2968 | #define CAM_ADJUSTABLE_ALT_BUTTON 1 |
|---|
| 2969 | #undef CAM_CAN_SD_OVER_NOT_IN_MF |
|---|
| 2970 | #undef CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO |
|---|
| 2971 | #define CAM_HAS_VIDEO_BUTTON 1 |
|---|
| 2972 | #define CAM_VIDEO_QUALITY_ONLY 1 |
|---|
| 2973 | #define CAM_BRACKETING 1 |
|---|
| 2974 | #undef CAM_VIDEO_CONTROL |
|---|
| 2975 | #define CAM_MULTIPART 1 |
|---|
| 2976 | #define CAM_HAS_JOGDIAL 1 |
|---|
| 2977 | #undef CAM_USE_ZOOM_FOR_MF |
|---|
| 2978 | #undef CAM_UNCACHED_BIT // shut up compiler |
|---|
| 2979 | #define CAM_UNCACHED_BIT 0x40000000 |
|---|
| 2980 | |
|---|
| 2981 | #define DNG_SUPPORT 1 |
|---|
| 2982 | // pattern |
|---|
| 2983 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 2984 | // color |
|---|
| 2985 | |
|---|
| 2986 | #define CAM_COLORMATRIX1 \ |
|---|
| 2987 | 827547, 1000000, -290458, 1000000, -126086, 1000000, \ |
|---|
| 2988 | -12829, 1000000, 530507, 1000000, 50537, 1000000, \ |
|---|
| 2989 | 5181, 1000000, 48183, 1000000, 245014, 1000000 |
|---|
| 2990 | |
|---|
| 2991 | #define cam_CalibrationIlluminant1 1 // Daylight |
|---|
| 2992 | // cropping |
|---|
| 2993 | #define CAM_JPEG_WIDTH 4000 |
|---|
| 2994 | #define CAM_JPEG_HEIGHT 3000 |
|---|
| 2995 | #define CAM_ACTIVE_AREA_X1 24 |
|---|
| 2996 | #define CAM_ACTIVE_AREA_Y1 12 |
|---|
| 2997 | #define CAM_ACTIVE_AREA_X2 4080-48 |
|---|
| 2998 | #define CAM_ACTIVE_AREA_Y2 3048-24 |
|---|
| 2999 | // camera name |
|---|
| 3000 | #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData |
|---|
| 3001 | #undef CAM_SENSOR_BITS_PER_PIXEL |
|---|
| 3002 | #undef CAM_WHITE_LEVEL |
|---|
| 3003 | #undef CAM_BLACK_LEVEL |
|---|
| 3004 | #define CAM_SENSOR_BITS_PER_PIXEL 12 |
|---|
| 3005 | #define CAM_WHITE_LEVEL ((1<<CAM_SENSOR_BITS_PER_PIXEL)-1) |
|---|
| 3006 | #define CAM_BLACK_LEVEL 127 |
|---|
| 3007 | |
|---|
| 3008 | #define CAM_EXT_TV_RANGE 1 |
|---|
| 3009 | #define CAM_QUALITY_OVERRIDE 1 |
|---|
| 3010 | |
|---|
| 3011 | // copied from the SX200 which has the same video buffer size |
|---|
| 3012 | #undef CAM_USES_ASPECT_CORRECTION |
|---|
| 3013 | #undef CAM_USES_ASPECT_YCORRECTION |
|---|
| 3014 | #define CAM_USES_ASPECT_CORRECTION 1 //camera uses the modified graphics primitives to map screens an viewports to buffers more sized |
|---|
| 3015 | #define CAM_USES_ASPECT_YCORRECTION 0 //only uses mappings on x coordinate |
|---|
| 3016 | |
|---|
| 3017 | #undef ASPECT_XCORRECTION |
|---|
| 3018 | #define ASPECT_XCORRECTION(x) ( ( ((x)<<3) + (x) ) >>2 ) //correction x*screen_buffer_width/screen_width = x*720/320 = x*9/4 = (x<<3 + x)>>2 |
|---|
| 3019 | |
|---|
| 3020 | #undef ASPECT_GRID_XCORRECTION |
|---|
| 3021 | #define ASPECT_GRID_XCORRECTION(x) ( ((x)<<3)/9 ) //grids are designed on a 360x240 basis and screen is 320x240, we need x*320/360=x*8/9 |
|---|
| 3022 | #undef ASPECT_GRID_YCORRECTION |
|---|
| 3023 | #define ASPECT_GRID_YCORRECTION(y) ( (y) ) //y correction for grids made on a 360x240 As the buffer is 720x240 we have no correction here. |
|---|
| 3024 | |
|---|
| 3025 | #undef ASPECT_VIEWPORT_XCORRECTION |
|---|
| 3026 | #define ASPECT_VIEWPORT_XCORRECTION(x) ASPECT_GRID_XCORRECTION(x) //viewport is 360x240 and screen 320x240, we need x*320/360=x*8/9, equal than grids, used by edgeoverlay |
|---|
| 3027 | #undef ASPECT_VIEWPORT_YCORRECTION |
|---|
| 3028 | #define ASPECT_VIEWPORT_YCORRECTION(y) ( (y) ) |
|---|
| 3029 | |
|---|
| 3030 | //games mappings |
|---|
| 3031 | #undef GAMES_SCREEN_WIDTH |
|---|
| 3032 | #undef GAMES_SCREEN_HEIGHT |
|---|
| 3033 | #define GAMES_SCREEN_WIDTH 360 |
|---|
| 3034 | #define GAMES_SCREEN_HEIGHT 240 |
|---|
| 3035 | #undef ASPECT_GAMES_XCORRECTION |
|---|
| 3036 | // 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 resolution |
|---|
| 3037 | // 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 for |
|---|
| 3038 | // other modes in perfect aspect ratio 4/3: slightly better visualization: file menus more readable, ... |
|---|
| 3039 | #define ASPECT_GAMES_XCORRECTION(x) ( ((x)<<1) ) |
|---|
| 3040 | #undef ASPECT_GAMES_YCORRECTION |
|---|
| 3041 | #define ASPECT_GAMES_YCORRECTION(y) ( (y) ) //none |
|---|
| 3042 | |
|---|
| 3043 | #define CAM_ZEBRA_ASPECT_ADJUST 1 |
|---|
| 3044 | #define CAM_ZEBRA_NOBUF 1 |
|---|
| 3045 | |
|---|
| 3046 | #undef CAM_BITMAP_PALETTE |
|---|
| 3047 | #define CAM_BITMAP_PALETTE 6 |
|---|
| 3048 | |
|---|
| 3049 | //zebra letterbox for saving memory |
|---|
| 3050 | #undef ZEBRA_HMARGIN0 |
|---|
| 3051 | #define ZEBRA_HMARGIN0 30 //this 30 rows are not used by the display buffer is 720x240 effective, no 960x270, i.e. (270-240) reduction in widht possible but not done (more difficult to manage it and slower). |
|---|
| 3052 | |
|---|
| 3053 | #undef EDGE_HMARGIN |
|---|
| 3054 | #define EDGE_HMARGIN 28 |
|---|
| 3055 | |
|---|
| 3056 | //---------------------------------------------------------- |
|---|
| 3057 | |
|---|
| 3058 | |
|---|
| 3059 | #else |
|---|
| 3060 | #error camera type not defined |
|---|
| 3061 | #endif |
|---|
| 3062 | //========================================================== |
|---|
| 3063 | // END of Camera-dependent settings |
|---|
| 3064 | //========================================================== |
|---|
| 3065 | |
|---|
| 3066 | |
|---|
| 3067 | // curves only work in 10bpp for now |
|---|
| 3068 | #if CAM_SENSOR_BITS_PER_PIXEL != 10 |
|---|
| 3069 | #undef OPT_CURVES |
|---|
| 3070 | #endif |
|---|
| 3071 | |
|---|
| 3072 | #ifndef OPT_PTP |
|---|
| 3073 | #undef CAM_CHDK_PTP |
|---|
| 3074 | #endif |
|---|
| 3075 | |
|---|
| 3076 | #endif /* CAMERA_H */ |
|---|