root/platform/ixus110_sd960/platform_camera.h

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

INCLUDED FROM


   1 // Camera - IXUS110_SD960 - platform_camera.h
   2 
   3 // This file contains the various settings values specific to the IXUS110_SD960 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_PROPSET                     2
  24     #define CAM_DRYOS                       1
  25 
  26     #define CAM_RAW_ROWPIX                  4080 // Found @0xff8eb014
  27     #define CAM_RAW_ROWS                    3048 // Found @0xff8eb018
  28 
  29     #undef  CAM_HAS_ERASE_BUTTON
  30     #define CAM_MULTIPART                   1
  31     #undef  CAM_HAS_IRIS_DIAPHRAGM
  32     #define CAM_HAS_ND_FILTER               1
  33 
  34     // TODO
  35     #undef  CAM_HAS_MANUAL_FOCUS
  36 
  37     //#define CAM_EV_IN_VIDEO                 1
  38 
  39     // long shutter is acutally user TV, may work ?
  40     #undef  CAM_HAS_USER_TV_MODES
  41     #define CAM_SHOW_OSD_IN_SHOOT_MENU      1
  42 
  43     #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1
  44 
  45     #undef  CAM_VIDEO_CONTROL
  46     #define CAM_VIDEO_QUALITY_ONLY          1
  47 
  48     #undef  CAM_UNCACHED_BIT
  49     #define CAM_UNCACHED_BIT                0x40000000
  50 
  51     #define CAM_LOAD_CUSTOM_COLORS          1       // Enable loading CHDK colors into the camera palette memory/hardware
  52 
  53     #define CAM_QUALITY_OVERRIDE            1
  54     #undef CAM_SENSOR_BITS_PER_PIXEL
  55     #define CAM_SENSOR_BITS_PER_PIXEL       12
  56 
  57     #define CAM_HAS_JOGDIAL                 1
  58     #define CAM_FEATURE_FEATHER             1
  59 
  60     #define CAM_DNG_LENS_INFO               { 50,10, 200,10, 28,10, 58,10 } // See comments in camera.h
  61 
  62     #define cam_CFAPattern 0x02010100 // Red  Green  Green  Blue
  63     // color
  64 
  65     #define CAM_COLORMATRIX1                             \
  66      764117, 1000000, -223884, 1000000, -116036, 1000000, \
  67      -35875, 1000000,  582534, 1000000,   32982, 1000000, \
  68       10441, 1000000,   64164, 1000000,  198520, 1000000
  69     #define cam_CalibrationIlluminant1      1
  70 
  71     #define CAM_JPEG_WIDTH                  4000
  72     #define CAM_JPEG_HEIGHT                 3000
  73     #define CAM_ACTIVE_AREA_X1              24       //
  74     #define CAM_ACTIVE_AREA_Y1              12
  75     #define CAM_ACTIVE_AREA_X2              4056    //
  76     #define CAM_ACTIVE_AREA_Y2              3036    //
  77 
  78     // camera name OK
  79     #define PARAM_CAMERA_NAME               4       // parameter number for GetParameterData
  80 
  81     //aspect correction
  82     #undef  CAM_USES_ASPECT_CORRECTION
  83     #define CAM_USES_ASPECT_CORRECTION      1       //camera uses the modified graphics primitives to map screens an viewports to buffers more sized
  84 
  85     #undef CAM_SCREEN_WIDTH
  86     #undef CAM_BITMAP_WIDTH
  87     #undef CAM_BITMAP_HEIGHT
  88     #define CAM_SCREEN_WIDTH                480 // Width of bitmap screen in CHDK co-ordinates
  89     #define CAM_BITMAP_WIDTH                960 // Actual width of bitmap screen in bytes
  90     #define CAM_BITMAP_HEIGHT               270 // Actual height of bitmap screen in rows
  91 
  92     #define CAM_DRIVE_MODE_FROM_TIMER_MODE  1   // use PROPCASE_TIMER_MODE to check for multiple shot custom timer.
  93                                                 // Used to enabled bracketing in custom timer, required on many recent cameras
  94                                                 // see http://chdk.setepontos.com/index.php/topic,3994.405.html
  95 
  96     #define CAM_HAS_FILEWRITETASK_HOOK      1
  97 
  98     #define REMOTE_SYNC_STATUS_LED          0xc0220134  // specifies an LED that turns on while camera waits for USB remote to sync
  99 
 100     #define CAM_OPTIONAL_EXTRA_BUTTON       1   // allow the Power button to be remapped in ALT mode
 101     #define CAM_EXTRA_BUTTON_NAMES          { "OFF", "Display" }
 102     #define CAM_EXTRA_BUTTON_OPTIONS        { 0, KEY_DISPLAY }
 103     #undef CAM_DEFAULT_ALT_BUTTON
 104     #define CAM_DEFAULT_ALT_BUTTON          KEY_PLAYBACK
 105 
 106     #define CAM_SD_OVER_IN_AF               1
 107     #define CAM_SD_OVER_IN_AFL              1
 108     #define CAM_SD_OVER_IN_MF               1
 109 
 110     #define CAM_IS_VID_REC_WORKS            1   // is_video_recording() function works
 111 //--------------------------------------------------

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