root/platform/g16/platform_camera.h

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

INCLUDED FROM


   1 // Camera - g16 - platform_camera.h
   2 
   3 // This file contains the various settings values specific to the G16 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_AV_OVERRIDE_IRIS_FIX            1
  24     #define CAM_HAS_ND_FILTER                   1           // Camera has built-in ND filter (in addition to iris)
  25     #undef  CAM_KEY_PRESS_DELAY
  26     #define CAM_KEY_PRESS_DELAY                 60          // delay after a press
  27     
  28     #define CAM_ADJUSTABLE_ALT_BUTTON           1
  29     #define CAM_ALT_BUTTON_NAMES                {  "Video",   "Playback",   "Shortcut" }
  30     #define CAM_ALT_BUTTON_OPTIONS              {  KEY_VIDEO, KEY_PLAYBACK, KEY_PRINT }
  31     
  32     #define CAM_DRIVE_MODE_FROM_TIMER_MODE      1
  33 
  34     // zebra and histo don't currently work, and default zebra shortcut conflicts with canon AF lock
  35     #define SHORTCUT_TOGGLE_HISTO               KEY_DUMMY
  36     #define SHORTCUT_TOGGLE_ZEBRA               KEY_DUMMY
  37 
  38     #define CAM_DRYOS                           1
  39     #define CAM_DRYOS_2_3_R39                   1
  40     #define CAM_DRYOS_2_3_R47                   1
  41     #define CAM_PROPSET                         6
  42 
  43     #define CAM_HAS_CMOS                        1
  44 
  45     #define CAM_HAS_NATIVE_ND_FILTER            1   // Camera has built-in ND filter with Canon menu support for enable/disable
  46 
  47     #undef  CAM_CHDK_HAS_EXT_VIDEO_MENU
  48     #undef  CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO
  49     #define CAM_HAS_VIDEO_BUTTON                1
  50     #undef  CAM_VIDEO_CONTROL
  51 
  52     #define CAM_HAS_JOGDIAL                     1
  53     #undef  CAM_USE_ZOOM_FOR_MF
  54 
  55     #undef  CAM_UNCACHED_BIT
  56     #define CAM_UNCACHED_BIT                    0x40000000
  57 
  58 /*
  59 
  60   From Canon CR2 image converted to DNG by Adobe DNG Converter
  61 
  62    Calibration Illuminant 1        : Standard Light A  ( = 17)
  63    Calibration Illuminant 2        : D65               ( = 21)
  64 
  65    Color Matrix 1 : 0.9249 -0.4361  0.0549 -0.2474 0.9924 0.2983 -0.0142 0.0935 0.6104
  66    Color Matrix 2 : 0.8020 -0.2687 -0.0682 -0.3704 1.1879 0.2052 -0.0965 0.1921 0.5556
  67 
  68 */
  69 
  70     #define CAM_DNG_LENS_INFO                { 61,10,305,10,18,10,28,10 }
  71     #define cam_CFAPattern                   0x02010100
  72     #define CAM_DNG_EXPOSURE_BIAS           0,1          // Specify DNG exposure bias value to 0 (to override default of -0.5 in the dng.c codei
  73 
  74     #define cam_CalibrationIlluminant1        17
  75     #define CAM_COLORMATRIX1                  \
  76       9249, 10000, -4361, 10000 ,  549, 10000, \
  77      -2474, 10000,  9924, 10000,  2983, 10000, \
  78       -142, 10000,   935, 10000,  6104, 10000
  79 
  80     #define cam_CalibrationIlluminant2         21
  81     # define CAM_COLORMATRIX2                  \
  82       8020, 10000,  -2687, 10000,  -682, 10000, \
  83      -3704, 10000,  11879, 10000,  2052, 10000, \
  84       -965, 10000,   1921, 10000,  5556, 10000
  85 
  86 /*
  87   From exif info in Canon CR2 image
  88 
  89     Cropped Image Width             : 4000
  90     Cropped Image Height            : 3000
  91     Sensor Width                    : 4192
  92     Sensor Height                   : 3062
  93     Sensor Left Border              : 132
  94     Sensor Top Border               : 40
  95     Sensor Right Border             : 4131
  96     Sensor Bottom Border            : 3039
  97     Black Mask Left Border          : 120
  98     Black Mask Top Border           : 2
  99     Black Mask Right Border         : 4143
 100     Black Mask Bottom Border        : 15
 101 */
 102 
 103     #define CAM_RAW_ROWPIX                      4192
 104     #define CAM_RAW_ROWS                        3062
 105 
 106     #define CAM_JPEG_WIDTH                      4000
 107     #define CAM_JPEG_HEIGHT                     3000
 108 
 109     #define CAM_ACTIVE_AREA_X1                  96
 110     #define CAM_ACTIVE_AREA_Y1                  18
 111     #define CAM_ACTIVE_AREA_X2                  4168
 112     #define CAM_ACTIVE_AREA_Y2                  3062
 113 
 114     #define PARAM_CAMERA_NAME                   3
 115     #define CAM_DATE_FOLDER_NAMING              0x80
 116     #define CAM_FILE_COUNTER_IS_VAR             1     // file counter is variable file_counter_var in stubs, not a param
 117     #undef  CAM_SENSOR_BITS_PER_PIXEL
 118     #define CAM_SENSOR_BITS_PER_PIXEL           12
 119 
 120     #define CAM_EXT_TV_RANGE                    1
 121 
 122     #undef  CAM_HAS_ERASE_BUTTON
 123     #define CAM_SHOW_OSD_IN_SHOOT_MENU          1
 124 
 125     #define DRAW_ON_ACTIVE_BITMAP_BUFFER_ONLY   1           // Draw pixels on active bitmap buffer only.
 126     //#undef  CAM_USES_ASPECT_CORRECTION
 127     //#define CAM_USES_ASPECT_CORRECTION          1
 128     #define DRAW_ON_YUV_OVERLAY                 1
 129     #undef  CAM_BITMAP_WIDTH
 130     #undef  CAM_BITMAP_HEIGHT
 131     #undef  CAM_SCREEN_WIDTH
 132     #undef  CAM_SCREEN_HEIGHT
 133     #define CAM_BITMAP_WIDTH                    640 // Actual width of bitmap screen in <s>bytes</s> pixels
 134     #define CAM_BITMAP_HEIGHT                   480 // Actual height of bitmap screen in rows
 135     #define CAM_SCREEN_WIDTH                    640 // Width of bitmap screen in CHDK co-ordinates (360 or 480)
 136     #define CAM_SCREEN_HEIGHT                   480 // Height of bitmap screen in CHDK co-ordinates (always 240 on all cameras so far)
 137     //#define CAM_SUPPORT_BITMAP_RES_CHANGE       1
 138 
 139     #undef  EDGE_HMARGIN
 140     #define EDGE_HMARGIN                        10
 141 
 142     #define CAM_HAS_FILEWRITETASK_HOOK          1
 143     //#define CAM_FILEWRITETASK_SEEKS             1
 144 
 145     #undef  CAM_BITMAP_PALETTE
 146     #define CAM_BITMAP_PALETTE                  100
 147 
 148     #define CAM_ZEBRA_NOBUF                     1
 149 
 150     //#define CAM_QUALITY_OVERRIDE                1
 151 
 152     #undef  CAMERA_MIN_DIST
 153     #define CAMERA_MIN_DIST                     100         // Override min subject distance
 154     #undef  CAMERA_MAX_DIST
 155     #define CAMERA_MAX_DIST                     1550000     // Override max subject distance; manually checked up to 1550388, with MF max 1369863 (double step)
 156 
 157     //#define CAM_HAS_GPS                         1
 158     
 159     #define CAM_HOTSHOE_OVERRIDE            1
 160     
 161     //#define CAM_CHDK_HAS_EXT_VIDEO_TIME         1
 162     #define CAM_SIMPLE_MOVIE_STATUS             1
 163 
 164     #undef  CAM_USB_EVENTID
 165     #define CAM_USB_EVENTID                     0x202       // Levent ID for USB control. Changed in DryOS R49, R50 so needs to be overridable.
 166 
 167     #define CAM_HAS_MOVIE_DIGEST_MODE           1
 168 
 169     #define CAM_NEED_SET_ZOOM_DELAY             300
 170 
 171     #define MKDIR_RETURN_ONE_ON_SUCCESS         1    // mkdir() return 1 on success, 0 on fail.
 172 
 173     #undef  REMOTE_SYNC_STATUS_LED
 174     // #define REMOTE_SYNC_STATUS_LED              0xC022C30C  // TODO specifies an LED that turns on while camera waits for USB remote to sync
 175 
 176 // AF led, for MD test code
 177     #undef CAM_AF_LED
 178     #define CAM_AF_LED                          1
 179 
 180     #define CAM_SD_OVER_IN_AF  1
 181     #define CAM_SD_OVER_IN_MF  1
 182 
 183     #define CAM_HAS_CANON_RAW                   1   // has native Canon raw
 184 
 185     #define CAM_HAS_WIFI                        1   // Camera has wifi support
 186 

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