root/platform/s100/platform_camera.h

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

INCLUDED FROM


   1 // Camera - s100 - platform_camera.h
   2 
   3 // This file contains the various settings values specific to the s100 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_DRYOS                       1
  24     #define CAM_DRYOS_2_3_R39               1 // Defined for cameras with DryOS version R39 or higher
  25     #define CAM_DRYOS_2_3_R47               1 // Defined for cameras with DryOS version R47 or higher
  26 
  27     #undef  CAM_CIRCLE_OF_CONFUSION
  28     #define CAM_CIRCLE_OF_CONFUSION         7   // CoC value for camera/sensor (see http://www.dofmaster.com/digital_coc.html)
  29 
  30     #define CAM_RAW_ROWPIX                  4160 // Found @0xff190f44
  31     #define CAM_RAW_ROWS                    3124 // Found @0xff190f4c
  32     #undef  CAM_UNCACHED_BIT
  33     #define CAM_UNCACHED_BIT                0x40000000 // Found @0xff02bd84
  34     #define CAM_PROPSET                     4
  35     #define CAM_DRYOS                       1
  36     #undef  CAM_USE_ZOOM_FOR_MF
  37     #define CAM_QUALITY_OVERRIDE            1
  38     #define CAM_HAS_JOGDIAL                 1
  39     #undef  CAM_KEY_PRESS_DELAY
  40     #define CAM_KEY_PRESS_DELAY             60      // delay after a press
  41 
  42     #define CAM_ADJUSTABLE_ALT_BUTTON       1
  43     #define CAM_ALT_BUTTON_NAMES            { "Playback", "Video" }
  44     #define CAM_ALT_BUTTON_OPTIONS          { KEY_PRINT, KEY_VIDEO }
  45     #define CAM_DISP_BUTTON_NAME            "Video"
  46     #define CAM_BRACKETING                  1
  47     #define CAM_HAS_VIDEO_BUTTON            1
  48     #undef  CAM_VIDEO_CONTROL
  49     #define CAM_VIDEO_QUALITY_ONLY          1
  50     #define CAM_HAS_MOVIE_DIGEST_MODE       1
  51     #define CAM_SHOW_OSD_IN_SHOOT_MENU      1
  52 
  53     #define CAM_HAS_ND_FILTER               1
  54     #define  CAM_HAS_NATIVE_ND_FILTER       1
  55 
  56     // camera name
  57     #define PARAM_CAMERA_NAME               4 // parameter number for GetParameterData
  58     #undef  CAM_SENSOR_BITS_PER_PIXEL
  59     #define CAM_SENSOR_BITS_PER_PIXEL       12
  60 
  61     #undef  CAM_USES_ASPECT_CORRECTION
  62     #define CAM_USES_ASPECT_CORRECTION      1  //camera uses the modified graphics primitives to map screens an viewports to buffers more sized
  63     #undef CAM_BITMAP_WIDTH
  64     #undef CAM_BITMAP_HEIGHT
  65     #define CAM_BITMAP_WIDTH                960 // Actual width of bitmap screen in bytes
  66     #define CAM_BITMAP_HEIGHT               270 // Actual height of bitmap screen in rows
  67 
  68     #define CAM_LOAD_CUSTOM_COLORS          1   // Enable loading CHDK colors into the camera palette memory
  69 
  70     #undef  EDGE_HMARGIN
  71     #define EDGE_HMARGIN                    2
  72 
  73 /*
  74   from exif date in Adobe DNG Converted image applied to Canon CR2 file
  75     Unique Camera Model             : Canon PowerShot S100
  76     Color Matrix 1                  : 0.9118 -0.3882 -0.0248 -0.2564 0.9818 0.3218 0.0349 0.0317 0.4547
  77     Color Matrix 2                  : 0.7968 -0.2565 -0.0636 -0.2873 1.0697 0.2513 0.018 0.0667 0.4211
  78     Calibration Illuminant 1        : Standard Light A (17)
  79     Calibration Illuminant 2        : D65 (21)
  80     Forward Matrix 1                : 0.6196 0.243 0.1018 0.1505 0.9964 -0.147 -0.1633 -0.3155 1.304
  81     Forward Matrix 2                : 0.6242 0.4092 -0.0691 0.188 1.1431 -0.3312 -0.042 -0.1341 1.0012
  82 */
  83     #define cam_CFAPattern                  0x01000201 // = [Green,Blue][Red,Green]
  84     #define cam_CalibrationIlluminant1      17         // Standard Light A
  85     #define cam_CalibrationIlluminant2      21         // D65
  86     #define CAM_COLORMATRIX1    \
  87       9118, 10000,  -3882, 10000,   -248, 10000, \
  88      -2564, 10000,   9818, 10000,   3218, 10000, \
  89        349, 10000,    317, 10000,   4547, 10000
  90     #define CAM_COLORMATRIX2    \
  91       7968, 10000,  -2565, 10000,   -636, 10000, \
  92      -2873, 10000,  10697, 10000,   2513, 10000, \
  93        180, 10000,    667, 10000,   4211, 10000
  94     #define CAM_FORWARDMATRIX1    \
  95       6196, 10000,   2430, 10000,   1018, 10000, \
  96       1505, 10000,   9964, 10000,  -1470, 10000, \
  97      -1633, 10000,  -3155, 10000,  13040, 10000
  98     #define CAM_FORWARDMATRIX2    \
  99       6242, 10000,   4092, 10000,   -691, 10000, \
 100       1880, 10000,  11431, 10000,  -3312, 10000, \
 101       -420, 10000,  -1341, 10000,  10012, 10000
 102     #define CAM_DNG_EXPOSURE_BIAS           0,1
 103     #define CAM_DNG_LENS_INFO               { 52,10, 260,10, 20,10, 59,10 }
 104 
 105     // actual large jpeg 4000 x 3000
 106     #define CAM_JPEG_WIDTH                  4048
 107     #define CAM_JPEG_HEIGHT                 3040
 108     // S100 native RAW converted to DNG's EXIF had Active Area Y1=11, Y2=3059.
 109     // Changed to even values due to CHDK code requirements
 110     #define CAM_ACTIVE_AREA_X1              104
 111     #define CAM_ACTIVE_AREA_Y1              12
 112     #define CAM_ACTIVE_AREA_X2              4152
 113     #define CAM_ACTIVE_AREA_Y2              3058
 114 
 115     #define CAM_DATE_FOLDER_NAMING          0x400
 116     #define CAM_DRIVE_MODE_FROM_TIMER_MODE  1   // use PROPCASE_TIMER_MODE to check for multiple shot custom timer.
 117                                                 // Used to enabled bracketing in custom timer, required on many recent cameras
 118                                                 // see http://chdk.setepontos.com/index.php/topic,3994.405.html
 119     #undef  CAM_USB_EVENTID
 120     #define CAM_USB_EVENTID                 0x202 // Levent ID for USB control. Changed in DryOS R49 so needs to be overridable.
 121 
 122     #define REMOTE_SYNC_STATUS_LED          0xC022C30C // specifies an LED that turns on while camera waits for USB remote to sync
 123 
 124     #define CAM_HAS_GPS                     1
 125 
 126     #undef CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO
 127 
 128     #define  CAM_NEED_SET_ZOOM_DELAY        150
 129 
 130     #define CAM_SD_OVER_IN_AF               1
 131     #define CAM_SD_OVER_IN_AFL              1
 132     #define CAM_SD_OVER_IN_MF               1
 133 
 134     #define CAM_IS_VID_REC_WORKS            1   // is_video_recording() function works
 135 
 136     #define CAM_HAS_CANON_RAW                   1   // has native Canon raw
 137 
 138 //--------------------------------------------------

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