source: trunk/platform/a1100/platform_camera.h @ 920

Revision 920, 3.6 KB checked in by msl, 16 months ago (diff)

Überarbeitung kameraabhängige Definitionen

  • Betrifft ca. die Hälfte aller Kameras
  • Bitte möglichst einen umfangreichen Funktionscheck durchführen.

+ Aufräumen und Formatieren vieler platform_camera.h-Dateien
+ Entfernung aller redundanter Einträge
+ fehlende Definitionen in camera.h hinzugefügt
+ diverse fehlerhafte Einträge korrigiert

  • Enthält Änderung aus internationaler Version: # 1559, 1560, 1571
  • Danke an whim für das sehr hilfreiche Crossreferenz-Tool.
  • Property svn:eol-style set to native
Line 
1// Camera - a1100 - platform_camera.h
2
3// This file contains the various settings values specific to the a1100 camera.
4// This file is referenced via the 'include/camera.h' file and should not be loaded directly.
5
6// If adding a new settings value put a suitable default in 'include/camera.h',
7// along with documentation on what the setting does and how to determine the correct value.
8// If the setting should not have a default value then add it in 'include/camera.h'
9// using the '#undef' directive along with appropriate documentation.
10
11// Override any default values with your camera specific values in this file. Try and avoid
12// having override values that are the same as the default value.
13
14// When overriding a setting value there are two cases:
15// 1. If removing the value, because it does not apply to your camera, use the '#undef' directive.
16// 2. If changing the value it is best to use an '#undef' directive to remove the default value
17//    followed by a '#define' to set the new value.
18
19// When porting CHDK to a new camera, check the documentation in 'include/camera.h'
20// for information on each setting. If the default values are correct for your camera then
21// don't override them again in here.
22
23    #define CAM_PROPSET                     2
24    #define CAM_DRYOS                       1
25
26    #define CAM_RAW_ROWPIX                  4104   
27    #define CAM_RAW_ROWS                    3048   
28
29    #undef  CAM_USE_ZOOM_FOR_MF
30    #undef  CAM_HAS_ERASE_BUTTON
31    #undef  CAM_HAS_IRIS_DIAPHRAGM
32    #define CAM_HAS_ND_FILTER               1
33    #undef  CAM_HAS_MANUAL_FOCUS
34    #undef  CAM_HAS_USER_TV_MODES
35    #define CAM_MULTIPART                   1
36    #undef  CAM_VIDEO_CONTROL
37    #define CAM_REAR_CURTAIN                1
38    #undef  DEFAULT_RAW_EXT
39    #define DEFAULT_RAW_EXT                 2  // use .CR2
40    #define CAM_EXT_TV_RANGE                0
41    #define CAM_AF_SCAN_DURING_VIDEO_RECORD 0
42    #define CAM_CAN_MUTE_MICROPHONE         0
43    #define CAM_EV_IN_VIDEO                 0
44
45    #undef  CAM_UNCACHED_BIT
46    #define CAM_UNCACHED_BIT                0x40000000 // Found @0xffc16e84
47
48    #define CAM_QUALITY_OVERRIDE            1
49
50    // color
51    #undef CAM_BITMAP_PALETTE
52    #define CAM_BITMAP_PALETTE              12
53
54    #define CAM_DNG_LENS_INFO               { 62,10, 248,10, 27,10, 56,10 } // See comments in camera.h
55
56    // pattern
57    #define cam_CFAPattern                  0x01000201  // GBRG               
58    #define CAM_COLORMATRIX1                               \
59     793137,  1000000, -271722, 1000000, -113158, 1000000, \
60     -55013,  1000000,  541027, 1000000,   32394, 1000000, \
61      21921,  1000000,   71395, 1000000,  181847, 1000000
62
63    #define cam_CalibrationIlluminant1      1   // Daylight
64    // cropping
65    #define CAM_JPEG_WIDTH                  4000
66    #define CAM_JPEG_HEIGHT                 3000
67    #define CAM_ACTIVE_AREA_X1              20
68    #define CAM_ACTIVE_AREA_Y1              24
69    #define CAM_ACTIVE_AREA_X2              4020
70    #define CAM_ACTIVE_AREA_Y2              3024
71
72    // camera name
73    #define PARAM_CAMERA_NAME               4   // parameter number for GetParameterData
74    #undef  CAM_SENSOR_BITS_PER_PIXEL
75    #define CAM_SENSOR_BITS_PER_PIXEL       12
76
77    #undef  CAM_USES_ASPECT_CORRECTION   
78    #define CAM_USES_ASPECT_CORRECTION      1   //camera uses the modified graphics primitives to map screens an viewports to buffers more sized
79
80    #undef CAM_MENU_BORDERWIDTH
81    #define CAM_MENU_BORDERWIDTH            10
82
83    #define CAM_ZEBRA_ASPECT_ADJUST         1
84
85//----------------------------------------------------------
86
Note: See TracBrowser for help on using the repository browser.