1 // Camera - ixus255_elph330hs - platform_camera.h 2 3 // This file contains the various settings values specific to the elph130 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 6 24 #define CAM_DRYOS 1 25 #define CAM_DRYOS_2_3_R39 1 // Defined for cameras with DryOS version R39 or higher 26 #define CAM_DRYOS_2_3_R47 1 // Defined for cameras with DryOS version R47 or higher 27 28 #define CAM_RAW_ROWPIX 4176 // Found @0xff1f7824 29 #define CAM_RAW_ROWS 3062 // Found @0xff1f7830 30 31 #define CAM_JPEG_WIDTH 4000 32 #define CAM_JPEG_HEIGHT 3000 33 34 // defined to pixels containing any data 35 #define CAM_ACTIVE_AREA_X1 96 36 #define CAM_ACTIVE_AREA_Y1 18 37 #define CAM_ACTIVE_AREA_X2 4168 38 #define CAM_ACTIVE_AREA_Y2 3062 39 40 #undef CAM_UNCACHED_BIT 41 #define CAM_UNCACHED_BIT 0x40000000 // Found @0xff03a200 42 43 #undef CAM_SENSOR_BITS_PER_PIXEL 44 #define CAM_SENSOR_BITS_PER_PIXEL 12 45 46 #define CAM_DNG_LENS_INFO { 43,10, 430,10, 30,10, 69,10 } // See comments in camera.h 47 48 // verified 49 #define cam_CFAPattern 0x02010100 // Red Green Green Blue 50 51 // Generated using X-Rite ColorChecker Camera Calibration software, v1.0.2 52 // with photos taken of a GretagMacbeth ColorChecker 53 // Matricies extracted with dcpTool: http://dcptool.sourceforge.net/ 54 #define cam_CalibrationIlluminant1 17 // Standard Light A 55 #define cam_CalibrationIlluminant2 21 // D65 56 #define CAM_COLORMATRIX1 \ 57 798, 1000, -562, 1000, 1580, 1000, \ 58 158, 1000, 66, 1000, 1375, 1000, \ 59 528, 1000, -1063, 1000, 12790, 1000 60 #define CAM_COLORMATRIX2 \ 61 15311, 1000, -6044, 1000, -1478, 1000, \ 62 -435, 1000, 9280, 1000, 1381, 1000, \ 63 172, 1000, 1362, 1000, 3978, 1000 64 65 // no separate erase button 66 #undef CAM_HAS_ERASE_BUTTON 67 #undef CAM_HAS_DISP_BUTTON 68 #define CAM_HAS_VIDEO_BUTTON 1 69 #undef CAM_USE_ZOOM_FOR_MF 70 #undef CAM_HAS_IRIS_DIAPHRAGM 71 #define CAM_HAS_ND_FILTER 1 72 73 // long shutter is actually user TV, may work ? 74 #undef CAM_HAS_USER_TV_MODES 75 76 #undef CAM_VIDEO_CONTROL 77 // not working 78 #undef CAM_CHDK_HAS_EXT_VIDEO_MENU 79 // #define CAM_VIDEO_QUALITY_ONLY 1 80 // #define CAM_CHDK_HAS_EXT_VIDEO_MENU 1 81 82 // TODO 83 // #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 84 85 #undef CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO // unlocked in canon firmware by default 86 87 #undef CAM_HAS_MANUAL_FOCUS 88 89 // MakeDirectory_Fut not found, using mkdir 90 #define MKDIR_RETURN_ONE_ON_SUCCESS 91 92 //aspect correction 93 #undef CAM_USES_ASPECT_CORRECTION 94 #define CAM_USES_ASPECT_CORRECTION 1 //camera uses the modified graphics primitives to map screens an viewports to buffers more sized 95 #undef CAM_BITMAP_WIDTH 96 #define CAM_BITMAP_WIDTH 960 // Actual width of bitmap screen in bytes 97 #undef CAM_BITMAP_HEIGHT 98 #define CAM_BITMAP_HEIGHT 270 // Actual height of bitmap screen in rows 99 100 #define DRAW_ON_ACTIVE_BITMAP_BUFFER_ONLY 1 // Draw pixels on active bitmap buffer only. 101 102 #define CAM_LOAD_CUSTOM_COLORS 1 // Enable loading CHDK colors into the camera palette memory/hardware 103 // doesn't seem to conflict badly with anything 104 105 #define CAM_DRIVE_MODE_FROM_TIMER_MODE 1 // use PROPCASE_TIMER_MODE to check for multiple shot custom timer. 106 // Used to enabled bracketing in custom timer, required on many recent cameras 107 // see http://chdk.setepontos.com/index.php/topic,3994.405.html 108 109 #define CAM_ADJUSTABLE_ALT_BUTTON 1 110 111 #define CAM_ALT_BUTTON_NAMES { "Playback", "Video" } 112 #define CAM_ALT_BUTTON_OPTIONS { KEY_PLAYBACK, KEY_VIDEO } 113 114 #undef CAM_USB_EVENTID 115 #define CAM_USB_EVENTID 0x202 // Levent ID for USB control. Changed in DryOS R49 so needs to be overridable. 116 117 #undef CAMERA_MIN_DIST 118 #define CAMERA_MIN_DIST 47 // Override min subject distance in macro mode 119 #undef CAMERA_MAX_DIST 120 #define CAMERA_MAX_DIST 564972 // Define max distance that can be set in _MoveFocusLensToDistance (allow override for superzooms - SX30/SX40) 121 122 #define CAM_SD_OVER_IN_AFL 1 123 #define CAM_SD_OVER_IN_MF 1 124 125 // Seems to work 126 #define CAM_DATE_FOLDER_NAMING 0x80 127 128 #define PARAM_CAMERA_NAME 3 // parameter number for GetParameterData 129 130 #define CAM_FILE_COUNTER_IS_VAR 1 // file counter is variable file_counter_var in stubs, not a param 131 132 #define CAM_HAS_FILEWRITETASK_HOOK 1 // FileWriteTask hook is available (local file write can be prevented) 133 #define CAM_FILEWRITETASK_SEEKS 1 // Camera's FileWriteTask can do Lseek() - DryOS r50 or higher, the define could also be CAM_DRYOS_2_3_R50 134 135 // only non-AF led available 136 #define REMOTE_SYNC_STATUS_LED 0xC022C020 // specifies an LED that turns on while camera waits for USB remote to sync 137 138 #undef CAM_AF_LED 139 #define CAM_AF_LED 1 140 141 #define CAM_HAS_CMOS 1 // Camera has CMOS sensor 142 143 #define CAM_NEED_SET_ZOOM_DELAY 150 // Define to add a delay after setting the zoom position 144 145 #define CAM_HAS_WIFI 1 // Camera has wifi support 146 147 //----------------------------------------------------------