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

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