source: trunk/include/camera.h @ 2798

Revision 2785, 23.7 KB checked in by philmoz, 4 days ago (diff)

Enable 'RAW Develop' command to work with DNG files.
Remove DNG_SUPPORT #define - DNG module is always enabled.

  • Property svn:eol-style set to native
Line 
1// camera.h
2
3#ifdef CHDK_MODULE_CODE
4#error camera.h cannot be #included in module code (did you mean camera_info.h).
5#endif
6
7// This file contains the default values for various settings that may change across camera models.
8// Setting values specific to each camera model can be found in the platform/XXX/platform_camera.h file for camera.
9
10// If adding a new settings value put a suitable default value in here, along with documentation on
11// what the setting does and how to determine the correct value.
12// If the setting should not have a default value then add it here using the '#undef' directive
13// along with appropriate documentation.
14
15#ifndef CAMERA_H
16#define CAMERA_H
17
18//==========================================================
19// Camera-dependent settings
20//==========================================================
21
22//----------------------------------------------------------
23// Default values
24//----------------------------------------------------------
25
26    #undef  CAM_DRYOS                           // Camera is DryOS-based
27    #undef  CAM_PROPSET                         // Camera's properties group (the generation)
28    #define CAM_FLASHPARAMS_VERSION         3   // flash parameters structure version (every camera from 2005 on is version 3)
29    #undef  CAM_DRYOS_2_3_R31                   // Define for cameras with DryOS release R31 or greater -> G10
30    #undef  CAM_DRYOS_2_3_R39                   // Define for cameras with DryOS release R39 or greater
31    #undef  CAM_DRYOS_2_3_R47                   // Define for cameras with DryOS release R47 or greater -> Cameras can boot from FAT32
32
33    #undef  CAM_HAS_CMOS                        // Camera has CMOS sensor
34    #undef  CAM_SWIVEL_SCREEN                   // Camera has rotated LCD screen
35    #define CAM_USE_ZOOM_FOR_MF             1   // Zoom lever can be used for manual focus adjustments
36    #undef  CAM_ADJUSTABLE_ALT_BUTTON           // ALT-button can be set from menu, must set next two values as well
37    #undef  CAM_ALT_BUTTON_NAMES                // Define the list of names for the ALT button   - e.g. { "Print", "Display" }
38    #undef  CAM_ALT_BUTTON_OPTIONS              // Define the list of options for the ALT button - e.g. { KEY_PRINT, KEY_DISPLAY }
39    #define CAM_REMOTE                      1   // Camera supports USB-remote
40    #undef  SYNCHABLE_REMOTE_NOT_ENABLED        // Disable support for synchable remote switch (in kbd.c) TODO only used by one camera ???
41    #undef  CAM_MULTIPART                       // Camera supports SD-card multipartitioning
42    #define CAM_HAS_ZOOM_LEVER              1   // Camera has dedicated zoom buttons
43    #undef  CAM_DRAW_EXPOSITION                 // Output expo-pair on screen (for cameras which (sometimes) don't do that)
44    #define CAM_HAS_ERASE_BUTTON            1   // Camera has dedicated erase button
45    #define CAM_HAS_DISP_BUTTON             1   // Camera has dedicated DISP button
46    #define CAM_HAS_IRIS_DIAPHRAGM          1   // Camera has real diaphragm mechanism (http://en.wikipedia.org/wiki/Diaphragm_%28optics%29)
47    #undef  CAM_HAS_ND_FILTER                   // Camera has build-in ND filter
48    #undef  CAM_HAS_NATIVE_ND_FILTER            // Camera has built-in ND filter with Canon menu support for enable/disable
49    #define CAM_CAN_SD_OVER_NOT_IN_MF       1   // Camera allows subject distance (focus) override when not in manual focus mode
50    #undef  CAM_CAN_SD_OVER_IN_AF_LOCK          // Camera allows subject distance (focus) override when in AF Lock mode
51    #undef  CAM_CAN_SD_OVER_IN_AF_LOCK_ONLY     // Camera allows subject distance (focus) override only when in AF Lock mode OR in movie mode
52    #define CAM_CAN_SD_OVERRIDE             1   // Camera allows to do subject distance override
53    #define CAM_HAS_MANUAL_FOCUS            1   // Camera has manual focus mode
54    #define CAM_HAS_USER_TV_MODES           1   // Camera has tv-priority or manual modes with ability to set tv value
55    #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
56    #define CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO 1 // Camera can unlock optical zoom in video (if it is locked)
57    #undef  CAM_FEATURE_FEATHER                 // Cameras with "feather" or touch wheel.
58    #define CAM_HAS_IS                      1   // Camera has image stabilizer
59    #undef  CAM_HAS_JOGDIAL                     // Camera has a "jog dial"
60
61    #undef  CAM_CONSOLE_LOG_ENABLED             // Development: internal camera stdout -> A/stdout.txt
62    #define CAM_CHDK_HAS_EXT_VIDEO_MENU     1   // In CHDK for this camera realized adjustable video compression
63    #undef  CAM_CAN_MUTE_MICROPHONE             // Camera has function to mute microphone
64
65    #define CAM_EMUL_KEYPRESS_DELAY         40  // Delay to interpret <alt>-button press as longpress
66    #define CAM_EMUL_KEYPRESS_DURATION      5   // Length of keypress emulation
67
68    #define CAM_MENU_BORDERWIDTH            30  // Defines the width of the border on each side of the CHDK menu. The CHDK menu will have this
69                                                // many pixels left blank to the on each side. Should not be less than 10 to allow room for the
70                                                // scroll bar on the right.
71
72    #undef  CAM_TOUCHSCREEN_UI                  // Define to enable touch screen U/I (e.g. IXUS 310 HS)
73    #define CAM_TS_BUTTON_BORDER            0   // Define this to leave a border on each side of the OSD display for touch screen buttons.
74                                                // Used on the IXUS 310 to stop the OSD from overlapping the on screen buttons on each side
75    #define CAM_DISP_ALT_TEXT               1   // Display the '<ALT>' message at the bottom of the screen in ALT mode (IXUS 310 changes button color instead)
76
77    #undef  CAM_AF_SCAN_DURING_VIDEO_RECORD     // CHDK can make single AF scan during video record
78    #undef  CAM_RESET_AEL_AFTER_VIDEO_AF        // Cam needs AE Lock state reset after AF in video recording
79    #undef  CAM_HAS_VIDEO_BUTTON                // Camera can take stills in video mode, and vice versa
80    #undef  CAM_EV_IN_VIDEO                     // CHDK can change exposure in video mode
81    #define CAM_VIDEO_CONTROL               1   // pause / unpause video recordings
82    #undef  CAM_VIDEO_QUALITY_ONLY              // Override Video Bitrate is not supported
83    #undef  CAM_CHDK_HAS_EXT_VIDEO_TIME         // Camera can override time limit of video record -> sx220/230
84    #undef  CAM_HAS_MOVIE_DIGEST_MODE           // The values in the 'movie_status' variable change if the camera has this mode (see is_video_recording())
85    #undef  CAM_HAS_SPORTS_MODE                 // Define to enable the RAW exception override control for SPORTS mode (s3is, sx30, sx40, etc)
86
87    #define ZOOM_OVERRIDE                   0   // Shall zoom-override be used? default 0 becoz not implemented right now
88
89    #undef  CAM_REAR_CURTAIN                    // Camera do not have front/rear curtain flash sync in menu
90    #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!)
91    #undef  CAM_EXT_TV_RANGE                    // CHDK can make exposure time longer than 64s
92    #define CAM_EXT_AV_RANGE                6   // Number of 1/3 stop increments to extend the Av range beyond the Canon default smallest aperture
93                                                //  override in platform_camera.h for cameras with different range (e.g. G1X can't go below F/16 so set this to 0)
94    #define CAM_CHDK_PTP                    1   // include CHDK PTP support
95
96    #define CAM_UNCACHED_BIT                0x10000000 // bit indicating the uncached memory
97
98    #define CAM_SENSOR_BITS_PER_PIXEL       10  // Bits per pixel. 10 is standard, 12 is supported except for curves
99    #define CAM_WHITE_LEVEL                 ((1<<CAM_SENSOR_BITS_PER_PIXEL)-1)      // 10bpp = 1023 ((1<<10)-1), 12bpp = 4095 ((1<<12)-1)
100    #define CAM_BLACK_LEVEL                 ((1<<(CAM_SENSOR_BITS_PER_PIXEL-5))-1)  // 10bpp = 31 ((1<<5)-1),    12bpp = 127 ((1<<7)-1)
101
102    #define CAM_BITMAP_PALETTE              1   // which color set is used for this camera
103
104    // Older cameras had a screen/bitmap buffer that was 360 pixels wide (or 480 for wide screen models)
105    // CHDK was built around this 360 pixel wide display model
106    // Newer cameras have a 720 pixel wide bitmap (960 for wide screen cameras)
107    // To accomadate this the CHDK co-ordinate system assumes a 360/480 wide buffer and the
108    // pixel drawing routines draw every pixel twice to scale the image up to the actual buffer size
109    // Define CAM_USES_ASPECT_CORRECTION with a value of 1 to enable this scaled display
110    #define CAM_USES_ASPECT_CORRECTION      0
111    #define CAM_SCREEN_WIDTH                360 // Width of bitmap screen in CHDK co-ordinates (360 or 480)
112    #define CAM_SCREEN_HEIGHT               240 // Height of bitmap screen in CHDK co-ordinates (always 240 on all cameras so far)
113    #define CAM_BITMAP_WIDTH                360 // Actual width of bitmap screen in bytes (may be larger than displayed area)
114    #define CAM_BITMAP_HEIGHT               240 // Actual height of bitmap screen in rows (240 or 270)
115
116    #define EDGE_HMARGIN                    0   // define sup and inf screen margins on edge overlay without overlay.  Necessary to save memory buffer space. sx200is needs values other than 0
117
118    #undef CAM_QUALITY_OVERRIDE                 // define this in platform_camera.h to enable 'Super Fine' JPEG compression mode
119                                                // used to allow super fine JPEG option on cameras where this has been removed
120                                                // from the Canon menu. Note: may not actually work on all cameras.
121
122    #undef  CAM_ZEBRA_NOBUF                     // zebra draws directly on bitmap buffer.
123    #undef  CAM_HAS_VARIABLE_ASPECT             // can switch between 16:9 and 4:3 (used by zebra code)
124   
125    #undef  CAM_DATE_FOLDER_NAMING              // set if camera uses date based folder naming (Option "Create Folder" in Canon Menu) and get_target_dir_name is implemented
126   
127    #define CAM_KEY_PRESS_DELAY             30  // delay after a press - TODO can we combine this with above ?
128    #define CAM_KEY_RELEASE_DELAY           30  // delay after a release - TODO do we really need to wait after release ?
129
130    #undef  CAM_STARTUP_CRASH_FILE_OPEN_FIX     // enable fix for camera intermittently crash at startup when opening the conf / font files
131                                                // Some cameras throw "ASSERT!! FsIoNotify.c Line xxx    Task name: SpyTask" in ROMLOG
132   
133    // RAW & DNG related values
134    #define DEFAULT_RAW_EXT                 1   // extension to use for raw (see raw_exts in conf.c)
135    #define DNG_BADPIXEL_VALUE_LIMIT        0   // Max value of 'bad' pixel - this value or lower is considered a defective pixel on the sensor
136    #undef  CAM_RAW_ROWPIX                      // Number of pixels in RAW row (physical size of the sensor Note : as of July 2011, this value can be found in stub_entry.S for dryos cameras)
137    #undef  CAM_RAW_ROWS                        // Number of rows in RAW (physical size of the sensor       Note : as of July 2011, this value can be found in stub_entry.S for dryos cameras)
138    #undef  CAM_JPEG_WIDTH                      // Default crop size (width) stored in DNG (to match camera JPEG size. From dimensions of the largest size jpeg your camera produces)
139    #undef  CAM_JPEG_HEIGHT                     // Default crop size (height) stored in DNG (to match camera JPEG size. From dimensions of the largest size jpeg your camera produces)
140    #undef  CAM_ACTIVE_AREA_X1                  // Define usable area of the sensor - needs to be divisible by 4 - calibrate using a CHDK RAW image converted with rawconvert.exe (eg :rawconvert -12to8 -pgm -w=4480 -h=3348 photo.crw photo.pgm)
141    #undef  CAM_ACTIVE_AREA_Y1                  // Define usable area of the sensor - needs to be divisible by 2 - "
142    #undef  CAM_ACTIVE_AREA_X2                  // Define usable area of the sensor - needs to be divisible by 4 - "
143    #undef  CAM_ACTIVE_AREA_Y2                  // Define usable area of the sensor - needs to be divisible by 2 = "
144    #undef  cam_CFAPattern                      // Camera Bayer sensor data layout (DNG colors are messed up if not correct)
145                                                //   should be 0x01000201 = [Green Blue Red Green], 0x02010100 = [Red Green Green Blue] or 0x01020001 = [Green Red Blue Green]
146    #undef  CAM_COLORMATRIX1                    // DNG color profile matrix
147    #undef  cam_CalibrationIlluminant1          // DNG color profile illuminant - set it to 17 for standard light A
148    #undef  CAM_COLORMATRIX2                    // DNG color profile matrix 2
149    #undef  cam_CalibrationIlluminant2          // DNG color profile illuminant 2 - set it to 21 for D65
150    #undef  CAM_CAMERACALIBRATION1              // DNG camera calibration matrix 1
151    #undef  CAM_CAMERACALIBRATION2              // DNG camera calibration matrix 2
152    #undef  CAM_FORWARDMATRIX1                  // DNG camera forward matrix 1
153    #undef  CAM_FORWARDMATRIX2                  // DNG camera forward matrix 2
154    #undef  CAM_DNG_EXPOSURE_BIAS               // Specify DNG exposure bias value (to override default of -0.5 in the dng.c code)
155    #undef  DNG_EXT_FROM                        // Extension in the cameras known extensions to replace with .DNG to allow DNG
156                                                // files to be transfered over standard PTP. Only applicable to older cameras
157
158    #undef  CAM_DNG_LENS_INFO                   // Define this to include camera lens information in DNG files
159                                                // Value should be an array of 4 DNG 'RATIONAL' values specifying
160                                                //   - min focal length in mm
161                                                //   - max focal length in mm
162                                                //   - max aperture at min focal length
163                                                //   - max aperture at max focal length
164                                                // E.G - SX30 = { 43,10, 1505,10, 27,10, 58,10 }
165                                                //            = 4.3 - 150.5mm, f/2.7 - f.5.8
166                                                // Each pair of integers is one 'RATIONAL' value (numerator,denominator)
167
168    #undef  PARAM_CAMERA_NAME                   // parameter number for GetParameterData to get camera name
169    #undef  PARAM_OWNER_NAME                    // parameter number for GetParameterData to get owner name
170    #undef  PARAM_ARTIST_NAME                   // parameter number for GetParameterData to get artist name
171    #undef  PARAM_COPYRIGHT                     // parameter number for GetParameterData to get copyright
172    #undef  PARAM_DISPLAY_MODE1                 // param number for LCD display mode when camera in playback
173    #undef  PARAM_DISPLAY_MODE2                 // param number for LCD display mode when camera in record view hold mode
174
175    #undef  CAM_NO_MEMPARTINFO                  // VXWORKS camera does not have memPartInfoGet, fall back to memPartFindMax
176
177    #undef  CAM_DRIVE_MODE_FROM_TIMER_MODE      // use PROPCASE_TIMER_MODE to check for multiple shot custom timer.
178                                                // Used to enabled bracketing in custom timer, required on many recent cameras
179                                                // see http://chdk.setepontos.com/index.php/topic,3994.405.html
180
181    #undef  CAM_AV_OVERRIDE_IRIS_FIX            // for cameras that require _MoveIrisWithAv function to override Av (for bracketing).
182
183    #undef  CAM_DISABLE_RAW_IN_LOW_LIGHT_MODE   // For cameras with 'low light' mode that does not work with raw define this
184    #undef  CAM_DISABLE_RAW_IN_HQ_BURST         // For cameras with 'HQ Burst' mode that does not work with raw define this
185    #undef  CAM_DISABLE_RAW_IN_HANDHELD_NIGHT_SCN // For cameras with 'HandHeld Night Scene' mode that does not work with raw define this
186    #undef  CAM_ISO_LIMIT_IN_HQ_BURST           // Defines max ISO override value for HQ Burst mode (higher values crash camera)
187    #undef  CAM_MIN_ISO_OVERRIDE                // Defines min (non-zero) ISO override value - lower value may crash if flash used [0 = AUTO, so always allowed]
188   
189    #undef  CAM_HAS_GPS                         // for cameras with GPS reseiver: includes the GPS coordinates in in DNG file
190
191    #undef  CHDK_COLOR_BASE                     // Start color index for CHDK colors loaded into camera palette.
192
193    #undef  CAM_LOAD_CUSTOM_COLORS              // Define to enable loading CHDK custom colors into the camera color palette
194                                                // requires load_chdk_palette() and vid_get_bitmap_active_palette() to be defined
195                                                // correctly for the camera along with
196
197    #define CAM_USB_EVENTID         0x902       // Levent ID for USB control. Changed to 0x202 in DryOS R49 so needs to be overridable.
198
199    #undef  CAM_NEED_SET_ZOOM_DELAY             // Define to add a delay after setting the zoom position before resetting the focus position in shooting_set_zoom
200
201    #undef  CAM_USE_ALT_SET_ZOOM_POINT          // Define to use the alternate code in lens_set_zoom_point()
202    #undef  CAM_USE_ALT_PT_MoveOpticalZoomAt    // Define to use the PT_MoveOpticalZoomAt() function in lens_set_zoom_point()
203    #undef  CAM_USE_OPTICAL_MAX_ZOOM_STATUS     // Use ZOOM_OPTICAL_MAX to reset zoom_status when switching from digital to optical zoom in gui_std_kbd_process()
204
205    #define CAM_MARKET_ISO_BASE             100 // Base 'market' ISO value (SX40 & G1X use 200)
206    #undef  CAM_HAS_HI_ISO_AUTO_MODE            // Define if camera has 'HI ISO Auto' mode (as well as Auto ISO mode), needed for adjustment in user auto ISO menu
207    #undef  USE_REAL_AUTOISO                    // Define this to use real-iso instead of marketing-iso as values of autoiso mechanizm
208    #undef  OVEREXP_COMPENSATE_OVERALL          // Define this to make overexposure_compensation work for all scenes, instead of day-light only
209
210    #define CAMERA_MIN_DIST         0           // Define min distance that can be set in _MoveFocusLensToDistance (allow override - e.g. G12 min dist = 1)
211    #define CAMERA_MAX_DIST         65535       // Define max distance that can be set in _MoveFocusLensToDistance (allow override for superzooms - SX30/SX40)
212
213        #undef  DRAW_ON_ACTIVE_BITMAP_BUFFER_ONLY       // Draw pixels on active bitmap buffer only.
214                                                // Requires bitmap_buffer & active_bitmap_buffer location in stubs_min.S or stubs_entry.S.
215       
216    #undef  CAM_ZOOM_ASSIST_BUTTON_CONTROL      // Activate menu option to enable/disable the zoom assist button on the SX30/SX40
217                                                // For other cameras, requires additional support code in kbd.c (see the SX30 or SX40 version)
218
219    #undef  CAM_MISSING_RAND                    // Define this if srand()/rand() functions not found in firmware (a810/a2300)
220    #undef  MKDIR_RETURN_ONE_ON_SUCCESS         // Define this if mkdir() return 1 on success, 0 on fail (a810/a1300)
221
222    #undef  CAM_OPTIONAL_EXTRA_BUTTON           // extra button (remapped, for use in ALT mode) can be set from menu, must set next two values as well
223    #undef  CAM_EXTRA_BUTTON_NAMES              // Define the list of names for the extra button   - e.g. { "Off", "Display" }
224    #undef  CAM_EXTRA_BUTTON_OPTIONS            // Define the list of button constants for the extra button, starting with 0 - e.g. { 0, KEY_DISPLAY }
225
226    #define CAM_AF_LED                      -1  // ***** NOTE ***** Need to override this in platform_camera.h with correct value
227                                                // Defines 'led' Index value for camera_set_led function to control the AutoFocus assist LED
228                                                // Used for the Motion Detect & Live View buffer testing
229
230    // Keyboard repeat and initial delays (override in platform_camera.h if needed)
231    #define KBD_REPEAT_DELAY                175
232    #define KBD_INITIAL_DELAY               500
233
234//----------------------------------------------------------
235// Overridden values for each camera
236//----------------------------------------------------------
237
238// Include the settings file for the camera model currently being compiled.
239#include "platform_camera.h"
240
241//==========================================================
242// END of Camera-dependent settings
243//==========================================================
244
245// For newer cameras where the screen bitmap is double the width we need to scale
246// the CHDK horizontal (X) co-ordinates
247#if CAM_USES_ASPECT_CORRECTION
248    #define ASPECT_XCORRECTION(x)   ((x)<<1)    // See comments for CAM_USES_ASPECT_CORRECTION above
249#else
250    #define ASPECT_XCORRECTION(x)   (x)         // See comments for CAM_USES_ASPECT_CORRECTION above
251#endif
252
253// curves only work in 10bpp for now
254#if CAM_SENSOR_BITS_PER_PIXEL != 10
255    #undef OPT_CURVES
256#endif
257
258#ifndef OPT_PTP
259    #undef CAM_CHDK_PTP
260#endif
261
262// Define default video AF scan buttons if not already defined in platform_camera.h
263#if CAM_AF_SCAN_DURING_VIDEO_RECORD
264    #ifndef CAM_VIDEO_AF_BUTTON_NAMES
265        #define CAM_VIDEO_AF_BUTTON_NAMES   { "", "Shutter", "Set" }
266        #define CAM_VIDEO_AF_BUTTON_OPTIONS { 0, KEY_SHOOT_HALF, KEY_SET }
267    #endif
268#endif
269
270// Define default value for DISP button name in shortcut text unless aready set in platform_camera.h
271// e.g. G1X uses Meter button as DISP in CHDK
272#ifndef CAM_DISP_BUTTON_NAME
273    #define CAM_DISP_BUTTON_NAME            "DISP"
274#endif
275
276//-------------------------------------------------------------------
277// Keyboard / Button shortcuts - define in platform_camera.h
278// if the default values are not suitable
279// Default values are set below if not overridden
280//------------------------------------------------------------------
281
282// For models without ZOOM_LEVER  (#if !CAM_HAS_ZOOM_LEVER)
283// SHORTCUT_SET_INFINITY is not used
284// KEY_DISPLAY is used for gui_subj_dist_override_koef_enum;
285// KEY_LEFT/KEY_RIGHT is used for gui_subj_dist_override_value_enum (because of no separate ZOOM_IN/OUT)
286
287// Define keyboard / button shortcut values not already set above
288
289//Alt mode
290#if !defined(SHORTCUT_TOGGLE_RAW)
291    #if CAM_HAS_ERASE_BUTTON
292        #define SHORTCUT_TOGGLE_RAW         KEY_ERASE
293    #else
294        #define SHORTCUT_TOGGLE_RAW         KEY_DISPLAY
295    #endif
296#endif
297#if !defined(CAM_HAS_MANUAL_FOCUS) && !defined(SHORTCUT_MF_TOGGLE)
298    #if CAM_HAS_ERASE_BUTTON
299        #define SHORTCUT_MF_TOGGLE          KEY_DISPLAY
300    #else
301        #define SHORTCUT_MF_TOGGLE          KEY_UP
302    #endif
303#endif
304
305//Half press shoot button   
306#if !defined(SHORTCUT_TOGGLE_HISTO)
307    #if CAM_HAS_ERASE_BUTTON
308        #define SHORTCUT_TOGGLE_HISTO       KEY_UP
309    #else
310        #define SHORTCUT_TOGGLE_HISTO       KEY_MENU
311    #endif
312#endif
313#if !defined(SHORTCUT_TOGGLE_ZEBRA)
314    #define SHORTCUT_TOGGLE_ZEBRA       KEY_LEFT
315#endif
316#if !defined(SHORTCUT_TOGGLE_OSD)
317    #define SHORTCUT_TOGGLE_OSD         KEY_RIGHT
318#endif
319#if !defined(SHORTCUT_DISABLE_OVERRIDES)
320    #define SHORTCUT_DISABLE_OVERRIDES  KEY_DOWN
321#endif
322
323//Alt mode & Manual mode 
324#if !defined(SHORTCUT_SET_INFINITY)
325    #if CAM_HAS_ERASE_BUTTON
326        #define SHORTCUT_SET_INFINITY       KEY_UP
327    #else
328        #define SHORTCUT_SET_INFINITY       KEY_DISPLAY
329    #endif
330#endif
331#if !defined(SHORTCUT_SET_HYPERFOCAL)
332    #define SHORTCUT_SET_HYPERFOCAL     KEY_DOWN
333#endif
334
335#if CAM_HAS_ZOOM_LEVER
336    #define SHORTCUT_SD_SUB KEY_ZOOM_OUT
337    #define SHORTCUT_SD_ADD KEY_ZOOM_IN
338#endif
339
340//==========================================================
341#include "camera_info.h"
342//==========================================================
343
344#endif /* CAMERA_H */
Note: See TracBrowser for help on using the repository browser.