root/platform/sx30/platform_camera.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


   1 // Camera - sx30 - platform_camera.h
   2 
   3 // This file contains the various settings values specific to the sx30 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                         4
  24     #define CAM_DRYOS                           1
  25     #define CAM_DRYOS_2_3_R39                   1
  26 
  27     #define DRAW_ON_ACTIVE_BITMAP_BUFFER_ONLY   1   // Draw pixels on active bitmap buffer only.
  28 
  29     #undef  CAM_AF_LED
  30     #define CAM_AF_LED                          1   // Index of AF led in camera_set_led function
  31 
  32     #define CAM_SWIVEL_SCREEN                   1
  33     #define CAM_ADJUSTABLE_ALT_BUTTON           1
  34     #define CAM_ALT_BUTTON_NAMES                { "Shrtcut", "Flash", "Video"}
  35     #define CAM_ALT_BUTTON_OPTIONS              { KEY_PRINT, KEY_FLASH, KEY_VIDEO }
  36     #undef  CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO
  37     #define CAM_HAS_VIDEO_BUTTON                1
  38     #define CAM_VIDEO_QUALITY_ONLY              1
  39     #define CAM_BRACKETING                      1
  40     #undef  CAM_VIDEO_CONTROL
  41     #define CAM_MULTIPART                       1
  42     #define CAM_HAS_JOGDIAL                     1
  43     #undef  CAM_USE_ZOOM_FOR_MF
  44     #undef  CAM_UNCACHED_BIT
  45     #define CAM_UNCACHED_BIT                    0x40000000
  46     #define CAM_SHOW_OSD_IN_SHOOT_MENU          1
  47 
  48     #undef  DEFAULT_RAW_EXT
  49     #define DEFAULT_RAW_EXT                     2   // use .CR2
  50 
  51     #define CAM_MIN_ISO_OVERRIDE                80  // Defines min market (non-zero) ISO override value - lower value may crash if flash used [0 = AUTO, so always allowed]
  52 
  53     // bayer sensor pattern
  54     #define cam_CFAPattern                      0x01000201  // Green  Blue  Red  Green
  55 
  56     #define CAM_DNG_EXPOSURE_BIAS               0,1 // Specify DNG exposure bias value to 0 (to override default of -0.5 in the dng.c code)
  57 
  58     #define CAM_DNG_LENS_INFO                   { 43,10, 1505,10, 27,10, 58,10 }    // See comments in camera.h
  59 
  60     // color
  61 
  62     // TODO - Still needs work
  63     #define cam_CalibrationIlluminant1          1   // Daylight
  64 
  65     #define CAM_COLORMATRIX1                                \
  66      1301431, 1000000,  -469837, 1000000, -102652, 1000000, \
  67      -200195, 1000000,   961551, 1000000,  238645, 1000000, \
  68       -16441, 1000000,   142319, 1000000,  375979, 1000000
  69 
  70     // Sensor size, DNG image size & cropping
  71     #define CAM_RAW_ROWPIX                      4464
  72     #define CAM_RAW_ROWS                        3276
  73     #define CAM_JPEG_WIDTH                      4320
  74     #define CAM_JPEG_HEIGHT                     3240
  75     #define CAM_ACTIVE_AREA_X1                  24
  76     #define CAM_ACTIVE_AREA_Y1                  10
  77     #define CAM_ACTIVE_AREA_X2                  (CAM_RAW_ROWPIX-72)
  78     #define CAM_ACTIVE_AREA_Y2                  (CAM_RAW_ROWS-12)
  79 
  80     // camera name
  81     #define PARAM_CAMERA_NAME                   4   // parameter number for GetParameterData - Camera Model name
  82     #define PARAM_OWNER_NAME                    7   // parameter number for GetParameterData - Owner name
  83     #define PARAM_DISPLAY_MODE1                 59  // param number for LCD display mode when camera in playback
  84     #define PARAM_DISPLAY_MODE2                 62  // param number for LCD display mode when camera in record view hold mode
  85     #undef  CAM_SENSOR_BITS_PER_PIXEL
  86     #define CAM_SENSOR_BITS_PER_PIXEL           12
  87 
  88     #define CAM_QUALITY_OVERRIDE                1
  89 
  90     // copied from the SX200 which has the same video buffer size
  91     #undef  CAM_USES_ASPECT_CORRECTION
  92     #define CAM_USES_ASPECT_CORRECTION          1   //camera uses the modified graphics primitives to map screens an viewports to buffers more sized
  93     #undef CAM_BITMAP_WIDTH
  94     #undef CAM_BITMAP_HEIGHT
  95     #define CAM_BITMAP_WIDTH                    960 // Actual width of bitmap screen in bytes
  96     #define CAM_BITMAP_HEIGHT                   270 // Actual height of bitmap screen in rows
  97 
  98     #undef  EDGE_HMARGIN
  99     #define EDGE_HMARGIN                        2
 100 
 101     #define CAM_DATE_FOLDER_NAMING              0x400 //Value found in the last function, which is called in GetImageFolder. (first compare)
 102 
 103     #undef  CAM_KEY_PRESS_DELAY
 104     #define CAM_KEY_PRESS_DELAY                 60  // delay after a press
 105 
 106     #define CAM_DRIVE_MODE_FROM_TIMER_MODE      1   // use PROPCASE_TIMER_MODE to check for multiple shot custom timer.
 107                                                     // Used to enabled bracketing in custom timer, required on many recent cameras
 108                                                     // see http://chdk.setepontos.com/index.php/topic,3994.405.html
 109 
 110     #define CAM_AV_OVERRIDE_IRIS_FIX            1   // for cameras that require _MoveIrisWithAv function to override Av.
 111 
 112     #define CAM_DISABLE_RAW_IN_LOW_LIGHT_MODE   1   // For cameras with 'low light' mode that does now work with raw define this
 113 
 114     #define CAM_LOAD_CUSTOM_COLORS              1   // Enable loading CHDK colors into the camera palette memory/hardware
 115 
 116 //    #define REMOTE_SYNC_STATUS_LED     0xC0xxyyyy        // specifies an LED that turns on while camera waits for USB remote to sync
 117 
 118     #define CAM_NEED_SET_ZOOM_DELAY             300 // SX30 needs a short delay after setting the zoom before resetting focus in shooting_set_zoom()
 119     #define CAM_USE_ALT_SET_ZOOM_POINT          1   // Define to use the alternate code in lens_set_zoom_point()
 120     #define CAM_USE_ALT_PT_MoveOpticalZoomAt    1   // Define to use the PT_MoveOpticalZoomAt() function in lens_set_zoom_point()
 121 
 122     #undef  CAMERA_MIN_DIST
 123     #define CAMERA_MIN_DIST                     95  // Override min subject distance
 124     #undef  CAMERA_MAX_DIST
 125     #define CAMERA_MAX_DIST                     9090910 // Override max subject distance
 126 
 127     #define CAM_ZOOM_ASSIST_BUTTON_CONTROL      1   // Activate the menu option to allow disabling the zoom assist button
 128 
 129     #define CAM_HAS_SPORTS_MODE                 1   // Camera has SPORTS mode, enable RAW exception override control
 130 
 131     // Define shortcut overrides where defaults are not suitable
 132     #define SHORTCUT_TOGGLE_ZEBRA               KEY_ERASE   // On camera Shutter Half Press + Up = switch MF on/off
 133 
 134     #define CAM_HAS_FILEWRITETASK_HOOK          1   // file write hook for remote capture etc
 135 
 136     #define CAM_SD_OVER_IN_AFL                  1
 137     #define CAM_SD_OVER_IN_MF                   1
 138 
 139     #define CAM_IS_VID_REC_WORKS            1   // is_video_recording() function works
 140 //--------------------------------------------------

/* [<][>][^][v][top][bottom][index][help] */