source: trunk/platform/g10/platform_camera.h @ 2798

Revision 2581, 5.7 KB checked in by philmoz, 3 months ago (diff)

Motion detection updates from waterwingz:
http://chdk.setepontos.com/index.php?topic=650.msg96967#msg96967
http://chdk.setepontos.com/index.php?topic=650.msg97003#msg97003

  • Property svn:eol-style set to native
Line 
1// Camera - G10 - platform_camera.h
2
3// This file contains the various settings values specific to the G10 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_DRYOS                       1
24    #define CAM_DRYOS_2_3_R31               1    // note : structure used by stat changes in R39
25
26    #define CAM_PROPSET                     2
27
28    #undef  CAM_CAN_SD_OVER_NOT_IN_MF
29    #undef  CAM_USE_ZOOM_FOR_MF
30    #define CAM_HAS_ND_FILTER               1
31    #define CAM_HAS_HI_ISO_AUTO_MODE        1
32 
33    #undef  CAM_EMUL_KEYPRESS_DURATION
34    #define CAM_EMUL_KEYPRESS_DURATION      10
35
36    #define CAM_ADJUSTABLE_ALT_BUTTON       1
37    #define CAM_ALT_BUTTON_NAMES            { "Print", "Disp",  "AE Lock", "Jump" }
38    #define CAM_ALT_BUTTON_OPTIONS          { KEY_PRINT, KEY_DISPLAY, KEY_AE_LOCK, KEY_METERING}
39
40    #define CAM_RAW_ROWPIX                  4480    // G10 auto found @0xffacde38
41    #define CAM_RAW_ROWS                    3348    // G10 auto found @0xffacde3c
42
43    #define CAM_JPEG_WIDTH                  4416    // taken from G10 jpg header info
44    #define CAM_JPEG_HEIGHT                 3312    // "
45
46    #define CAM_ACTIVE_AREA_X1              12      // calibrated with G10 RAW picture converted with rawconvert.exe (rawconvert -12to8 -pgm -w=4480 -h=3348 g10.crw g10.pgm)
47    #define CAM_ACTIVE_AREA_Y1              12      // "
48    #define CAM_ACTIVE_AREA_X2              4440    // "
49    #define CAM_ACTIVE_AREA_Y2              3334    // "
50
51    #undef  CAM_MENU_BORDERWIDTH
52    #define CAM_MENU_BORDERWIDTH            10
53
54    #define CAM_QUALITY_OVERRIDE            1
55    #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1
56    #define CAM_RESET_AEL_AFTER_VIDEO_AF    1   // Cam needs AE Lock state reset after AF in video recording
57    #define CAM_HAS_JOGDIAL                 1
58
59    #define CAM_BRACKETING                  1
60    #define CAM_MULTIPART                   1
61    #define CAM_EXT_TV_RANGE                1
62    #undef  CAM_UNCACHED_BIT
63    #define CAM_UNCACHED_BIT                0x40000000  // G10 auto found @0xff828844
64 
65    #define CAM_SHOW_OSD_IN_SHOOT_MENU      1
66
67    #define PARAM_CAMERA_NAME               4       // parameter number for GetParameterData
68    #define PARAM_DISPLAY_MODE1             57      // param number for LCD display mode when camera in playback
69    #define PARAM_DISPLAY_MODE2             58      // param number for LCD display mode when camera in record view hold mode
70
71    #undef  CAM_BITMAP_PALETTE
72    #define CAM_BITMAP_PALETTE              2
73
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    #undef CAM_BITMAP_WIDTH
80    #define CAM_BITMAP_WIDTH                720 // Actual width of bitmap screen in bytes
81
82    #undef  EDGE_HMARGIN
83    #define EDGE_HMARGIN 28
84
85    #define CAM_DNG_LENS_INFO               { 61,10, 305,10, 28,10, 45,10 } // See comments in camera.h
86    // G10 pattern
87    #define cam_CFAPattern                  0x01000201   // 0x01000201 = Green Blue Red Green   
88                                                        // 0x02010100 = Red  Green  Green  Blue   
89
90    // G10 color - values from dcraw for G10 Canon RAW files
91    #define cam_CalibrationIlluminant1      17 // standard light A   
92    #define CAM_COLORMATRIX1 \
93        11093,  1000000,    -3906,  1000000,    -1028,  1000000, \
94        -5047,  1000000,    12492,  1000000,     2879,  1000000, \
95        -1003,  1000000,     1750,  1000000,     5561,  1000000
96
97    // zebra
98    #define CAM_ZEBRA_NOBUF                 1
99
100    #define CAM_USE_ALT_SET_ZOOM_POINT      1   // Define to use the alternate code in lens_set_zoom_point()
101
102    #define CAM_STARTUP_CRASH_FILE_OPEN_FIX 1       // enable fix for camera crash at startup when opening the conf / font files
103                                                    // see http://chdk.setepontos.com/index.php?topic=6179.0
104
105    #define CAM_DRIVE_MODE_FROM_TIMER_MODE  1       // use PROPCASE_TIMER_MODE to check for multiple shot custom timer.
106                                                    // Used to enabled bracketing in custom timer, required on many recent cameras
107                                                    // see http://chdk.setepontos.com/index.php/topic,3994.405.html
108
109    #define REMOTE_SYNC_STATUS_LED      0xC02200DC              // specifies an LED that turns on while camera waits for USB remote to sync
110
111    #undef  CAM_AF_LED
112    #define CAM_AF_LED                      5       // Index of AF led in camera_set_led function
113
114
115//----------------------------------------------------------
116
Note: See TracBrowser for help on using the repository browser.