root/platform/g15/platform_camera.h

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

INCLUDED FROM


   1 // Camera - G15 - platform_camera.h
   2 
   3 // This file contains the various settings values specific to the G15 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 SHORTCUT_TOGGLE_RAW                 KEY_METERING
  24     #define CAM_PROPSET                         5
  25     #define CAM_DRYOS                           1
  26     #define CAM_DRYOS_2_3_R39                   1
  27     #define CAM_DRYOS_2_3_R47                   1
  28 
  29     #undef  CAM_CIRCLE_OF_CONFUSION
  30     #define CAM_CIRCLE_OF_CONFUSION             6   // CoC value for camera/sensor (see http://www.dofmaster.com/digital_coc.html)
  31 
  32     #define DRAW_ON_ACTIVE_BITMAP_BUFFER_ONLY   1   // Draw pixels on active bitmap buffer only. Requires active_bitmap_buffer location in stubs_min.S or stubs_entry.S.
  33 
  34     #undef  CAM_AF_LED
  35     #define CAM_AF_LED                          3   // Index of AF led in camera_set_led function
  36 
  37     #undef  CAM_UNCACHED_BIT
  38     #define CAM_UNCACHED_BIT                    0x40000000
  39 
  40     #define CAM_HAS_ND_FILTER                   1
  41     #define CAM_HAS_NATIVE_ND_FILTER            1   // Camera has built-in ND filter with Canon menu support for enable/disable
  42 
  43     #define CAM_ADJUSTABLE_ALT_BUTTON           1
  44     // NOTOE Meter conflicts with raw shortcut
  45     #define CAM_ALT_BUTTON_NAMES                { "Shrtcut", "Playback", "Video", "Meter", "AE Lock", "Erase" }
  46     #define CAM_ALT_BUTTON_OPTIONS              { KEY_PRINT, KEY_PLAYBACK, KEY_VIDEO, KEY_METERING, KEY_AE_LOCK, KEY_ERASE }
  47     #define CAM_DISP_BUTTON_NAME                "METER"
  48 
  49     #undef  CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO
  50     #define CAM_HAS_VIDEO_BUTTON                1
  51     #define CAM_VIDEO_QUALITY_ONLY              1
  52     #define CAM_BRACKETING                      1
  53     #undef  CAM_VIDEO_CONTROL
  54     #define CAM_HAS_JOGDIAL                     1
  55     #undef  CAM_USE_ZOOM_FOR_MF
  56     #define CAM_SHOW_OSD_IN_SHOOT_MENU          1
  57 
  58     #undef DEFAULT_RAW_EXT
  59     #define DEFAULT_RAW_EXT                     2   // use .CR2 
  60 
  61     #define CAM_DNG_LENS_INFO                   { 61,10, 305,10, 18,10, 28,10 }    // See comments in camera.h
  62 
  63     // From G15 native RAW file as converted to DNG using Adobe DNG Converter
  64     // http://www.adobe.com/support/downloads/product.jsp?product=106&platform=Windows
  65     // Matrices from converted DNG's EXIF data
  66     #define cam_CalibrationIlluminant1          17      // Standard Light A
  67     #define cam_CalibrationIlluminant2          21      // D65
  68     #define CAM_COLORMATRIX1    \
  69       8204, 10000,  -3475, 10000,    326, 10000, \
  70      -2919, 10000,   9461, 10000,   4065, 10000, \
  71        159, 10000,    225, 10000,   4291, 10000
  72     #define CAM_COLORMATRIX2    \
  73       7474, 10000,  -2301, 10000,   -567, 10000, \
  74      -4056, 10000,  11456, 10000,   2975, 10000, \
  75       -222, 10000,    716, 10000,   4181, 10000
  76     #define CAM_CAMERACALIBRATION1    \
  77      10051, 10000,      0, 10000,      0, 10000, \
  78          0, 10000,  10000, 10000,      0, 10000, \
  79          0, 10000,      0, 10000,   9487, 10000
  80     #define CAM_CAMERACALIBRATION2    \
  81      10051, 10000,      0, 10000,      0, 10000, \
  82          0, 10000,  10000, 10000,      0, 10000, \
  83          0, 10000,      0, 10000,   9487, 10000
  84     #define CAM_FORWARDMATRIX1    \
  85       6648, 10000,   2566, 10000,    429, 10000, \
  86       1970, 10000,   9994, 10000,  -1964, 10000, \
  87       -894, 10000,  -2304, 10000,  11450, 10000
  88     #define CAM_FORWARDMATRIX2    \
  89       6617, 10000,   3849, 10000,   -823, 10000, \
  90       2400, 10000,  11138, 10000,  -3538, 10000, \
  91        -62, 10000,  -1147, 10000,   9460, 10000
  92     #define CAM_DNG_EXPOSURE_BIAS -3,4
  93 
  94     #define CAM_RAW_ROWPIX                      4160 // Found @0xff1a77cc
  95     #define CAM_RAW_ROWS                        3124 // Found @0xff1a77d4
  96 
  97     #define CAM_JPEG_WIDTH                      4034
  98     #define CAM_JPEG_HEIGHT                     3040
  99     // G15 native RAW converted to DNG's EXIF had Active Area Y1=11, Y2=3059.
 100     // Changed to even values due to CHDK code requirements
 101     #define CAM_ACTIVE_AREA_X1                  104
 102     #define CAM_ACTIVE_AREA_Y1                  12
 103     #define CAM_ACTIVE_AREA_X2                  4152
 104     #define CAM_ACTIVE_AREA_Y2                  3058
 105     // G15 native RAW converted to DNG's EXIF data: CFA Pattern
 106 //    #define cam_CFAPattern                      0x02010100 // [Red,Green][Green,Blue]
 107     // adjusted for active area change
 108     #define cam_CFAPattern                      0x01000201 // [Green,Blue][Red,Green]
 109 
 110     #define PARAM_CAMERA_NAME                   4       // parameter number for GetParameterData - Camera Model name
 111     #define PARAM_OWNER_NAME                    7       // parameter number for GetParameterData - Owner name
 112     #define PARAM_DISPLAY_MODE1                 59      // param number for LCD display mode when camera in playback
 113     #define PARAM_DISPLAY_MODE2                 62      // param number for LCD display mode when camera in record view hold mode
 114     #undef  CAM_SENSOR_BITS_PER_PIXEL
 115     #define CAM_SENSOR_BITS_PER_PIXEL           12
 116 
 117     #define CAM_QUALITY_OVERRIDE                1
 118     #define CAM_REAR_CURTAIN                    1
 119 
 120     #undef CAM_USES_ASPECT_CORRECTION
 121     #define CAM_USES_ASPECT_CORRECTION          1       //camera uses the modified graphics primitives to map screens an viewports to buffers more sized 
 122     #undef CAM_BITMAP_WIDTH
 123     #undef CAM_BITMAP_HEIGHT
 124     #define CAM_BITMAP_WIDTH                    960     // Actual width of bitmap screen in bytes
 125     #define CAM_BITMAP_HEIGHT                   270     // Actual height of bitmap screen in rows
 126 
 127   
 128     #undef  EDGE_HMARGIN
 129     #define EDGE_HMARGIN 2
 130 
 131     #define CAM_DATE_FOLDER_NAMING              0x400
 132 
 133     #undef  CAM_KEY_PRESS_DELAY
 134     #define CAM_KEY_PRESS_DELAY                 60      // delay after a press
 135 
 136     #define CAM_DRIVE_MODE_FROM_TIMER_MODE      1       // use PROPCASE_TIMER_MODE to check for multiple shot custom timer.
 137                                                         // Used to enabled bracketing in custom timer, required on many recent cameras
 138                                                         // see http://chdk.setepontos.com/index.php/topic,3994.405.html
 139 
 140     #define CAM_AV_OVERRIDE_IRIS_FIX            1       // for cameras that require _MoveIrisWithAv function to override Av in bracketing.
 141     #define CAM_HAS_MOVIE_DIGEST_MODE           1       // Changes the values in the 'movie_status' variable if the camera has this mode
 142 
 143     #define CAM_LOAD_CUSTOM_COLORS              1       // Enable loading CHDK colors into the camera palette memory/hardware
 144 
 145     #undef  CAM_USB_EVENTID
 146     #define CAM_USB_EVENTID                     0x202   // Levent ID for USB control. Changed in DryOS R49 so needs to be overridable.
 147  
 148 //    #define REMOTE_SYNC_STATUS_LED     0xC0xxyyyy        // specifies an LED that turns on while camera waits for USB remote to sync
 149 
 150     #define CAM_HAS_CMOS                        1
 151 
 152     #undef  CAMERA_MIN_DIST
 153     #define CAMERA_MIN_DIST                     70     // Override min subject distance
 154     #undef  CAMERA_MAX_DIST
 155     #define CAMERA_MAX_DIST                     10567  // Override max subject distance
 156 
 157     #define MKDIR_RETURN_ONE_ON_SUCCESS         1       // mkdir() return 1 on success, 0 on fail.
 158 
 159     // Define shortcut overrides where defaults are not suitable
 160     #define SHORTCUT_TOGGLE_ZEBRA               KEY_ERASE   // On camera Shutter Half Press + Up = switch MF on/off
 161 
 162     #define CAM_HAS_FILEWRITETASK_HOOK          1
 163     #define CAM_FILEWRITETASK_SEEKS             1
 164 
 165     #define CAM_SD_OVER_IN_AF                   1
 166     #define CAM_SD_OVER_IN_AFL                  1
 167     #define CAM_SD_OVER_IN_MF                   1
 168 
 169     #define CAM_HAS_CANON_RAW                   1   // has native Canon raw
 170 
 171 //--------------------------------------------------

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