root/platform/ixus130_sd1400/platform_camera.h

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

INCLUDED FROM


   1 // Camera - ixus130_sd1400 - platform_camera.h
   2 
   3 // This file contains the various settings values specific to the ixus130 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                     3
  24     #define CAM_DRYOS                       1
  25     #define CAM_DRYOS_2_3_R39               1
  26 
  27     #define CAM_RAW_ROWPIX                  4416        // 14 MP 12bpp
  28     #define CAM_RAW_ROWS                    3296        //
  29 
  30     #undef  CAM_HAS_ERASE_BUTTON
  31     #define CAM_MULTIPART                   1
  32     #undef  CAM_HAS_IRIS_DIAPHRAGM
  33     #define CAM_HAS_ND_FILTER               1
  34 
  35     #undef  CAM_HAS_MANUAL_FOCUS
  36     #undef  CAM_HAS_USER_TV_MODES
  37     #define CAM_SHOW_OSD_IN_SHOOT_MENU      1
  38 
  39     #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1
  40     #undef  CAM_VIDEO_CONTROL
  41     #define CAM_VIDEO_QUALITY_ONLY          1
  42 
  43     #undef  CAM_UNCACHED_BIT
  44     #define CAM_UNCACHED_BIT                0x40000000
  45 
  46     #define CAM_MAKE                        "Canon"
  47 
  48     #undef  CAM_BITMAP_WIDTH
  49     #define CAM_BITMAP_WIDTH                960 // Actual width of bitmap screen in bytes
  50 
  51     #undef  CAM_BITMAP_HEIGHT
  52     #define CAM_BITMAP_HEIGHT               270 // Actual height of bitmap screen in rows
  53 
  54     #define CAM_ZEBRA_NOBUF                 1
  55 
  56     #define CAM_QUALITY_OVERRIDE            1
  57     #undef CAM_SENSOR_BITS_PER_PIXEL
  58     #define CAM_SENSOR_BITS_PER_PIXEL       12
  59 
  60     #define CAM_DNG_LENS_INFO               { 50,10, 200,10, 28,10, 59,10 } // See comments in camera.h
  61 
  62     #define cam_CFAPattern                  0x02010100        // Red  Green  Green  Blue
  63 
  64     #define CAM_COLORMATRIX1 510370, 1000000, -68998, 1000000,  -86859, 1000000, \
  65                             -279980, 1000000, 766686, 1000000,   67944, 1000000, \
  66                              -14382, 1000000, 113688, 1000000,  239853, 1000000
  67 
  68     #define cam_CalibrationIlluminant1      17            // Standard Light A
  69 
  70     #define CAM_ACTIVE_AREA_X1              48
  71     #define CAM_ACTIVE_AREA_Y1              28
  72     #define CAM_ACTIVE_AREA_X2              4416-48
  73     #define CAM_ACTIVE_AREA_Y2              3296-28
  74 
  75     #undef  CAM_USES_ASPECT_CORRECTION
  76     #define CAM_USES_ASPECT_CORRECTION      1  //camera uses the modified graphics primitives to map screens an viewports to buffers more sized
  77 
  78     #undef CAM_DEFAULT_ALT_BUTTON
  79     #define CAM_DEFAULT_ALT_BUTTON          KEY_PLAYBACK 
  80 
  81     // cropping
  82     #define CAM_JPEG_WIDTH                  4320
  83     #define CAM_JPEG_HEIGHT                 3240
  84     // camera name
  85     #define PARAM_CAMERA_NAME               4            // parameter number for GetParameterData sd990: OK
  86     #define CAM_DATE_FOLDER_NAMING          0x100
  87 
  88     #define CAM_HAS_FILEWRITETASK_HOOK      1
  89 
  90     #define CAM_SD_OVER_IN_AF               1
  91     #define CAM_SD_OVER_IN_AFL              1
  92     #define CAM_SD_OVER_IN_MF               1
  93 
  94     #define CAM_IS_VID_REC_WORKS            1   // is_video_recording() function works
  95 
  96 //--------------------------------------------------

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