root/platform/m10/platform_camera.h

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

INCLUDED FROM


   1 // Camera - EOS M10 - platform_camera.h
   2 
   3 // This file contains the various settings values specific to the SX260HS 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     #define CAM_ILC                             1 // Camera uses interchangable lenses (EOS M series)
  23 
  24     #define CAM_DISABLE_RAW_IN_LOW_LIGHT_MODE   1
  25     #define CAM_AV_OVERRIDE_IRIS_FIX            1
  26     #undef CAM_HAS_ND_FILTER                             // Camera does not have built-in ND filter, obviously
  27     #undef  CAM_KEY_PRESS_DELAY
  28     #define CAM_KEY_PRESS_DELAY                 60          // delay after a press
  29     #define CAM_ADJUSTABLE_ALT_BUTTON           1
  30     #define CAM_ALT_BUTTON_NAMES                { "Playback", "Video", "Wifi" }
  31     #define CAM_ALT_BUTTON_OPTIONS              { KEY_PLAYBACK, KEY_VIDEO, KEY_WIFI }
  32     #undef  CAM_HAS_ERASE_BUTTON
  33     #undef  CAM_HAS_DISP_BUTTON
  34     #undef  CAM_DEFAULT_ALT_BUTTON
  35     #define CAM_DEFAULT_ALT_BUTTON              KEY_PLAYBACK
  36     #define SHORTCUT_TOGGLE_RAW                 KEY_VIDEO
  37     #define CAM_HAS_VIDEO_BUTTON                1
  38     #define CAM_DRIVE_MODE_FROM_TIMER_MODE      1
  39 
  40     // half press shortcuts (zebra assigned to a non-conflicting button, CHDK histogram makes no sense)
  41     #define SHORTCUT_TOGGLE_HISTO               KEY_DUMMY
  42     #define SHORTCUT_TOGGLE_ZEBRA               KEY_UP
  43 
  44     #define CAM_DRYOS                           1
  45     #define CAM_DRYOS_2_3_R39                   1
  46     #define CAM_DRYOS_2_3_R47                   1
  47     #define CAM_PROPSET                         10
  48 
  49     #define CAM_RAW_ROWPIX                      5280
  50     #define CAM_RAW_ROWS                        3528
  51 
  52     #define CAM_HAS_CMOS                        1
  53 
  54     #undef  CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO
  55 
  56     //#undef  CAM_CHDK_HAS_EXT_VIDEO_MENU
  57     #define CAM_MOVIEREC_NEWSTYLE               1
  58     #undef  CAM_VIDEO_CONTROL
  59     #define CAM_SIMPLE_MOVIE_STATUS             1
  60 
  61     #define CAM_HAS_JOGDIAL                     1
  62     #undef  CAM_USE_ZOOM_FOR_MF
  63 
  64     #undef  CAM_UNCACHED_BIT
  65     #define CAM_UNCACHED_BIT                    0x40000000
  66 
  67     #define CAM_DNG_LENS_INFO                   { 150,10,450,10,35,10,63,10 } // kit lens for now...
  68 
  69     #define cam_CFAPattern                      0x02010100
  70 
  71     // values from dcraw for M10 Canon RAW files
  72     #define CAM_COLORMATRIX1 \
  73          6400,  1000000,     -480,  1000000,     -888,  1000000, \
  74         -5294,  1000000,    13416,  1000000,     2047,  1000000, \
  75         -1296,  1000000,     2203,  1000000,     6137,  1000000
  76 
  77     #define cam_CalibrationIlluminant1          17      // standard light A
  78 
  79     //#define CAM_CALC_BLACK_LEVEL                1
  80     #undef CAM_BLACK_LEVEL
  81     #define CAM_BLACK_LEVEL                     2047    // not tested under all conditions
  82 
  83     #define CAM_JPEG_WIDTH                      5184
  84     #define CAM_JPEG_HEIGHT                     3456
  85 
  86 //Exiftool:
  87 //Sensor Width                    : 5280
  88 //Sensor Height                   : 3528
  89 //Sensor Left Border              : 84
  90 //Sensor Top Border               : 62
  91 //Sensor Right Border             : 5267
  92 //Sensor Bottom Border            : 3517
  93 
  94     // below is more relaxed than the values reported by Exiftool, but still cuts off a few usable pixels
  95     #define CAM_ACTIVE_AREA_X1                  76
  96     #define CAM_ACTIVE_AREA_Y1                  52
  97     #define CAM_ACTIVE_AREA_X2                  5272
  98     #define CAM_ACTIVE_AREA_Y2                  3522
  99 
 100     #define PARAM_CAMERA_NAME                   3
 101     #define CAM_DATE_FOLDER_NAMING              0x80
 102     #define CAM_FILE_COUNTER_IS_VAR             1     // file counter is variable file_counter_var in stubs, not a param
 103     #undef  CAM_SENSOR_BITS_PER_PIXEL
 104     #define CAM_SENSOR_BITS_PER_PIXEL           14
 105 
 106     // "real" to "market" conversion definitions, market seems to be close enough to real
 107     #define SV96_MARKET_OFFSET                  0
 108     #define ISO_MARKET_TO_REAL_MULT             1
 109     #define ISO_MARKET_TO_REAL_SHIFT            0
 110     #define ISO_MARKET_TO_REAL_ROUND            0
 111     #define ISO_REAL_TO_MARKET_MULT             1
 112     #define ISO_REAL_TO_MARKET_SHIFT            0
 113     #define ISO_REAL_TO_MARKET_ROUND            0
 114 
 115     #define CAM_EXT_TV_RANGE                    1 // note: exp_drv_task not implemented
 116 
 117     #undef  CAM_HAS_ERASE_BUTTON
 118     #define CAM_SHOW_OSD_IN_SHOOT_MENU          1
 119 
 120     #define DRAW_ON_ACTIVE_BITMAP_BUFFER_ONLY   1           // Draw pixels on active bitmap buffer only.
 121     //#undef  CAM_USES_ASPECT_CORRECTION
 122     //#define CAM_USES_ASPECT_CORRECTION          1
 123     #undef  CAM_BITMAP_WIDTH
 124     #undef  CAM_BITMAP_HEIGHT
 125     #undef  CAM_SCREEN_WIDTH
 126     #undef  CAM_SCREEN_HEIGHT
 127     #define CAM_BITMAP_WIDTH                    736 // Actual width of bitmap screen in <s>bytes</s> pixels
 128     #define CAM_BITMAP_HEIGHT                   480 // Actual height of bitmap screen in rows
 129     #define CAM_SCREEN_WIDTH                    720 // Width of bitmap screen in CHDK co-ordinates (360 or 480)
 130     #define CAM_SCREEN_HEIGHT                   480 // Height of bitmap screen in CHDK co-ordinates (always 240 on all cameras so far)
 131     #define CAM_SUPPORT_BITMAP_RES_CHANGE       1
 132 
 133     #undef  EDGE_HMARGIN
 134     #define EDGE_HMARGIN                        16
 135 
 136     #undef  CAM_BITMAP_PALETTE
 137     #define CAM_BITMAP_PALETTE                  100
 138 
 139     #define CAM_ZEBRA_NOBUF                     1
 140 
 141     //#define CAM_QUALITY_OVERRIDE                1
 142 
 143     #undef  CAMERA_MIN_DIST
 144     #define CAMERA_MIN_DIST                     1           // ?
 145     #undef  CAMERA_MAX_DIST
 146     #define CAMERA_MAX_DIST                     1550000     // ?
 147 
 148     //#define CAM_CHDK_HAS_EXT_VIDEO_TIME         1
 149 
 150     #undef  CAM_USB_EVENTID
 151     #define CAM_USB_EVENTID                     0x202       // Levent ID for USB control. Changed in DryOS R49, R50 so needs to be overridable.
 152 
 153     #define CAM_HAS_MOVIE_DIGEST_MODE           1
 154 
 155     #define MKDIR_RETURN_ONE_ON_SUCCESS         1    // mkdir() return 1 on success, 0 on fail.
 156 
 157     #undef  REMOTE_SYNC_STATUS_LED
 158 
 159     #define CAM_SD_OVER_IN_AF  1
 160     #define CAM_SD_OVER_IN_MF  1
 161 
 162     #define CAM_HAS_CANON_RAW                   1   // has native Canon raw
 163 
 164     #define CAM_CLEAN_OVERLAY                   1
 165 
 166     #define CAM_HAS_WIFI                        1   // Camera has wifi support
 167 

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