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

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