| 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 | #undef CAM_AF_SCAN_DURING_VIDEO_RECORD // CHDK can make single AF scan during video record |
|---|
| 46 | #undef CAM_HAS_VIDEO_BUTTON // Camera can take stills in video mode, and vice versa |
|---|
| 47 | #undef CAM_EV_IN_VIDEO // CHDK can change exposure in video mode |
|---|
| 48 | #define CAM_VIDEO_CONTROL 1 // pause / unpause video recordings |
|---|
| 49 | |
|---|
| 50 | #define ZOOM_OVERRIDE 0 // Shall zoom-override be used? default 0 becoz not implemented right now |
|---|
| 51 | #undef DNG_SUPPORT |
|---|
| 52 | #undef CAM_REAR_CURTAIN // Camera do not have front/rear curtain flash sync in menu |
|---|
| 53 | #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!) |
|---|
| 54 | #undef CAM_EXT_TV_RANGE // CHDK can make exposure time longer than 64s |
|---|
| 55 | |
|---|
| 56 | #define CAM_UNCACHED_BIT 0x10000000 // bit indicating the uncached memory |
|---|
| 57 | |
|---|
| 58 | #define CAM_MAKE "Canon" |
|---|
| 59 | #define CAM_SENSOR_BITS_PER_PIXEL 10 // Bits per pixel. 10 is standard, 12 is supported except for curves |
|---|
| 60 | #define CAM_WHITE_LEVEL ((1<<CAM_SENSOR_BITS_PER_PIXEL)-1) |
|---|
| 61 | #define CAM_BLACK_LEVEL 31 |
|---|
| 62 | |
|---|
| 63 | #define CAM_BITMAP_PALETTE 1 // which color set is used for this camera |
|---|
| 64 | |
|---|
| 65 | #undef CAM_HAS_VARIABLE_ASPECT // can switch between 16:9 and 4:3 |
|---|
| 66 | #define DEFAULT_RAW_EXT 1 // extension to use for raw (see raw_exts in conf.c) |
|---|
| 67 | |
|---|
| 68 | //---------------------------------------------------------- |
|---|
| 69 | // Overridden values for each camera |
|---|
| 70 | //---------------------------------------------------------- |
|---|
| 71 | |
|---|
| 72 | //========================================================== |
|---|
| 73 | // G-series |
|---|
| 74 | //========================================================== |
|---|
| 75 | #if defined (CAMERA_g7) |
|---|
| 76 | #define CAM_PROPSET 1 |
|---|
| 77 | |
|---|
| 78 | #define CAM_RAW_ROWPIX 3736 // for 10 MP |
|---|
| 79 | #define CAM_RAW_ROWS 2772 // for 10 MP |
|---|
| 80 | |
|---|
| 81 | #undef CAM_USE_ZOOM_FOR_MF |
|---|
| 82 | #define CAM_ADJUSTABLE_ALT_BUTTON 1 |
|---|
| 83 | #define CAM_MULTIPART 1 |
|---|
| 84 | #define CAM_HAS_ND_FILTER 1 |
|---|
| 85 | #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 |
|---|
| 86 | #define CAM_HAS_JOGDIAL 1 |
|---|
| 87 | #define DNG_SUPPORT 1 |
|---|
| 88 | // pattern |
|---|
| 89 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 90 | // color |
|---|
| 91 | #define CAM_COLORMATRIX1 \ |
|---|
| 92 | 575419, 1000000,-185557, 1000000, -77898, 1000000, \ |
|---|
| 93 | -213702, 1000000, 733569, 1000000, 81514, 1000000, \ |
|---|
| 94 | -24604, 1000000, 131906, 1000000, 280378, 1000000 |
|---|
| 95 | |
|---|
| 96 | #define cam_CalibrationIlluminant1 1 // Daylight |
|---|
| 97 | // cropping |
|---|
| 98 | #define CAM_JPEG_WIDTH 3648 |
|---|
| 99 | #define CAM_JPEG_HEIGHT 2736 |
|---|
| 100 | #define CAM_ACTIVE_AREA_X1 14 |
|---|
| 101 | #define CAM_ACTIVE_AREA_Y1 8 |
|---|
| 102 | #define CAM_ACTIVE_AREA_X2 3682 |
|---|
| 103 | #define CAM_ACTIVE_AREA_Y2 2764 |
|---|
| 104 | // camera name |
|---|
| 105 | #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData |
|---|
| 106 | #define CAM_BRACKETING 1 |
|---|
| 107 | #define DNG_EXT_FROM ".DPS" |
|---|
| 108 | //---------------------------------------------------------- |
|---|
| 109 | #elif defined (CAMERA_g9) |
|---|
| 110 | #define CAM_PROPSET 2 |
|---|
| 111 | #define CAM_DRYOS 1 |
|---|
| 112 | |
|---|
| 113 | #define CAM_RAW_ROWPIX 4104 // for 12 MP |
|---|
| 114 | #define CAM_RAW_ROWS 3048 // for 12 MP |
|---|
| 115 | #define CAM_HAS_ND_FILTER 1 |
|---|
| 116 | #define CAM_ADJUSTABLE_ALT_BUTTON 1 |
|---|
| 117 | #undef CAM_EMUL_KEYPRESS_DURATION |
|---|
| 118 | #define CAM_EMUL_KEYPRESS_DURATION 10 |
|---|
| 119 | #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 |
|---|
| 120 | #define CAM_HAS_JOGDIAL 1 |
|---|
| 121 | // #define CAM_CONSOLE_LOG_ENABLED 1 |
|---|
| 122 | #define CAM_BRACKETING 1 |
|---|
| 123 | #define CAM_MULTIPART 1 |
|---|
| 124 | //========================================================== |
|---|
| 125 | // A-series |
|---|
| 126 | //========================================================== |
|---|
| 127 | #elif defined (CAMERA_a450) |
|---|
| 128 | #define CAM_PROPSET 2 |
|---|
| 129 | |
|---|
| 130 | #define CAM_RAW_ROWPIX 2664 // for 5 MP 1/3" sensor size |
|---|
| 131 | #define CAM_RAW_ROWS 1968 // for 5 MP 1/3" sensor size |
|---|
| 132 | |
|---|
| 133 | #undef CAM_USE_ZOOM_FOR_MF |
|---|
| 134 | #undef CAM_HAS_ZOOM_LEVER |
|---|
| 135 | #define CAM_DRAW_EXPOSITION 1 |
|---|
| 136 | #undef CAM_HAS_ERASE_BUTTON |
|---|
| 137 | #undef CAM_HAS_IRIS_DIAPHRAGM |
|---|
| 138 | #define CAM_HAS_ND_FILTER 1 |
|---|
| 139 | #undef CAM_HAS_MANUAL_FOCUS |
|---|
| 140 | #undef CAM_HAS_USER_TV_MODES |
|---|
| 141 | #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 |
|---|
| 142 | #undef CAM_HAS_IS |
|---|
| 143 | #define CAM_CAN_MUTE_MICROPHONE 1 |
|---|
| 144 | #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 |
|---|
| 145 | #define CAM_EV_IN_VIDEO 1 |
|---|
| 146 | #define DNG_SUPPORT 1 |
|---|
| 147 | // pattern |
|---|
| 148 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 149 | // color |
|---|
| 150 | #define CAM_COLORMATRIX1 \ |
|---|
| 151 | 652279, 1000000,-199279, 1000000, -101833, 1000000, \ |
|---|
| 152 | -159819, 1000000, 619308, 1000000, 78172, 1000000, \ |
|---|
| 153 | -58827, 1000000, 150963, 1000000, 264216, 1000000 |
|---|
| 154 | |
|---|
| 155 | #define cam_CalibrationIlluminant1 1 // Daylight |
|---|
| 156 | // cropping |
|---|
| 157 | #define CAM_JPEG_WIDTH 2592 |
|---|
| 158 | #define CAM_JPEG_HEIGHT 1944 |
|---|
| 159 | #define CAM_ACTIVE_AREA_X1 6 |
|---|
| 160 | #define CAM_ACTIVE_AREA_Y1 6 |
|---|
| 161 | #define CAM_ACTIVE_AREA_X2 2618 |
|---|
| 162 | #define CAM_ACTIVE_AREA_Y2 1962 |
|---|
| 163 | // camera name |
|---|
| 164 | #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData |
|---|
| 165 | |
|---|
| 166 | |
|---|
| 167 | //---------------------------------------------------------- |
|---|
| 168 | #elif defined (CAMERA_a460) |
|---|
| 169 | #define CAM_PROPSET 2 |
|---|
| 170 | |
|---|
| 171 | #define CAM_RAW_ROWPIX 2664 // for 5 MP 1/3" sensor size |
|---|
| 172 | #define CAM_RAW_ROWS 1968 // for 5 MP 1/3" sensor size |
|---|
| 173 | |
|---|
| 174 | #undef CAM_USE_ZOOM_FOR_MF |
|---|
| 175 | #undef CAM_HAS_ZOOM_LEVER |
|---|
| 176 | #define CAM_DRAW_EXPOSITION 1 |
|---|
| 177 | #undef CAM_HAS_ERASE_BUTTON |
|---|
| 178 | #undef CAM_HAS_IRIS_DIAPHRAGM |
|---|
| 179 | #define CAM_HAS_ND_FILTER 1 |
|---|
| 180 | #undef CAM_HAS_MANUAL_FOCUS |
|---|
| 181 | #undef CAM_HAS_USER_TV_MODES |
|---|
| 182 | #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 |
|---|
| 183 | #undef CAM_HAS_IS |
|---|
| 184 | #define CAM_CAN_MUTE_MICROPHONE 1 |
|---|
| 185 | #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 |
|---|
| 186 | #define CAM_EV_IN_VIDEO 1 |
|---|
| 187 | #define DNG_SUPPORT 1 |
|---|
| 188 | // pattern |
|---|
| 189 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 190 | // color |
|---|
| 191 | #define CAM_COLORMATRIX1 \ |
|---|
| 192 | 649324, 1000000,-233893, 1000000, -88521, 1000000, \ |
|---|
| 193 | -158955, 1000000, 593407, 1000000, 69775, 1000000, \ |
|---|
| 194 | -44551, 1000000, 136891, 1000000, 254362, 1000000 |
|---|
| 195 | |
|---|
| 196 | #define cam_CalibrationIlluminant1 1 // Daylight |
|---|
| 197 | // cropping |
|---|
| 198 | #define CAM_JPEG_WIDTH 2592 |
|---|
| 199 | #define CAM_JPEG_HEIGHT 1944 |
|---|
| 200 | #define CAM_ACTIVE_AREA_X1 6 |
|---|
| 201 | #define CAM_ACTIVE_AREA_Y1 6 |
|---|
| 202 | #define CAM_ACTIVE_AREA_X2 2618 |
|---|
| 203 | #define CAM_ACTIVE_AREA_Y2 1962 |
|---|
| 204 | // camera name |
|---|
| 205 | #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData |
|---|
| 206 | #define DNG_EXT_FROM ".DPS" |
|---|
| 207 | |
|---|
| 208 | //---------------------------------------------------------- |
|---|
| 209 | #elif defined (CAMERA_a470) |
|---|
| 210 | #define CAM_PROPSET 2 |
|---|
| 211 | #define CAM_DRYOS 1 |
|---|
| 212 | |
|---|
| 213 | #define CAM_RAW_ROWPIX 3152 // for 7 MP |
|---|
| 214 | #define CAM_RAW_ROWS 2340 // for 7 MP |
|---|
| 215 | |
|---|
| 216 | #undef CAM_USE_ZOOM_FOR_MF |
|---|
| 217 | #undef CAM_HAS_ZOOM_LEVER |
|---|
| 218 | #undef CAM_HAS_ERASE_BUTTON |
|---|
| 219 | #undef CAM_HAS_IRIS_DIAPHRAGM |
|---|
| 220 | #define CAM_HAS_ND_FILTER 1 |
|---|
| 221 | #undef CAM_HAS_MANUAL_FOCUS |
|---|
| 222 | #undef CAM_HAS_USER_TV_MODES |
|---|
| 223 | #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 |
|---|
| 224 | #undef CAM_HAS_IS |
|---|
| 225 | #define CAM_CAN_MUTE_MICROPHONE 1 |
|---|
| 226 | #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 |
|---|
| 227 | #define CAM_EV_IN_VIDEO 1 |
|---|
| 228 | #define DNG_SUPPORT 1 |
|---|
| 229 | #define CAM_MULTIPART 1 |
|---|
| 230 | |
|---|
| 231 | // pattern |
|---|
| 232 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 233 | // color |
|---|
| 234 | #define CAM_COLORMATRIX1 \ |
|---|
| 235 | 673251, 1000000,-200684, 1000000, -98680, 1000000, \ |
|---|
| 236 | -163638, 1000000, 651247, 1000000, 74004, 1000000, \ |
|---|
| 237 | 14221, 1000000, 52979, 1000000, 265291, 1000000 |
|---|
| 238 | #define cam_CalibrationIlluminant1 1 // Daylight |
|---|
| 239 | // cropping |
|---|
| 240 | #define CAM_JPEG_WIDTH 3096 |
|---|
| 241 | #define CAM_JPEG_HEIGHT 2324 |
|---|
| 242 | #define CAM_ACTIVE_AREA_X1 12 |
|---|
| 243 | #define CAM_ACTIVE_AREA_Y1 8 |
|---|
| 244 | #define CAM_ACTIVE_AREA_X2 3108 |
|---|
| 245 | #define CAM_ACTIVE_AREA_Y2 2332 |
|---|
| 246 | // camera name |
|---|
| 247 | #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData |
|---|
| 248 | //#define DNG_EXT_FROM ".DPS" |
|---|
| 249 | |
|---|
| 250 | //---------------------------------------------------------- |
|---|
| 251 | #elif defined (CAMERA_a530) |
|---|
| 252 | #define CAM_PROPSET 1 |
|---|
| 253 | |
|---|
| 254 | // 2672x1968 image - like most other 5m sensors |
|---|
| 255 | #define CAM_RAW_ROWPIX 2672 // for 5 MP |
|---|
| 256 | #define CAM_RAW_ROWS 1968 // for 5 MP |
|---|
| 257 | // 2672x1992 image - eventually probably real sensor size |
|---|
| 258 | // #define CAM_RAW_ROWPIX 2672 // for 5 MP |
|---|
| 259 | // #define CAM_RAW_ROWS 1992 // for 5 MP |
|---|
| 260 | |
|---|
| 261 | #undef CAM_USE_ZOOM_FOR_MF |
|---|
| 262 | #define CAM_HAS_ERASE_BUTTON 1 |
|---|
| 263 | #undef CAM_HAS_IRIS_DIAPHRAGM |
|---|
| 264 | #define CAM_HAS_ND_FILTER 1 |
|---|
| 265 | #define CAM_HAS_MANUAL_FOCUS 1 |
|---|
| 266 | #define CAM_DRAW_EXPOSITION 1 |
|---|
| 267 | #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 |
|---|
| 268 | #undef CAM_CAN_SD_OVER_NOT_IN_MF |
|---|
| 269 | #undef CAM_HAS_IS |
|---|
| 270 | #define CAM_CAN_MUTE_MICROPHONE 1 |
|---|
| 271 | #define CAM_AF_SCAN_DURING_VIDEO_RECORD 2 |
|---|
| 272 | #define CAM_EV_IN_VIDEO 1 |
|---|
| 273 | #define DNG_SUPPORT 1 |
|---|
| 274 | // pattern |
|---|
| 275 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 276 | // color |
|---|
| 277 | #define CAM_COLORMATRIX1 \ |
|---|
| 278 | 725264, 1000000,-240542, 1000000, -122310, 1000000, \ |
|---|
| 279 | -210248, 1000000, 656077, 1000000, 52390, 1000000, \ |
|---|
| 280 | -11282, 1000000, 70400, 1000000, 300712, 1000000 |
|---|
| 281 | |
|---|
| 282 | #define cam_CalibrationIlluminant1 1 // Daylight |
|---|
| 283 | // cropping |
|---|
| 284 | #define CAM_JPEG_WIDTH 2592 |
|---|
| 285 | #define CAM_JPEG_HEIGHT 1944 |
|---|
| 286 | #define CAM_ACTIVE_AREA_X1 12 |
|---|
| 287 | #define CAM_ACTIVE_AREA_Y1 20 |
|---|
| 288 | #define CAM_ACTIVE_AREA_X2 2628 |
|---|
| 289 | #define CAM_ACTIVE_AREA_Y2 1968 |
|---|
| 290 | // camera name |
|---|
| 291 | #define PARAM_CAMERA_NAME 3 // parameter number for GetParameterData |
|---|
| 292 | #define DNG_EXT_FROM ".DPS" |
|---|
| 293 | |
|---|
| 294 | #define CAM_EXT_TV_RANGE 1 |
|---|
| 295 | |
|---|
| 296 | //---------------------------------------------------------- |
|---|
| 297 | #elif defined (CAMERA_a540) |
|---|
| 298 | #define CAM_PROPSET 1 |
|---|
| 299 | |
|---|
| 300 | #define CAM_RAW_ROWPIX 2888 // for 6 MP |
|---|
| 301 | #define CAM_RAW_ROWS 2136 // for 6 MP |
|---|
| 302 | |
|---|
| 303 | #undef CAM_USE_ZOOM_FOR_MF |
|---|
| 304 | #define CAM_HAS_ERASE_BUTTON 1 |
|---|
| 305 | #define CAM_HAS_IRIS_DIAPHRAGM 1 |
|---|
| 306 | #undef CAM_HAS_ND_FILTER |
|---|
| 307 | #define CAM_HAS_MANUAL_FOCUS 1 |
|---|
| 308 | #undef CAM_DRAW_EXPOSITION |
|---|
| 309 | #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 |
|---|
| 310 | #undef CAM_HAS_IS |
|---|
| 311 | #define CAM_CAN_MUTE_MICROPHONE 1 |
|---|
| 312 | #define CAM_AF_SCAN_DURING_VIDEO_RECORD 2 |
|---|
| 313 | #define CAM_EV_IN_VIDEO 1 |
|---|
| 314 | #define DNG_SUPPORT 1 |
|---|
| 315 | // pattern |
|---|
| 316 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 317 | // color |
|---|
| 318 | #define CAM_COLORMATRIX1 \ |
|---|
| 319 | 687147, 1000000,-201964, 1000000, -125024, 1000000, \ |
|---|
| 320 | -148403, 1000000, 566810, 1000000, 45401, 1000000, \ |
|---|
| 321 | -9472, 1000000, 63186, 1000000, 208602, 1000000 |
|---|
| 322 | |
|---|
| 323 | #define cam_CalibrationIlluminant1 1 // Daylight |
|---|
| 324 | // cropping |
|---|
| 325 | #define CAM_JPEG_WIDTH 2816 |
|---|
| 326 | #define CAM_JPEG_HEIGHT 2112 |
|---|
| 327 | #define CAM_ACTIVE_AREA_X1 44 |
|---|
| 328 | #define CAM_ACTIVE_AREA_Y1 8 |
|---|
| 329 | #define CAM_ACTIVE_AREA_X2 2884 |
|---|
| 330 | #define CAM_ACTIVE_AREA_Y2 2136 |
|---|
| 331 | // camera name |
|---|
| 332 | #define PARAM_CAMERA_NAME 3 // parameter number for GetParameterData |
|---|
| 333 | #define DNG_EXT_FROM ".DPS" |
|---|
| 334 | |
|---|
| 335 | #define CAM_EXT_TV_RANGE 1 |
|---|
| 336 | |
|---|
| 337 | //---------------------------------------------------------- |
|---|
| 338 | #elif defined (CAMERA_a550) |
|---|
| 339 | #define CAM_PROPSET 2 |
|---|
| 340 | |
|---|
| 341 | #define CAM_RAW_ROWPIX 3152 // for 7 MP |
|---|
| 342 | #define CAM_RAW_ROWS 2340 // for 7 MP |
|---|
| 343 | |
|---|
| 344 | #undef CAM_USE_ZOOM_FOR_MF |
|---|
| 345 | #define CAM_MULTIPART 1 |
|---|
| 346 | #undef CAM_HAS_ERASE_BUTTON |
|---|
| 347 | #undef CAM_HAS_IRIS_DIAPHRAGM |
|---|
| 348 | #define CAM_HAS_ND_FILTER 1 |
|---|
| 349 | #undef CAM_HAS_MANUAL_FOCUS |
|---|
| 350 | #undef CAM_HAS_USER_TV_MODES |
|---|
| 351 | #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 |
|---|
| 352 | #undef CAM_HAS_IS |
|---|
| 353 | #define CAM_CAN_MUTE_MICROPHONE 1 |
|---|
| 354 | #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 |
|---|
| 355 | #define DNG_SUPPORT 1 |
|---|
| 356 | // pattern |
|---|
| 357 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 358 | // color |
|---|
| 359 | #define CAM_COLORMATRIX1 \ |
|---|
| 360 | 673251, 1000000,-200684, 1000000, -98680, 1000000, \ |
|---|
| 361 | -163638, 1000000, 651247, 1000000, 74004, 1000000, \ |
|---|
| 362 | 14221, 1000000, 52979, 1000000, 265291, 1000000 |
|---|
| 363 | |
|---|
| 364 | #define cam_CalibrationIlluminant1 1 // Daylight |
|---|
| 365 | // cropping |
|---|
| 366 | #define CAM_JPEG_WIDTH 3072 |
|---|
| 367 | #define CAM_JPEG_HEIGHT 2304 |
|---|
| 368 | #define CAM_ACTIVE_AREA_X1 36 |
|---|
| 369 | #define CAM_ACTIVE_AREA_Y1 12 |
|---|
| 370 | #define CAM_ACTIVE_AREA_X2 3148 |
|---|
| 371 | #define CAM_ACTIVE_AREA_Y2 2340 |
|---|
| 372 | // camera name |
|---|
| 373 | #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData |
|---|
| 374 | #define DNG_EXT_FROM ".DPS" |
|---|
| 375 | |
|---|
| 376 | #define CAM_EXT_TV_RANGE 1 |
|---|
| 377 | |
|---|
| 378 | //---------------------------------------------------------- |
|---|
| 379 | #elif defined (CAMERA_a560) |
|---|
| 380 | #define CAM_PROPSET 2 |
|---|
| 381 | |
|---|
| 382 | #define CAM_RAW_ROWPIX 3152 // for 7 MP |
|---|
| 383 | #define CAM_RAW_ROWS 2340 // for 7 MP |
|---|
| 384 | |
|---|
| 385 | #undef CAM_USE_ZOOM_FOR_MF |
|---|
| 386 | #define CAM_MULTIPART 1 |
|---|
| 387 | #undef CAM_HAS_ERASE_BUTTON |
|---|
| 388 | #undef CAM_HAS_IRIS_DIAPHRAGM |
|---|
| 389 | #define CAM_HAS_ND_FILTER 1 |
|---|
| 390 | #undef CAM_HAS_MANUAL_FOCUS |
|---|
| 391 | #undef CAM_HAS_USER_TV_MODES |
|---|
| 392 | #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 |
|---|
| 393 | #undef CAM_HAS_IS |
|---|
| 394 | #define CAM_CAN_MUTE_MICROPHONE 1 |
|---|
| 395 | #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 |
|---|
| 396 | #define DNG_SUPPORT 1 |
|---|
| 397 | // pattern |
|---|
| 398 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 399 | // color |
|---|
| 400 | #define CAM_COLORMATRIX1 \ |
|---|
| 401 | 15265, 1, -6193, 1, -1558, 1, \ |
|---|
| 402 | -4125, 1, 12116, 1, 2010, 1, \ |
|---|
| 403 | -888, 1, 1639, 1, 5220, 1 |
|---|
| 404 | |
|---|
| 405 | #define cam_CalibrationIlluminant1 17 // Standard light A |
|---|
| 406 | // cropping |
|---|
| 407 | #define CAM_JPEG_WIDTH 3072 |
|---|
| 408 | #define CAM_JPEG_HEIGHT 2304 |
|---|
| 409 | #define CAM_ACTIVE_AREA_X1 38 |
|---|
| 410 | #define CAM_ACTIVE_AREA_Y1 14 |
|---|
| 411 | #define CAM_ACTIVE_AREA_X2 3146 |
|---|
| 412 | #define CAM_ACTIVE_AREA_Y2 2338 |
|---|
| 413 | // camera name |
|---|
| 414 | #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData |
|---|
| 415 | #define DNG_EXT_FROM ".DPS" |
|---|
| 416 | |
|---|
| 417 | #define CAM_EXT_TV_RANGE 1 |
|---|
| 418 | |
|---|
| 419 | //---------------------------------------------------------- |
|---|
| 420 | #elif defined (CAMERA_a570) |
|---|
| 421 | #define CAM_PROPSET 2 |
|---|
| 422 | |
|---|
| 423 | #define CAM_RAW_ROWPIX 3152 // for 7 MP |
|---|
| 424 | #define CAM_RAW_ROWS 2340 // for 7 MP |
|---|
| 425 | #define CAM_MULTIPART 1 |
|---|
| 426 | #define CAM_CAN_MUTE_MICROPHONE 1 |
|---|
| 427 | #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 |
|---|
| 428 | #define CAM_EV_IN_VIDEO 1 |
|---|
| 429 | #define DNG_SUPPORT 1 |
|---|
| 430 | #define CAM_REAR_CURTAIN 1 |
|---|
| 431 | // pattern |
|---|
| 432 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 433 | // color |
|---|
| 434 | #define CAM_COLORMATRIX1 \ |
|---|
| 435 | 528283, 1000000,-144259, 1000000, -85966, 1000000, \ |
|---|
| 436 | -202789, 1000000, 736563, 1000000, 73008, 1000000, \ |
|---|
| 437 | -27130, 1000000, 107702, 1000000, 264543, 1000000 |
|---|
| 438 | |
|---|
| 439 | #define cam_CalibrationIlluminant1 1 // Daylight |
|---|
| 440 | // cropping |
|---|
| 441 | #define CAM_JPEG_WIDTH 3072 |
|---|
| 442 | #define CAM_JPEG_HEIGHT 2304 |
|---|
| 443 | #define CAM_ACTIVE_AREA_X1 38 |
|---|
| 444 | #define CAM_ACTIVE_AREA_Y1 14 |
|---|
| 445 | #define CAM_ACTIVE_AREA_X2 3146 |
|---|
| 446 | #define CAM_ACTIVE_AREA_Y2 2338 |
|---|
| 447 | // camera name |
|---|
| 448 | #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData |
|---|
| 449 | |
|---|
| 450 | #define DNG_EXT_FROM ".DPS" |
|---|
| 451 | #define CAM_EXT_TV_RANGE 1 |
|---|
| 452 | |
|---|
| 453 | //---------------------------------------------------------- |
|---|
| 454 | #elif defined (CAMERA_a590) |
|---|
| 455 | #define CAM_PROPSET 2 |
|---|
| 456 | #define CAM_DRYOS 1 |
|---|
| 457 | |
|---|
| 458 | #define CAM_RAW_ROWPIX 3336 // for new 8 MP |
|---|
| 459 | #define CAM_RAW_ROWS 2480 // for new 8 MP |
|---|
| 460 | |
|---|
| 461 | #define CAM_USE_ZOOM_FOR_MF 1 |
|---|
| 462 | |
|---|
| 463 | // cannot mute during video-zoom through CHDK, it can mute in general firmware settings (non CHDK) |
|---|
| 464 | #undef CAM_CAN_MUTE_MICROPHONE // Camera has no function to mute microphone |
|---|
| 465 | |
|---|
| 466 | #define CAM_HAS_IRIS_DIAPHRAGM 1 |
|---|
| 467 | #undef CAM_HAS_ND_FILTER |
|---|
| 468 | |
|---|
| 469 | #define CAM_HAS_MANUAL_FOCUS 1 |
|---|
| 470 | |
|---|
| 471 | #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 |
|---|
| 472 | //#define CAM_EV_IN_VIDEO 1 // not working on 101b!!! |
|---|
| 473 | #define DNG_SUPPORT 1 |
|---|
| 474 | // pattern |
|---|
| 475 | #define cam_CFAPattern 0x01000201 // Green Blue Red Green |
|---|
| 476 | // color |
|---|
| 477 | #define CAM_COLORMATRIX1 \ |
|---|
| 478 | 726857, 1000000, -176454, 1000000, -124118, 1000000, \ |
|---|
| 479 | -71340, 1000000, 592001, 1000000, 75622, 1000000, \ |
|---|
| 480 | 63222, 1000000, 50547, 1000000, 219582, 1000000 |
|---|
| 481 | |
|---|
| 482 | #define cam_CalibrationIlluminant1 1 // Daylight |
|---|
| 483 | // cropping |
|---|
| 484 | #define CAM_JPEG_WIDTH 3264 |
|---|
| 485 | #define CAM_JPEG_HEIGHT 2448 |
|---|
| 486 | #define CAM_ACTIVE_AREA_X1 8 |
|---|
| 487 | #define CAM_ACTIVE_AREA_Y1 8 |
|---|
| 488 | #define CAM_ACTIVE_AREA_X2 3304 |
|---|
| 489 | #define CAM_ACTIVE_AREA_Y2 2480 |
|---|
| 490 | |
|---|
| 491 | // camera name |
|---|
| 492 | #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData |
|---|
| 493 | |
|---|
| 494 | #define CAM_EXT_TV_RANGE 1 |
|---|
| 495 | |
|---|
| 496 | //---------------------------------------------------------- |
|---|
| 497 | #elif defined (CAMERA_a610) |
|---|
| 498 | #define CAM_PROPSET 1 |
|---|
| 499 | |
|---|
| 500 | #define CAM_RAW_ROWPIX 2672 // for 5 MP |
|---|
| 501 | #define CAM_RAW_ROWS 1968 // for 5 MP |
|---|
| 502 | |
|---|
| 503 | #define CAM_SWIVEL_SCREEN 1 |
|---|
| 504 | #undef CAM_CAN_SD_OVER_NOT_IN_MF |
|---|
| 505 | #undef CAM_HAS_IS |
|---|
| 506 | #define CAM_CAN_MUTE_MICROPHONE 1 |
|---|
| 507 | #define CAM_AF_SCAN_DURING_VIDEO_RECORD 2 |
|---|
| 508 | #define CAM_EV_IN_VIDEO 1 |
|---|
| 509 | #define DNG_SUPPORT 1 |
|---|
| 510 | // pattern |
|---|
| 511 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 512 | // color |
|---|
| 513 | #define CAM_COLORMATRIX1 \ |
|---|
| 514 | 15887, 10000, -6524, 10000, -1622, 10000, \ |
|---|
| 515 | -5467, 10000, 13449, 10000, 2209, 10000, \ |
|---|
| 516 | -1325, 10000, 1859, 10000, 5172, 10000 |
|---|
| 517 | |
|---|
| 518 | #define cam_CalibrationIlluminant1 17 // Standard light A |
|---|
| 519 | // cropping |
|---|
| 520 | #define CAM_JPEG_WIDTH 2592 |
|---|
| 521 | #define CAM_JPEG_HEIGHT 1944 |
|---|
| 522 | #define CAM_ACTIVE_AREA_X1 14 |
|---|
| 523 | #define CAM_ACTIVE_AREA_Y1 10 |
|---|
| 524 | #define CAM_ACTIVE_AREA_X2 2626 |
|---|
| 525 | #define CAM_ACTIVE_AREA_Y2 1966 |
|---|
| 526 | // camera name |
|---|
| 527 | #define PARAM_CAMERA_NAME 3 // parameter number for GetParameterData |
|---|
| 528 | |
|---|
| 529 | #define DNG_EXT_FROM ".DPS" |
|---|
| 530 | |
|---|
| 531 | |
|---|
| 532 | //---------------------------------------------------------- |
|---|
| 533 | #elif defined (CAMERA_a620) |
|---|
| 534 | #define CAM_PROPSET 1 |
|---|
| 535 | |
|---|
| 536 | #define CAM_RAW_ROWPIX 3152 // for 7 MP |
|---|
| 537 | #define CAM_RAW_ROWS 2340 // for 7 MP |
|---|
| 538 | |
|---|
| 539 | #define CAM_SWIVEL_SCREEN 1 |
|---|
| 540 | #undef CAM_CAN_SD_OVER_NOT_IN_MF |
|---|
| 541 | #undef CAM_HAS_IS |
|---|
| 542 | #define CAM_CAN_MUTE_MICROPHONE 1 |
|---|
| 543 | #define CAM_AF_SCAN_DURING_VIDEO_RECORD 2 |
|---|
| 544 | #define CAM_EV_IN_VIDEO 1 |
|---|
| 545 | #define DNG_SUPPORT 1 |
|---|
| 546 | // pattern |
|---|
| 547 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 548 | // color |
|---|
| 549 | #define CAM_COLORMATRIX1 \ |
|---|
| 550 | 15265, 10000, -6193, 10000, -1558, 10000, \ |
|---|
| 551 | -4125, 10000, 12116, 10000, 2010, 10000, \ |
|---|
| 552 | -888, 10000, 1639, 10000, 5220, 10000 |
|---|
| 553 | |
|---|
| 554 | #define cam_CalibrationIlluminant1 17 // Standard light A |
|---|
| 555 | // cropping |
|---|
| 556 | #define CAM_JPEG_WIDTH 3072 |
|---|
| 557 | #define CAM_JPEG_HEIGHT 2304 |
|---|
| 558 | #define CAM_ACTIVE_AREA_X1 38 |
|---|
| 559 | #define CAM_ACTIVE_AREA_Y1 14 |
|---|
| 560 | #define CAM_ACTIVE_AREA_X2 3146 |
|---|
| 561 | #define CAM_ACTIVE_AREA_Y2 2338 |
|---|
| 562 | // camera name |
|---|
| 563 | #define PARAM_CAMERA_NAME 3 // parameter number for GetParameterData |
|---|
| 564 | #define DNG_EXT_FROM ".DPS" |
|---|
| 565 | |
|---|
| 566 | //---------------------------------------------------------- |
|---|
| 567 | #elif defined (CAMERA_a630) |
|---|
| 568 | #define CAM_PROPSET 1 |
|---|
| 569 | |
|---|
| 570 | #define CAM_RAW_ROWPIX 3344 // for 8 MP |
|---|
| 571 | #define CAM_RAW_ROWS 2484 // for 8 MP |
|---|
| 572 | |
|---|
| 573 | #define CAM_SWIVEL_SCREEN 1 |
|---|
| 574 | #define CAM_MULTIPART 1 |
|---|
| 575 | #undef CAM_CAN_SD_OVER_NOT_IN_MF |
|---|
| 576 | #undef CAM_HAS_IS |
|---|
| 577 | #define CAM_CAN_MUTE_MICROPHONE 1 |
|---|
| 578 | #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 |
|---|
| 579 | #define CAM_EV_IN_VIDEO 1 |
|---|
| 580 | #define DNG_SUPPORT 1 |
|---|
| 581 | // pattern |
|---|
| 582 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 583 | // color |
|---|
| 584 | #define CAM_COLORMATRIX1 \ |
|---|
| 585 | 656080, 1000000,-226478, 1000000, -85884, 1000000, \ |
|---|
| 586 | -194636, 1000000, 687905, 1000000, 37862, 1000000, \ |
|---|
| 587 | 22873, 1000000, 75523, 1000000, 265822, 1000000 |
|---|
| 588 | |
|---|
| 589 | #define cam_CalibrationIlluminant1 1 // Daylight |
|---|
| 590 | // cropping |
|---|
| 591 | #define CAM_JPEG_WIDTH 3264 |
|---|
| 592 | #define CAM_JPEG_HEIGHT 2448 |
|---|
| 593 | #define CAM_ACTIVE_AREA_X1 14 |
|---|
| 594 | #define CAM_ACTIVE_AREA_Y1 8 |
|---|
| 595 | #define CAM_ACTIVE_AREA_X2 3298 |
|---|
| 596 | #define CAM_ACTIVE_AREA_Y2 2476 |
|---|
| 597 | // camera name |
|---|
| 598 | #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData |
|---|
| 599 | #define DNG_EXT_FROM ".DPS" |
|---|
| 600 | #define CAM_EXT_TV_RANGE 1 |
|---|
| 601 | |
|---|
| 602 | //---------------------------------------------------------- |
|---|
| 603 | #elif defined (CAMERA_a640) |
|---|
| 604 | #define CAM_PROPSET 1 |
|---|
| 605 | |
|---|
| 606 | #define CAM_RAW_ROWPIX 3736 // for 10 MP |
|---|
| 607 | #define CAM_RAW_ROWS 2772 // for 10 MP |
|---|
| 608 | |
|---|
| 609 | #define CAM_SWIVEL_SCREEN 1 |
|---|
| 610 | #define CAM_MULTIPART 1 |
|---|
| 611 | #undef CAM_CAN_SD_OVER_NOT_IN_MF |
|---|
| 612 | #undef CAM_HAS_IS |
|---|
| 613 | #define CAM_CAN_MUTE_MICROPHONE 1 |
|---|
| 614 | #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 |
|---|
| 615 | #define CAM_EV_IN_VIDEO 1 |
|---|
| 616 | #define DNG_SUPPORT 1 |
|---|
| 617 | // pattern |
|---|
| 618 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 619 | // color |
|---|
| 620 | #define CAM_COLORMATRIX1 \ |
|---|
| 621 | 13124, 10000, -5329, 10000, -1390, 10000, \ |
|---|
| 622 | -3602, 10000, 11658, 10000, 1944, 10000, \ |
|---|
| 623 | -1612, 10000, 2863, 10000, 4885, 10000 |
|---|
| 624 | |
|---|
| 625 | #define cam_CalibrationIlluminant1 17 // Standard light A |
|---|
| 626 | // cropping |
|---|
| 627 | #define CAM_JPEG_WIDTH 3648 |
|---|
| 628 | #define CAM_JPEG_HEIGHT 2736 |
|---|
| 629 | #define CAM_ACTIVE_AREA_X1 14 |
|---|
| 630 | #define CAM_ACTIVE_AREA_Y1 8 |
|---|
| 631 | #define CAM_ACTIVE_AREA_X2 3682 |
|---|
| 632 | #define CAM_ACTIVE_AREA_Y2 2764 |
|---|
| 633 | // camera name |
|---|
| 634 | #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData |
|---|
| 635 | #define DNG_EXT_FROM ".DPS" |
|---|
| 636 | |
|---|
| 637 | //---------------------------------------------------------- |
|---|
| 638 | #elif defined (CAMERA_a650) |
|---|
| 639 | #define CAM_PROPSET 2 |
|---|
| 640 | #define CAM_DRYOS 1 |
|---|
| 641 | |
|---|
| 642 | #define CAM_RAW_ROWPIX 4104 // for 12 MP |
|---|
| 643 | #define CAM_RAW_ROWS 3048 // for 12 MP |
|---|
| 644 | |
|---|
| 645 | #define CAM_ADJUSTABLE_ALT_BUTTON 1 |
|---|
| 646 | #define CAM_SWIVEL_SCREEN 1 |
|---|
| 647 | #define CAM_CAN_MUTE_MICROPHONE 1 |
|---|
| 648 | |
|---|
| 649 | #undef CAM_EMUL_KEYPRESS_DURATION |
|---|
| 650 | #define CAM_EMUL_KEYPRESS_DURATION 10 |
|---|
| 651 | #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 |
|---|
| 652 | #define CAM_EV_IN_VIDEO 1 |
|---|
| 653 | #define DNG_SUPPORT 1 |
|---|
| 654 | // pattern |
|---|
| 655 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 656 | // color |
|---|
| 657 | #define CAM_COLORMATRIX1 \ |
|---|
| 658 | 913762, 1000000, -261578, 1000000, -135582, 1000000, \ |
|---|
| 659 | -99049, 1000000, 1067089, 1000000, 61442, 1000000, \ |
|---|
| 660 | 48717, 1000000, 96802, 1000000, 412056, 1000000 |
|---|
| 661 | |
|---|
| 662 | #define cam_CalibrationIlluminant1 1 // Daylight |
|---|
| 663 | // cropping |
|---|
| 664 | #define CAM_JPEG_WIDTH 4000 |
|---|
| 665 | #define CAM_JPEG_HEIGHT 3000 |
|---|
| 666 | #define CAM_ACTIVE_AREA_X1 52 |
|---|
| 667 | #define CAM_ACTIVE_AREA_Y1 14 |
|---|
| 668 | #define CAM_ACTIVE_AREA_X2 4076 |
|---|
| 669 | #define CAM_ACTIVE_AREA_Y2 3030 |
|---|
| 670 | // camera name |
|---|
| 671 | #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData |
|---|
| 672 | |
|---|
| 673 | #define DNG_EXT_FROM ".CR2" |
|---|
| 674 | |
|---|
| 675 | //---------------------------------------------------------- |
|---|
| 676 | #elif defined (CAMERA_a700) |
|---|
| 677 | #define CAM_PROPSET 1 |
|---|
| 678 | |
|---|
| 679 | #define CAM_RAW_ROWPIX 2888 // for 6 MP |
|---|
| 680 | #define CAM_RAW_ROWS 2136 // for 6 MP |
|---|
| 681 | |
|---|
| 682 | #undef CAM_HAS_IS |
|---|
| 683 | #define CAM_CAN_MUTE_MICROPHONE 1 |
|---|
| 684 | #define CAM_AF_SCAN_DURING_VIDEO_RECORD 2 |
|---|
| 685 | #define CAM_EV_IN_VIDEO 1 |
|---|
| 686 | #define DNG_SUPPORT 1 |
|---|
| 687 | // pattern |
|---|
| 688 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 689 | // color |
|---|
| 690 | #define CAM_COLORMATRIX1 \ |
|---|
| 691 | 14062, 10000, -5199, 10000, -1446, 10000, \ |
|---|
| 692 | -4712, 10000, 12470, 10000, 2243, 10000, \ |
|---|
| 693 | -1286, 10000, 2028, 10000, 4836, 10000 |
|---|
| 694 | |
|---|
| 695 | #define cam_CalibrationIlluminant1 17 // Standard light A |
|---|
| 696 | // cropping |
|---|
| 697 | #define CAM_JPEG_WIDTH 2816 |
|---|
| 698 | #define CAM_JPEG_HEIGHT 2112 |
|---|
| 699 | #define CAM_ACTIVE_AREA_X1 44 |
|---|
| 700 | #define CAM_ACTIVE_AREA_Y1 8 |
|---|
| 701 | #define CAM_ACTIVE_AREA_X2 2884 |
|---|
| 702 | #define CAM_ACTIVE_AREA_Y2 2136 |
|---|
| 703 | // camera name |
|---|
| 704 | #define PARAM_CAMERA_NAME 3 // parameter number for GetParameterData |
|---|
| 705 | #define DNG_EXT_FROM ".DPS" |
|---|
| 706 | |
|---|
| 707 | //---------------------------------------------------------- |
|---|
| 708 | #elif defined (CAMERA_a710) |
|---|
| 709 | #define CAM_PROPSET 1 |
|---|
| 710 | |
|---|
| 711 | #define CAM_RAW_ROWPIX 3152 // for 7 MP |
|---|
| 712 | #define CAM_RAW_ROWS 2340 // for 7 MP |
|---|
| 713 | |
|---|
| 714 | #define CAM_MULTIPART 1 |
|---|
| 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 | 13349, 10000, -4141, 10000, -2128, 10000, \ |
|---|
| 724 | -4189, 10000, 13178, 10000, 1044, 10000, \ |
|---|
| 725 | -1037, 10000, 2326, 10000, 4720, 10000 |
|---|
| 726 | |
|---|
| 727 | #define cam_CalibrationIlluminant1 1 // Daylight |
|---|
| 728 | // cropping |
|---|
| 729 | #define CAM_JPEG_WIDTH 3072 |
|---|
| 730 | #define CAM_JPEG_HEIGHT 2304 |
|---|
| 731 | #define CAM_ACTIVE_AREA_X1 38 |
|---|
| 732 | #define CAM_ACTIVE_AREA_Y1 14 |
|---|
| 733 | #define CAM_ACTIVE_AREA_X2 3146 |
|---|
| 734 | #define CAM_ACTIVE_AREA_Y2 2338 |
|---|
| 735 | // camera name |
|---|
| 736 | #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData |
|---|
| 737 | |
|---|
| 738 | #define DNG_EXT_FROM ".DPS" |
|---|
| 739 | |
|---|
| 740 | #define CAM_EXT_TV_RANGE 1 |
|---|
| 741 | |
|---|
| 742 | //---------------------------------------------------------- |
|---|
| 743 | #elif defined (CAMERA_a720) |
|---|
| 744 | #define CAM_PROPSET 2 |
|---|
| 745 | #define CAM_DRYOS 1 |
|---|
| 746 | |
|---|
| 747 | #define CAM_RAW_ROWPIX 3336 // for new 8 MP |
|---|
| 748 | #define CAM_RAW_ROWS 2480 // for new 8 MP |
|---|
| 749 | #define CAM_CAN_MUTE_MICROPHONE 1 |
|---|
| 750 | #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 |
|---|
| 751 | #define CAM_EV_IN_VIDEO 1 |
|---|
| 752 | #undef CAM_VIDEO_CONTROL |
|---|
| 753 | #define DNG_SUPPORT 1 |
|---|
| 754 | // pattern |
|---|
| 755 | #define cam_CFAPattern 0x01000201 // Green Blue Red Green |
|---|
| 756 | // color |
|---|
| 757 | #define CAM_COLORMATRIX1 \ |
|---|
| 758 | 640019, 1000000, -220031, 1000000, -96241, 1000000, \ |
|---|
| 759 | -77419, 1000000, 639766, 1000000, 44009, 1000000, \ |
|---|
| 760 | 17965, 1000000, 78396, 1000000, 231868, 1000000 |
|---|
| 761 | |
|---|
| 762 | #define cam_CalibrationIlluminant1 1 // Daylight |
|---|
| 763 | // cropping |
|---|
| 764 | #define CAM_JPEG_WIDTH 3264 |
|---|
| 765 | #define CAM_JPEG_HEIGHT 2448 |
|---|
| 766 | #define CAM_ACTIVE_AREA_X1 10 |
|---|
| 767 | #define CAM_ACTIVE_AREA_Y1 8 |
|---|
| 768 | #define CAM_ACTIVE_AREA_X2 3302 |
|---|
| 769 | #define CAM_ACTIVE_AREA_Y2 2474 |
|---|
| 770 | // camera name |
|---|
| 771 | #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData |
|---|
| 772 | |
|---|
| 773 | #define DNG_EXT_FROM ".CR2" |
|---|
| 774 | |
|---|
| 775 | //========================================================== |
|---|
| 776 | // SD-Series (IXUS-Series) |
|---|
| 777 | //========================================================== |
|---|
| 778 | #elif defined (CAMERA_ixus40_sd300) |
|---|
| 779 | #define CAM_PROPSET 1 |
|---|
| 780 | |
|---|
| 781 | #define CAM_RAW_ROWPIX 2400 |
|---|
| 782 | #define CAM_RAW_ROWS 1766 |
|---|
| 783 | |
|---|
| 784 | #define CAM_USE_ZOOM_FOR_MF 1 |
|---|
| 785 | #undef CAM_HAS_ERASE_BUTTON |
|---|
| 786 | #undef CAM_HAS_IRIS_DIAPHRAGM |
|---|
| 787 | #define CAM_HAS_ND_FILTER 1 |
|---|
| 788 | #undef CAM_HAS_MANUAL_FOCUS |
|---|
| 789 | #undef CAM_HAS_USER_TV_MODES |
|---|
| 790 | #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 |
|---|
| 791 | #undef CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO |
|---|
| 792 | #undef CAM_HAS_IS |
|---|
| 793 | #undef CAM_CONSOLE_LOG_ENABLED |
|---|
| 794 | |
|---|
| 795 | |
|---|
| 796 | #define DNG_SUPPORT 1 |
|---|
| 797 | // pattern |
|---|
| 798 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 799 | // color |
|---|
| 800 | #define CAM_COLORMATRIX1 \ |
|---|
| 801 | 652674, 1000000, -172074, 1000000, -107575, 1000000, \ |
|---|
| 802 | -139063, 1000000, 594517, 1000000, 60252, 1000000, \ |
|---|
| 803 | -9088, 1000000, 82013, 1000000, 238080, 1000000 |
|---|
| 804 | |
|---|
| 805 | #define cam_CalibrationIlluminant1 1 // Daylight |
|---|
| 806 | // cropping |
|---|
| 807 | #define CAM_JPEG_WIDTH 2272 |
|---|
| 808 | #define CAM_JPEG_HEIGHT 1704 |
|---|
| 809 | #define CAM_ACTIVE_AREA_X1 12 |
|---|
| 810 | #define CAM_ACTIVE_AREA_Y1 12 |
|---|
| 811 | #define CAM_ACTIVE_AREA_X2 2356 |
|---|
| 812 | #define CAM_ACTIVE_AREA_Y2 1764 |
|---|
| 813 | // camera name |
|---|
| 814 | #define PARAM_CAMERA_NAME 2 // parameter number for GetParameterData |
|---|
| 815 | |
|---|
| 816 | //---------------------------------------------------------- |
|---|
| 817 | |
|---|
| 818 | #elif defined (CAMERA_ixus50_sd400) |
|---|
| 819 | #define CAM_PROPSET 1 |
|---|
| 820 | |
|---|
| 821 | #define CAM_RAW_ROWPIX 2672 // for 5 MP |
|---|
| 822 | #define CAM_RAW_ROWS 1968 // for 5 MP |
|---|
| 823 | |
|---|
| 824 | #undef CAM_SYNCH |
|---|
| 825 | #undef CAM_USE_ZOOM_FOR_MF |
|---|
| 826 | #undef CAM_HAS_ERASE_BUTTON |
|---|
| 827 | #undef CAM_HAS_IRIS_DIAPHRAGM |
|---|
| 828 | #define CAM_HAS_ND_FILTER 1 |
|---|
| 829 | #undef CAM_HAS_MANUAL_FOCUS |
|---|
| 830 | #undef CAM_HAS_USER_TV_MODES |
|---|
| 831 | #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 |
|---|
| 832 | #undef CAM_HAS_IS |
|---|
| 833 | //#define CAM_CONSOLE_LOG_ENABLED 1 |
|---|
| 834 | #undef CAM_VIDEO_CONTROL |
|---|
| 835 | #define DNG_SUPPORT 1 |
|---|
| 836 | // pattern |
|---|
| 837 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 838 | // color |
|---|
| 839 | #define CAM_COLORMATRIX1 \ |
|---|
| 840 | 685247, 1000000, -204939, 1000000, -106531, 1000000, \ |
|---|
| 841 | -267616, 1000000, 790509, 1000000, 73359, 1000000, \ |
|---|
| 842 | 32401, 1000000, 15655, 1000000, 314892, 1000000 |
|---|
| 843 | |
|---|
| 844 | #define cam_CalibrationIlluminant1 1 // Daylight |
|---|
| 845 | // cropping |
|---|
| 846 | #define CAM_JPEG_WIDTH 2592 |
|---|
| 847 | #define CAM_JPEG_HEIGHT 1944 |
|---|
| 848 | #define CAM_ACTIVE_AREA_X1 12 |
|---|
| 849 | #define CAM_ACTIVE_AREA_Y1 8 |
|---|
| 850 | #define CAM_ACTIVE_AREA_X2 2628 |
|---|
| 851 | #define CAM_ACTIVE_AREA_Y2 1968 |
|---|
| 852 | // camera name |
|---|
| 853 | #define PARAM_CAMERA_NAME 2 // parameter number for GetParameterData |
|---|
| 854 | |
|---|
| 855 | |
|---|
| 856 | //---------------------------------------------------------- |
|---|
| 857 | |
|---|
| 858 | #elif defined (CAMERA_ixusizoom_sd30) |
|---|
| 859 | #define CAM_PROPSET 1 |
|---|
| 860 | |
|---|
| 861 | #define CAM_RAW_ROWPIX 2672 // for 5 MP |
|---|
| 862 | #define CAM_RAW_ROWS 1968 // for 5 MP |
|---|
| 863 | |
|---|
| 864 | #undef CAM_SYNCH |
|---|
| 865 | #undef CAM_USE_ZOOM_FOR_MF |
|---|
| 866 | #undef CAM_HAS_ERASE_BUTTON |
|---|
| 867 | #undef CAM_HAS_IRIS_DIAPHRAGM |
|---|
| 868 | #define CAM_HAS_ND_FILTER 1 |
|---|
| 869 | #undef CAM_HAS_MANUAL_FOCUS |
|---|
| 870 | #undef CAM_HAS_USER_TV_MODES |
|---|
| 871 | #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 |
|---|
| 872 | #undef CAM_HAS_IS |
|---|
| 873 | //#define CAM_CONSOLE_LOG_ENABLED 1 |
|---|
| 874 | #undef CAM_VIDEO_CONTROL |
|---|
| 875 | |
|---|
| 876 | //---------------------------------------------------------- |
|---|
| 877 | |
|---|
| 878 | //---------------------------------------------------------- |
|---|
| 879 | #elif defined (CAMERA_ixus55_sd450) |
|---|
| 880 | #define CAM_PROPSET 1 |
|---|
| 881 | |
|---|
| 882 | #define CAM_RAW_ROWPIX 2672 // for 5 MP |
|---|
| 883 | #define CAM_RAW_ROWS 1968 // for 5 MP |
|---|
| 884 | |
|---|
| 885 | #undef CAM_USE_ZOOM_FOR_MF |
|---|
| 886 | #undef CAM_HAS_ERASE_BUTTON |
|---|
| 887 | #undef CAM_HAS_IRIS_DIAPHRAGM |
|---|
| 888 | #define CAM_HAS_ND_FILTER 1 |
|---|
| 889 | #undef CAM_HAS_MANUAL_FOCUS |
|---|
| 890 | #undef CAM_HAS_USER_TV_MODES |
|---|
| 891 | #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 |
|---|
| 892 | #undef CAM_HAS_IS |
|---|
| 893 | #define CAM_AF_SCAN_DURING_VIDEO_RECORD 2 |
|---|
| 894 | #define DNG_SUPPORT 1 |
|---|
| 895 | // pattern |
|---|
| 896 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 897 | // color |
|---|
| 898 | #define CAM_COLORMATRIX1 \ |
|---|
| 899 | 536034, 1000000, -173429, 1000000, -89823, 1000000, \ |
|---|
| 900 | -290416, 1000000, 735807, 1000000, 47894, 1000000, \ |
|---|
| 901 | -71455, 1000000, 114314, 1000000, 274533, 1000000 |
|---|
| 902 | |
|---|
| 903 | #define cam_CalibrationIlluminant1 1 // Daylight |
|---|
| 904 | // cropping |
|---|
| 905 | #define CAM_JPEG_WIDTH 2592 |
|---|
| 906 | #define CAM_JPEG_HEIGHT 1944 |
|---|
| 907 | #define CAM_ACTIVE_AREA_X1 12 |
|---|
| 908 | #define CAM_ACTIVE_AREA_Y1 8 |
|---|
| 909 | #define CAM_ACTIVE_AREA_X2 2628 |
|---|
| 910 | #define CAM_ACTIVE_AREA_Y2 1968 |
|---|
| 911 | // camera name |
|---|
| 912 | #define PARAM_CAMERA_NAME 3 // parameter number for GetParameterData |
|---|
| 913 | #define DNG_EXT_FROM ".DPS" |
|---|
| 914 | |
|---|
| 915 | //---------------------------------------------------------- |
|---|
| 916 | #elif defined (CAMERA_ixus60_sd600) |
|---|
| 917 | #define CAM_PROPSET 1 |
|---|
| 918 | |
|---|
| 919 | #define CAM_RAW_ROWPIX 2888 // for 6 MP |
|---|
| 920 | #define CAM_RAW_ROWS 2136 // for 6 MP |
|---|
| 921 | |
|---|
| 922 | #undef CAM_SYNCH |
|---|
| 923 | #undef CAM_USE_ZOOM_FOR_MF |
|---|
| 924 | #undef CAM_HAS_ERASE_BUTTON |
|---|
| 925 | #undef CAM_HAS_IRIS_DIAPHRAGM |
|---|
| 926 | #define CAM_HAS_ND_FILTER 1 |
|---|
| 927 | #undef CAM_HAS_MANUAL_FOCUS |
|---|
| 928 | #undef CAM_HAS_USER_TV_MODES |
|---|
| 929 | #define CAM_DRAW_EXPOSITION 1 |
|---|
| 930 | #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 |
|---|
| 931 | #define CAM_FEATURE_FEATHER 1 |
|---|
| 932 | |
|---|
| 933 | // #define CAM_CONSOLE_LOG_ENABLED 1 //100a won't compile if this is defined ("undefined reference to `_iosDevFind'") |
|---|
| 934 | #undef CAM_CHDK_HAS_EXT_VIDEO_MENU |
|---|
| 935 | #undef CAM_HAS_IS |
|---|
| 936 | #define DNG_SUPPORT 1 |
|---|
| 937 | // pattern |
|---|
| 938 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 939 | // color |
|---|
| 940 | #define CAM_COLORMATRIX1 \ |
|---|
| 941 | 767398, 1000000, -227658, 1000000, -144213, 1000000, \ |
|---|
| 942 | -217466, 1000000, 669319, 1000000, 38180, 1000000, \ |
|---|
| 943 | -23152, 1000000, 77743, 1000000, 238669, 1000000 |
|---|
| 944 | |
|---|
| 945 | #define cam_CalibrationIlluminant1 1 // Daylight |
|---|
| 946 | // cropping |
|---|
| 947 | #define CAM_JPEG_WIDTH 2816 |
|---|
| 948 | #define CAM_JPEG_HEIGHT 2112 |
|---|
| 949 | #define CAM_ACTIVE_AREA_X1 44 |
|---|
| 950 | #define CAM_ACTIVE_AREA_Y1 8 |
|---|
| 951 | #define CAM_ACTIVE_AREA_X2 2884 |
|---|
| 952 | #define CAM_ACTIVE_AREA_Y2 2136 |
|---|
| 953 | // camera name |
|---|
| 954 | #define PARAM_CAMERA_NAME 3 // parameter number for GetParameterData |
|---|
| 955 | |
|---|
| 956 | //---------------------------------------------------------- |
|---|
| 957 | #elif defined (CAMERA_ixus65_sd630) |
|---|
| 958 | #define CAM_PROPSET 1 |
|---|
| 959 | |
|---|
| 960 | #define CAM_RAW_ROWPIX 2888 // for 6 MP |
|---|
| 961 | #define CAM_RAW_ROWS 2136 // for 6 MP |
|---|
| 962 | |
|---|
| 963 | #undef CAM_USE_ZOOM_FOR_MF |
|---|
| 964 | #undef CAM_HAS_ERASE_BUTTON |
|---|
| 965 | #undef CAM_HAS_IRIS_DIAPHRAGM |
|---|
| 966 | #define CAM_HAS_ND_FILTER 1 |
|---|
| 967 | #undef CAM_HAS_MANUAL_FOCUS |
|---|
| 968 | #undef CAM_HAS_USER_TV_MODES |
|---|
| 969 | #define CAM_DRAW_EXPOSITION 1 |
|---|
| 970 | #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 |
|---|
| 971 | #undef CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO |
|---|
| 972 | #define CAM_FEATURE_FEATHER 1 |
|---|
| 973 | |
|---|
| 974 | #define CAM_CONSOLE_LOG_ENABLED 1 |
|---|
| 975 | #undef CAM_HAS_IS |
|---|
| 976 | #undef CAM_CHDK_HAS_EXT_VIDEO_MENU |
|---|
| 977 | #define DNG_SUPPORT 1 |
|---|
| 978 | // pattern |
|---|
| 979 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 980 | // color |
|---|
| 981 | #define CAM_COLORMATRIX1 \ |
|---|
| 982 | 783384, 1000000, -227078, 1000000, -127919, 1000000, \ |
|---|
| 983 | -181247, 1000000, 661743, 1000000, 58868, 1000000, \ |
|---|
| 984 | 25727, 1000000, 43891, 1000000, 247655, 1000000 |
|---|
| 985 | |
|---|
| 986 | #define cam_CalibrationIlluminant1 1 // Daylight |
|---|
| 987 | // cropping |
|---|
| 988 | #define CAM_JPEG_WIDTH 2816 |
|---|
| 989 | #define CAM_JPEG_HEIGHT 2112 |
|---|
| 990 | #define CAM_ACTIVE_AREA_X1 44 |
|---|
| 991 | #define CAM_ACTIVE_AREA_Y1 8 |
|---|
| 992 | #define CAM_ACTIVE_AREA_X2 2884 |
|---|
| 993 | #define CAM_ACTIVE_AREA_Y2 2136 |
|---|
| 994 | // camera name |
|---|
| 995 | #define PARAM_CAMERA_NAME 3 // parameter number for GetParameterData |
|---|
| 996 | #define DNG_EXT_FROM ".DPS" |
|---|
| 997 | |
|---|
| 998 | //---------------------------------------------------------- |
|---|
| 999 | |
|---|
| 1000 | #elif defined (CAMERA_ixus75_sd750) |
|---|
| 1001 | #define CAM_PROPSET 2 |
|---|
| 1002 | |
|---|
| 1003 | #define CAM_RAW_ROWPIX 3152 // for 7 MP |
|---|
| 1004 | #define CAM_RAW_ROWS 2340 // for 7 MP |
|---|
| 1005 | |
|---|
| 1006 | /* |
|---|
| 1007 | #undef CAM_USE_ZOOM_FOR_MF |
|---|
| 1008 | #undef CAM_HAS_ERASE_BUTTON |
|---|
| 1009 | #undef CAM_HAS_IRIS_DIAPHRAGM |
|---|
| 1010 | #define CAM_HAS_ND_FILTER 1 |
|---|
| 1011 | #undef CAM_HAS_MANUAL_FOCUS |
|---|
| 1012 | #undef CAM_HAS_USER_TV_MODES |
|---|
| 1013 | #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 |
|---|
| 1014 | #undef CAM_HAS_IS |
|---|
| 1015 | */ |
|---|
| 1016 | |
|---|
| 1017 | #undef CAM_SWIVEL_SCREEN // Camera has rotated LCD screen |
|---|
| 1018 | #undef CAM_USE_ZOOM_FOR_MF // Zoom lever can be used for manual focus adjustments |
|---|
| 1019 | #undef CAM_ADJUSTABLE_ALT_BUTTON // ALT-button can be set from menu |
|---|
| 1020 | #undef CAM_REMOTE // Camera supports USB-remote |
|---|
| 1021 | #define CAM_MULTIPART 1 // Camera supports SD-card multipartitioning |
|---|
| 1022 | #define CAM_HAS_ZOOM_LEVER 1 // Camera has dedicated zoom buttons |
|---|
| 1023 | #undef CAM_DRAW_EXPOSITION // Output expo-pair on screen (for cameras which (sometimes) don't do that) |
|---|
| 1024 | #undef CAM_HAS_ERASE_BUTTON // Camera has dedicated erase button |
|---|
| 1025 | #undef CAM_HAS_IRIS_DIAPHRAGM |
|---|
| 1026 | #define CAM_HAS_ND_FILTER 1 // Camera has build-in ND filter |
|---|
| 1027 | #undef CAM_CAN_SD_OVER_NOT_IN_MF // Camera allows subject distance (focus) override when not in manual focus mode |
|---|
| 1028 | #undef CAM_CAN_SD_OVERRIDE // Camera allows to do subject distance override |
|---|
| 1029 | #undef CAM_HAS_MANUAL_FOCUS // Camera has manual focus mode |
|---|
| 1030 | #define CAM_HAS_USER_TV_MODES 1 // Camera has tv-priority or manual modes with ability to set tv value |
|---|
| 1031 | #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 |
|---|
| 1032 | // #undef CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO // adress for zoom_status missing, probably more |
|---|
| 1033 | #define CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO 1 // Camera can unlock optical zoom in video (if it is locked) |
|---|
| 1034 | #define CAM_FEATURE_FEATHER 1 // Cameras with "feather" or touch wheel. |
|---|
| 1035 | #undef CAM_HAS_IS // Camera has image stabilizer |
|---|
| 1036 | |
|---|
| 1037 | // #define CAM_CONSOLE_LOG_ENABLED 1 // Development: internal camera stdout -> A/stdout.txt |
|---|
| 1038 | #define DNG_SUPPORT 1 |
|---|
| 1039 | // pattern |
|---|
| 1040 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 1041 | // color |
|---|
| 1042 | #define CAM_COLORMATRIX1 \ |
|---|
| 1043 | 689833, 1000000, -198299, 1000000, -101299, 1000000, \ |
|---|
| 1044 | -164267, 1000000, 667466, 1000000, 74132, 1000000, \ |
|---|
| 1045 | -36515, 1000000, 123872, 1000000, 248498, 1000000 |
|---|
| 1046 | |
|---|
| 1047 | #define cam_CalibrationIlluminant1 1 // Daylight |
|---|
| 1048 | // cropping |
|---|
| 1049 | #define CAM_JPEG_WIDTH 3072 |
|---|
| 1050 | #define CAM_JPEG_HEIGHT 2304 |
|---|
| 1051 | #define CAM_ACTIVE_AREA_X1 38 |
|---|
| 1052 | #define CAM_ACTIVE_AREA_Y1 14 |
|---|
| 1053 | #define CAM_ACTIVE_AREA_X2 3146 |
|---|
| 1054 | #define CAM_ACTIVE_AREA_Y2 2338 |
|---|
| 1055 | // camera name |
|---|
| 1056 | #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData |
|---|
| 1057 | |
|---|
| 1058 | #define DNG_EXT_FROM ".DPS" |
|---|
| 1059 | |
|---|
| 1060 | //---------------------------------------------------------- |
|---|
| 1061 | #elif defined (CAMERA_ixus70_sd1000) |
|---|
| 1062 | #define CAM_PROPSET 2 |
|---|
| 1063 | |
|---|
| 1064 | #define CAM_RAW_ROWPIX 3152 // for 7 MP |
|---|
| 1065 | #define CAM_RAW_ROWS 2340 // for 7 MP |
|---|
| 1066 | |
|---|
| 1067 | #undef CAM_USE_ZOOM_FOR_MF |
|---|
| 1068 | #undef CAM_HAS_ERASE_BUTTON |
|---|
| 1069 | #undef CAM_HAS_IRIS_DIAPHRAGM |
|---|
| 1070 | #define CAM_HAS_ND_FILTER 1 |
|---|
| 1071 | #undef CAM_HAS_MANUAL_FOCUS |
|---|
| 1072 | #undef CAM_HAS_USER_TV_MODES |
|---|
| 1073 | #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 |
|---|
| 1074 | #undef CAM_HAS_IS |
|---|
| 1075 | #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 |
|---|
| 1076 | #define DNG_SUPPORT 1 |
|---|
| 1077 | #define CAM_MULTIPART 1 |
|---|
| 1078 | // pattern |
|---|
| 1079 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 1080 | // color |
|---|
| 1081 | #define CAM_COLORMATRIX1 \ |
|---|
| 1082 | 652674, 1000000, -172074, 1000000, -107575, 1000000, \ |
|---|
| 1083 | -139063, 1000000, 594517, 1000000, 60252, 1000000, \ |
|---|
| 1084 | -9088, 1000000, 82013, 1000000, 238048, 1000000 |
|---|
| 1085 | |
|---|
| 1086 | #define cam_CalibrationIlluminant1 1 // Daylight |
|---|
| 1087 | // cropping |
|---|
| 1088 | #define CAM_JPEG_WIDTH 3072 |
|---|
| 1089 | #define CAM_JPEG_HEIGHT 2304 |
|---|
| 1090 | #define CAM_ACTIVE_AREA_X1 38 |
|---|
| 1091 | #define CAM_ACTIVE_AREA_Y1 14 |
|---|
| 1092 | #define CAM_ACTIVE_AREA_X2 3146 |
|---|
| 1093 | #define CAM_ACTIVE_AREA_Y2 2338 |
|---|
| 1094 | // camera name |
|---|
| 1095 | #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData |
|---|
| 1096 | |
|---|
| 1097 | #define DNG_EXT_FROM ".DPS" |
|---|
| 1098 | |
|---|
| 1099 | #define CAM_EXT_TV_RANGE 1 |
|---|
| 1100 | |
|---|
| 1101 | //---------------------------------------------------------- |
|---|
| 1102 | #elif defined (CAMERA_ixus80_sd1100) |
|---|
| 1103 | #define CAM_PROPSET 2 |
|---|
| 1104 | #define CAM_DRYOS 1 |
|---|
| 1105 | |
|---|
| 1106 | #define CAM_RAW_ROWPIX 3336 // for new 8 MP |
|---|
| 1107 | #define CAM_RAW_ROWS 2480 // for new 8 MP |
|---|
| 1108 | |
|---|
| 1109 | #undef CAM_USE_ZOOM_FOR_MF |
|---|
| 1110 | #undef CAM_HAS_ERASE_BUTTON |
|---|
| 1111 | #undef CAM_HAS_IRIS_DIAPHRAGM |
|---|
| 1112 | #define CAM_HAS_ND_FILTER 1 |
|---|
| 1113 | #undef CAM_HAS_MANUAL_FOCUS |
|---|
| 1114 | #undef CAM_HAS_USER_TV_MODES |
|---|
| 1115 | #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 |
|---|
| 1116 | // TODO / test |
|---|
| 1117 | #undef CAM_REMOTE |
|---|
| 1118 | #define CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO 1 |
|---|
| 1119 | #undef CAM_CAN_MUTE_MICROPHONE |
|---|
| 1120 | #define CAM_AF_SCAN_DURING_VIDEO_RECORD 0 |
|---|
| 1121 | #define DNG_SUPPORT 1 |
|---|
| 1122 | // pattern |
|---|
| 1123 | #define cam_CFAPattern 0x01000201 // Green Blue Red Green |
|---|
| 1124 | // color |
|---|
| 1125 | #define CAM_COLORMATRIX1 \ |
|---|
| 1126 | 893969, 1000000, -343107, 1000000, -119590, 1000000, \ |
|---|
| 1127 | -41350, 1000000, 581255, 1000000, 49523, 1000000, \ |
|---|
| 1128 | 24221, 1000000, 47554, 1000000, 209996, 1000000 |
|---|
| 1129 | |
|---|
| 1130 | #define cam_CalibrationIlluminant1 1 // Daylight |
|---|
| 1131 | // cropping |
|---|
| 1132 | #define CAM_JPEG_WIDTH 3264 |
|---|
| 1133 | #define CAM_JPEG_HEIGHT 2448 |
|---|
| 1134 | #define CAM_ACTIVE_AREA_X1 6 |
|---|
| 1135 | #define CAM_ACTIVE_AREA_Y1 6 |
|---|
| 1136 | #define CAM_ACTIVE_AREA_X2 3304 |
|---|
| 1137 | #define CAM_ACTIVE_AREA_Y2 2476 |
|---|
| 1138 | // camera name |
|---|
| 1139 | #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData |
|---|
| 1140 | |
|---|
| 1141 | #define CAM_EXT_TV_RANGE 1 |
|---|
| 1142 | |
|---|
| 1143 | //---------------------------------------------------------- |
|---|
| 1144 | #elif defined (CAMERA_ixus700_sd500) |
|---|
| 1145 | #define CAM_PROPSET 1 |
|---|
| 1146 | |
|---|
| 1147 | #define CAM_RAW_ROWPIX 3152 // for 7 MP |
|---|
| 1148 | #define CAM_RAW_ROWS 2340 // for 7 MP |
|---|
| 1149 | |
|---|
| 1150 | #undef CAM_SYNCH |
|---|
| 1151 | #undef CAM_USE_ZOOM_FOR_MF |
|---|
| 1152 | #define CAM_DRAW_EXPOSITION 1 |
|---|
| 1153 | #undef CAM_HAS_ERASE_BUTTON |
|---|
| 1154 | #undef CAM_HAS_IRIS_DIAPHRAGM |
|---|
| 1155 | #define CAM_HAS_ND_FILTER 1 |
|---|
| 1156 | #undef CAM_HAS_MANUAL_FOCUS |
|---|
| 1157 | #undef CAM_HAS_USER_TV_MODES |
|---|
| 1158 | #undef CAM_CAN_SD_OVERRIDE |
|---|
| 1159 | #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 |
|---|
| 1160 | #undef CAM_HAS_IS |
|---|
| 1161 | #define CAM_MULTIPART 1 |
|---|
| 1162 | #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 |
|---|
| 1163 | #define DNG_SUPPORT 1 |
|---|
| 1164 | // pattern |
|---|
| 1165 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 1166 | // color |
|---|
| 1167 | #define CAM_COLORMATRIX1 \ |
|---|
| 1168 | 15265, 1, -6193, 1, -1558, 1, \ |
|---|
| 1169 | -4125, 1, 12116, 1, 2010, 1, \ |
|---|
| 1170 | -888, 1, 1639, 1, 5220, 1 |
|---|
| 1171 | |
|---|
| 1172 | #define cam_CalibrationIlluminant1 17 // Standard light A |
|---|
| 1173 | // cropping |
|---|
| 1174 | #define CAM_JPEG_WIDTH 3072 |
|---|
| 1175 | #define CAM_JPEG_HEIGHT 2304 |
|---|
| 1176 | #define CAM_ACTIVE_AREA_X1 38 |
|---|
| 1177 | #define CAM_ACTIVE_AREA_Y1 14 |
|---|
| 1178 | #define CAM_ACTIVE_AREA_X2 3146 |
|---|
| 1179 | #define CAM_ACTIVE_AREA_Y2 2338 |
|---|
| 1180 | // camera name |
|---|
| 1181 | #define PARAM_CAMERA_NAME 2 // parameter number for GetParameterData |
|---|
| 1182 | #define DNG_EXT_FROM ".DPS" |
|---|
| 1183 | |
|---|
| 1184 | //---------------------------------------------------------- |
|---|
| 1185 | |
|---|
| 1186 | #elif defined (CAMERA_ixus750_sd550) |
|---|
| 1187 | #define CAM_PROPSET 1 |
|---|
| 1188 | |
|---|
| 1189 | #define CAM_RAW_ROWPIX 3152 // for 7 MP |
|---|
| 1190 | #define CAM_RAW_ROWS 2340 // for 7 MP |
|---|
| 1191 | |
|---|
| 1192 | #define CAM_USE_ZOOM_FOR_MF 1 |
|---|
| 1193 | #define CAM_DRAW_EXPOSITION 1 |
|---|
| 1194 | #undef CAM_HAS_ERASE_BUTTON |
|---|
| 1195 | #undef CAM_HAS_IRIS_DIAPHRAGM |
|---|
| 1196 | #define CAM_HAS_ND_FILTER 1 |
|---|
| 1197 | #undef CAM_HAS_MANUAL_FOCUS |
|---|
| 1198 | #undef CAM_HAS_USER_TV_MODES |
|---|
| 1199 | #define CAM_CAN_SD_OVERRIDE 1 |
|---|
| 1200 | #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 |
|---|
| 1201 | #undef CAM_HAS_IS |
|---|
| 1202 | #define CAM_MULTIPART 1 |
|---|
| 1203 | #undef CAM_SYNCH |
|---|
| 1204 | #define DNG_SUPPORT 1 |
|---|
| 1205 | // pattern |
|---|
| 1206 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 1207 | // color |
|---|
| 1208 | #define CAM_COLORMATRIX1 \ |
|---|
| 1209 | 580280, 1000000, -172239, 1000000, -89707, 1000000, \ |
|---|
| 1210 | -206596, 1000000, 634926, 1000000, 63877, 1000000, \ |
|---|
| 1211 | 10377, 1000000, 62053, 1000000, 242646, 1000000 |
|---|
| 1212 | |
|---|
| 1213 | #define cam_CalibrationIlluminant1 1 // Daylight |
|---|
| 1214 | // cropping |
|---|
| 1215 | #define CAM_JPEG_WIDTH 3072 |
|---|
| 1216 | #define CAM_JPEG_HEIGHT 2304 |
|---|
| 1217 | #define CAM_ACTIVE_AREA_X1 36 |
|---|
| 1218 | #define CAM_ACTIVE_AREA_Y1 12 |
|---|
| 1219 | #define CAM_ACTIVE_AREA_X2 3148 |
|---|
| 1220 | #define CAM_ACTIVE_AREA_Y2 2340 |
|---|
| 1221 | // camera name |
|---|
| 1222 | #define PARAM_CAMERA_NAME 3 // parameter number for GetParameterData |
|---|
| 1223 | |
|---|
| 1224 | //---------------------------------------------------------- |
|---|
| 1225 | #elif defined (CAMERA_ixus800_sd700) |
|---|
| 1226 | #define CAM_PROPSET 1 |
|---|
| 1227 | |
|---|
| 1228 | #define CAM_RAW_ROWPIX 2888 // for 6 MP |
|---|
| 1229 | #define CAM_RAW_ROWS 2136 // for 6 MP |
|---|
| 1230 | |
|---|
| 1231 | #undef CAM_USE_ZOOM_FOR_MF |
|---|
| 1232 | #define CAM_DRAW_EXPOSITION 1 |
|---|
| 1233 | #undef CAM_HAS_ERASE_BUTTON |
|---|
| 1234 | #undef CAM_HAS_IRIS_DIAPHRAGM |
|---|
| 1235 | #define CAM_HAS_ND_FILTER 1 |
|---|
| 1236 | #undef CAM_HAS_MANUAL_FOCUS |
|---|
| 1237 | #undef CAM_HAS_USER_TV_MODES |
|---|
| 1238 | #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 |
|---|
| 1239 | #define CAM_AF_SCAN_DURING_VIDEO_RECORD 2 |
|---|
| 1240 | #define DNG_SUPPORT 1 |
|---|
| 1241 | |
|---|
| 1242 | // Warning! DNG4PS2 has both ixus800 and sd700 support with different CFA patterns and color matrices. |
|---|
| 1243 | // Used settings for IXUS800 |
|---|
| 1244 | |
|---|
| 1245 | // pattern |
|---|
| 1246 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 1247 | // color |
|---|
| 1248 | #define CAM_COLORMATRIX1 \ |
|---|
| 1249 | 14062, 1, -5199, 1, -1446, 1, \ |
|---|
| 1250 | -4712, 1, 12470, 1, 2243, 1, \ |
|---|
| 1251 | -1286, 1, 2028, 1, 4836, 1 |
|---|
| 1252 | |
|---|
| 1253 | #define cam_CalibrationIlluminant1 17 // Standard light A |
|---|
| 1254 | // cropping |
|---|
| 1255 | #define CAM_JPEG_WIDTH 2816 |
|---|
| 1256 | #define CAM_JPEG_HEIGHT 2112 |
|---|
| 1257 | #define CAM_ACTIVE_AREA_X1 44 |
|---|
| 1258 | #define CAM_ACTIVE_AREA_Y1 8 |
|---|
| 1259 | #define CAM_ACTIVE_AREA_X2 2884 |
|---|
| 1260 | #define CAM_ACTIVE_AREA_Y2 2136 |
|---|
| 1261 | // camera name |
|---|
| 1262 | #define PARAM_CAMERA_NAME 3 // parameter number for GetParameterData |
|---|
| 1263 | #define DNG_EXT_FROM ".DPS" |
|---|
| 1264 | |
|---|
| 1265 | //---------------------------------------------------------- |
|---|
| 1266 | #elif defined (CAMERA_ixus850_sd800) |
|---|
| 1267 | #define CAM_PROPSET 1 |
|---|
| 1268 | |
|---|
| 1269 | #define CAM_RAW_ROWPIX 3152 // for 7 MP |
|---|
| 1270 | #define CAM_RAW_ROWS 2340 // for 7 MP |
|---|
| 1271 | |
|---|
| 1272 | #undef CAM_USE_ZOOM_FOR_MF |
|---|
| 1273 | #undef CAM_HAS_ERASE_BUTTON |
|---|
| 1274 | #undef CAM_HAS_IRIS_DIAPHRAGM |
|---|
| 1275 | #define CAM_HAS_ND_FILTER 1 |
|---|
| 1276 | #undef CAM_HAS_MANUAL_FOCUS |
|---|
| 1277 | #undef CAM_HAS_USER_TV_MODES |
|---|
| 1278 | #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 |
|---|
| 1279 | #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 |
|---|
| 1280 | #define CAM_MULTIPART 1 |
|---|
| 1281 | #define DNG_SUPPORT 1 |
|---|
| 1282 | // pattern |
|---|
| 1283 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 1284 | // color |
|---|
| 1285 | #define CAM_COLORMATRIX1 \ |
|---|
| 1286 | 661014, 1000000, -189364, 1000000, -115797, 1000000, \ |
|---|
| 1287 | -168772, 1000000, 661827, 1000000, 47392, 1000000, \ |
|---|
| 1288 | -35846, 1000000, 107148, 1000000, 233705, 1000000 |
|---|
| 1289 | |
|---|
| 1290 | #define cam_CalibrationIlluminant1 17 // Standard light A |
|---|
| 1291 | // cropping |
|---|
| 1292 | #define CAM_JPEG_WIDTH 3072 |
|---|
| 1293 | #define CAM_JPEG_HEIGHT 2304 |
|---|
| 1294 | #define CAM_ACTIVE_AREA_X1 12 |
|---|
| 1295 | #define CAM_ACTIVE_AREA_Y1 8 |
|---|
| 1296 | #define CAM_ACTIVE_AREA_X2 3108 |
|---|
| 1297 | #define CAM_ACTIVE_AREA_Y2 2332 |
|---|
| 1298 | // camera name |
|---|
| 1299 | #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData |
|---|
| 1300 | |
|---|
| 1301 | #define DNG_EXT_FROM ".DPS" |
|---|
| 1302 | |
|---|
| 1303 | //---------------------------------------------------------- |
|---|
| 1304 | #elif defined (CAMERA_ixus860_sd870) |
|---|
| 1305 | #define CAM_PROPSET 2 |
|---|
| 1306 | #define CAM_DRYOS 1 |
|---|
| 1307 | |
|---|
| 1308 | #define CAM_RAW_ROWPIX 3336 // for new 8 MP |
|---|
| 1309 | #define CAM_RAW_ROWS 2480 // for new 8 MP |
|---|
| 1310 | |
|---|
| 1311 | #undef CAM_USE_ZOOM_FOR_MF |
|---|
| 1312 | #undef CAM_HAS_ERASE_BUTTON |
|---|
| 1313 | #undef CAM_HAS_IRIS_DIAPHRAGM |
|---|
| 1314 | #define CAM_HAS_ND_FILTER 1 |
|---|
| 1315 | #undef CAM_HAS_MANUAL_FOCUS |
|---|
| 1316 | #undef CAM_HAS_USER_TV_MODES |
|---|
| 1317 | #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 |
|---|
| 1318 | #define CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO 1 |
|---|
| 1319 | #undef CAM_CAN_MUTE_MICROPHONE |
|---|
| 1320 | #undef CAM_VIDEO_CONTROL |
|---|
| 1321 | #define DNG_SUPPORT 1 |
|---|
| 1322 | // pattern |
|---|
| 1323 | #define cam_CFAPattern 0x01000201 // Green Blue Red Green |
|---|
| 1324 | // color |
|---|
| 1325 | #define CAM_COLORMATRIX1 \ |
|---|
| 1326 | 747939, 1000000, -268233, 1000000, -129266, 1000000, \ |
|---|
| 1327 | -50633, 1000000, 515687, 1000000, 23509, 1000000, \ |
|---|
| 1328 | -21341, 1000000, 76495, 1000000, 186385, 1000000 |
|---|
| 1329 | |
|---|
| 1330 | #define cam_CalibrationIlluminant1 1 // Daylight |
|---|
| 1331 | // cropping |
|---|
| 1332 | #define CAM_JPEG_WIDTH 3264 |
|---|
| 1333 | #define CAM_JPEG_HEIGHT 2448 |
|---|
| 1334 | #define CAM_ACTIVE_AREA_X1 10 |
|---|
| 1335 | #define CAM_ACTIVE_AREA_Y1 8 |
|---|
| 1336 | #define CAM_ACTIVE_AREA_X2 3302 |
|---|
| 1337 | #define CAM_ACTIVE_AREA_Y2 2474 |
|---|
| 1338 | // camera name |
|---|
| 1339 | #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData |
|---|
| 1340 | |
|---|
| 1341 | #define DNG_EXT_FROM ".CR2" |
|---|
| 1342 | |
|---|
| 1343 | //---------------------------------------------------------- |
|---|
| 1344 | #elif defined (CAMERA_ixus870_sd880) |
|---|
| 1345 | |
|---|
| 1346 | // Camera details |
|---|
| 1347 | #define CAM_MAKE "Canon" |
|---|
| 1348 | #define CAM_DRYOS 1 |
|---|
| 1349 | #define CAM_PROPSET 2 |
|---|
| 1350 | |
|---|
| 1351 | #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 |
|---|
| 1352 | #define CAM_BITMAP_PALETTE 1 |
|---|
| 1353 | #define CAM_BRACKETING 1 // XXX |
|---|
| 1354 | #define CAM_CAN_SD_OVER_NOT_IN_MF 1 |
|---|
| 1355 | #define CAM_CAN_SD_OVERRIDE 1 |
|---|
| 1356 | #define CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO 1 |
|---|
| 1357 | #define CAM_EXT_TV_RANGE 1 |
|---|
| 1358 | #define CAM_HAS_IS 1 |
|---|
| 1359 | #define CAM_HAS_JOGDIAL 1 |
|---|
| 1360 | #define CAM_HAS_ND_FILTER 1 |
|---|
| 1361 | #define CAM_HAS_ZOOM_LEVER 1 |
|---|
| 1362 | #define CAM_MULTIPART 1 |
|---|
| 1363 | #define CAM_REMOTE 1 |
|---|
| 1364 | #define CAM_SYNCH 1 // XXX |
|---|
| 1365 | #undef CAM_UNCACHED_BIT |
|---|
| 1366 | #define CAM_UNCACHED_BIT 0x40000000 // 0xFF874198 (via ExMem.FreeCacheable |
|---|
| 1367 | #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData |
|---|
| 1368 | |
|---|
| 1369 | #undef CAM_CAN_MUTE_MICROPHONE // XXX |
|---|
| 1370 | #undef CAM_HAS_ERASE_BUTTON |
|---|
| 1371 | #undef CAM_HAS_IRIS_DIAPHRAGM |
|---|
| 1372 | #undef CAM_HAS_MANUAL_FOCUS |
|---|
| 1373 | #undef CAM_HAS_USER_TV_MODES // XXX |
|---|
| 1374 | #undef CAM_HAS_VIDEO_BUTTON // XXX |
|---|
| 1375 | #undef CAM_EV_IN_VIDEO // XXX |
|---|
| 1376 | #undef CAM_REAR_CURTAIN |
|---|
| 1377 | |
|---|
| 1378 | #define CAM_JPEG_WIDTH 3648 |
|---|
| 1379 | #define CAM_JPEG_HEIGHT 2736 |
|---|
| 1380 | #define CAM_RAW_ROWPIX 3720 |
|---|
| 1381 | #define CAM_RAW_ROWS 2772 |
|---|
| 1382 | #define CAM_ACTIVE_AREA_X1 14 // XXX |
|---|
| 1383 | #define CAM_ACTIVE_AREA_Y1 8 // XXX |
|---|
| 1384 | #define CAM_ACTIVE_AREA_X2 3682 // XXX |
|---|
| 1385 | #define CAM_ACTIVE_AREA_Y2 2764 // XXX |
|---|
| 1386 | |
|---|
| 1387 | #undef CAM_SENSOR_BITS_PER_PIXEL |
|---|
| 1388 | #undef CAM_WHITE_LEVEL |
|---|
| 1389 | #undef CAM_BLACK_LEVEL |
|---|
| 1390 | #define CAM_SENSOR_BITS_PER_PIXEL 12 |
|---|
| 1391 | #define CAM_WHITE_LEVEL ((1<<CAM_SENSOR_BITS_PER_PIXEL)-1) // XXX |
|---|
| 1392 | #define CAM_BLACK_LEVEL 127 // XXX |
|---|
| 1393 | |
|---|
| 1394 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 1395 | #define CAM_COLORMATRIX1 \ |
|---|
| 1396 | 827547, 1000000, -290458, 1000000, -126086, 1000000, \ |
|---|
| 1397 | -12829, 1000000, 530507, 1000000, 50537, 1000000, \ |
|---|
| 1398 | 5181, 1000000, 48183, 1000000, 245014, 1000000 // XXX |
|---|
| 1399 | #define cam_CalibrationIlluminant1 1 // Daylight XXX |
|---|
| 1400 | |
|---|
| 1401 | |
|---|
| 1402 | // CHDK functionality |
|---|
| 1403 | #define CAM_CHDK_HAS_EXT_VIDEO_MENU 1 // XXX |
|---|
| 1404 | #define CAM_EMUL_KEYPRESS_DELAY 40 |
|---|
| 1405 | #define CAM_EMUL_KEYPRESS_DURATION 5 |
|---|
| 1406 | #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 |
|---|
| 1407 | #undef DEFAULT_RAW_EXT |
|---|
| 1408 | #define DEFAULT_RAW_EXT 2 // use .CR2 |
|---|
| 1409 | #define DNG_SUPPORT 1 |
|---|
| 1410 | |
|---|
| 1411 | #undef CAM_ADJUSTABLE_ALT_BUTTON |
|---|
| 1412 | #undef CAM_CONSOLE_LOG_ENABLED |
|---|
| 1413 | #undef CAM_DRAW_EXPOSITION // XXX |
|---|
| 1414 | #undef CAM_FEATURE_FEATHER // XXX |
|---|
| 1415 | #undef CAM_USE_ZOOM_FOR_MF |
|---|
| 1416 | #undef CAM_VIDEO_CONTROL // XXX |
|---|
| 1417 | |
|---|
| 1418 | |
|---|
| 1419 | //---------------------------------------------------------- |
|---|
| 1420 | #elif defined (CAMERA_ixus950_sd850) |
|---|
| 1421 | |
|---|
| 1422 | #define CAM_EXT_TV_RANGE 1 |
|---|
| 1423 | #define CAM_PROPSET 2 |
|---|
| 1424 | |
|---|
| 1425 | #define CAM_RAW_ROWPIX 3336 // for new 8 MP |
|---|
| 1426 | #define CAM_RAW_ROWS 2480 // for new 8 MP |
|---|
| 1427 | |
|---|
| 1428 | #undef CAM_USE_ZOOM_FOR_MF |
|---|
| 1429 | #undef CAM_HAS_ERASE_BUTTON |
|---|
| 1430 | #undef CAM_HAS_IRIS_DIAPHRAGM |
|---|
| 1431 | #define CAM_HAS_ND_FILTER 1 |
|---|
| 1432 | #undef CAM_HAS_MANUAL_FOCUS |
|---|
| 1433 | #undef CAM_HAS_USER_TV_MODES |
|---|
| 1434 | #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 |
|---|
| 1435 | #define CAM_MULTIPART 1 |
|---|
| 1436 | #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 |
|---|
| 1437 | #define DNG_SUPPORT 1 |
|---|
| 1438 | // pattern |
|---|
| 1439 | #define cam_CFAPattern 0x01000201 // Green Blue Red Green |
|---|
| 1440 | // color |
|---|
| 1441 | #define CAM_COLORMATRIX1 \ |
|---|
| 1442 | 14573, 1, -5482, 1, -1546, 1, \ |
|---|
| 1443 | -1266, 1, 9799, 1, 1468, 1, \ |
|---|
| 1444 | -1040, 1, 1912, 1, 3810, 1 |
|---|
| 1445 | |
|---|
| 1446 | #define cam_CalibrationIlluminant1 1 // Daylight |
|---|
| 1447 | // cropping |
|---|
| 1448 | #define CAM_JPEG_WIDTH 3264 |
|---|
| 1449 | #define CAM_JPEG_HEIGHT 2448 |
|---|
| 1450 | #define CAM_ACTIVE_AREA_X1 10 |
|---|
| 1451 | #define CAM_ACTIVE_AREA_Y1 8 |
|---|
| 1452 | #define CAM_ACTIVE_AREA_X2 3302 |
|---|
| 1453 | #define CAM_ACTIVE_AREA_Y2 2474 |
|---|
| 1454 | // camera name |
|---|
| 1455 | #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData |
|---|
| 1456 | #define DNG_EXT_FROM ".DPS" |
|---|
| 1457 | |
|---|
| 1458 | //---------------------------------------------------------- |
|---|
| 1459 | #elif defined (CAMERA_ixus960_sd950) |
|---|
| 1460 | #define CAM_PROPSET 2 |
|---|
| 1461 | #define CAM_DRYOS 1 |
|---|
| 1462 | |
|---|
| 1463 | #define CAM_RAW_ROWPIX 4104 |
|---|
| 1464 | #define CAM_RAW_ROWS 3048 |
|---|
| 1465 | |
|---|
| 1466 | #undef CAM_USE_ZOOM_FOR_MF |
|---|
| 1467 | #undef CAM_HAS_ERASE_BUTTON |
|---|
| 1468 | #undef CAM_HAS_IRIS_DIAPHRAGM |
|---|
| 1469 | #define CAM_HAS_ND_FILTER 1 |
|---|
| 1470 | #undef CAM_HAS_MANUAL_FOCUS |
|---|
| 1471 | #undef CAM_HAS_USER_TV_MODES |
|---|
| 1472 | #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 |
|---|
| 1473 | #define DNG_SUPPORT 1 |
|---|
| 1474 | // pattern |
|---|
| 1475 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 1476 | // color |
|---|
| 1477 | #define CAM_COLORMATRIX1 \ |
|---|
| 1478 | 913762, 1000000, -261578, 1000000, -135582, 1000000, \ |
|---|
| 1479 | -99049, 1000000, 1067089, 1000000, 61442, 1000000, \ |
|---|
| 1480 | 48717, 1000000, 96802, 1000000, 412056, 1000000 |
|---|
| 1481 | |
|---|
| 1482 | #define cam_CalibrationIlluminant1 1 // Daylight |
|---|
| 1483 | // cropping |
|---|
| 1484 | #define CAM_JPEG_WIDTH 4000 |
|---|
| 1485 | #define CAM_JPEG_HEIGHT 3000 |
|---|
| 1486 | #define CAM_ACTIVE_AREA_X1 48 |
|---|
| 1487 | #define CAM_ACTIVE_AREA_Y1 12 |
|---|
| 1488 | #define CAM_ACTIVE_AREA_X2 4080 |
|---|
| 1489 | #define CAM_ACTIVE_AREA_Y2 3036 |
|---|
| 1490 | // camera name |
|---|
| 1491 | #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData |
|---|
| 1492 | |
|---|
| 1493 | #define DNG_EXT_FROM ".CR2" |
|---|
| 1494 | |
|---|
| 1495 | //---------------------------------------------------------- |
|---|
| 1496 | #elif defined (CAMERA_ixus970_sd890) |
|---|
| 1497 | #define CAM_PROPSET 2 |
|---|
| 1498 | #define CAM_DRYOS 1 |
|---|
| 1499 | |
|---|
| 1500 | #define CAM_RAW_ROWPIX 3720 |
|---|
| 1501 | #define CAM_RAW_ROWS 2772 |
|---|
| 1502 | |
|---|
| 1503 | #undef CAM_USE_ZOOM_FOR_MF |
|---|
| 1504 | #undef CAM_HAS_ERASE_BUTTON |
|---|
| 1505 | #undef CAM_HAS_IRIS_DIAPHRAGM |
|---|
| 1506 | #define CAM_HAS_ND_FILTER 1 |
|---|
| 1507 | #undef CAM_HAS_MANUAL_FOCUS |
|---|
| 1508 | #define CAM_MULTIPART 1 |
|---|
| 1509 | #define CAM_HAS_JOGDIAL 1 |
|---|
| 1510 | #define CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO 1 |
|---|
| 1511 | #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 |
|---|
| 1512 | #define DNG_SUPPORT 1 |
|---|
| 1513 | #define CAM_EXT_TV_RANGE 1 |
|---|
| 1514 | |
|---|
| 1515 | // pattern |
|---|
| 1516 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 1517 | |
|---|
| 1518 | // color |
|---|
| 1519 | #define CAM_COLORMATRIX1 \ |
|---|
| 1520 | 827547, 1000000, -290458, 1000000, -126086, 1000000, \ |
|---|
| 1521 | -12829, 1000000, 530507, 1000000, 50537, 1000000, \ |
|---|
| 1522 | 5181, 1000000, 48183, 1000000, 245014, 1000000 |
|---|
| 1523 | #define cam_CalibrationIlluminant1 1 // Daylight |
|---|
| 1524 | |
|---|
| 1525 | // cropping |
|---|
| 1526 | #define CAM_JPEG_WIDTH 3648 |
|---|
| 1527 | #define CAM_JPEG_HEIGHT 2736 |
|---|
| 1528 | #define CAM_ACTIVE_AREA_X1 6 |
|---|
| 1529 | #define CAM_ACTIVE_AREA_Y1 12 |
|---|
| 1530 | #define CAM_ACTIVE_AREA_X2 3690 |
|---|
| 1531 | #define CAM_ACTIVE_AREA_Y2 2772 |
|---|
| 1532 | |
|---|
| 1533 | // camera name |
|---|
| 1534 | #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData |
|---|
| 1535 | |
|---|
| 1536 | // 12 bit support |
|---|
| 1537 | #undef CAM_SENSOR_BITS_PER_PIXEL |
|---|
| 1538 | #undef CAM_WHITE_LEVEL |
|---|
| 1539 | #undef CAM_BLACK_LEVEL |
|---|
| 1540 | #define CAM_SENSOR_BITS_PER_PIXEL 12 |
|---|
| 1541 | #define CAM_WHITE_LEVEL ((1<<CAM_SENSOR_BITS_PER_PIXEL)-1) |
|---|
| 1542 | #define CAM_BLACK_LEVEL 127 |
|---|
| 1543 | |
|---|
| 1544 | #elif defined (CAMERA_ixus980_sd990) |
|---|
| 1545 | #define CAM_PROPSET 2 // all values checked so far match propset 2 |
|---|
| 1546 | #define CAM_DRYOS 1 |
|---|
| 1547 | |
|---|
| 1548 | #define CAM_RAW_ROWPIX 4480 // 14.7 MP 12bpp |
|---|
| 1549 | #define CAM_RAW_ROWS 3348 |
|---|
| 1550 | |
|---|
| 1551 | #undef CAM_USE_ZOOM_FOR_MF |
|---|
| 1552 | #undef CAM_HAS_ERASE_BUTTON |
|---|
| 1553 | #define CAM_MULTIPART 1 |
|---|
| 1554 | #undef CAM_HAS_IRIS_DIAPHRAGM |
|---|
| 1555 | #define CAM_HAS_ND_FILTER 1 |
|---|
| 1556 | #define CAM_HAS_MANUAL_FOCUS 1 |
|---|
| 1557 | #define CAM_HAS_USER_TV_MODES 1 //include M/P ? needed to make Tv bracketing work |
|---|
| 1558 | #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 |
|---|
| 1559 | #define CAM_CHDK_HAS_EXT_VIDEO_MENU 1 |
|---|
| 1560 | #undef CAM_VIDEO_CONTROL |
|---|
| 1561 | #undef CAM_UNCACHED_BIT // shut up compiler |
|---|
| 1562 | #define CAM_UNCACHED_BIT 0x40000000 |
|---|
| 1563 | #undef CAM_BITMAP_PALETTE |
|---|
| 1564 | #define CAM_BITMAP_PALETTE 2 |
|---|
| 1565 | |
|---|
| 1566 | #undef CAM_BLACK_LEVEL |
|---|
| 1567 | #define CAM_BLACK_LEVEL 127 |
|---|
| 1568 | #define CAM_HAS_JOGDIAL 1 |
|---|
| 1569 | // #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 |
|---|
| 1570 | #define CAM_VIDEO_QUALITY_ONLY 1 |
|---|
| 1571 | #define CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO 1 |
|---|
| 1572 | #undef CAM_SENSOR_BITS_PER_PIXEL |
|---|
| 1573 | #define CAM_SENSOR_BITS_PER_PIXEL 12 |
|---|
| 1574 | #undef CAM_WHITE_LEVEL |
|---|
| 1575 | #define CAM_WHITE_LEVEL ((1<<CAM_SENSOR_BITS_PER_PIXEL)-1) |
|---|
| 1576 | |
|---|
| 1577 | #define DNG_SUPPORT 1 |
|---|
| 1578 | // pattern |
|---|
| 1579 | #define cam_CFAPattern 0x01000201 // Green Blue Red Green |
|---|
| 1580 | // color preliminary |
|---|
| 1581 | #define CAM_COLORMATRIX1 \ |
|---|
| 1582 | 837237, 1000000, -290137, 1000000, -128156, 1000000, \ |
|---|
| 1583 | -127762, 1000000, 643909, 1000000, 52973, 1000000, \ |
|---|
| 1584 | 4446, 1000000, 88354, 1000000, 224246, 1000000 |
|---|
| 1585 | |
|---|
| 1586 | #define cam_CalibrationIlluminant1 1 // Daylight |
|---|
| 1587 | // cropping |
|---|
| 1588 | #define CAM_JPEG_WIDTH 4416 |
|---|
| 1589 | #define CAM_JPEG_HEIGHT 3312 |
|---|
| 1590 | #define CAM_ACTIVE_AREA_X1 12 |
|---|
| 1591 | #define CAM_ACTIVE_AREA_Y1 12 |
|---|
| 1592 | #define CAM_ACTIVE_AREA_X2 4444 |
|---|
| 1593 | #define CAM_ACTIVE_AREA_Y2 3324 |
|---|
| 1594 | // camera name |
|---|
| 1595 | #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData sd990: OK |
|---|
| 1596 | |
|---|
| 1597 | // #define DNG_EXT_FROM ".CR2" |
|---|
| 1598 | |
|---|
| 1599 | //========================================================== |
|---|
| 1600 | // S-Series |
|---|
| 1601 | //========================================================== |
|---|
| 1602 | #elif defined (CAMERA_s2is) |
|---|
| 1603 | #define CAM_PROPSET 1 |
|---|
| 1604 | |
|---|
| 1605 | #define CAM_RAW_ROWPIX 2672 // for 5 MP |
|---|
| 1606 | #define CAM_RAW_ROWS 1968 // for 5 MP |
|---|
| 1607 | |
|---|
| 1608 | #undef CAM_SYNCH |
|---|
| 1609 | #define CAM_SWIVEL_SCREEN 1 |
|---|
| 1610 | #define CAM_ADJUSTABLE_ALT_BUTTON 1 |
|---|
| 1611 | #undef CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO |
|---|
| 1612 | #define CAM_HAS_VIDEO_BUTTON 1 |
|---|
| 1613 | #undef CAM_VIDEO_CONTROL |
|---|
| 1614 | #define DNG_SUPPORT 1 |
|---|
| 1615 | // pattern |
|---|
| 1616 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 1617 | // color |
|---|
| 1618 | #define CAM_COLORMATRIX1 \ |
|---|
| 1619 | 547708, 1000000, -143462, 1000000, -99243, 1000000, \ |
|---|
| 1620 | -186838, 1000000, 663925, 1000000, 50970, 1000000, \ |
|---|
| 1621 | -5810, 1000000, 79162, 1000000, 266988, 1000000 |
|---|
| 1622 | |
|---|
| 1623 | #define cam_CalibrationIlluminant1 1 // Daylight |
|---|
| 1624 | // cropping |
|---|
| 1625 | #define CAM_JPEG_WIDTH 2592 |
|---|
| 1626 | #define CAM_JPEG_HEIGHT 1944 |
|---|
| 1627 | #define CAM_ACTIVE_AREA_X1 14 |
|---|
| 1628 | #define CAM_ACTIVE_AREA_Y1 10 |
|---|
| 1629 | #define CAM_ACTIVE_AREA_X2 2626 |
|---|
| 1630 | #define CAM_ACTIVE_AREA_Y2 1966 |
|---|
| 1631 | // camera name |
|---|
| 1632 | #define PARAM_CAMERA_NAME 2 // parameter number for GetParameterData |
|---|
| 1633 | #define CAM_BRACKETING 1 |
|---|
| 1634 | #define DNG_EXT_FROM ".DPS" |
|---|
| 1635 | |
|---|
| 1636 | //---------------------------------------------------------- |
|---|
| 1637 | #elif defined (CAMERA_s3is) |
|---|
| 1638 | #define CAM_PROPSET 1 |
|---|
| 1639 | |
|---|
| 1640 | #define CAM_RAW_ROWPIX 2888 // for 6 MP |
|---|
| 1641 | #define CAM_RAW_ROWS 2136 // for 6 MP |
|---|
| 1642 | |
|---|
| 1643 | #undef CAM_SYNCH |
|---|
| 1644 | #define CAM_SWIVEL_SCREEN 1 |
|---|
| 1645 | #define CAM_ADJUSTABLE_ALT_BUTTON 1 |
|---|
| 1646 | #define CAM_MULTIPART 1 |
|---|
| 1647 | #undef CAM_CAN_SD_OVER_NOT_IN_MF |
|---|
| 1648 | #undef CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO |
|---|
| 1649 | #define CAM_HAS_VIDEO_BUTTON 1 |
|---|
| 1650 | #define DNG_SUPPORT 1 |
|---|
| 1651 | // pattern |
|---|
| 1652 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 1653 | // color |
|---|
| 1654 | #define CAM_COLORMATRIX1 \ |
|---|
| 1655 | 14062, 10000, -5199, 10000, -1446, 10000, \ |
|---|
| 1656 | -4712, 10000, 12470, 10000, 2243, 10000, \ |
|---|
| 1657 | -1286, 10000, 2028, 10000, 4836, 10000 |
|---|
| 1658 | |
|---|
| 1659 | #define cam_CalibrationIlluminant1 17 // Standard light A |
|---|
| 1660 | // cropping |
|---|
| 1661 | #define CAM_JPEG_WIDTH 2816 |
|---|
| 1662 | #define CAM_JPEG_HEIGHT 2112 |
|---|
| 1663 | #define CAM_ACTIVE_AREA_X1 44 |
|---|
| 1664 | #define CAM_ACTIVE_AREA_Y1 8 |
|---|
| 1665 | #define CAM_ACTIVE_AREA_X2 2884 |
|---|
| 1666 | #define CAM_ACTIVE_AREA_Y2 2136 |
|---|
| 1667 | // camera name |
|---|
| 1668 | #define PARAM_CAMERA_NAME 3 // parameter number for GetParameterData |
|---|
| 1669 | #define CAM_BRACKETING 1 |
|---|
| 1670 | #define DNG_EXT_FROM ".DPS" |
|---|
| 1671 | |
|---|
| 1672 | #define CAM_EXT_TV_RANGE 1 |
|---|
| 1673 | |
|---|
| 1674 | //---------------------------------------------------------- |
|---|
| 1675 | #elif defined (CAMERA_s5is) |
|---|
| 1676 | #define CAM_PROPSET 2 |
|---|
| 1677 | #define CAM_DRYOS 1 |
|---|
| 1678 | |
|---|
| 1679 | #define CAM_RAW_ROWPIX 3336 // for new 8 MP |
|---|
| 1680 | #define CAM_RAW_ROWS 2480 // for new 8 MP |
|---|
| 1681 | |
|---|
| 1682 | #define CAM_SWIVEL_SCREEN 1 |
|---|
| 1683 | #define CAM_ADJUSTABLE_ALT_BUTTON 1 |
|---|
| 1684 | #undef CAM_CAN_SD_OVER_NOT_IN_MF |
|---|
| 1685 | #undef CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO |
|---|
| 1686 | #define CAM_HAS_VIDEO_BUTTON 1 |
|---|
| 1687 | #define CAM_EXT_TV_RANGE 1 |
|---|
| 1688 | #define DNG_SUPPORT 1 |
|---|
| 1689 | // pattern |
|---|
| 1690 | #define cam_CFAPattern 0x01000201 // Green Blue Red Green |
|---|
| 1691 | // color |
|---|
| 1692 | #define CAM_COLORMATRIX1 \ |
|---|
| 1693 | 650591, 1000000, -199585, 1000000, -123118, 1000000, \ |
|---|
| 1694 | -69617, 1000000, 583926, 1000000, 34354, 1000000, \ |
|---|
| 1695 | -19113, 1000000, 82163, 1000000, 210786, 1000000 |
|---|
| 1696 | |
|---|
| 1697 | #define cam_CalibrationIlluminant1 1 // Daylight |
|---|
| 1698 | // cropping |
|---|
| 1699 | #define CAM_JPEG_WIDTH 3264 |
|---|
| 1700 | #define CAM_JPEG_HEIGHT 2448 |
|---|
| 1701 | #define CAM_ACTIVE_AREA_X1 10 |
|---|
| 1702 | #define CAM_ACTIVE_AREA_Y1 8 |
|---|
| 1703 | #define CAM_ACTIVE_AREA_X2 3302 |
|---|
| 1704 | #define CAM_ACTIVE_AREA_Y2 2474 |
|---|
| 1705 | // camera name |
|---|
| 1706 | #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData |
|---|
| 1707 | #define CAM_BRACKETING 1 |
|---|
| 1708 | #define DNG_EXT_FROM ".DPS" |
|---|
| 1709 | |
|---|
| 1710 | //========================================================== |
|---|
| 1711 | // TX-Series |
|---|
| 1712 | //========================================================== |
|---|
| 1713 | #elif defined (CAMERA_tx1) |
|---|
| 1714 | #define CAM_PROPSET 2 |
|---|
| 1715 | |
|---|
| 1716 | #define CAM_RAW_ROWPIX 3152 // for 7 MP |
|---|
| 1717 | #define CAM_RAW_ROWS 2340 // for 7 MP |
|---|
| 1718 | |
|---|
| 1719 | #define CAM_SWIVEL_SCREEN 1 |
|---|
| 1720 | #define CAM_HAS_ND_FILTER 1 |
|---|
| 1721 | #undef CAM_HAS_ERASE_BUTTON |
|---|
| 1722 | #undef CAM_HAS_MANUAL_FOCUS |
|---|
| 1723 | #undef CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO |
|---|
| 1724 | #define CAM_MULTIPART 1 |
|---|
| 1725 | #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 |
|---|
| 1726 | #define CAM_HAS_VIDEO_BUTTON 1 |
|---|
| 1727 | #define DNG_SUPPORT 1 |
|---|
| 1728 | // pattern |
|---|
| 1729 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 1730 | // color |
|---|
| 1731 | #define CAM_COLORMATRIX1 \ |
|---|
| 1732 | 510370, 1000000, -68998, 1000000, -86859, 1000000, \ |
|---|
| 1733 | -279980, 1000000, 766686, 1000000, 67944, 1000000, \ |
|---|
| 1734 | -14382, 1000000, 113688, 1000000, 239853, 1000000 |
|---|
| 1735 | |
|---|
| 1736 | #define cam_CalibrationIlluminant1 1 // Daylight |
|---|
| 1737 | // cropping |
|---|
| 1738 | #define CAM_JPEG_WIDTH 3072 |
|---|
| 1739 | #define CAM_JPEG_HEIGHT 2304 |
|---|
| 1740 | #define CAM_ACTIVE_AREA_X1 12 |
|---|
| 1741 | #define CAM_ACTIVE_AREA_Y1 8 |
|---|
| 1742 | #define CAM_ACTIVE_AREA_X2 3108 |
|---|
| 1743 | #define CAM_ACTIVE_AREA_Y2 2332 |
|---|
| 1744 | // camera name |
|---|
| 1745 | #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData |
|---|
| 1746 | #define DNG_EXT_FROM ".DPS" |
|---|
| 1747 | |
|---|
| 1748 | //========================================================== |
|---|
| 1749 | // SX-Series |
|---|
| 1750 | //========================================================== |
|---|
| 1751 | #elif defined (CAMERA_sx100is) |
|---|
| 1752 | #define CAM_PROPSET 2 |
|---|
| 1753 | #define CAM_DRYOS 1 |
|---|
| 1754 | |
|---|
| 1755 | #define CAM_RAW_ROWPIX 3336 // for new 8 MP |
|---|
| 1756 | #define CAM_RAW_ROWS 2480 // for new 8 MP |
|---|
| 1757 | #undef CAM_SYNCH |
|---|
| 1758 | #define CAM_CAN_MUTE_MICROPHONE 1 |
|---|
| 1759 | #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 |
|---|
| 1760 | #define CAM_ADJUSTABLE_ALT_BUTTON 1 |
|---|
| 1761 | #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 |
|---|
| 1762 | #undef CAM_VIDEO_CONTROL |
|---|
| 1763 | #define DNG_SUPPORT 1 |
|---|
| 1764 | #define CAM_REAR_CURTAIN 1 |
|---|
| 1765 | #define CAM_HAS_JOGDIAL 1 |
|---|
| 1766 | // pattern |
|---|
| 1767 | #define cam_CFAPattern 0x01000201 // Green Blue Red Green |
|---|
| 1768 | // color |
|---|
| 1769 | #define CAM_COLORMATRIX1 \ |
|---|
| 1770 | 656793, 1000000, -168702, 1000000, -108030, 1000000, \ |
|---|
| 1771 | -2711, 1000000, 661538, 1000000, 37919, 1000000, \ |
|---|
| 1772 | 77255, 1000000, 48834, 1000000, 241797, 1000000 |
|---|
| 1773 | |
|---|
| 1774 | #define cam_CalibrationIlluminant1 1 // Daylight |
|---|
| 1775 | // cropping |
|---|
| 1776 | #define CAM_JPEG_WIDTH 3264 |
|---|
| 1777 | #define CAM_JPEG_HEIGHT 2448 |
|---|
| 1778 | #define CAM_ACTIVE_AREA_X1 10 |
|---|
| 1779 | #define CAM_ACTIVE_AREA_Y1 8 |
|---|
| 1780 | #define CAM_ACTIVE_AREA_X2 3302 |
|---|
| 1781 | #define CAM_ACTIVE_AREA_Y2 2474 |
|---|
| 1782 | // camera name |
|---|
| 1783 | #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData |
|---|
| 1784 | |
|---|
| 1785 | #define DNG_EXT_FROM ".CR2" |
|---|
| 1786 | #define CAM_MULTIPART 1 |
|---|
| 1787 | |
|---|
| 1788 | |
|---|
| 1789 | //---------------------------------------------------------- |
|---|
| 1790 | |
|---|
| 1791 | #elif defined (CAMERA_sx10) |
|---|
| 1792 | #define CAM_PROPSET 2 |
|---|
| 1793 | #define CAM_DRYOS 1 |
|---|
| 1794 | |
|---|
| 1795 | #define CAM_RAW_ROWPIX 3720 |
|---|
| 1796 | #define CAM_RAW_ROWS 2772 |
|---|
| 1797 | |
|---|
| 1798 | #define CAM_SWIVEL_SCREEN 1 |
|---|
| 1799 | #define CAM_ADJUSTABLE_ALT_BUTTON 1 |
|---|
| 1800 | #undef CAM_CAN_SD_OVER_NOT_IN_MF |
|---|
| 1801 | #undef CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO |
|---|
| 1802 | #define CAM_HAS_VIDEO_BUTTON 1 |
|---|
| 1803 | #define CAM_VIDEO_QUALITY_ONLY 1 |
|---|
| 1804 | #define CAM_BRACKETING 1 |
|---|
| 1805 | #undef CAM_VIDEO_CONTROL |
|---|
| 1806 | #define CAM_MULTIPART 1 |
|---|
| 1807 | #define CAM_HAS_JOGDIAL 1 |
|---|
| 1808 | #undef CAM_USE_ZOOM_FOR_MF |
|---|
| 1809 | #undef CAM_UNCACHED_BIT // shut up compiler |
|---|
| 1810 | #define CAM_UNCACHED_BIT 0x40000000 |
|---|
| 1811 | |
|---|
| 1812 | |
|---|
| 1813 | #define DNG_SUPPORT 1 |
|---|
| 1814 | // pattern |
|---|
| 1815 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 1816 | // color |
|---|
| 1817 | |
|---|
| 1818 | #define CAM_COLORMATRIX1 \ |
|---|
| 1819 | 827547, 1000000, -290458, 1000000, -126086, 1000000, \ |
|---|
| 1820 | -12829, 1000000, 530507, 1000000, 50537, 1000000, \ |
|---|
| 1821 | 5181, 1000000, 48183, 1000000, 245014, 1000000 |
|---|
| 1822 | |
|---|
| 1823 | #define cam_CalibrationIlluminant1 1 // Daylight |
|---|
| 1824 | // cropping |
|---|
| 1825 | #define CAM_JPEG_WIDTH 3648 |
|---|
| 1826 | #define CAM_JPEG_HEIGHT 2736 |
|---|
| 1827 | #define CAM_ACTIVE_AREA_X1 6 |
|---|
| 1828 | #define CAM_ACTIVE_AREA_Y1 12 |
|---|
| 1829 | #define CAM_ACTIVE_AREA_X2 3690 |
|---|
| 1830 | #define CAM_ACTIVE_AREA_Y2 2772 |
|---|
| 1831 | // camera name |
|---|
| 1832 | #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData |
|---|
| 1833 | #undef CAM_SENSOR_BITS_PER_PIXEL |
|---|
| 1834 | #undef CAM_WHITE_LEVEL |
|---|
| 1835 | #undef CAM_BLACK_LEVEL |
|---|
| 1836 | #define CAM_SENSOR_BITS_PER_PIXEL 12 |
|---|
| 1837 | #define CAM_WHITE_LEVEL ((1<<CAM_SENSOR_BITS_PER_PIXEL)-1) |
|---|
| 1838 | #define CAM_BLACK_LEVEL 127 |
|---|
| 1839 | |
|---|
| 1840 | #define CAM_EXT_TV_RANGE 1 |
|---|
| 1841 | |
|---|
| 1842 | #elif defined (CAMERA_sx1) |
|---|
| 1843 | #define CAM_PROPSET 2 |
|---|
| 1844 | #define CAM_DRYOS 1 |
|---|
| 1845 | |
|---|
| 1846 | #define CAM_RAW_ROWPIX 4152 |
|---|
| 1847 | #define CAM_RAW_ROWS 2772 |
|---|
| 1848 | |
|---|
| 1849 | #define CAM_SWIVEL_SCREEN 1 |
|---|
| 1850 | #define CAM_ADJUSTABLE_ALT_BUTTON 1 |
|---|
| 1851 | #undef CAM_CAN_SD_OVER_NOT_IN_MF |
|---|
| 1852 | #undef CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO |
|---|
| 1853 | #define CAM_HAS_VIDEO_BUTTON 1 |
|---|
| 1854 | #define CAM_VIDEO_QUALITY_ONLY 1 |
|---|
| 1855 | #define CAM_BRACKETING 1 |
|---|
| 1856 | #undef CAM_VIDEO_CONTROL |
|---|
| 1857 | #define CAM_MULTIPART 1 |
|---|
| 1858 | #define CAM_HAS_JOGDIAL 1 |
|---|
| 1859 | #undef CAM_USE_ZOOM_FOR_MF |
|---|
| 1860 | #undef CAM_UNCACHED_BIT // shut up compiler |
|---|
| 1861 | #define CAM_UNCACHED_BIT 0x40000000 |
|---|
| 1862 | |
|---|
| 1863 | |
|---|
| 1864 | #define DNG_SUPPORT 1 |
|---|
| 1865 | // pattern |
|---|
| 1866 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 1867 | // color |
|---|
| 1868 | |
|---|
| 1869 | #define CAM_COLORMATRIX1 \ |
|---|
| 1870 | 827547, 1000000, -290458, 1000000, -126086, 1000000, \ |
|---|
| 1871 | -12829, 1000000, 530507, 1000000, 50537, 1000000, \ |
|---|
| 1872 | 5181, 1000000, 48183, 1000000, 245014, 1000000 |
|---|
| 1873 | |
|---|
| 1874 | #define cam_CalibrationIlluminant1 1 // Daylight |
|---|
| 1875 | // cropping |
|---|
| 1876 | #define CAM_JPEG_WIDTH 3648 |
|---|
| 1877 | #define CAM_JPEG_HEIGHT 2736 |
|---|
| 1878 | #define CAM_ACTIVE_AREA_X1 344 |
|---|
| 1879 | #define CAM_ACTIVE_AREA_Y1 24 |
|---|
| 1880 | #define CAM_ACTIVE_AREA_X2 3991 |
|---|
| 1881 | #define CAM_ACTIVE_AREA_Y2 2759 |
|---|
| 1882 | // camera name |
|---|
| 1883 | #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData |
|---|
| 1884 | #undef CAM_SENSOR_BITS_PER_PIXEL |
|---|
| 1885 | #undef CAM_WHITE_LEVEL |
|---|
| 1886 | #undef CAM_BLACK_LEVEL |
|---|
| 1887 | #define CAM_SENSOR_BITS_PER_PIXEL 12 |
|---|
| 1888 | #define CAM_WHITE_LEVEL ((1<<CAM_SENSOR_BITS_PER_PIXEL)-1) |
|---|
| 1889 | #define CAM_BLACK_LEVEL 127 |
|---|
| 1890 | |
|---|
| 1891 | #define CAM_EXT_TV_RANGE 1 |
|---|
| 1892 | |
|---|
| 1893 | #define CAM_HAS_VARIABLE_ASPECT 1 |
|---|
| 1894 | //---------------------------------------------------------- |
|---|
| 1895 | //******** |
|---|
| 1896 | /////SX110 |
|---|
| 1897 | //******** |
|---|
| 1898 | #elif defined (CAMERA_sx110is) |
|---|
| 1899 | //needs to be adjusted START |
|---|
| 1900 | #define CAM_COLORMATRIX1 \ |
|---|
| 1901 | 1413400, 1000000, -557600, 1000000, -152700, 1000000, \ |
|---|
| 1902 | -659100, 1000000, 1071900, 1000000, 127300, 1000000, \ |
|---|
| 1903 | -115800, 1000000, 292900, 1000000, 358100, 1000000 |
|---|
| 1904 | |
|---|
| 1905 | #define CAM_ACTIVE_AREA_X1 0 |
|---|
| 1906 | #define CAM_ACTIVE_AREA_Y1 0 |
|---|
| 1907 | #define CAM_ACTIVE_AREA_X2 3720 |
|---|
| 1908 | #define CAM_ACTIVE_AREA_Y2 2772 |
|---|
| 1909 | //END |
|---|
| 1910 | |
|---|
| 1911 | #define CAM_PROPSET 2 |
|---|
| 1912 | #define CAM_DRYOS 1 |
|---|
| 1913 | #define CAM_RAW_ROWPIX 3720 |
|---|
| 1914 | #define CAM_RAW_ROWS 2772 |
|---|
| 1915 | #undef CAM_SYNCH |
|---|
| 1916 | #define CAM_CAN_MUTE_MICROPHONE 1 |
|---|
| 1917 | #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 |
|---|
| 1918 | #define CAM_REAR_CURTAIN 1 |
|---|
| 1919 | #define CAM_ADJUSTABLE_ALT_BUTTON 1 |
|---|
| 1920 | #define CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO 1 |
|---|
| 1921 | #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 |
|---|
| 1922 | #undef CAM_VIDEO_CONTROL |
|---|
| 1923 | #define CAM_MULTIPART 1 |
|---|
| 1924 | #define CAM_HAS_JOGDIAL 1 |
|---|
| 1925 | #undef CAM_USE_ZOOM_FOR_MF |
|---|
| 1926 | #undef CAM_UNCACHED_BIT // shut up compiler |
|---|
| 1927 | #define CAM_UNCACHED_BIT 0x40000000 |
|---|
| 1928 | #undef CAM_SENSOR_BITS_PER_PIXEL |
|---|
| 1929 | #define CAM_SENSOR_BITS_PER_PIXEL 12 |
|---|
| 1930 | #undef CAM_WHITE_LEVEL |
|---|
| 1931 | #define CAM_WHITE_LEVEL ((1<<CAM_SENSOR_BITS_PER_PIXEL)-1) |
|---|
| 1932 | // black level set to 128 per reports on the forum |
|---|
| 1933 | #undef CAM_BLACK_LEVEL |
|---|
| 1934 | #define CAM_BLACK_LEVEL 128 |
|---|
| 1935 | #define DNG_SUPPORT 1 |
|---|
| 1936 | #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData |
|---|
| 1937 | #define cam_CFAPattern 0x02010100 // Red Green Green Blue |
|---|
| 1938 | #define cam_CalibrationIlluminant1 1 // Daylight |
|---|
| 1939 | #define CAM_JPEG_WIDTH 3456 |
|---|
| 1940 | #define CAM_JPEG_HEIGHT 2592 |
|---|
| 1941 | |
|---|
| 1942 | //---------------------------------------------------------- |
|---|
| 1943 | |
|---|
| 1944 | #else |
|---|
| 1945 | #error camera type not defined |
|---|
| 1946 | |
|---|
| 1947 | #endif |
|---|
| 1948 | |
|---|
| 1949 | // curves only work in 10bpp for now |
|---|
| 1950 | #if CAM_SENSOR_BITS_PER_PIXEL != 10 |
|---|
| 1951 | #undef OPT_CURVES |
|---|
| 1952 | #endif |
|---|
| 1953 | |
|---|
| 1954 | #endif /* CAMERA_H */ |
|---|