source: trunk/include/camera.h @ 632

Revision 632, 56.5 KB checked in by phyrephox, 4 years ago (diff)

ixus70_sd1000 - added multipartition support, see http://chdk.setepontos.com/index.php/topic,2155.msg20011.html#msg20011
renamed version.txt to changelog.txt

  • Property svn:eol-style set to native
Line 
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
55//----------------------------------------------------------
56// Overridden values for each camera
57//----------------------------------------------------------
58
59//==========================================================
60// G-series
61//==========================================================
62#if   defined (CAMERA_g7)
63    #define CAM_PROPSET                 1
64
65    #define CAM_RAW_ROWPIX              3736   // for 10 MP
66    #define CAM_RAW_ROWS                2772   // for 10 MP
67   
68    #undef  CAM_USE_ZOOM_FOR_MF
69    #define CAM_ADJUSTABLE_ALT_BUTTON   1
70    #define CAM_MULTIPART               1
71    #define CAM_HAS_ND_FILTER           1
72    #undef  CAM_HAS_IS
73    #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1
74        #define CAM_HAS_JOGDIAL             1
75    #define DNG_SUPPORT                 1
76    // pattern
77    #define cam_CFAPattern 0x02010100 // Red  Green  Green  Blue
78    // color
79    #define CAM_COLORMATRIX1                              \
80      575419, 1000000,-185557, 1000000, -77898,  1000000, \
81     -213702, 1000000, 733569, 1000000,   81514, 1000000, \
82      -24604, 1000000, 131906, 1000000,  280378, 1000000
83   
84    #define cam_CalibrationIlluminant1 1 // Daylight
85    // cropping
86    #define CAM_JPEG_WIDTH  3648
87    #define CAM_JPEG_HEIGHT 2736
88    #define CAM_ACTIVE_AREA_X1 14
89    #define CAM_ACTIVE_AREA_Y1 8
90    #define CAM_ACTIVE_AREA_X2 3682
91    #define CAM_ACTIVE_AREA_Y2 2764
92    // camera name
93    #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData
94    #define CAM_BRACKETING              1   
95 //----------------------------------------------------------
96#elif defined (CAMERA_g9)
97    #define CAM_PROPSET                 2
98    #define CAM_DRYOS                   1
99
100    #define CAM_RAW_ROWPIX              4104   // for 12 MP
101    #define CAM_RAW_ROWS                3048   // for 12 MP
102//  #define CAM_MULTIPART               1
103    #define CAM_HAS_ND_FILTER           1
104    #define CAM_ADJUSTABLE_ALT_BUTTON   1
105    #define CAM_CAN_MUTE_MICROPHONE     1
106    #undef  CAM_EMUL_KEYPRESS_DURATION
107    #define CAM_EMUL_KEYPRESS_DURATION  10
108    #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1
109    #define CAM_HAS_JOGDIAL             1
110    #define CAM_EV_IN_VIDEO             1
111    #undef  CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO
112    #undef  CAM_CHDK_HAS_EXT_VIDEO_MENU
113//      #define CAM_CONSOLE_LOG_ENABLED     1
114//  #define CAM_BRACKETING              1  //propcase still missing for dryos   
115//==========================================================
116// A-series
117//==========================================================
118#elif defined (CAMERA_a450)
119    #define CAM_PROPSET                 2
120
121    #define CAM_RAW_ROWPIX              2664   // for 5 MP 1/3" sensor size
122    #define CAM_RAW_ROWS                1968   // for 5 MP 1/3" sensor size
123
124    #undef  CAM_USE_ZOOM_FOR_MF
125    #undef  CAM_HAS_ZOOM_LEVER
126    #define CAM_DRAW_EXPOSITION         1
127    #undef  CAM_HAS_ERASE_BUTTON
128    #undef  CAM_HAS_IRIS_DIAPHRAGM
129    #define CAM_HAS_ND_FILTER           1
130    #undef  CAM_HAS_MANUAL_FOCUS
131    #undef  CAM_HAS_USER_TV_MODES
132    #define CAM_SHOW_OSD_IN_SHOOT_MENU  1
133    #undef  CAM_HAS_IS
134    #define CAM_CAN_MUTE_MICROPHONE     1
135    #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1
136    #define CAM_EV_IN_VIDEO             1
137    #define DNG_SUPPORT                 1
138    // pattern
139    #define cam_CFAPattern 0x02010100 // Red  Green  Green  Blue
140    // color
141    #define CAM_COLORMATRIX1                               \
142      652279,  1000000,-199279, 1000000, -101833, 1000000, \
143     -159819,  1000000, 619308, 1000000,   78172, 1000000, \
144      -58827,  1000000, 150963, 1000000,  264216, 1000000
145   
146    #define cam_CalibrationIlluminant1 1 // Daylight
147    // cropping
148    #define CAM_JPEG_WIDTH  2592
149    #define CAM_JPEG_HEIGHT 1944
150    #define CAM_ACTIVE_AREA_X1 6
151    #define CAM_ACTIVE_AREA_Y1 6
152    #define CAM_ACTIVE_AREA_X2 2618
153    #define CAM_ACTIVE_AREA_Y2 1962
154    // camera name
155    #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData
156
157   
158//----------------------------------------------------------
159#elif defined (CAMERA_a460)
160    #define CAM_PROPSET                 2
161
162    #define CAM_RAW_ROWPIX              2664   // for 5 MP 1/3" sensor size
163    #define CAM_RAW_ROWS                1968   // for 5 MP 1/3" sensor size
164
165    #undef  CAM_USE_ZOOM_FOR_MF
166    #undef  CAM_HAS_ZOOM_LEVER
167    #define CAM_DRAW_EXPOSITION         1
168    #undef  CAM_HAS_ERASE_BUTTON
169    #undef  CAM_HAS_IRIS_DIAPHRAGM
170    #define CAM_HAS_ND_FILTER           1
171    #undef  CAM_HAS_MANUAL_FOCUS
172    #undef  CAM_HAS_USER_TV_MODES
173    #define CAM_SHOW_OSD_IN_SHOOT_MENU  1
174    #undef  CAM_HAS_IS
175    #define CAM_CAN_MUTE_MICROPHONE     1
176    #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1
177    #define CAM_EV_IN_VIDEO             1
178    #define DNG_SUPPORT                 1
179    // pattern
180    #define cam_CFAPattern 0x02010100 // Red  Green  Green  Blue
181    // color
182    #define CAM_COLORMATRIX1                               \
183      649324,  1000000,-233893, 1000000, -88521, 1000000,  \
184     -158955,  1000000, 593407, 1000000,  69775, 1000000,  \
185      -44551,  1000000, 136891, 1000000, 254362, 1000000   
186   
187    #define cam_CalibrationIlluminant1 1 // Daylight
188    // cropping
189    #define CAM_JPEG_WIDTH  2592
190    #define CAM_JPEG_HEIGHT 1944
191    #define CAM_ACTIVE_AREA_X1 6
192    #define CAM_ACTIVE_AREA_Y1 6
193    #define CAM_ACTIVE_AREA_X2 2618
194    #define CAM_ACTIVE_AREA_Y2 1962
195    // camera name
196    #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData
197
198//----------------------------------------------------------
199#elif defined (CAMERA_a530)
200    #define CAM_PROPSET                 1
201
202//  2672x1968 image - like most other 5m sensors
203    #define CAM_RAW_ROWPIX              2672   // for 5 MP
204    #define CAM_RAW_ROWS                1968   // for 5 MP
205//  2672x1992 image - eventually probably real sensor size
206//  #define CAM_RAW_ROWPIX              2672   // for 5 MP
207//  #define CAM_RAW_ROWS                1992   // for 5 MP
208
209    #undef  CAM_USE_ZOOM_FOR_MF
210    #define CAM_HAS_ERASE_BUTTON        1
211    #undef  CAM_HAS_IRIS_DIAPHRAGM
212    #define CAM_HAS_ND_FILTER           1
213    #define CAM_HAS_MANUAL_FOCUS        1
214    #define CAM_DRAW_EXPOSITION         1
215    #define CAM_SHOW_OSD_IN_SHOOT_MENU  1
216    #undef  CAM_CAN_SD_OVER_NOT_IN_MF
217    #undef  CAM_HAS_IS
218    #define CAM_CAN_MUTE_MICROPHONE     1
219    #define CAM_AF_SCAN_DURING_VIDEO_RECORD 2
220    #define CAM_EV_IN_VIDEO             1
221    #define DNG_SUPPORT                 1
222    // pattern
223    #define cam_CFAPattern 0x02010100 // Red  Green  Green  Blue
224    // color
225    #define CAM_COLORMATRIX1                               \
226      725264,  1000000,-240542, 1000000, -122310, 1000000, \
227     -210248,  1000000, 656077, 1000000,  52390,  1000000, \
228      -11282,  1000000, 70400,  1000000,  300712, 1000000
229   
230    #define cam_CalibrationIlluminant1 1 // Daylight
231    // cropping
232    #define CAM_JPEG_WIDTH  2592
233    #define CAM_JPEG_HEIGHT 1944
234    #define CAM_ACTIVE_AREA_X1 12
235    #define CAM_ACTIVE_AREA_Y1 20
236    #define CAM_ACTIVE_AREA_X2 2628
237    #define CAM_ACTIVE_AREA_Y2 1968
238    // camera name
239    #define PARAM_CAMERA_NAME 3 // parameter number for GetParameterData
240
241//----------------------------------------------------------
242#elif defined (CAMERA_a540)
243    #define CAM_PROPSET                 1
244
245    #define CAM_RAW_ROWPIX              2888   // for 6 MP
246    #define CAM_RAW_ROWS                2136   // for 6 MP
247
248    #undef  CAM_USE_ZOOM_FOR_MF
249    #define CAM_HAS_ERASE_BUTTON        1
250    #define CAM_HAS_IRIS_DIAPHRAGM      1
251    #undef  CAM_HAS_ND_FILTER
252    #define CAM_HAS_MANUAL_FOCUS        1
253    #undef  CAM_DRAW_EXPOSITION
254    #define CAM_SHOW_OSD_IN_SHOOT_MENU  1
255    #undef  CAM_HAS_IS
256    #define CAM_CAN_MUTE_MICROPHONE     1
257    #define CAM_AF_SCAN_DURING_VIDEO_RECORD 2
258    #define CAM_EV_IN_VIDEO             1
259    #define DNG_SUPPORT                 1
260    // pattern
261    #define cam_CFAPattern 0x02010100 // Red  Green  Green  Blue
262    // color
263    #define CAM_COLORMATRIX1                               \
264      687147,  1000000,-201964, 1000000, -125024, 1000000, \
265     -148403,  1000000, 566810, 1000000,   45401, 1000000, \
266     -9472,    1000000, 63186,  1000000,  208602, 1000000
267   
268    #define cam_CalibrationIlluminant1 1 // Daylight
269    // cropping
270    #define CAM_JPEG_WIDTH  2816
271    #define CAM_JPEG_HEIGHT 2112
272    #define CAM_ACTIVE_AREA_X1 44
273    #define CAM_ACTIVE_AREA_Y1 8
274    #define CAM_ACTIVE_AREA_X2 2884
275    #define CAM_ACTIVE_AREA_Y2 2136
276    // camera name
277    #define PARAM_CAMERA_NAME 3 // parameter number for GetParameterData
278
279//----------------------------------------------------------
280#elif defined (CAMERA_a550)
281    #define CAM_PROPSET                 2
282
283    #define CAM_RAW_ROWPIX              3152   // for 7 MP
284    #define CAM_RAW_ROWS                2340   // for 7 MP
285
286    #undef  CAM_USE_ZOOM_FOR_MF
287    #define CAM_MULTIPART               1
288    #undef  CAM_HAS_ERASE_BUTTON
289    #undef  CAM_HAS_IRIS_DIAPHRAGM
290    #define CAM_HAS_ND_FILTER           1
291    #undef  CAM_HAS_MANUAL_FOCUS
292    #undef  CAM_HAS_USER_TV_MODES
293    #define CAM_SHOW_OSD_IN_SHOOT_MENU  1
294    #undef  CAM_HAS_IS
295    #define CAM_CAN_MUTE_MICROPHONE     1
296    #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1
297    #define DNG_SUPPORT                 1
298    // pattern
299    #define cam_CFAPattern 0x02010100 // Red  Green  Green  Blue
300    // color
301    #define CAM_COLORMATRIX1                               \
302      673251,  1000000,-200684, 1000000, -98680, 1000000,  \
303     -163638,  1000000, 651247, 1000000,  74004, 1000000,  \
304      14221,   1000000, 52979,  1000000, 265291, 1000000
305   
306    #define cam_CalibrationIlluminant1 1 // Daylight
307    // cropping
308    #define CAM_JPEG_WIDTH  3072
309    #define CAM_JPEG_HEIGHT 2304
310    #define CAM_ACTIVE_AREA_X1 36
311    #define CAM_ACTIVE_AREA_Y1 12
312    #define CAM_ACTIVE_AREA_X2 3148
313    #define CAM_ACTIVE_AREA_Y2 2340
314    // camera name
315    #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData
316   
317//----------------------------------------------------------
318#elif defined (CAMERA_a560)
319    #define CAM_PROPSET                 2
320
321    #define CAM_RAW_ROWPIX              3152   // for 7 MP
322    #define CAM_RAW_ROWS                2340   // for 7 MP
323
324    #undef  CAM_USE_ZOOM_FOR_MF
325    #define CAM_MULTIPART               1
326    #undef  CAM_HAS_ERASE_BUTTON
327    #undef  CAM_HAS_IRIS_DIAPHRAGM
328    #define CAM_HAS_ND_FILTER           1
329    #undef  CAM_HAS_MANUAL_FOCUS
330    #undef  CAM_HAS_USER_TV_MODES
331    #define CAM_SHOW_OSD_IN_SHOOT_MENU  1
332    #undef  CAM_HAS_IS
333    #define CAM_CAN_MUTE_MICROPHONE     1
334    #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1
335    #define DNG_SUPPORT                 1
336    // pattern
337    #define cam_CFAPattern 0x02010100 // Red  Green  Green  Blue
338    // color
339    #define CAM_COLORMATRIX1                               \
340      15265, 1, -6193, 1, -1558, 1,                        \
341     -4125,  1, 12116, 1,  2010, 1,                        \
342     -888,   1, 1639,  1,  5220, 1                         
343   
344    #define cam_CalibrationIlluminant1 17 // Standard light A
345    // cropping
346    #define CAM_JPEG_WIDTH  3072
347    #define CAM_JPEG_HEIGHT 2304
348    #define CAM_ACTIVE_AREA_X1 38
349    #define CAM_ACTIVE_AREA_Y1 14
350    #define CAM_ACTIVE_AREA_X2 3146
351    #define CAM_ACTIVE_AREA_Y2 2338
352    // camera name
353    #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData
354   
355//----------------------------------------------------------
356#elif defined (CAMERA_a570)
357    #define CAM_PROPSET                 2
358
359    #define CAM_RAW_ROWPIX              3152   // for 7 MP
360    #define CAM_RAW_ROWS                2340   // for 7 MP
361    #define CAM_MULTIPART               1
362    #define CAM_CAN_MUTE_MICROPHONE     1
363    #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1
364    #define CAM_EV_IN_VIDEO             1
365    #define DNG_SUPPORT                 1
366    #define CAM_REAR_CURTAIN            1
367    // pattern
368    #define cam_CFAPattern 0x02010100 // Red  Green  Green  Blue
369    // color
370    #define CAM_COLORMATRIX1                               \
371      528283,  1000000,-144259, 1000000, -85966, 1000000,  \
372     -202789,  1000000, 736563, 1000000,  73008, 1000000,  \
373     -27130,   1000000, 107702, 1000000, 264543, 1000000
374   
375    #define cam_CalibrationIlluminant1 1 // Daylight
376    // cropping
377    #define CAM_JPEG_WIDTH  3072
378    #define CAM_JPEG_HEIGHT 2304
379    #define CAM_ACTIVE_AREA_X1 38
380    #define CAM_ACTIVE_AREA_Y1 14
381    #define CAM_ACTIVE_AREA_X2 3146
382    #define CAM_ACTIVE_AREA_Y2 2338
383    // camera name
384    #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData
385
386//----------------------------------------------------------
387#elif defined (CAMERA_a590)
388#define CAM_PROPSET                 2
389#define CAM_DRYOS                   1
390
391#define CAM_RAW_ROWPIX              3336   // for new 8 MP
392#define CAM_RAW_ROWS                2480   // for new 8 MP
393
394#define CAM_USE_ZOOM_FOR_MF         1
395
396// cannot mute during video-zoom through CHDK, it can mute in general firmware settings (non CHDK)
397#undef  CAM_CAN_MUTE_MICROPHONE            // Camera has no function to mute microphone
398
399#define CAM_HAS_IRIS_DIAPHRAGM      1
400#undef  CAM_HAS_ND_FILTER
401
402#define CAM_HAS_MANUAL_FOCUS        1
403
404#define CAM_AF_SCAN_DURING_VIDEO_RECORD 1
405//#define CAM_EV_IN_VIDEO             1      // not working on 101b!!!
406#define DNG_SUPPORT                 1
407// pattern
408#define cam_CFAPattern 0x01000201 // Green  Blue  Red  Green
409// color                                                        // Source?
410#define CAM_COLORMATRIX1                              \
411 647380, 1000000, -169846, 1000000, -115337, 1000000, \
412 -11566, 1000000,  451223, 1000000,   13279, 1000000, \
413  62541, 1000000,   54140, 1000000,  161148, 1000000
414
415#define cam_CalibrationIlluminant1 1 // Daylight
416// cropping
417#define CAM_JPEG_WIDTH  3264
418#define CAM_JPEG_HEIGHT 2448
419#define CAM_ACTIVE_AREA_X1 10
420#define CAM_ACTIVE_AREA_Y1 8
421#define CAM_ACTIVE_AREA_X2 3302
422#define CAM_ACTIVE_AREA_Y2 2474
423
424// camera name
425#define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData
426
427
428//----------------------------------------------------------
429#elif defined (CAMERA_a610)
430    #define CAM_PROPSET                 1
431
432    #define CAM_RAW_ROWPIX              2672   // for 5 MP
433    #define CAM_RAW_ROWS                1968   // for 5 MP
434   
435    #define CAM_SWIVEL_SCREEN           1
436    #undef  CAM_CAN_SD_OVER_NOT_IN_MF
437    #undef  CAM_HAS_IS
438    #define CAM_CAN_MUTE_MICROPHONE     1
439    #define CAM_AF_SCAN_DURING_VIDEO_RECORD 2
440    #define CAM_EV_IN_VIDEO             1
441    #define DNG_SUPPORT                 1
442    // pattern
443    #define cam_CFAPattern 0x02010100 // Red  Green  Green  Blue
444    // color
445    #define CAM_COLORMATRIX1                               \
446      15887,  10000, -6524, 10000, -1622, 10000,           \
447     -5467,   10000, 13449, 10000,  2209, 10000,           \
448     -1325,   10000, 1859,  10000,  5172, 10000
449   
450    #define cam_CalibrationIlluminant1 17 // Standard light A
451    // cropping
452    #define CAM_JPEG_WIDTH  2592
453    #define CAM_JPEG_HEIGHT 1944
454    #define CAM_ACTIVE_AREA_X1 14
455    #define CAM_ACTIVE_AREA_Y1 10
456    #define CAM_ACTIVE_AREA_X2 2626
457    #define CAM_ACTIVE_AREA_Y2 1966
458    // camera name
459    #define PARAM_CAMERA_NAME 3 // parameter number for GetParameterData
460
461//----------------------------------------------------------
462#elif defined (CAMERA_a620)
463    #define CAM_PROPSET                 1
464
465    #define CAM_RAW_ROWPIX              3152   // for 7 MP
466    #define CAM_RAW_ROWS                2340   // for 7 MP
467   
468    #define CAM_SWIVEL_SCREEN           1
469    #undef  CAM_CAN_SD_OVER_NOT_IN_MF
470    #undef  CAM_HAS_IS   
471    #define CAM_CAN_MUTE_MICROPHONE     1
472    #define CAM_AF_SCAN_DURING_VIDEO_RECORD 2
473    #define CAM_EV_IN_VIDEO             1
474    #define DNG_SUPPORT                 1
475    // pattern
476    #define cam_CFAPattern 0x02010100 // Red  Green  Green  Blue
477    // color
478    #define CAM_COLORMATRIX1                               \
479     15265, 10000, -6193, 10000, -1558, 10000,             \
480     -4125, 10000, 12116, 10000,  2010, 10000,             \
481     -888,  10000,  1639, 10000,  5220, 10000
482   
483    #define cam_CalibrationIlluminant1 17 // Standard light A
484    // cropping
485    #define CAM_JPEG_WIDTH  3072
486    #define CAM_JPEG_HEIGHT 2304
487    #define CAM_ACTIVE_AREA_X1 38
488    #define CAM_ACTIVE_AREA_Y1 14
489    #define CAM_ACTIVE_AREA_X2 3146
490    #define CAM_ACTIVE_AREA_Y2 2338
491    // camera name
492    #define PARAM_CAMERA_NAME 3 // parameter number for GetParameterData
493
494//----------------------------------------------------------
495#elif defined (CAMERA_a630)
496    #define CAM_PROPSET                 1
497
498    #define CAM_RAW_ROWPIX              3344   // for 8 MP
499    #define CAM_RAW_ROWS                2484   // for 8 MP
500   
501    #define CAM_SWIVEL_SCREEN           1
502    #define CAM_MULTIPART               1
503    #undef  CAM_CAN_SD_OVER_NOT_IN_MF
504    #undef  CAM_HAS_IS
505    #define CAM_CAN_MUTE_MICROPHONE     1
506    #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1
507    #define CAM_EV_IN_VIDEO             1
508    #define DNG_SUPPORT                 1
509    // pattern
510    #define cam_CFAPattern 0x02010100 // Red  Green  Green  Blue
511    // color
512    #define CAM_COLORMATRIX1                               \
513      656080,  1000000,-226478, 1000000, -85884, 1000000,  \
514     -194636,  1000000, 687905, 1000000,  37862, 1000000,  \
515       22873,  1000000,  75523, 1000000, 265822, 1000000
516   
517    #define cam_CalibrationIlluminant1 1 // Daylight
518    // cropping
519    #define CAM_JPEG_WIDTH  3264
520    #define CAM_JPEG_HEIGHT 2448
521    #define CAM_ACTIVE_AREA_X1 14
522    #define CAM_ACTIVE_AREA_Y1 8
523    #define CAM_ACTIVE_AREA_X2 3298
524    #define CAM_ACTIVE_AREA_Y2 2476
525    // camera name
526    #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData
527
528//----------------------------------------------------------
529#elif defined (CAMERA_a640)
530    #define CAM_PROPSET                 1
531
532    #define CAM_RAW_ROWPIX              3736   // for 10 MP
533    #define CAM_RAW_ROWS                2772   // for 10 MP
534   
535    #define CAM_SWIVEL_SCREEN           1
536    #define CAM_MULTIPART               1
537    #undef  CAM_CAN_SD_OVER_NOT_IN_MF
538    #undef  CAM_HAS_IS
539    #define CAM_CAN_MUTE_MICROPHONE     1
540    #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1
541    #define CAM_EV_IN_VIDEO             1
542    #define DNG_SUPPORT                 1
543    // pattern
544    #define cam_CFAPattern 0x02010100 // Red  Green  Green  Blue
545    // color
546    #define CAM_COLORMATRIX1                               \
547      13124,  10000, -5329, 10000, -1390, 10000,           \
548      -3602,  10000, 11658, 10000,  1944, 10000,           \
549      -1612,  10000,  2863, 10000,  4885, 10000
550   
551    #define cam_CalibrationIlluminant1 17 // Standard light A
552    // cropping
553    #define CAM_JPEG_WIDTH  3648
554    #define CAM_JPEG_HEIGHT 2736
555    #define CAM_ACTIVE_AREA_X1 14
556    #define CAM_ACTIVE_AREA_Y1 8
557    #define CAM_ACTIVE_AREA_X2 3682
558    #define CAM_ACTIVE_AREA_Y2 2764
559    // camera name
560    #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData
561
562//----------------------------------------------------------
563#elif defined (CAMERA_a650)
564    #define CAM_PROPSET                 2
565    #define CAM_DRYOS                   1
566
567    #define CAM_RAW_ROWPIX              4104   // for 12 MP
568    #define CAM_RAW_ROWS                3048   // for 12 MP
569   
570    #define CAM_ADJUSTABLE_ALT_BUTTON   1
571    #define CAM_SWIVEL_SCREEN           1
572    #define CAM_CAN_MUTE_MICROPHONE     1
573
574    #undef  CAM_EMUL_KEYPRESS_DURATION
575    #define CAM_EMUL_KEYPRESS_DURATION  10
576    #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1
577    #define CAM_EV_IN_VIDEO             1
578    #define DNG_SUPPORT                 1
579    // pattern
580    #define cam_CFAPattern 0x02010100 // Red  Green  Green  Blue
581    // color
582    #define CAM_COLORMATRIX1                               \
583      913762, 1000000, -261578, 1000000, -135582, 1000000, \
584     -99049,  1000000, 1067089, 1000000,   61442, 1000000, \
585      48717,  1000000, 96802,   1000000,  412056, 1000000
586   
587    #define cam_CalibrationIlluminant1 1 // Daylight
588    // cropping
589    #define CAM_JPEG_WIDTH  4000
590    #define CAM_JPEG_HEIGHT 3000
591    #define CAM_ACTIVE_AREA_X1 52
592    #define CAM_ACTIVE_AREA_Y1 14
593    #define CAM_ACTIVE_AREA_X2 4076
594    #define CAM_ACTIVE_AREA_Y2 3030
595    // camera name
596    #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData
597
598//----------------------------------------------------------
599#elif defined (CAMERA_a700)
600    #define CAM_PROPSET                 1
601
602    #define CAM_RAW_ROWPIX              2888   // for 6 MP
603    #define CAM_RAW_ROWS                2136   // for 6 MP
604
605    #undef  CAM_HAS_IS
606    #define CAM_CAN_MUTE_MICROPHONE     1
607    #define CAM_AF_SCAN_DURING_VIDEO_RECORD 2
608    #define CAM_EV_IN_VIDEO             1
609    #define DNG_SUPPORT                 1
610    // pattern
611    #define cam_CFAPattern 0x02010100 // Red  Green  Green  Blue
612    // color
613    #define CAM_COLORMATRIX1                               \
614     14062, 10000, -5199, 10000, -1446, 10000,             \
615     -4712, 10000, 12470, 10000,  2243, 10000,             \
616     -1286, 10000,  2028, 10000,  4836, 10000
617   
618    #define cam_CalibrationIlluminant1 17 // Standard light A
619    // cropping
620    #define CAM_JPEG_WIDTH  2816
621    #define CAM_JPEG_HEIGHT 2112
622    #define CAM_ACTIVE_AREA_X1 44
623    #define CAM_ACTIVE_AREA_Y1 8
624    #define CAM_ACTIVE_AREA_X2 2884
625    #define CAM_ACTIVE_AREA_Y2 2136
626    // camera name
627    #define PARAM_CAMERA_NAME 3 // parameter number for GetParameterData
628
629//----------------------------------------------------------
630#elif defined (CAMERA_a710)
631    #define CAM_PROPSET                 1
632
633    #define CAM_RAW_ROWPIX              3152   // for 7 MP
634    #define CAM_RAW_ROWS                2340   // for 7 MP
635
636    #define CAM_MULTIPART               1
637    #define CAM_CAN_MUTE_MICROPHONE     1
638    #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1
639    #define CAM_EV_IN_VIDEO             1
640    #define DNG_SUPPORT                 1
641    // pattern
642    #define cam_CFAPattern 0x02010100 // Red  Green  Green  Blue
643    // color
644    #define CAM_COLORMATRIX1                   \
645     13349, 10000, -4141, 10000, -2128, 10000, \
646     -4189, 10000, 13178, 10000,  1044, 10000, \
647     -1037, 10000,  2326, 10000,  4720, 10000   
648   
649    #define cam_CalibrationIlluminant1 1 // Daylight
650    // cropping
651    #define CAM_JPEG_WIDTH  3072
652    #define CAM_JPEG_HEIGHT 2304
653    #define CAM_ACTIVE_AREA_X1 38
654    #define CAM_ACTIVE_AREA_Y1 14
655    #define CAM_ACTIVE_AREA_X2 3146
656    #define CAM_ACTIVE_AREA_Y2 2338
657    // camera name
658    #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData
659
660    #define DNG_EXT_FROM ".DPS"
661    #define DNG_EXT_TO   ".DNG"
662
663//----------------------------------------------------------
664#elif defined (CAMERA_a720)
665    #define CAM_PROPSET                 2
666    #define CAM_DRYOS                   1
667
668    #define CAM_RAW_ROWPIX              3336   // for new 8 MP
669    #define CAM_RAW_ROWS                2480   // for new 8 MP
670    #define CAM_CAN_MUTE_MICROPHONE     1
671    #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1
672    #define CAM_EV_IN_VIDEO             1
673    #undef  CAM_VIDEO_CONTROL
674    #define DNG_SUPPORT                 1
675    // pattern
676    #define cam_CFAPattern 0x01000201 // Green  Blue  Red  Green
677    // color
678    #define CAM_COLORMATRIX1                               \
679      640019, 1000000, -220031, 1000000, -96241, 1000000,  \
680     -77419,  1000000, 639766,  1000000,  44009, 1000000,  \
681      17965,  1000000, 78396,   1000000, 231868, 1000000
682   
683    #define cam_CalibrationIlluminant1 1 // Daylight
684    // cropping
685    #define CAM_JPEG_WIDTH  3264
686    #define CAM_JPEG_HEIGHT 2448
687    #define CAM_ACTIVE_AREA_X1 10
688    #define CAM_ACTIVE_AREA_Y1 8
689    #define CAM_ACTIVE_AREA_X2 3302
690    #define CAM_ACTIVE_AREA_Y2 2474
691    // camera name
692    #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData
693
694//==========================================================
695// SD-Series (IXUS-Series)
696//==========================================================
697#elif defined (CAMERA_ixus40_sd300)
698    #define CAM_PROPSET                 1
699
700    #define CAM_RAW_ROWPIX              (2376) //(2272+80) //for 4 MP guessed!!
701    #define CAM_RAW_ROWS                (1704+24) // for 4 MP guessed!!
702
703    #define CAM_USE_ZOOM_FOR_MF 1
704    #undef  CAM_HAS_ERASE_BUTTON
705    #undef  CAM_HAS_IRIS_DIAPHRAGM
706    #define CAM_HAS_ND_FILTER           1
707    #undef  CAM_HAS_MANUAL_FOCUS
708    #undef  CAM_HAS_USER_TV_MODES
709    #define CAM_SHOW_OSD_IN_SHOOT_MENU  1
710    #undef  CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO
711    #undef  CAM_HAS_IS
712    #undef CAM_CONSOLE_LOG_ENABLED
713
714
715/*   DNG support is blocked due to mismatch RAW size in this file and DNG4PS2 settings (2400x1720).
716
717    #define DNG_SUPPORT                 1
718    // pattern
719    #define cam_CFAPattern 0x02010100 // Red  Green  Green  Blue
720    // color
721    #define CAM_COLORMATRIX1                                 \
722      652674,  1000000, -172074, 1000000, -107575,  1000000, \
723      -139063, 1000000, 594517,  1000000,  60252,   1000000, \
724      -9088,   1000000, 82013,   1000000,  238080,  1000000
725   
726    #define cam_CalibrationIlluminant1 1 // Daylight
727    // cropping
728    #define CAM_JPEG_WIDTH  2272
729    #define CAM_JPEG_HEIGHT 1704
730    #define CAM_ACTIVE_AREA_X1 12
731    #define CAM_ACTIVE_AREA_Y1 24
732    #define CAM_ACTIVE_AREA_X2 2394
733    #define CAM_ACTIVE_AREA_Y2 1708
734    // camera name
735    #define PARAM_CAMERA_NAME 2 // parameter number for GetParameterData
736
737    */
738
739//----------------------------------------------------------
740
741#elif defined (CAMERA_ixus50_sd400)
742    #define CAM_PROPSET                 1
743
744    #define CAM_RAW_ROWPIX              2672   // for 5 MP
745    #define CAM_RAW_ROWS                1968   // for 5 MP
746
747    #undef  CAM_SYNCH 
748    #undef  CAM_USE_ZOOM_FOR_MF
749    #undef  CAM_HAS_ERASE_BUTTON
750    #undef  CAM_HAS_IRIS_DIAPHRAGM
751    #define CAM_HAS_ND_FILTER           1
752    #undef  CAM_HAS_MANUAL_FOCUS
753    #undef  CAM_HAS_USER_TV_MODES
754    #define CAM_SHOW_OSD_IN_SHOOT_MENU  1
755    #undef  CAM_HAS_IS
756        //#define CAM_CONSOLE_LOG_ENABLED     1
757    #undef  CAM_VIDEO_CONTROL
758
759//----------------------------------------------------------
760
761#elif defined (CAMERA_ixusizoom_sd30)
762    #define CAM_PROPSET                 1
763
764    #define CAM_RAW_ROWPIX              2672   // for 5 MP
765    #define CAM_RAW_ROWS                1968   // for 5 MP
766
767    #undef  CAM_SYNCH 
768    #undef  CAM_USE_ZOOM_FOR_MF
769    #undef  CAM_HAS_ERASE_BUTTON
770    #undef  CAM_HAS_IRIS_DIAPHRAGM
771    #define CAM_HAS_ND_FILTER           1
772    #undef  CAM_HAS_MANUAL_FOCUS
773    #undef  CAM_HAS_USER_TV_MODES
774    #define CAM_SHOW_OSD_IN_SHOOT_MENU  1
775    #undef  CAM_HAS_IS
776        //#define CAM_CONSOLE_LOG_ENABLED     1
777    #undef  CAM_VIDEO_CONTROL
778
779//----------------------------------------------------------
780
781//----------------------------------------------------------
782#elif defined (CAMERA_ixus55_sd450)
783    #define CAM_PROPSET                 1
784
785    #define CAM_RAW_ROWPIX              2672   // for 5 MP
786    #define CAM_RAW_ROWS                1968   // for 5 MP
787
788    #undef  CAM_USE_ZOOM_FOR_MF
789    #undef  CAM_HAS_ERASE_BUTTON
790    #undef  CAM_HAS_IRIS_DIAPHRAGM
791    #define CAM_HAS_ND_FILTER           1
792    #undef  CAM_HAS_MANUAL_FOCUS
793    #undef  CAM_HAS_USER_TV_MODES
794    #define CAM_SHOW_OSD_IN_SHOOT_MENU  1
795    #undef  CAM_HAS_IS
796    #define CAM_AF_SCAN_DURING_VIDEO_RECORD 2
797    #define DNG_SUPPORT                 1
798    // pattern
799    #define cam_CFAPattern 0x02010100 // Red  Green  Green  Blue
800    // color
801    #define CAM_COLORMATRIX1                                \
802      536034,  1000000, -173429, 1000000, -89823,  1000000, \
803      -290416, 1000000, 735807,  1000000,  47894,  1000000, \
804      -71455,  1000000, 114314,  1000000,  274533, 1000000         
805   
806    #define cam_CalibrationIlluminant1 1 // Daylight
807    // cropping
808    #define CAM_JPEG_WIDTH  2592
809    #define CAM_JPEG_HEIGHT 1944
810    #define CAM_ACTIVE_AREA_X1 12
811    #define CAM_ACTIVE_AREA_Y1 8
812    #define CAM_ACTIVE_AREA_X2 2628
813    #define CAM_ACTIVE_AREA_Y2 1968
814    // camera name
815    #define PARAM_CAMERA_NAME 3 // parameter number for GetParameterData
816
817//----------------------------------------------------------
818#elif defined (CAMERA_ixus60_sd600)
819    #define CAM_PROPSET                 1
820
821    #define CAM_RAW_ROWPIX              2888   // for 6 MP
822    #define CAM_RAW_ROWS                2136   // for 6 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_DRAW_EXPOSITION             1
832    #define CAM_SHOW_OSD_IN_SHOOT_MENU  1
833    #undef  CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO
834    #define CAM_FEATURE_FEATHER         1
835
836//    #define CAM_CONSOLE_LOG_ENABLED     1  //100a won't compile if this is defined ("undefined reference to `_iosDevFind'")
837    #undef  CAM_HAS_IS
838    #undef  CAM_CHDK_HAS_EXT_VIDEO_MENU
839    #define DNG_SUPPORT                 1
840    // pattern
841    #define cam_CFAPattern 0x02010100 // Red  Green  Green  Blue
842    // color
843    #define CAM_COLORMATRIX1                                \
844      767398,  1000000, -227658, 1000000, -144213, 1000000, \
845      -217466, 1000000, 669319,  1000000,  38180,  1000000, \
846      -23152,  1000000, 77743,  1000000,   238669, 1000000
847   
848    #define cam_CalibrationIlluminant1 1 // Daylight
849    // cropping
850    #define CAM_JPEG_WIDTH  2816
851    #define CAM_JPEG_HEIGHT 2112
852    #define CAM_ACTIVE_AREA_X1 44
853    #define CAM_ACTIVE_AREA_Y1 8
854    #define CAM_ACTIVE_AREA_X2 2884
855    #define CAM_ACTIVE_AREA_Y2 2136
856    // camera name
857    #define PARAM_CAMERA_NAME 3 // parameter number for GetParameterData
858
859//----------------------------------------------------------
860#elif defined (CAMERA_ixus65_sd630)
861    #define CAM_PROPSET                 1
862
863    #define CAM_RAW_ROWPIX              2888   // for 6 MP
864    #define CAM_RAW_ROWS                2136   // for 6 MP
865
866    #undef  CAM_USE_ZOOM_FOR_MF
867    #undef  CAM_HAS_ERASE_BUTTON
868    #undef  CAM_HAS_IRIS_DIAPHRAGM
869    #define CAM_HAS_ND_FILTER           1
870    #undef  CAM_HAS_MANUAL_FOCUS
871    #undef  CAM_HAS_USER_TV_MODES
872    #define CAM_DRAW_EXPOSITION             1
873    #define CAM_SHOW_OSD_IN_SHOOT_MENU  1
874    #undef  CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO
875    #define CAM_FEATURE_FEATHER         1
876
877    #define CAM_CONSOLE_LOG_ENABLED     1
878    #undef  CAM_HAS_IS
879    #undef  CAM_CHDK_HAS_EXT_VIDEO_MENU
880    #define DNG_SUPPORT                 1
881    // pattern
882    #define cam_CFAPattern 0x02010100 // Red  Green  Green  Blue
883    // color
884    #define CAM_COLORMATRIX1                                \
885      783384,  1000000, -227078, 1000000, -127919, 1000000, \
886      -181247, 1000000, 661743,  1000000,  58868,  1000000, \
887       25727,  1000000, 43891,   1000000,  247655, 1000000         
888   
889    #define cam_CalibrationIlluminant1 1 // Daylight
890    // cropping
891    #define CAM_JPEG_WIDTH  2816
892    #define CAM_JPEG_HEIGHT 2112
893    #define CAM_ACTIVE_AREA_X1 44
894    #define CAM_ACTIVE_AREA_Y1 8
895    #define CAM_ACTIVE_AREA_X2 2884
896    #define CAM_ACTIVE_AREA_Y2 2136
897    // camera name
898    #define PARAM_CAMERA_NAME 3 // parameter number for GetParameterData
899
900//----------------------------------------------------------
901
902#elif defined (CAMERA_ixus75_sd750)
903    #define CAM_PROPSET                 2
904
905    #define CAM_RAW_ROWPIX              3152   // for 7 MP
906    #define CAM_RAW_ROWS                2340   // for 7 MP
907
908/*
909    #undef  CAM_USE_ZOOM_FOR_MF
910    #undef  CAM_HAS_ERASE_BUTTON
911    #undef  CAM_HAS_IRIS_DIAPHRAGM
912    #define CAM_HAS_ND_FILTER           1
913    #undef  CAM_HAS_MANUAL_FOCUS
914    #undef  CAM_HAS_USER_TV_MODES
915    #define CAM_SHOW_OSD_IN_SHOOT_MENU  1
916    #undef  CAM_HAS_IS
917    */
918   
919    #undef  CAM_SWIVEL_SCREEN               // Camera has rotated LCD screen
920    #undef CAM_USE_ZOOM_FOR_MF            // Zoom lever can be used for manual focus adjustments
921    #undef  CAM_ADJUSTABLE_ALT_BUTTON       // ALT-button can be set from menu
922    #undef CAM_REMOTE                     // Camera supports USB-remote
923    #undef  CAM_MULTIPART                   // Camera supports SD-card multipartitioning
924    #define CAM_HAS_ZOOM_LEVER          1   // Camera has dedicated zoom buttons
925    #undef  CAM_DRAW_EXPOSITION             // Output expo-pair on screen (for cameras which (sometimes) don't do that)
926    #undef CAM_HAS_ERASE_BUTTON           // Camera has dedicated erase button
927    #undef  CAM_HAS_IRIS_DIAPHRAGM
928    #define  CAM_HAS_ND_FILTER         1      // Camera has build-in ND filter
929    #undef CAM_CAN_SD_OVER_NOT_IN_MF      // Camera allows subject distance (focus) override when not in manual focus mode
930    #undef CAM_CAN_SD_OVERRIDE            // Camera allows to do subject distance override
931    #undef CAM_HAS_MANUAL_FOCUS           // Camera has manual focus mode
932    #define CAM_HAS_USER_TV_MODES       1   // Camera has tv-priority or manual modes with ability to set tv value
933    #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 
934//    #undef  CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO // adress for zoom_status missing, probably more
935    #define CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO  1 // Camera can unlock optical zoom in video (if it is locked)
936    #define  CAM_FEATURE_FEATHER        1     // Cameras with "feather" or touch wheel.
937    #undef CAM_HAS_IS                     // Camera has image stabilizer
938
939//    #define  CAM_CONSOLE_LOG_ENABLED   1      // Development: internal camera stdout -> A/stdout.txt       
940    #define DNG_SUPPORT                 1
941    // pattern
942    #define cam_CFAPattern 0x02010100 // Red  Green  Green  Blue
943    // color
944    #define CAM_COLORMATRIX1                                \
945      689833,  1000000, -198299, 1000000, -101299, 1000000, \
946      -164267, 1000000, 667466,  1000000,  74132,  1000000, \
947       -36515,  1000000, 123872,   1000000,  248498, 1000000
948   
949    #define cam_CalibrationIlluminant1 1 // Daylight
950    // cropping
951    #define CAM_JPEG_WIDTH  3072
952    #define CAM_JPEG_HEIGHT 2304
953    #define CAM_ACTIVE_AREA_X1 38
954    #define CAM_ACTIVE_AREA_Y1 14
955    #define CAM_ACTIVE_AREA_X2 3146
956    #define CAM_ACTIVE_AREA_Y2 2338
957    // camera name
958    #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData
959//----------------------------------------------------------
960#elif defined (CAMERA_ixus70_sd1000)
961    #define CAM_PROPSET                 2
962
963    #define CAM_RAW_ROWPIX              3152   // for 7 MP
964    #define CAM_RAW_ROWS                2340   // for 7 MP
965
966    #undef  CAM_USE_ZOOM_FOR_MF
967    #undef  CAM_HAS_ERASE_BUTTON
968    #undef  CAM_HAS_IRIS_DIAPHRAGM
969    #define CAM_HAS_ND_FILTER           1
970    #undef  CAM_HAS_MANUAL_FOCUS
971    #undef  CAM_HAS_USER_TV_MODES
972    #define CAM_SHOW_OSD_IN_SHOOT_MENU  1
973    #undef  CAM_HAS_IS
974    #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1
975    #define DNG_SUPPORT                 1
976    #define CAM_MULTIPART               1
977    // pattern
978    #define cam_CFAPattern 0x02010100 // Red  Green  Green  Blue
979    // color
980    #define CAM_COLORMATRIX1                                \
981      652674,  1000000, -172074, 1000000, -107575, 1000000, \
982      -139063, 1000000, 594517,  1000000,  60252,  1000000, \
983       -9088,  1000000, 82013,   1000000,  238048, 1000000
984   
985    #define cam_CalibrationIlluminant1 1 // Daylight
986    // cropping
987    #define CAM_JPEG_WIDTH  3072
988    #define CAM_JPEG_HEIGHT 2304
989    #define CAM_ACTIVE_AREA_X1 38
990    #define CAM_ACTIVE_AREA_Y1 14
991    #define CAM_ACTIVE_AREA_X2 3146
992    #define CAM_ACTIVE_AREA_Y2 2338
993    // camera name
994    #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData
995
996//----------------------------------------------------------
997#elif defined (CAMERA_ixus80_sd1100)
998    #define CAM_PROPSET                 2
999    #define CAM_DRYOS                   1
1000
1001    #define CAM_RAW_ROWPIX              3336   // for new 8 MP
1002    #define CAM_RAW_ROWS                2480   // for new 8 MP
1003
1004    #undef  CAM_USE_ZOOM_FOR_MF
1005    #undef  CAM_HAS_ERASE_BUTTON
1006    #undef  CAM_HAS_IRIS_DIAPHRAGM
1007    #define CAM_HAS_ND_FILTER           1
1008    #undef  CAM_HAS_MANUAL_FOCUS
1009    #undef  CAM_HAS_USER_TV_MODES
1010    #define CAM_SHOW_OSD_IN_SHOOT_MENU  1
1011        // TODO / test
1012        #undef  CAM_REMOTE
1013        #define CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO 1
1014    #undef  CAM_CAN_MUTE_MICROPHONE
1015    #define CAM_AF_SCAN_DURING_VIDEO_RECORD 0
1016    #define DNG_SUPPORT                 1
1017    // pattern
1018    #define cam_CFAPattern 0x01000201 // Green  Blue  Red  Green
1019    // color
1020    #define CAM_COLORMATRIX1                                \
1021      893969,  1000000, -343107, 1000000, -119590, 1000000, \
1022      -41350,  1000000, 581255,  1000000,  49523,  1000000, \
1023       24221,  1000000, 47554,   1000000,  209996, 1000000
1024   
1025    #define cam_CalibrationIlluminant1 1 // Daylight
1026    // cropping
1027    #define CAM_JPEG_WIDTH  3264
1028    #define CAM_JPEG_HEIGHT 2448
1029    #define CAM_ACTIVE_AREA_X1 6
1030    #define CAM_ACTIVE_AREA_Y1 6
1031    #define CAM_ACTIVE_AREA_X2 3304
1032    #define CAM_ACTIVE_AREA_Y2 2476
1033    // camera name
1034    #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData
1035
1036//----------------------------------------------------------
1037#elif defined (CAMERA_ixus700_sd500)
1038    #define CAM_PROPSET                 1
1039
1040    #define CAM_RAW_ROWPIX              3152   // for 7 MP
1041    #define CAM_RAW_ROWS                2340   // for 7 MP
1042
1043    #undef  CAM_SYNCH
1044    #undef  CAM_USE_ZOOM_FOR_MF
1045    #define CAM_DRAW_EXPOSITION         1
1046    #undef  CAM_HAS_ERASE_BUTTON
1047    #undef  CAM_HAS_IRIS_DIAPHRAGM
1048    #define CAM_HAS_ND_FILTER           1
1049    #undef  CAM_HAS_MANUAL_FOCUS
1050    #undef  CAM_HAS_USER_TV_MODES
1051    #undef  CAM_CAN_SD_OVERRIDE
1052    #define CAM_SHOW_OSD_IN_SHOOT_MENU  1
1053    #undef  CAM_HAS_IS
1054    #define CAM_MULTIPART               1
1055    #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1
1056    #define DNG_SUPPORT                 1
1057    // pattern
1058    #define cam_CFAPattern 0x02010100 // Red  Green  Green  Blue
1059    // color
1060    #define CAM_COLORMATRIX1         \
1061      15265, 1, -6193,  1, -1558, 1, \
1062     -4125,  1,  12116, 1,  2010, 1, \
1063      -888,  1,  1639,  1,  5220, 1
1064   
1065    #define cam_CalibrationIlluminant1 17 // Standard light A
1066    // cropping
1067    #define CAM_JPEG_WIDTH  3072
1068    #define CAM_JPEG_HEIGHT 2304
1069    #define CAM_ACTIVE_AREA_X1 38
1070    #define CAM_ACTIVE_AREA_Y1 14
1071    #define CAM_ACTIVE_AREA_X2 3146
1072    #define CAM_ACTIVE_AREA_Y2 2338
1073    // camera name
1074    #define PARAM_CAMERA_NAME 2 // parameter number for GetParameterData
1075
1076//----------------------------------------------------------
1077
1078#elif defined (CAMERA_ixus750_sd550)
1079    #define CAM_PROPSET                1
1080
1081    #define CAM_RAW_ROWPIX              3152  // for 7 MP
1082    #define CAM_RAW_ROWS                2340  // for 7 MP
1083
1084    #define  CAM_USE_ZOOM_FOR_MF    1
1085    #define CAM_DRAW_EXPOSITION        1
1086    #undef  CAM_HAS_ERASE_BUTTON
1087    #undef  CAM_HAS_IRIS_DIAPHRAGM
1088    #define CAM_HAS_ND_FILTER          1
1089    #undef  CAM_HAS_MANUAL_FOCUS
1090    #undef  CAM_HAS_USER_TV_MODES
1091    #define  CAM_CAN_SD_OVERRIDE    1
1092    #define CAM_SHOW_OSD_IN_SHOOT_MENU  1
1093    #undef  CAM_HAS_IS
1094    #define CAM_MULTIPART              1
1095    #undef CAM_SYNCH
1096    #define DNG_SUPPORT                 1
1097    // pattern
1098    #define cam_CFAPattern 0x02010100 // Red  Green  Green  Blue
1099    // color
1100    #define CAM_COLORMATRIX1                               \
1101      580280, 1000000, -172239, 1000000, -89707,  1000000, \
1102     -206596, 1000000,  634926, 1000000,  63877,  1000000, \
1103      10377,  1000000,  62053,  1000000,  242646, 1000000
1104   
1105    #define cam_CalibrationIlluminant1 1 // Daylight
1106    // cropping
1107    #define CAM_JPEG_WIDTH  3072
1108    #define CAM_JPEG_HEIGHT 2304
1109    #define CAM_ACTIVE_AREA_X1 36
1110    #define CAM_ACTIVE_AREA_Y1 12
1111    #define CAM_ACTIVE_AREA_X2 3148
1112    #define CAM_ACTIVE_AREA_Y2 2340
1113    // camera name
1114    #define PARAM_CAMERA_NAME 3 // parameter number for GetParameterData
1115
1116//----------------------------------------------------------
1117#elif defined (CAMERA_ixus800_sd700)
1118    #define CAM_PROPSET                 1
1119
1120    #define CAM_RAW_ROWPIX              2888   // for 6 MP
1121    #define CAM_RAW_ROWS                2136   // for 6 MP
1122
1123    #undef  CAM_USE_ZOOM_FOR_MF
1124    #define CAM_DRAW_EXPOSITION         1
1125    #undef  CAM_HAS_ERASE_BUTTON
1126    #undef  CAM_HAS_IRIS_DIAPHRAGM
1127    #define CAM_HAS_ND_FILTER           1
1128    #undef  CAM_HAS_MANUAL_FOCUS
1129    #undef  CAM_HAS_USER_TV_MODES
1130    #define CAM_SHOW_OSD_IN_SHOOT_MENU  1
1131    #define CAM_AF_SCAN_DURING_VIDEO_RECORD 2
1132    #define DNG_SUPPORT                 1
1133
1134 // Warning! DNG4PS2 has both ixus800 and sd700 support with different CFA patterns and color matrices.
1135 // Used settings for IXUS800
1136
1137    // pattern
1138    #define cam_CFAPattern 0x02010100 // Red  Green  Green  Blue
1139    // color
1140    #define CAM_COLORMATRIX1          \
1141      14062, 1, -5199,  1, -1446,  1, \
1142      -4712, 1,  12470, 1,  2243,  1, \
1143      -1286, 1,  2028,  1,  4836,  1
1144   
1145    #define cam_CalibrationIlluminant1 17 // Standard light A
1146    // cropping
1147    #define CAM_JPEG_WIDTH  2816
1148    #define CAM_JPEG_HEIGHT 2112
1149    #define CAM_ACTIVE_AREA_X1 44
1150    #define CAM_ACTIVE_AREA_Y1 8
1151    #define CAM_ACTIVE_AREA_X2 2884
1152    #define CAM_ACTIVE_AREA_Y2 2136
1153    // camera name
1154    #define PARAM_CAMERA_NAME 3 // parameter number for GetParameterData
1155
1156   
1157//----------------------------------------------------------
1158#elif defined (CAMERA_ixus850_sd800)
1159    #define CAM_PROPSET                 1
1160
1161    #define CAM_RAW_ROWPIX              3152   // for 7 MP
1162    #define CAM_RAW_ROWS                2340   // for 7 MP
1163
1164    #undef  CAM_USE_ZOOM_FOR_MF
1165    #undef  CAM_HAS_ERASE_BUTTON
1166    #undef  CAM_HAS_IRIS_DIAPHRAGM
1167    #define CAM_HAS_ND_FILTER           1
1168    #undef  CAM_HAS_MANUAL_FOCUS
1169    #undef  CAM_HAS_USER_TV_MODES
1170    #define CAM_SHOW_OSD_IN_SHOOT_MENU  1
1171    #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1
1172    #define CAM_MULTIPART               1
1173    #define DNG_SUPPORT                 1
1174    // pattern
1175    #define cam_CFAPattern 0x02010100 // Red  Green  Green  Blue
1176    // color
1177    #define CAM_COLORMATRIX1                               \
1178      661014, 1000000, -189364, 1000000, -115797, 1000000, \
1179     -168772, 1000000,  661827, 1000000,   47392, 1000000, \
1180      -35846, 1000000,  107148, 1000000,  233705, 1000000
1181   
1182    #define cam_CalibrationIlluminant1 17 // Standard light A
1183    // cropping
1184    #define CAM_JPEG_WIDTH  3072
1185    #define CAM_JPEG_HEIGHT 2304
1186    #define CAM_ACTIVE_AREA_X1 12
1187    #define CAM_ACTIVE_AREA_Y1 8
1188    #define CAM_ACTIVE_AREA_X2 3108
1189    #define CAM_ACTIVE_AREA_Y2 2332
1190    // camera name
1191    #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData
1192   
1193//----------------------------------------------------------
1194#elif defined (CAMERA_ixus860_sd870)
1195    #define CAM_PROPSET                 2
1196    #define CAM_DRYOS                   1
1197
1198    #define CAM_RAW_ROWPIX              3336   // for new 8 MP
1199    #define CAM_RAW_ROWS                2480   // for new 8 MP
1200
1201    #undef  CAM_USE_ZOOM_FOR_MF
1202    #undef  CAM_HAS_ERASE_BUTTON
1203    #undef  CAM_HAS_IRIS_DIAPHRAGM
1204    #define CAM_HAS_ND_FILTER           1
1205    #undef  CAM_HAS_MANUAL_FOCUS
1206    #undef  CAM_HAS_USER_TV_MODES
1207    #define CAM_SHOW_OSD_IN_SHOOT_MENU  1
1208        #define CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO 1
1209    #undef  CAM_CAN_MUTE_MICROPHONE
1210    #undef  CAM_VIDEO_CONTROL
1211    #define DNG_SUPPORT                 1
1212    // pattern
1213    #define cam_CFAPattern 0x01000201 // Green  Blue  Red  Green
1214    // color
1215    #define CAM_COLORMATRIX1                               \
1216      747939, 1000000, -268233, 1000000, -129266, 1000000, \
1217     -50633,  1000000, 515687,  1000000,  23509,  1000000, \
1218     -21341,  1000000, 76495,   1000000, 186385,  1000000
1219   
1220    #define cam_CalibrationIlluminant1 1 // Daylight                   
1221    // cropping
1222    #define CAM_JPEG_WIDTH  3264
1223    #define CAM_JPEG_HEIGHT 2448
1224    #define CAM_ACTIVE_AREA_X1 10
1225    #define CAM_ACTIVE_AREA_Y1 8
1226    #define CAM_ACTIVE_AREA_X2 3302
1227    #define CAM_ACTIVE_AREA_Y2 2474
1228    // camera name
1229    #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData
1230
1231//----------------------------------------------------------
1232#elif defined (CAMERA_ixus950_sd850)
1233    #define CAM_PROPSET                 2
1234
1235    #define CAM_RAW_ROWPIX              3336   // for new 8 MP
1236    #define CAM_RAW_ROWS                2480   // for new 8 MP
1237
1238    #undef  CAM_USE_ZOOM_FOR_MF
1239    #undef  CAM_HAS_ERASE_BUTTON
1240    #undef  CAM_HAS_IRIS_DIAPHRAGM
1241    #define CAM_HAS_ND_FILTER           1
1242    #undef  CAM_HAS_MANUAL_FOCUS
1243    #undef  CAM_HAS_USER_TV_MODES
1244    #define CAM_SHOW_OSD_IN_SHOOT_MENU  1
1245    #define CAM_MULTIPART               1
1246    #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1
1247    #define DNG_SUPPORT                 1
1248    // pattern
1249    #define cam_CFAPattern 0x01000201 // Green  Blue  Red  Green
1250    // color
1251    #define CAM_COLORMATRIX1        \
1252      14573, 1, -5482, 1, -1546, 1, \
1253     -1266,  1, 9799,  1, 1468,  1, \
1254     -1040,  1, 1912,  1, 3810,  1
1255   
1256    #define cam_CalibrationIlluminant1 1 // Daylight                   
1257    // cropping
1258    #define CAM_JPEG_WIDTH  3264
1259    #define CAM_JPEG_HEIGHT 2448
1260    #define CAM_ACTIVE_AREA_X1 10
1261    #define CAM_ACTIVE_AREA_Y1 8
1262    #define CAM_ACTIVE_AREA_X2 3302
1263    #define CAM_ACTIVE_AREA_Y2 2474
1264    // camera name
1265    #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData
1266   
1267//----------------------------------------------------------
1268#elif defined (CAMERA_ixus960_sd950)
1269    #define CAM_PROPSET                 2
1270    #define CAM_DRYOS                   1
1271
1272    #define CAM_RAW_ROWPIX              4104   
1273    #define CAM_RAW_ROWS                3048   
1274
1275    #undef  CAM_USE_ZOOM_FOR_MF
1276    #undef  CAM_HAS_ERASE_BUTTON
1277    #undef  CAM_HAS_IRIS_DIAPHRAGM
1278    #define CAM_HAS_ND_FILTER           1
1279    #undef  CAM_HAS_MANUAL_FOCUS
1280    #undef  CAM_HAS_USER_TV_MODES
1281    #define CAM_SHOW_OSD_IN_SHOOT_MENU  1
1282    #define DNG_SUPPORT                 1
1283    // pattern
1284    #define cam_CFAPattern 0x02010100 // Red  Green  Green  Blue
1285    // color
1286    #define CAM_COLORMATRIX1                               \
1287      913762, 1000000, -261578, 1000000, -135582, 1000000, \
1288      -99049, 1000000, 1067089, 1000000,  61442,  1000000, \
1289      48717,  1000000, 96802,   1000000,  412056, 1000000
1290   
1291    #define cam_CalibrationIlluminant1 1 // Daylight
1292    // cropping
1293    #define CAM_JPEG_WIDTH  4000
1294    #define CAM_JPEG_HEIGHT 3000
1295    #define CAM_ACTIVE_AREA_X1 48
1296    #define CAM_ACTIVE_AREA_Y1 12
1297    #define CAM_ACTIVE_AREA_X2 4080
1298    #define CAM_ACTIVE_AREA_Y2 3036
1299    // camera name
1300    #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData
1301
1302//==========================================================
1303// S-Series
1304//==========================================================
1305#elif defined (CAMERA_s2is)
1306    #define CAM_PROPSET                 1
1307
1308    #define CAM_RAW_ROWPIX              2672   // for 5 MP
1309    #define CAM_RAW_ROWS                1968   // for 5 MP
1310   
1311    #undef  CAM_SYNCH   
1312    #define CAM_SWIVEL_SCREEN           1
1313    #define CAM_ADJUSTABLE_ALT_BUTTON   1
1314    #undef  CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO
1315    #define  CAM_HAS_VIDEO_BUTTON       1
1316    #undef  CAM_VIDEO_CONTROL
1317    #define DNG_SUPPORT                 1
1318    // pattern
1319    #define cam_CFAPattern 0x02010100 // Red  Green  Green  Blue
1320    // color
1321    #define CAM_COLORMATRIX1                                \
1322      547708,  1000000, -143462, 1000000,  -99243, 1000000, \
1323     -186838,  1000000, 663925,  1000000,   50970, 1000000, \
1324     -5810,    1000000, 79162,   1000000,  266988, 1000000
1325   
1326    #define cam_CalibrationIlluminant1 1 // Daylight
1327    // cropping
1328    #define CAM_JPEG_WIDTH  2592
1329    #define CAM_JPEG_HEIGHT 1944
1330    #define CAM_ACTIVE_AREA_X1 14
1331    #define CAM_ACTIVE_AREA_Y1 10
1332    #define CAM_ACTIVE_AREA_X2 2626
1333    #define CAM_ACTIVE_AREA_Y2 1966
1334    // camera name
1335    #define PARAM_CAMERA_NAME 2 // parameter number for GetParameterData
1336    #define CAM_BRACKETING              1
1337//----------------------------------------------------------
1338#elif defined (CAMERA_s3is)
1339    #define CAM_PROPSET                 1
1340
1341    #define CAM_RAW_ROWPIX              2888   // for 6 MP
1342    #define CAM_RAW_ROWS                2136   // for 6 MP
1343   
1344    #undef  CAM_SYNCH 
1345    #define CAM_SWIVEL_SCREEN           1
1346    #define CAM_ADJUSTABLE_ALT_BUTTON   1
1347    #define CAM_MULTIPART               1
1348    #undef  CAM_CAN_SD_OVER_NOT_IN_MF
1349    #undef  CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO
1350    #define  CAM_HAS_VIDEO_BUTTON       1
1351    #define DNG_SUPPORT                 1
1352    // pattern
1353    #define cam_CFAPattern 0x02010100 // Red  Green  Green  Blue
1354    // color
1355    #define CAM_COLORMATRIX1                               \
1356     14062, 10000, -5199, 10000, -1446, 10000,             \
1357     -4712, 10000, 12470, 10000,  2243, 10000,             \
1358     -1286, 10000,  2028, 10000,  4836, 10000
1359   
1360    #define cam_CalibrationIlluminant1 17 // Standard light A
1361    // cropping
1362    #define CAM_JPEG_WIDTH  2816
1363    #define CAM_JPEG_HEIGHT 2112
1364    #define CAM_ACTIVE_AREA_X1 44
1365    #define CAM_ACTIVE_AREA_Y1 8
1366    #define CAM_ACTIVE_AREA_X2 2884
1367    #define CAM_ACTIVE_AREA_Y2 2136
1368    // camera name
1369    #define PARAM_CAMERA_NAME 3 // parameter number for GetParameterData
1370    #define CAM_BRACKETING              1
1371
1372//----------------------------------------------------------
1373#elif defined (CAMERA_s5is)
1374    #define CAM_PROPSET                 2
1375    #define CAM_DRYOS                   1
1376
1377    #define CAM_RAW_ROWPIX              3336   // for new 8 MP
1378    #define CAM_RAW_ROWS                2480   // for new 8 MP
1379   
1380    #define CAM_SWIVEL_SCREEN           1
1381    #define CAM_ADJUSTABLE_ALT_BUTTON   1
1382    #undef  CAM_CAN_SD_OVER_NOT_IN_MF
1383    #undef  CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO
1384    #undef  CAM_CHDK_HAS_EXT_VIDEO_MENU
1385    #define  CAM_HAS_VIDEO_BUTTON       1
1386    #define DNG_SUPPORT                 1
1387    // pattern
1388    #define cam_CFAPattern 0x01000201 // Green  Blue  Red  Green
1389    // color
1390    #define CAM_COLORMATRIX1                               \
1391      650591, 1000000, -199585, 1000000, -123118, 1000000, \
1392     -69617,  1000000, 583926,  1000000,  34354,  1000000, \
1393     -19113,  1000000, 82163,   1000000, 210786,  1000000
1394   
1395    #define cam_CalibrationIlluminant1 1 // Daylight
1396    // cropping
1397    #define CAM_JPEG_WIDTH  3264
1398    #define CAM_JPEG_HEIGHT 2448
1399    #define CAM_ACTIVE_AREA_X1 10
1400    #define CAM_ACTIVE_AREA_Y1 8
1401    #define CAM_ACTIVE_AREA_X2 3302
1402    #define CAM_ACTIVE_AREA_Y2 2474
1403    // camera name
1404    #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData
1405//  #define CAM_BRACKETING              1 //propcase for dryos not found yet
1406
1407//==========================================================
1408// TX-Series
1409//==========================================================
1410#elif defined (CAMERA_tx1)
1411    #define CAM_PROPSET                 2
1412   
1413    #define CAM_RAW_ROWPIX              3152   // for 7 MP
1414    #define CAM_RAW_ROWS                2340   // for 7 MP
1415
1416    #define CAM_SWIVEL_SCREEN           1
1417    #define CAM_HAS_ND_FILTER           1
1418    #undef  CAM_HAS_ERASE_BUTTON
1419    #undef  CAM_HAS_MANUAL_FOCUS
1420    #undef  CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO
1421    #define CAM_MULTIPART               1
1422    #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1
1423    #define  CAM_HAS_VIDEO_BUTTON       1
1424    #define DNG_SUPPORT                 1
1425    // pattern
1426    #define cam_CFAPattern 0x02010100 // Red  Green  Green  Blue
1427    // color
1428    #define CAM_COLORMATRIX1                                \
1429      510370,  1000000, -68998,  1000000, -86859,  1000000, \
1430      -279980, 1000000, 766686,  1000000,  67944,  1000000, \
1431      -14382,  1000000, 113688,  1000000, 239853,  1000000
1432   
1433    #define cam_CalibrationIlluminant1 1 // Daylight
1434    // cropping
1435    #define CAM_JPEG_WIDTH  3072
1436    #define CAM_JPEG_HEIGHT 2304
1437    #define CAM_ACTIVE_AREA_X1 12
1438    #define CAM_ACTIVE_AREA_Y1 8
1439    #define CAM_ACTIVE_AREA_X2 3108
1440    #define CAM_ACTIVE_AREA_Y2 2332
1441    // camera name
1442    #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData
1443
1444//==========================================================
1445// SX-Series
1446//==========================================================
1447#elif defined (CAMERA_sx100is)
1448    #define CAM_PROPSET                 2
1449    #define CAM_DRYOS                   1
1450
1451    #define CAM_RAW_ROWPIX              3336   // for new 8 MP
1452    #define CAM_RAW_ROWS                2480   // for new 8 MP
1453    #undef CAM_SYNCH
1454    #define CAM_CAN_MUTE_MICROPHONE     1
1455    #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1
1456    #define CAM_ADJUSTABLE_ALT_BUTTON   1
1457    #define CAM_SHOW_OSD_IN_SHOOT_MENU  1
1458    #undef  CAM_VIDEO_CONTROL
1459    #define DNG_SUPPORT                 1
1460    #define CAM_REAR_CURTAIN            1
1461    #define CAM_HAS_JOGDIAL             1
1462    // pattern
1463    #define cam_CFAPattern 0x01000201 // Green  Blue  Red  Green
1464    // color
1465    #define CAM_COLORMATRIX1                               \
1466      656793, 1000000, -168702, 1000000, -108030, 1000000, \
1467      -2711,  1000000, 661538,  1000000,  37919,  1000000, \
1468      77255,  1000000, 48834,   1000000, 241797,  1000000
1469   
1470    #define cam_CalibrationIlluminant1 1 // Daylight
1471    // cropping
1472    #define CAM_JPEG_WIDTH  3264
1473    #define CAM_JPEG_HEIGHT 2448
1474    #define CAM_ACTIVE_AREA_X1 10
1475    #define CAM_ACTIVE_AREA_Y1 8
1476    #define CAM_ACTIVE_AREA_X2 3302
1477    #define CAM_ACTIVE_AREA_Y2 2474
1478    // camera name
1479    #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData
1480
1481    #define DNG_EXT_FROM ".CR2"
1482    #define DNG_EXT_TO   ".DNG"
1483
1484
1485//----------------------------------------------------------
1486
1487#else
1488    #error camera type not defined
1489
1490#endif
1491
1492#endif /* CAMERA_H */
Note: See TracBrowser for help on using the repository browser.