source: trunk/platform/a570/platform_camera.h @ 1140

Revision 1140, 2.4 KB checked in by reyalP, 2 years ago (diff)

split camera.h into individual files for each camera, from philmoz in http://chdk.setepontos.com/index.php?topic=650.msg64552#msg64552 + minor cleanup in camera.h

  • Property svn:eol-style set to native
Line 
1// Camera - A570 - platform_camera.h
2
3// This file contains the various settings values specific to the A570 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
25        #define CAM_RAW_ROWPIX              3152        // for 7 MP
26        #define CAM_RAW_ROWS                2340        // for 7 MP
27        #define CAM_MULTIPART               1
28        #define CAM_CAN_MUTE_MICROPHONE     1
29        #define CAM_ADJUSTABLE_ALT_BUTTON   1
30        #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1
31        #define CAM_EV_IN_VIDEO             1
32        #define CAM_REAR_CURTAIN            1
33        // pattern
34        #define cam_CFAPattern 0x02010100 // Red  Green  Green  Blue
35        // color
36        #define CAM_COLORMATRIX1                            \
37    528283, 1000000,-144259, 1000000, -85966, 1000000,  \
38    -202789, 1000000, 736563, 1000000, 73008, 1000000,  \
39    -27130,  1000000, 107702, 1000000, 264543, 1000000
40
41        #define cam_CalibrationIlluminant1 1 // Daylight
42        // cropping
43        #define CAM_JPEG_WIDTH  3072
44        #define CAM_JPEG_HEIGHT 2304
45        #define CAM_ACTIVE_AREA_X1 38
46        #define CAM_ACTIVE_AREA_Y1 14
47        #define CAM_ACTIVE_AREA_X2 3146
48        #define CAM_ACTIVE_AREA_Y2 2338
49        // camera name
50        #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData
51
52        #define DNG_EXT_FROM ".DPS"
53        #define CAM_EXT_TV_RANGE            1
54        #define CAM_CHDK_PTP                1 // include CHDK PTP support
55//----------------------------------------------------------
56
Note: See TracBrowser for help on using the repository browser.