Changeset 1656
- Timestamp:
- 02/10/12 09:43:38 (16 months ago)
- Location:
- trunk
- Files:
-
- 111 edited
-
. (modified) (1 prop)
-
include/camera.h (modified) (1 diff)
-
include/lolevel.h (modified) (1 diff)
-
include/platform.h (modified) (1 diff)
-
platform/a1000/lib.c (modified) (1 diff)
-
platform/a1100/lib.c (modified) (1 diff)
-
platform/a1100/platform_camera.h (modified) (1 diff)
-
platform/a2000/lib.c (modified) (1 diff)
-
platform/a3000/platform_camera.h (modified) (2 diffs)
-
platform/a3300/platform_camera.h (modified) (4 diffs)
-
platform/a410/platform_camera.h (modified) (1 diff)
-
platform/a430/platform_camera.h (modified) (2 diffs)
-
platform/a450/platform_camera.h (modified) (2 diffs)
-
platform/a460/platform_camera.h (modified) (2 diffs)
-
platform/a460/sub/100d/stubs_min.S (modified) (1 diff)
-
platform/a470/platform_camera.h (modified) (2 diffs)
-
platform/a480/platform_camera.h (modified) (3 diffs)
-
platform/a490/platform_camera.h (modified) (1 diff)
-
platform/a495/platform_camera.h (modified) (2 diffs)
-
platform/a530/lib.c (modified) (2 diffs)
-
platform/a530/platform_camera.h (modified) (3 diffs)
-
platform/a540/platform_camera.h (modified) (4 diffs)
-
platform/a550/platform_camera.h (modified) (2 diffs)
-
platform/a560/platform_camera.h (modified) (2 diffs)
-
platform/a570/platform_camera.h (modified) (2 diffs)
-
platform/a580/lib.c (modified) (1 diff)
-
platform/a580/platform_camera.h (modified) (3 diffs)
-
platform/a590/lib.c (modified) (1 diff)
-
platform/a590/platform_camera.h (modified) (4 diffs)
-
platform/a610/platform_camera.h (modified) (2 diffs)
-
platform/a620/platform_camera.h (modified) (2 diffs)
-
platform/a630/platform_camera.h (modified) (2 diffs)
-
platform/a640/platform_camera.h (modified) (2 diffs)
-
platform/a650/platform_camera.h (modified) (2 diffs)
-
platform/a700/platform_camera.h (modified) (2 diffs)
-
platform/a710/platform_camera.h (modified) (2 diffs)
-
platform/a720/platform_camera.h (modified) (4 diffs)
-
platform/d10/platform_camera.h (modified) (4 diffs)
-
platform/g10/platform_camera.h (modified) (1 diff)
-
platform/g11/platform_camera.h (modified) (3 diffs)
-
platform/g11/shooting.c (modified) (2 diffs)
-
platform/g12/platform_camera.h (modified) (4 diffs)
-
platform/g12/shooting.c (modified) (1 diff)
-
platform/g7/platform_camera.h (modified) (2 diffs)
-
platform/g9/platform_camera.h (modified) (2 diffs)
-
platform/generic/main.c (modified) (2 diffs)
-
platform/generic/wrappers.c (modified) (6 diffs)
-
platform/ixus1000_sd4500/platform_camera.h (modified) (6 diffs)
-
platform/ixus100_sd780/platform_camera.h (modified) (6 diffs)
-
platform/ixus120_sd940/platform_camera.h (modified) (4 diffs)
-
platform/ixus120_sd940/sub/100e/boot.c (modified) (1 diff)
-
platform/ixus200_sd980/platform_camera.h (modified) (4 diffs)
-
platform/ixus220_elph300hs/lib.c (modified) (2 diffs)
-
platform/ixus220_elph300hs/platform_camera.h (modified) (2 diffs)
-
platform/ixus300_sd4000/platform_camera.h (modified) (6 diffs)
-
platform/ixus310_elph500hs/platform_camera.h (modified) (6 diffs)
-
platform/ixus40_sd300/lib.c (modified) (1 diff)
-
platform/ixus40_sd300/platform_camera.h (modified) (2 diffs)
-
platform/ixus40_sd300/sub/100j/stubs_min.S (modified) (1 diff)
-
platform/ixus40_sd300/sub/100k/stubs_min.S (modified) (1 diff)
-
platform/ixus50_sd400/platform_camera.h (modified) (2 diffs)
-
platform/ixus55_sd450/platform_camera.h (modified) (3 diffs)
-
platform/ixus60_sd600/platform_camera.h (modified) (4 diffs)
-
platform/ixus65_sd630/platform_camera.h (modified) (3 diffs)
-
platform/ixus700_sd500/Makefile (modified) (1 diff)
-
platform/ixus70_sd1000/lib.c (modified) (1 diff)
-
platform/ixus70_sd1000/platform_camera.h (modified) (2 diffs)
-
platform/ixus750_sd550/lib.c (modified) (1 diff)
-
platform/ixus750_sd550/platform_camera.h (modified) (2 diffs)
-
platform/ixus75_sd750/lib.c (modified) (1 diff)
-
platform/ixus75_sd750/platform_camera.h (modified) (5 diffs)
-
platform/ixus800_sd700/lib.c (modified) (1 diff)
-
platform/ixus800_sd700/platform_camera.h (modified) (2 diffs)
-
platform/ixus80_sd1100/platform_camera.h (modified) (3 diffs)
-
platform/ixus850_sd800/lib.c (modified) (1 diff)
-
platform/ixus850_sd800/platform_camera.h (modified) (2 diffs)
-
platform/ixus85_sd770/platform_camera.h (modified) (2 diffs)
-
platform/ixus860_sd870/platform_camera.h (modified) (3 diffs)
-
platform/ixus870_sd880/platform_camera.h (modified) (4 diffs)
-
platform/ixus900_sd900/platform_camera.h (modified) (4 diffs)
-
platform/ixus90_sd790/platform_camera.h (modified) (2 diffs)
-
platform/ixus950_sd850/platform_camera.h (modified) (2 diffs)
-
platform/ixus95_sd1200/platform_camera.h (modified) (5 diffs)
-
platform/ixus960_sd950/lib.c (modified) (1 diff)
-
platform/ixus960_sd950/platform_camera.h (modified) (2 diffs)
-
platform/ixus970_sd890/platform_camera.h (modified) (2 diffs)
-
platform/ixus980_sd990/platform_camera.h (modified) (2 diffs)
-
platform/ixusizoom_sd30/platform_camera.h (modified) (2 diffs)
-
platform/s2is/platform_camera.h (modified) (2 diffs)
-
platform/s3is/platform_camera.h (modified) (2 diffs)
-
platform/s5is/platform_camera.h (modified) (2 diffs)
-
platform/s90/platform_camera.h (modified) (5 diffs)
-
platform/s95/platform_camera.h (modified) (3 diffs)
-
platform/sx1/platform_camera.h (modified) (3 diffs)
-
platform/sx10/platform_camera.h (modified) (2 diffs)
-
platform/sx100is/platform_camera.h (modified) (2 diffs)
-
platform/sx110is/platform_camera.h (modified) (2 diffs)
-
platform/sx130is/platform_camera.h (modified) (3 diffs)
-
platform/sx150is/lib.c (modified) (1 diff)
-
platform/sx150is/platform_camera.h (modified) (4 diffs)
-
platform/sx20/platform_camera.h (modified) (5 diffs)
-
platform/sx200is/platform_camera.h (modified) (4 diffs)
-
platform/sx220hs/lib.c (modified) (1 diff)
-
platform/sx220hs/platform_camera.h (modified) (5 diffs)
-
platform/sx230hs/platform_camera.h (modified) (4 diffs)
-
platform/sx230hs/sub/100c/lib.c (modified) (1 diff)
-
platform/sx30/platform_camera.h (modified) (7 diffs)
-
platform/sx30/shooting.c (modified) (1 diff)
-
platform/sx40hs/platform_camera.h (modified) (4 diffs)
-
platform/tx1/lib.c (modified) (3 diffs)
-
platform/tx1/platform_camera.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/release-1_0 merged: 1652
- Property svn:mergeinfo changed
-
trunk/include/camera.h
r1580 r1656 120 120 #define CAM_KEY_PRESS_DELAY 20 // delay after a press - TODO can we combine this with above ? 121 121 #define CAM_KEY_RELEASE_DELAY 20 // delay after a release - TODO do we really need to wait after release ? 122 123 #undef CAM_DATE_FOLDER_NAMING // Camera uses date for naming image folders124 122 125 123 #undef CAM_STARTUP_CRASH_FILE_OPEN_FIX // enable fix for camera intermittently crash at startup when opening the conf / font files -
trunk/include/lolevel.h
r1632 r1656 313 313 extern int _memPartInfoGet(int mempart_id,int *info); 314 314 315 #endif 315 extern void _SetFileAttributes(int fd, int attr); 316 317 #endif -
trunk/include/platform.h
r1632 r1656 619 619 #endif 620 620 621 #endif 621 unsigned char SetFileAttributes(const char* fn, unsigned char attr); 622 623 #endif -
trunk/platform/a1000/lib.c
r1641 r1656 1 1 #include "platform.h" 2 2 #include "lolevel.h" 3 //#include "../generic/lib.c"4 3 5 4 void shutdown() -
trunk/platform/a1100/lib.c
r1646 r1656 57 57 return -99; 58 58 } 59 -
trunk/platform/a1100/platform_camera.h
r1646 r1656 38 38 #undef DEFAULT_RAW_EXT 39 39 #define DEFAULT_RAW_EXT 2 // use .CR2 40 #undef CAM_EXT_TV_RANGE41 #undef CAM_AF_SCAN_DURING_VIDEO_RECORD42 #undef CAM_CAN_MUTE_MICROPHONE43 #undef CAM_EV_IN_VIDEO40 #undef CAM_EXT_TV_RANGE 41 #undef CAM_AF_SCAN_DURING_VIDEO_RECORD 42 #undef CAM_CAN_MUTE_MICROPHONE 43 #undef CAM_EV_IN_VIDEO 44 44 45 45 #undef CAM_UNCACHED_BIT -
trunk/platform/a2000/lib.c
r977 r1656 1 2 1 #include "platform.h" 3 2 #include "lolevel.h" -
trunk/platform/a3000/platform_camera.h
r1641 r1656 54 54 #define CAM_ACTIVE_AREA_Y2 2772 55 55 56 #undef CAM_BITMAP_PALETTE57 #define CAM_BITMAP_PALETTE1356 #undef CAM_BITMAP_PALETTE 57 #define CAM_BITMAP_PALETTE 13 58 58 59 59 #undef CAM_HAS_MANUAL_FOCUS … … 63 63 #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 64 64 65 #define CAM_DRIVE_MODE_FROM_TIMER_MODE // use PROPCASE_TIMER_MODE to check for multiple shot custom timer.65 #define CAM_DRIVE_MODE_FROM_TIMER_MODE 1 // use PROPCASE_TIMER_MODE to check for multiple shot custom timer. 66 66 #define CAM_DATE_FOLDER_NAMING 0x100 // Camera uses date for naming image folders 67 67 // for the purposes of CHDK, the FACE button is treated as the erase button -
trunk/platform/a3300/platform_camera.h
r1641 r1656 44 44 #define DNG_VERT_RLE_BADPIXELS 1 45 45 #define CAM_DNG_LENS_INFO { 50,10, 250,10, 28,10, 59,10 } // See comments in camera.h a3300is 46 46 47 47 #undef CAM_SENSOR_BITS_PER_PIXEL 48 48 #define CAM_SENSOR_BITS_PER_PIXEL 12 49 49 50 50 #define cam_CFAPattern 0x02010100 // Red Green Green Blue 51 51 … … 54 54 -12829, 1000000, 530507, 1000000, 50537, 1000000, \ 55 55 5181, 1000000, 48183, 1000000, 245014, 1000000 56 56 57 57 #define cam_CalibrationIlluminant1 1 // Daylight 58 58 59 59 #undef CAM_USES_ASPECT_CORRECTION 60 60 #define CAM_USES_ASPECT_CORRECTION 1 //camera uses the modified graphics primitives to map screens an viewports to buffers more sized … … 64 64 65 65 #define CAM_QUALITY_OVERRIDE 1 66 66 67 67 #define CAM_ZEBRA_ASPECT_ADJUST 1 68 68 #define CAM_ZEBRA_NOBUF 1 69 69 70 70 #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData 71 71 72 72 #define CAM_HAS_ND_FILTER 1 73 73 74 74 #define CAM_VIDEO_QUALITY_ONLY 1 75 75 … … 86 86 #undef CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO 87 87 88 #undefCAM_BITMAP_PALETTE89 #define CAM_BITMAP_PALETTE1488 #undef CAM_BITMAP_PALETTE 89 #define CAM_BITMAP_PALETTE 14 90 90 91 91 #define CHDK_COLOR_BASE 0x1D // Start color index for CHDK colors loaded into camera palette. -
trunk/platform/a410/platform_camera.h
r1555 r1656 21 21 // don't override them again in here. 22 22 23 #define CAM_PROPSET123 #define CAM_PROPSET 1 24 24 25 #define CAM_RAW_ROWPIX2144 // for 3.34 MP 1/3.2" sensor size26 #define CAM_RAW_ROWS1560 // for 3.34 MP 1/3.2" sensor size25 #define CAM_RAW_ROWPIX 2144 // for 3.34 MP 1/3.2" sensor size 26 #define CAM_RAW_ROWS 1560 // for 3.34 MP 1/3.2" sensor size 27 27 28 #undef CAM_USE_ZOOM_FOR_MF29 #undef CAM_HAS_ZOOM_LEVER30 #define CAM_DRAW_EXPOSITION131 #undef CAM_HAS_ERASE_BUTTON32 #undef CAM_HAS_IRIS_DIAPHRAGM33 #define CAM_HAS_ND_FILTER134 #undef CAM_HAS_MANUAL_FOCUS28 #undef CAM_USE_ZOOM_FOR_MF 29 #undef CAM_HAS_ZOOM_LEVER 30 #define CAM_DRAW_EXPOSITION 1 31 #undef CAM_HAS_ERASE_BUTTON 32 #undef CAM_HAS_IRIS_DIAPHRAGM 33 #define CAM_HAS_ND_FILTER 1 34 #undef CAM_HAS_MANUAL_FOCUS 35 35 #define CAM_CAN_SD_OVER_NOT_IN_MF 1 36 36 #define CAM_CAN_SD_OVERRIDE 1 // :/ it's broken in firmware, but got worked around 37 37 38 #undef CAM_HAS_USER_TV_MODES39 #define CAM_SHOW_OSD_IN_SHOOT_MENU140 #undef CAM_HAS_IS38 #undef CAM_HAS_USER_TV_MODES 39 #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 40 #undef CAM_HAS_IS 41 41 #undef CAM_CAN_MUTE_MICROPHONE 42 42 43 43 #define CAM_CHDK_HAS_EXT_VIDEO_MENU 1// 44 44 #undef CAM_AF_SCAN_DURING_VIDEO_RECORD // :( too complex to fix 45 #define CAM_EV_IN_VIDEO1 //but not very reliable...45 #define CAM_EV_IN_VIDEO 1 //but not very reliable... 46 46 47 47 #define CAM_DNG_LENS_INFO { 54,10, 173,10, 28,10, 51,10 } // See comments in camera.h 48 48 49 // pattern50 #define cam_CFAPattern0x02010100 // Red Green Green Blue51 // color52 /* #define CAM_COLORMATRIX1 \ //copy from A43049 // pattern 50 #define cam_CFAPattern 0x02010100 // Red Green Green Blue 51 // color 52 /* #define CAM_COLORMATRIX1 \ //copy from A430 53 53 479627, 1000000, -156240, 1000000, -84926, 1000000, \ 54 54 -215238, 1000000, 534902, 1000000, 60219, 1000000, \ 55 55 -96906, 1000000, 148194, 1000000, 191583, 1000000 56 56 */ 57 //well, first try, probably not accurate enough (used dng2ps2):58 #define CAM_COLORMATRIX1\59 270041, 1000000, -110546, 1000000, -43914, 1000000,\60 -121712, 1000000, 256251, 1000000, 12623, 1000000,\61 -27956, 1000000, 36119, 1000000, 104654, 100000057 //well, first try, probably not accurate enough (used dng2ps2): 58 #define CAM_COLORMATRIX1 \ 59 270041, 1000000, -110546, 1000000, -43914, 1000000, \ 60 -121712, 1000000, 256251, 1000000, 12623, 1000000, \ 61 -27956, 1000000, 36119, 1000000, 104654, 1000000 62 62 #undef CAM_CONSOLE_LOG_ENABLED 63 #define cam_CalibrationIlluminant11 // Daylight64 // cropping65 #define CAM_JPEG_WIDTH204866 #define CAM_JPEG_HEIGHT153667 #define CAM_ACTIVE_AREA_X1268 #define CAM_ACTIVE_AREA_Y1669 #define CAM_ACTIVE_AREA_X2209070 #define CAM_ACTIVE_AREA_Y2155871 // camera name72 #define PARAM_CAMERA_NAME3 // parameter number for GetParameterData63 #define cam_CalibrationIlluminant1 1 // Daylight 64 // cropping 65 #define CAM_JPEG_WIDTH 2048 66 #define CAM_JPEG_HEIGHT 1536 67 #define CAM_ACTIVE_AREA_X1 2 68 #define CAM_ACTIVE_AREA_Y1 6 69 #define CAM_ACTIVE_AREA_X2 2090 70 #define CAM_ACTIVE_AREA_Y2 1558 71 // camera name 72 #define PARAM_CAMERA_NAME 3 // parameter number for GetParameterData 73 73 #undef CAM_BRACKETING //no bracketing in fw 74 #define CAM_EXT_TV_RANGE174 #define CAM_EXT_TV_RANGE 1 75 75 #define CAM_DETECT_SCREEN_ERASE 1 76 76 // #define CAM_NO_MEMPARTINFO 1 77 // #define CAM_MULTIPART177 // #define CAM_MULTIPART 1 78 78 79 79 // #define REMOTE_SYNC_STATUS_LED 0xC0xxyyyy // specifies an LED that turns on while camera waits for USB remote to sync 80 //---------------------------------------------------------- 81 -
trunk/platform/a430/platform_camera.h
r1628 r1656 1 // Camera - A430 - platform_camera.h1 // Camera - a430 - platform_camera.h 2 2 3 // This file contains the various settings values specific to the A430 camera.3 // This file contains the various settings values specific to the a430 camera. 4 4 // This file is referenced via the 'include/camera.h' file and should not be loaded directly. 5 5 … … 21 21 // don't override them again in here. 22 22 23 #define CAM_PROPSET123 #define CAM_PROPSET 1 24 24 25 #define CAM_RAW_ROWPIX 2392// for 4 MP 1/3" sensor size26 #define CAM_RAW_ROWS 1752// for 4 MP 1/3" sensor size25 #define CAM_RAW_ROWPIX 2392 // for 4 MP 1/3" sensor size 26 #define CAM_RAW_ROWS 1752 // for 4 MP 1/3" sensor size 27 27 28 #undef CAM_USE_ZOOM_FOR_MF29 #undef CAM_HAS_ZOOM_LEVER30 #define CAM_DRAW_EXPOSITION131 #undef CAM_HAS_ERASE_BUTTON32 #undef CAM_HAS_IRIS_DIAPHRAGM33 #define CAM_HAS_ND_FILTER134 #undef CAM_HAS_MANUAL_FOCUS35 #undef CAM_HAS_USER_TV_MODES36 #define CAM_SHOW_OSD_IN_SHOOT_MENU137 #undef CAM_HAS_IS38 #define CAM_CAN_MUTE_MICROPHONE128 #undef CAM_USE_ZOOM_FOR_MF 29 #undef CAM_HAS_ZOOM_LEVER 30 #define CAM_DRAW_EXPOSITION 1 31 #undef CAM_HAS_ERASE_BUTTON 32 #undef CAM_HAS_IRIS_DIAPHRAGM 33 #define CAM_HAS_ND_FILTER 1 34 #undef CAM_HAS_MANUAL_FOCUS 35 #undef CAM_HAS_USER_TV_MODES 36 #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 37 #undef CAM_HAS_IS 38 #define CAM_CAN_MUTE_MICROPHONE 1 39 39 #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 //crashes, when used in 640x480 mode 40 #define CAM_EV_IN_VIDEO140 #define CAM_EV_IN_VIDEO 1 41 41 42 42 #define CAM_DNG_LENS_INFO { 54,10, 216,10, 28,10, 58,10 } // See comments in camera.h 43 // pattern44 #define cam_CFAPattern0x01000201 // Green Blue Red Green45 // color46 #define CAM_COLORMATRIX1\47 479627,1000000, -156240, 1000000, -84926, 1000000, \48 -215238,1000000, 534902, 1000000, 60219, 1000000, \49 -96906,1000000, 148194, 1000000, 191583, 100000043 // pattern 44 #define cam_CFAPattern 0x01000201 // Green Blue Red Green 45 // color 46 #define CAM_COLORMATRIX1 \ 47 479627, 1000000, -156240, 1000000, -84926, 1000000, \ 48 -215238, 1000000, 534902, 1000000, 60219, 1000000, \ 49 -96906, 1000000, 148194, 1000000, 191583, 1000000 50 50 51 #define cam_CalibrationIlluminant1 1 // Daylight 52 // cropping 53 #define CAM_JPEG_WIDTH 2272 54 #define CAM_JPEG_HEIGHT 1704 55 #define CAM_ACTIVE_AREA_X1 0 56 #define CAM_ACTIVE_AREA_Y1 8 57 #define CAM_ACTIVE_AREA_X2 2336 58 #define CAM_ACTIVE_AREA_Y2 1748 59 // camera name 60 #define PARAM_CAMERA_NAME 3 // parameter number for GetParameterData 61 #define CAM_DETECT_SCREEN_ERASE 1 51 #define cam_CalibrationIlluminant1 1 // Daylight 52 // cropping 53 #define CAM_JPEG_WIDTH 2272 54 #define CAM_JPEG_HEIGHT 1704 55 #define CAM_ACTIVE_AREA_X1 0 56 #define CAM_ACTIVE_AREA_Y1 8 57 #define CAM_ACTIVE_AREA_X2 2336 58 #define CAM_ACTIVE_AREA_Y2 1748 59 // camera name 60 #define PARAM_CAMERA_NAME 3 // parameter number for GetParameterData 61 62 #define CAM_DETECT_SCREEN_ERASE 1 63 //---------------------------------------------------------- -
trunk/platform/a450/platform_camera.h
r1555 r1656 1 // Camera - A450 - platform_camera.h1 // Camera - a450 - platform_camera.h 2 2 3 // This file contains the various settings values specific to the A450 camera.3 // This file contains the various settings values specific to the a450 camera. 4 4 // This file is referenced via the 'include/camera.h' file and should not be loaded directly. 5 5 … … 21 21 // don't override them again in here. 22 22 23 #define CAM_PROPSET223 #define CAM_PROPSET 2 24 24 25 #define CAM_RAW_ROWPIX2664 // for 5 MP 1/3" sensor size26 #define CAM_RAW_ROWS1968 // for 5 MP 1/3" sensor size25 #define CAM_RAW_ROWPIX 2664 // for 5 MP 1/3" sensor size 26 #define CAM_RAW_ROWS 1968 // for 5 MP 1/3" sensor size 27 27 28 #undef CAM_USE_ZOOM_FOR_MF29 #undef CAM_HAS_ZOOM_LEVER30 #define CAM_DRAW_EXPOSITION131 #undef CAM_HAS_ERASE_BUTTON32 #undef CAM_HAS_IRIS_DIAPHRAGM33 #define CAM_HAS_ND_FILTER134 #undef CAM_HAS_MANUAL_FOCUS35 #undef CAM_HAS_USER_TV_MODES36 #define CAM_SHOW_OSD_IN_SHOOT_MENU137 #undef CAM_HAS_IS38 #define CAM_CAN_MUTE_MICROPHONE139 #define CAM_AF_SCAN_DURING_VIDEO_RECORD140 #define CAM_EV_IN_VIDEO128 #undef CAM_USE_ZOOM_FOR_MF 29 #undef CAM_HAS_ZOOM_LEVER 30 #define CAM_DRAW_EXPOSITION 1 31 #undef CAM_HAS_ERASE_BUTTON 32 #undef CAM_HAS_IRIS_DIAPHRAGM 33 #define CAM_HAS_ND_FILTER 1 34 #undef CAM_HAS_MANUAL_FOCUS 35 #undef CAM_HAS_USER_TV_MODES 36 #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 37 #undef CAM_HAS_IS 38 #define CAM_CAN_MUTE_MICROPHONE 1 39 #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 40 #define CAM_EV_IN_VIDEO 1 41 41 42 42 #define CAM_DNG_LENS_INFO { 54,10, 216,10, 28,10, 58,10 } // See comments in camera.h 43 // pattern44 #define cam_CFAPattern0x02010100 // Red Green Green Blue45 // color46 #define CAM_COLORMATRIX1 \47 652279, 1000000, -199279, 1000000, -101833, 1000000, \48 -159819, 1000000, 619308, 1000000, 78172, 1000000, \49 -58827, 1000000, 150963, 1000000, 264216, 100000043 // pattern 44 #define cam_CFAPattern 0x02010100 // Red Green Green Blue 45 // color 46 #define CAM_COLORMATRIX1 \ 47 652279, 1000000, -199279, 1000000, -101833, 1000000, \ 48 -159819, 1000000, 619308, 1000000, 78172, 1000000, \ 49 -58827, 1000000, 150963, 1000000, 264216, 1000000 50 50 51 #define cam_CalibrationIlluminant11 // Daylight52 // cropping53 #define CAM_JPEG_WIDTH259254 #define CAM_JPEG_HEIGHT194455 #define CAM_ACTIVE_AREA_X1656 #define CAM_ACTIVE_AREA_Y1657 #define CAM_ACTIVE_AREA_X2261858 #define CAM_ACTIVE_AREA_Y2196259 // camera name60 #define PARAM_CAMERA_NAME4 // parameter number for GetParameterData51 #define cam_CalibrationIlluminant1 1 // Daylight 52 // cropping 53 #define CAM_JPEG_WIDTH 2592 54 #define CAM_JPEG_HEIGHT 1944 55 #define CAM_ACTIVE_AREA_X1 6 56 #define CAM_ACTIVE_AREA_Y1 6 57 #define CAM_ACTIVE_AREA_X2 2618 58 #define CAM_ACTIVE_AREA_Y2 1962 59 // camera name 60 #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData 61 61 62 62 #define REMOTE_SYNC_STATUS_LED 0xc0220084 // specifies an LED that turns on while camera waits for USB remote to sync 63 //---------------------------------------------------------- 63 64 -
trunk/platform/a460/platform_camera.h
r1555 r1656 1 // Camera - A460 - platform_camera.h1 // Camera - a460 - platform_camera.h 2 2 3 // This file contains the various settings values specific to the A460 camera.3 // This file contains the various settings values specific to the a460 camera. 4 4 // This file is referenced via the 'include/camera.h' file and should not be loaded directly. 5 5 … … 21 21 // don't override them again in here. 22 22 23 #define CAM_PROPSET 223 #define CAM_PROPSET 2 24 24 25 #define CAM_RAW_ROWPIX 2664// for 5 MP 1/3" sensor size26 #define CAM_RAW_ROWS 1968// for 5 MP 1/3" sensor size25 #define CAM_RAW_ROWPIX 2664 // for 5 MP 1/3" sensor size 26 #define CAM_RAW_ROWS 1968 // for 5 MP 1/3" sensor size 27 27 28 28 #undef CAM_USE_ZOOM_FOR_MF 29 29 #undef CAM_HAS_ZOOM_LEVER 30 #define CAM_DRAW_EXPOSITION 130 #define CAM_DRAW_EXPOSITION 1 31 31 #undef CAM_HAS_ERASE_BUTTON 32 32 #undef CAM_HAS_IRIS_DIAPHRAGM 33 #define CAM_HAS_ND_FILTER 133 #define CAM_HAS_ND_FILTER 1 34 34 #undef CAM_HAS_MANUAL_FOCUS 35 35 #undef CAM_HAS_USER_TV_MODES 36 #define CAM_SHOW_OSD_IN_SHOOT_MENU 136 #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 37 37 #undef CAM_HAS_IS 38 #define CAM_CAN_MUTE_MICROPHONE 138 #define CAM_CAN_MUTE_MICROPHONE 1 39 39 #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 40 #define CAM_EV_IN_VIDEO 1 40 #define CAM_EV_IN_VIDEO 1 41 41 42 #define CAM_DNG_LENS_INFO { 54,10, 216,10, 28,10, 58,10 } // See comments in camera.h 42 43 // pattern 43 #define cam_CFAPattern 0x02010100 // Red Green Green Blue44 #define cam_CFAPattern 0x02010100 // Red Green Green Blue 44 45 // color 45 46 #define CAM_COLORMATRIX1 \ 46 649324, 1000000,-233893, 1000000, -88521, 1000000,\47 -158955, 1000000, 593407, 1000000, 69775, 1000000,\48 -44551, 1000000, 136891, 1000000, 254362, 100000047 649324, 1000000, -233893, 1000000, -88521, 1000000, \ 48 -158955, 1000000, 593407, 1000000, 69775, 1000000, \ 49 -44551, 1000000, 136891, 1000000, 254362, 1000000 49 50 50 #define cam_CalibrationIlluminant1 1// Daylight51 #define cam_CalibrationIlluminant1 1 // Daylight 51 52 // cropping 52 #define CAM_JPEG_WIDTH 259253 #define CAM_JPEG_HEIGHT 194454 #define CAM_ACTIVE_AREA_X1 655 #define CAM_ACTIVE_AREA_Y1 656 #define CAM_ACTIVE_AREA_X2 261857 #define CAM_ACTIVE_AREA_Y2 196253 #define CAM_JPEG_WIDTH 2592 54 #define CAM_JPEG_HEIGHT 1944 55 #define CAM_ACTIVE_AREA_X1 6 56 #define CAM_ACTIVE_AREA_Y1 6 57 #define CAM_ACTIVE_AREA_X2 2618 58 #define CAM_ACTIVE_AREA_Y2 1962 58 59 // camera name 59 #define PARAM_CAMERA_NAME 4// parameter number for GetParameterData60 #define DNG_EXT_FROM ".DPS"60 #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData 61 #define DNG_EXT_FROM ".DPS" 61 62 62 63 #define REMOTE_SYNC_STATUS_LED 0xc0220084 // specifies an LED that turns on while camera waits for USB remote to sync 63 64 64 65 //---------------------------------------------------------- 65 -
trunk/platform/a460/sub/100d/stubs_min.S
r1184 r1656 18 18 DEF(playrec_mode,0xD29C) // "SSAPI::MenuIn" 19 19 DEF(sys_mempart_id, 0x4988) // memFindMax 20 -
trunk/platform/a470/platform_camera.h
r1626 r1656 1 // Camera - A470 - platform_camera.h1 // Camera - a470 - platform_camera.h 2 2 3 // This file contains the various settings values specific to the A470 camera.3 // This file contains the various settings values specific to the a470 camera. 4 4 // This file is referenced via the 'include/camera.h' file and should not be loaded directly. 5 5 … … 21 21 // don't override them again in here. 22 22 23 #define CAM_PROPSET224 #define CAM_DRYOS123 #define CAM_PROPSET 2 24 #define CAM_DRYOS 1 25 25 26 #define CAM_RAW_ROWPIX 3152// for 7 MP27 #define CAM_RAW_ROWS 2340// for 7 MP26 #define CAM_RAW_ROWPIX 3152 // for 7 MP 27 #define CAM_RAW_ROWS 2340 // for 7 MP 28 28 29 #undef CAM_USE_ZOOM_FOR_MF30 #undef CAM_HAS_ZOOM_LEVER31 #undef CAM_HAS_ERASE_BUTTON32 #undef CAM_HAS_IRIS_DIAPHRAGM33 #define CAM_HAS_ND_FILTER134 #undef CAM_HAS_MANUAL_FOCUS35 #undef CAM_HAS_USER_TV_MODES36 #define CAM_SHOW_OSD_IN_SHOOT_MENU137 #undef CAM_HAS_IS38 #define CAM_CAN_MUTE_MICROPHONE139 #define CAM_AF_SCAN_DURING_VIDEO_RECORD 140 #define CAM_EV_IN_VIDEO141 #define CAM_MULTIPART142 29 #undef CAM_USE_ZOOM_FOR_MF 30 #undef CAM_HAS_ZOOM_LEVER 31 #undef CAM_HAS_ERASE_BUTTON 32 #undef CAM_HAS_IRIS_DIAPHRAGM 33 #define CAM_HAS_ND_FILTER 1 34 #undef CAM_HAS_MANUAL_FOCUS 35 #undef CAM_HAS_USER_TV_MODES 36 #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 37 #undef CAM_HAS_IS 38 #define CAM_CAN_MUTE_MICROPHONE 1 39 #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 40 #define CAM_EV_IN_VIDEO 1 41 #define CAM_MULTIPART 1 42 43 43 #define CAM_DNG_LENS_INFO { 63,10, 216,10, 30,10, 58,10 } // See comments in camera.h 44 // pattern45 #define cam_CFAPattern0x02010100 // Red Green Green Blue46 // color47 #define CAM_COLORMATRIX1\48 673251, 1000000,-200684, 1000000, -98680, 1000000,\49 -163638, 1000000, 651247, 1000000, 74004, 1000000,\50 14221, 1000000, 52979, 1000000, 265291, 1000000 51 #define cam_CalibrationIlluminant1 1// Daylight52 // cropping53 #define CAM_JPEG_WIDTH309654 #define CAM_JPEG_HEIGHT232455 #define CAM_ACTIVE_AREA_X11256 #define CAM_ACTIVE_AREA_Y1857 #define CAM_ACTIVE_AREA_X2310858 #define CAM_ACTIVE_AREA_Y2233259 // camera name60 #define PARAM_CAMERA_NAME 4// parameter number for GetParameterData61 #define CAM_STARTUP_CRASH_FILE_OPEN_FIX 162 #define CAM_EXT_TV_RANGE163 #define CAM_DETECT_SCREEN_ERASE164 //#define DNG_EXT_FROM ".DPS" 44 // pattern 45 #define cam_CFAPattern 0x02010100 // Red Green Green Blue 46 // color 47 #define CAM_COLORMATRIX1 \ 48 673251, 1000000, -200684, 1000000, -98680, 1000000, \ 49 -163638, 1000000, 651247, 1000000, 74004, 1000000, \ 50 14221, 1000000, 52979, 1000000, 265291, 1000000 51 #define cam_CalibrationIlluminant1 1 // Daylight 52 // cropping 53 #define CAM_JPEG_WIDTH 3096 54 #define CAM_JPEG_HEIGHT 2324 55 #define CAM_ACTIVE_AREA_X1 12 56 #define CAM_ACTIVE_AREA_Y1 8 57 #define CAM_ACTIVE_AREA_X2 3108 58 #define CAM_ACTIVE_AREA_Y2 2332 59 // camera name 60 #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData 61 #define CAM_STARTUP_CRASH_FILE_OPEN_FIX 1 62 #define CAM_EXT_TV_RANGE 1 63 #define CAM_DETECT_SCREEN_ERASE 1 64 //#define DNG_EXT_FROM ".DPS" 65 65 66 66 #define REMOTE_SYNC_STATUS_LED 0xc022008C // specifies an LED that turns on while camera waits for USB remote to sync 67 67 68 68 //---------------------------------------------------------- 69 -
trunk/platform/a480/platform_camera.h
r1555 r1656 1 // Camera - A480 - platform_camera.h1 // Camera - a480 - platform_camera.h 2 2 3 // This file contains the various settings values specific to the A480 camera.3 // This file contains the various settings values specific to the a480 camera. 4 4 // This file is referenced via the 'include/camera.h' file and should not be loaded directly. 5 5 … … 21 21 // don't override them again in here. 22 22 23 #define CAM_PROPSET 224 #define CAM_DRYOS 123 #define CAM_PROPSET 2 24 #define CAM_DRYOS 1 25 25 26 #define CAM_RAW_ROWPIX 372027 #define CAM_RAW_ROWS 277226 #define CAM_RAW_ROWPIX 3720 27 #define CAM_RAW_ROWS 2772 28 28 29 29 #undef CAM_USE_ZOOM_FOR_MF 30 30 #undef CAM_HAS_ERASE_BUTTON 31 31 #undef CAM_HAS_IRIS_DIAPHRAGM 32 #define CAM_HAS_ND_FILTER 132 #define CAM_HAS_ND_FILTER 1 33 33 #undef CAM_HAS_MANUAL_FOCUS 34 34 #undef CAM_HAS_USER_TV_MODES 35 35 #undef CAM_HAS_IS 36 #define CAM_MULTIPART 136 #define CAM_MULTIPART 1 37 37 #undef CAM_VIDEO_CONTROL 38 #define CAM_REAR_CURTAIN 139 #undef DEFAULT_RAW_EXT 40 #define DEFAULT_RAW_EXT 2 // use .CR241 #define CAM_EXT_TV_RANGE 138 #define CAM_REAR_CURTAIN 1 39 #undef DEFAULT_RAW_EXT 40 #define DEFAULT_RAW_EXT 2 // use .CR2 41 #define CAM_EXT_TV_RANGE 1 42 42 #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 43 #define CAM_CAN_MUTE_MICROPHONE 144 #define CAM_EV_IN_VIDEO 143 #define CAM_CAN_MUTE_MICROPHONE 1 44 #define CAM_EV_IN_VIDEO 1 45 45 46 46 #define CAM_DNG_LENS_INFO { 66,10, 216,10, 30,10, 58,10 } // See comments in camera.h 47 47 // pattern 48 #define cam_CFAPattern 0x02010100 // Red Green Green Blue48 #define cam_CFAPattern 0x02010100 // Red Green Green Blue 49 49 // color 50 50 51 #define CAM_COLORMATRIX1 \52 827547, 1000000, -290458, 1000000, -126086, 1000000, \53 -12829, 1000000, 530507, 1000000, 50537,1000000, \54 5181, 1000000, 48183, 1000000, 245014,100000051 #define CAM_COLORMATRIX1 \ 52 827547, 1000000, -290458, 1000000, -126086, 1000000, \ 53 -12829, 1000000, 530507, 1000000, 50537, 1000000, \ 54 5181, 1000000, 48183, 1000000, 245014, 1000000 55 55 56 #define cam_CalibrationIlluminant1 1// Daylight56 #define cam_CalibrationIlluminant1 1 // Daylight 57 57 // cropping 58 #define CAM_JPEG_WIDTH 364859 #define CAM_JPEG_HEIGHT 273660 #define CAM_ACTIVE_AREA_X1 661 #define CAM_ACTIVE_AREA_Y1 1262 #define CAM_ACTIVE_AREA_X2 369063 #define CAM_ACTIVE_AREA_Y2 277258 #define CAM_JPEG_WIDTH 3648 59 #define CAM_JPEG_HEIGHT 2736 60 #define CAM_ACTIVE_AREA_X1 6 61 #define CAM_ACTIVE_AREA_Y1 12 62 #define CAM_ACTIVE_AREA_X2 3690 63 #define CAM_ACTIVE_AREA_Y2 2772 64 64 65 65 // camera name 66 #define PARAM_CAMERA_NAME 4// parameter number for GetParameterData66 #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData 67 67 #undef CAM_SENSOR_BITS_PER_PIXEL 68 #define CAM_SENSOR_BITS_PER_PIXEL 12 69 #define CAM_DRIVE_MODE_FROM_TIMER_MODE // use PROPCASE_TIMER_MODE to check for multiple shot custom timer. 68 #define CAM_SENSOR_BITS_PER_PIXEL 12 69 70 #define CAM_DRIVE_MODE_FROM_TIMER_MODE 1 // use PROPCASE_TIMER_MODE to check for multiple shot custom timer. 70 71 // Used to enabled bracketing in custom timer, required on many recent cameras 71 72 // see http://chdk.setepontos.com/index.php/topic,3994.405.html … … 74 75 75 76 //---------------------------------------------------------- 76 -
trunk/platform/a490/platform_camera.h
r1555 r1656 73 73 #define CAM_SENSOR_BITS_PER_PIXEL 12 74 74 75 #define CAM_STARTUP_CRASH_FILE_OPEN_FIX 1// enable workaround for camera crash at startup when opening the conf / font files76 // see http://chdk.setepontos.com/index.php?topic=6179.075 #define CAM_STARTUP_CRASH_FILE_OPEN_FIX 1 // enable workaround for camera crash at startup when opening the conf / font files 76 // see http://chdk.setepontos.com/index.php?topic=6179.0 77 77 78 78 #define CAM_DATE_FOLDER_NAMING 0x100 //Value found in the last function, which is called in GetImageFolder. (first compare) 79 79 80 80 // #define REMOTE_SYNC_STATUS_LED 0xC0xxyyyy // specifies an LED that turns on while camera waits for USB remote to sync 81 81 82 #define CAM_DRIVE_MODE_FROM_TIMER_MODE 1 // use PROPCASE_TIMER_MODE to check for multiple shot custom timer. 83 // Used to enabled bracketing in custom timer, required on many recent cameras 84 // see http://chdk.setepontos.com/index.php/topic,3994.405.html 82 85 //---------------------------------------------------------- -
trunk/platform/a495/platform_camera.h
r1555 r1656 45 45 #define CAM_CAN_MUTE_MICROPHONE 1 46 46 #define CAM_EV_IN_VIDEO 1 47 #define CAM_QUALITY_OVERRIDE 147 #define CAM_QUALITY_OVERRIDE 1 48 48 49 49 #undef CAM_BITMAP_PALETTE … … 74 74 #define CAM_SENSOR_BITS_PER_PIXEL 12 75 75 76 #define CAM_STARTUP_CRASH_FILE_OPEN_FIX 1// enable workaround for camera crash at startup when opening the conf / font files77 // see http://chdk.setepontos.com/index.php?topic=6179.076 #define CAM_STARTUP_CRASH_FILE_OPEN_FIX 1 // enable workaround for camera crash at startup when opening the conf / font files 77 // see http://chdk.setepontos.com/index.php?topic=6179.0 78 78 79 79 #define CAM_DATE_FOLDER_NAMING 0x100 //Value found in the last function, which is called in GetImageFolder. (first compare) 80 81 #define CAM_DRIVE_MODE_FROM_TIMER_MODE // use PROPCASE_TIMER_MODE to check for multiple shot custom timer.80 81 #define CAM_DRIVE_MODE_FROM_TIMER_MODE 1 // use PROPCASE_TIMER_MODE to check for multiple shot custom timer. 82 82 // Used to enabled bracketing in custom timer, required on many recent cameras 83 83 // see http://chdk.setepontos.com/index.php/topic,3994.405.html 84 85 84 // #define REMOTE_SYNC_STATUS_LED 0xC0xxyyyy // specifies an LED that turns on while camera waits for USB remote to sync 86 85 -
trunk/platform/a530/lib.c
r977 r1656 1 1 #include "platform.h" 2 3 int get_flash_params_count(void){ 4 return 111; 5 } 2 6 3 7 void shutdown() 4 8 { 5 volatile long *p = (void*)0xc02200a0; 6 //volatile long *p = (void*)0xc0220060; 9 volatile long *p = (void*)0xc02200a0; 7 10 8 11 asm( … … 18 21 } 19 22 20 21 23 #define LED_PR 0xc0220084 22 23 24 void debug_led(int state) 24 25 { 25 26 volatile long *p=(void*)LED_PR; 26 27 if (state) 27 p[0]=0x46;28 p[0]=0x46; 28 29 else 29 p[0]=0x44;30 p[0]=0x44; 30 31 } 31 32 32 33 int get_flash_params_count(void){ 34 return 111; 35 } 36 37 #define LED_BASE 0xc0220080 38 39 void camera_set_led(int led, int state, int bright) 40 33 #define LED_AF 0xc0220080 34 void __attribute__((weak)) camera_set_led(int led, int state, int bright) 41 35 { 42 36 int leds[] = {12,16,4,8,4,0,4}; 43 37 if(led < 4 || led > 10 || led == 6) return; 44 volatile long *p=(void*)LED_ BASE+ leds[led-4];38 volatile long *p=(void*)LED_AF + leds[led-4]; 45 39 if (state) 46 p[0]=0x46;40 p[0]=0x46; 47 41 else 48 p[0]=0x44;42 p[0]=0x44; 49 43 } 50 -
trunk/platform/a530/platform_camera.h
r1555 r1656 1 // Camera - A530 - platform_camera.h1 // Camera - a530 - platform_camera.h 2 2 3 // This file contains the various settings values specific to the A530 camera.3 // This file contains the various settings values specific to the a530 camera. 4 4 // This file is referenced via the 'include/camera.h' file and should not be loaded directly. 5 5 … … 21 21 // don't override them again in here. 22 22 23 #define CAM_PROPSET 123 #define CAM_PROPSET 1 24 24 25 25 // 2672x1968 image - like most other 5m sensors 26 #define CAM_RAW_ROWPIX 2672// for 5 MP27 #define CAM_RAW_ROWS 1968// for 5 MP26 #define CAM_RAW_ROWPIX 2672 // for 5 MP 27 #define CAM_RAW_ROWS 1968 // for 5 MP 28 28 // 2672x1992 image - eventually probably real sensor size 29 29 // #define CAM_RAW_ROWPIX 2672 // for 5 MP … … 33 33 #define CAM_HAS_ERASE_BUTTON 1 34 34 #undef CAM_HAS_IRIS_DIAPHRAGM 35 #define CAM_HAS_ND_FILTER 135 #define CAM_HAS_ND_FILTER 1 36 36 #define CAM_HAS_MANUAL_FOCUS 1 37 #define CAM_DRAW_EXPOSITION 138 #define CAM_SHOW_OSD_IN_SHOOT_MENU 137 #define CAM_DRAW_EXPOSITION 1 38 #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 39 39 #undef CAM_CAN_SD_OVER_NOT_IN_MF 40 40 #undef CAM_HAS_IS 41 #define CAM_CAN_MUTE_MICROPHONE 141 #define CAM_CAN_MUTE_MICROPHONE 1 42 42 #define CAM_AF_SCAN_DURING_VIDEO_RECORD 2 43 #define CAM_EV_IN_VIDEO 1 43 #define CAM_EV_IN_VIDEO 1 44 44 45 #define CAM_DNG_LENS_INFO { 58,10, 232,10, 26,10, 55,10 } // See comments in camera.h 45 46 // pattern 46 #define cam_CFAPattern 0x02010100 // Red Green Green Blue47 #define cam_CFAPattern 0x02010100 // Red Green Green Blue 47 48 // color 48 #define CAM_COLORMATRIX1 \49 725264, 1000000,-240542, 1000000, -122310, 1000000, \50 -210248, 1000000, 656077, 1000000, 52390,1000000, \51 -11282, 1000000, 70400,1000000, 300712, 100000049 #define CAM_COLORMATRIX1 \ 50 725264, 1000000, -240542, 1000000, -122310, 1000000, \ 51 -210248, 1000000, 656077, 1000000, 52390, 1000000, \ 52 -11282, 1000000, 70400, 1000000, 300712, 1000000 52 53 53 #define cam_CalibrationIlluminant1 1// Daylight54 #define cam_CalibrationIlluminant1 1 // Daylight 54 55 // cropping 55 #define CAM_JPEG_WIDTH 259256 #define CAM_JPEG_HEIGHT 194457 #define CAM_ACTIVE_AREA_X1 1258 #define CAM_ACTIVE_AREA_Y1 2059 #define CAM_ACTIVE_AREA_X2 262860 #define CAM_ACTIVE_AREA_Y2 196856 #define CAM_JPEG_WIDTH 2592 57 #define CAM_JPEG_HEIGHT 1944 58 #define CAM_ACTIVE_AREA_X1 12 59 #define CAM_ACTIVE_AREA_Y1 20 60 #define CAM_ACTIVE_AREA_X2 2628 61 #define CAM_ACTIVE_AREA_Y2 1968 61 62 // camera name 62 #define PARAM_CAMERA_NAME 3// parameter number for GetParameterData63 #define DNG_EXT_FROM ".DPS"63 #define PARAM_CAMERA_NAME 3 // parameter number for GetParameterData 64 #define DNG_EXT_FROM ".DPS" 64 65 65 #define CAM_EXT_TV_RANGE 166 #define CAM_EXT_TV_RANGE 1 66 67 67 68 // #define REMOTE_SYNC_STATUS_LED 0xC0xxyyyy // specifies an LED that turns on while camera waits for USB remote to sync 68 69 69 70 //---------------------------------------------------------- 70 -
trunk/platform/a540/platform_camera.h
r1555 r1656 1 // Camera - A540 - platform_camera.h1 // Camera - a540 - platform_camera.h 2 2 3 // This file contains the various settings values specific to the A540 camera.3 // This file contains the various settings values specific to the a540 camera. 4 4 // This file is referenced via the 'include/camera.h' file and should not be loaded directly. 5 5 … … 21 21 // don't override them again in here. 22 22 23 #define CAM_PROPSET 123 #define CAM_PROPSET 1 24 24 25 #define CAM_RAW_ROWPIX 2888 // for 6 MP26 #define CAM_RAW_ROWS 2136 // for 6 MP25 #define CAM_RAW_ROWPIX 2888 // for 6 MP 26 #define CAM_RAW_ROWS 2136 // for 6 MP 27 27 28 28 #undef CAM_USE_ZOOM_FOR_MF … … 32 32 #define CAM_HAS_MANUAL_FOCUS 1 33 33 #undef CAM_DRAW_EXPOSITION 34 #define CAM_SHOW_OSD_IN_SHOOT_MENU 134 #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 35 35 #undef CAM_HAS_IS 36 #define CAM_CAN_MUTE_MICROPHONE 136 #define CAM_CAN_MUTE_MICROPHONE 1 37 37 #define CAM_AF_SCAN_DURING_VIDEO_RECORD 2 38 #define CAM_EV_IN_VIDEO 138 #define CAM_EV_IN_VIDEO 1 39 39 40 40 #define CAM_DNG_LENS_INFO { 58,10, 232,10, 26,10, 55,10 } // See comments in camera.h 41 41 // pattern 42 #define cam_CFAPattern 0x02010100 // Red Green Green Blue42 #define cam_CFAPattern 0x02010100 // Red Green Green Blue 43 43 // color 44 #define CAM_COLORMATRIX1 \45 687147, 1000000,-201964, 1000000, -125024, 1000000, \46 -148403, 1000000,566810, 1000000, 45401, 1000000, \47 -9472, 1000000, 63186,1000000, 208602, 100000044 #define CAM_COLORMATRIX1 \ 45 687147, 1000000, -201964, 1000000, -125024, 1000000, \ 46 -148403, 1000000, 566810, 1000000, 45401, 1000000, \ 47 -9472, 1000000, 63186, 1000000, 208602, 1000000 48 48 49 #define cam_CalibrationIlluminant1 1// Daylight49 #define cam_CalibrationIlluminant1 1 // Daylight 50 50 // cropping 51 #define CAM_JPEG_WIDTH 281652 #define CAM_JPEG_HEIGHT 211253 #define CAM_ACTIVE_AREA_X1 4454 #define CAM_ACTIVE_AREA_Y1 855 #define CAM_ACTIVE_AREA_X2 288456 #define CAM_ACTIVE_AREA_Y2 213651 #define CAM_JPEG_WIDTH 2816 52 #define CAM_JPEG_HEIGHT 2112 53 #define CAM_ACTIVE_AREA_X1 44 54 #define CAM_ACTIVE_AREA_Y1 8 55 #define CAM_ACTIVE_AREA_X2 2884 56 #define CAM_ACTIVE_AREA_Y2 2136 57 57 // camera name 58 #define PARAM_CAMERA_NAME 3// parameter number for GetParameterData59 #define DNG_EXT_FROM ".DPS"58 #define PARAM_CAMERA_NAME 3 // parameter number for GetParameterData 59 #define DNG_EXT_FROM ".DPS" 60 60 61 #define CAM_EXT_TV_RANGE 1 62 63 #define CAM_CHDK_PTP 1 // include CHDK PTP support 61 #define CAM_EXT_TV_RANGE 1 64 62 65 63 #define CAM_FIRMWARE_MEMINFO 1 // Use 'GetMemInfo' to get free memory size. … … 68 66 69 67 //---------------------------------------------------------- 70 -
trunk/platform/a550/platform_camera.h
r1555 r1656 1 // Camera - A550 - platform_camera.h1 // Camera - a550 - platform_camera.h 2 2 3 // This file contains the various settings values specific to the A550 camera.3 // This file contains the various settings values specific to the a550 camera. 4 4 // This file is referenced via the 'include/camera.h' file and should not be loaded directly. 5 5 … … 21 21 // don't override them again in here. 22 22 23 #define CAM_PROPSET 223 #define CAM_PROPSET 2 24 24 25 #define CAM_RAW_ROWPIX 3152// for 7 MP26 #define CAM_RAW_ROWS 2340// for 7 MP25 #define CAM_RAW_ROWPIX 3152 // for 7 MP 26 #define CAM_RAW_ROWS 2340 // for 7 MP 27 27 28 28 #undef CAM_USE_ZOOM_FOR_MF 29 #define CAM_MULTIPART 129 #define CAM_MULTIPART 1 30 30 #undef CAM_HAS_ERASE_BUTTON 31 31 #undef CAM_HAS_IRIS_DIAPHRAGM 32 #define CAM_HAS_ND_FILTER 132 #define CAM_HAS_ND_FILTER 1 33 33 #undef CAM_HAS_MANUAL_FOCUS 34 34 #undef CAM_HAS_USER_TV_MODES 35 #define CAM_SHOW_OSD_IN_SHOOT_MENU 135 #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 36 36 #undef CAM_HAS_IS 37 #define CAM_CAN_MUTE_MICROPHONE 137 #define CAM_CAN_MUTE_MICROPHONE 1 38 38 #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 39 39 40 40 #define CAM_DNG_LENS_INFO { 58,10, 232,10, 26,10, 55,10 } // See comments in camera.h 41 41 // pattern 42 #define cam_CFAPattern 0x02010100 // Red Green Green Blue42 #define cam_CFAPattern 0x02010100 // Red Green Green Blue 43 43 // color 44 44 #define CAM_COLORMATRIX1 \ 45 673251, 1000000,-200684, 1000000, -98680, 1000000, \46 -163638, 1000000,651247, 1000000, 74004, 1000000, \47 14221, 1000000, 52979,1000000, 265291, 100000045 673251, 1000000, -200684, 1000000, -98680, 1000000, \ 46 -163638, 1000000, 651247, 1000000, 74004, 1000000, \ 47 14221, 1000000, 52979, 1000000, 265291, 1000000 48 48 49 #define cam_CalibrationIlluminant1 1// Daylight49 #define cam_CalibrationIlluminant1 1 // Daylight 50 50 // cropping 51 #define CAM_JPEG_WIDTH 307252 #define CAM_JPEG_HEIGHT 230453 #define CAM_ACTIVE_AREA_X1 3654 #define CAM_ACTIVE_AREA_Y1 1255 #define CAM_ACTIVE_AREA_X2 314856 #define CAM_ACTIVE_AREA_Y2 234051 #define CAM_JPEG_WIDTH 3072 52 #define CAM_JPEG_HEIGHT 2304 53 #define CAM_ACTIVE_AREA_X1 36 54 #define CAM_ACTIVE_AREA_Y1 12 55 #define CAM_ACTIVE_AREA_X2 3148 56 #define CAM_ACTIVE_AREA_Y2 2340 57 57 // camera name 58 #define PARAM_CAMERA_NAME 4// parameter number for GetParameterData59 #define DNG_EXT_FROM ".DPS"58 #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData 59 #define DNG_EXT_FROM ".DPS" 60 60 61 #define CAM_EXT_TV_RANGE 161 #define CAM_EXT_TV_RANGE 1 62 62 63 63 #define REMOTE_SYNC_STATUS_LED 0xc0220084 // specifies an LED that turns on while camera waits for USB remote to sync -
trunk/platform/a560/platform_camera.h
r1555 r1656 1 // Camera - A560 - platform_camera.h1 // Camera - a560 - platform_camera.h 2 2 3 // This file contains the various settings values specific to the A560 camera.3 // This file contains the various settings values specific to the a560 camera. 4 4 // This file is referenced via the 'include/camera.h' file and should not be loaded directly. 5 5 … … 21 21 // don't override them again in here. 22 22 23 #define CAM_PROPSET 223 #define CAM_PROPSET 2 24 24 25 #define CAM_RAW_ROWPIX 3152// for 7 MP26 #define CAM_RAW_ROWS 2340// for 7 MP25 #define CAM_RAW_ROWPIX 3152 // for 7 MP 26 #define CAM_RAW_ROWS 2340 // for 7 MP 27 27 28 28 #undef CAM_USE_ZOOM_FOR_MF 29 #define CAM_MULTIPART 129 #define CAM_MULTIPART 1 30 30 #undef CAM_HAS_ERASE_BUTTON 31 31 #undef CAM_HAS_IRIS_DIAPHRAGM 32 #define CAM_HAS_ND_FILTER 132 #define CAM_HAS_ND_FILTER 1 33 33 #undef CAM_HAS_MANUAL_FOCUS 34 34 #undef CAM_HAS_USER_TV_MODES 35 #define CAM_SHOW_OSD_IN_SHOOT_MENU 135 #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 36 36 #undef CAM_HAS_IS 37 #define CAM_CAN_MUTE_MICROPHONE 137 #define CAM_CAN_MUTE_MICROPHONE 1 38 38 #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 39 39 40 40 #define CAM_DNG_LENS_INFO { 58,10, 232,10, 26,10, 55,10 } // See comments in camera.h 41 41 // pattern 42 #define cam_CFAPattern 0x02010100 // Red Green Green Blue42 #define cam_CFAPattern 0x02010100 // Red Green Green Blue 43 43 // color 44 #define CAM_COLORMATRIX1 \45 15265, 1, -6193, 1, -1558, 1,\46 -4125, 1, 12116, 1, 2010, 1,\47 -888, 1, 1639, 1, 5220, 148 49 #define cam_CalibrationIlluminant1 17// Standard light A44 #define CAM_COLORMATRIX1 \ 45 15265, 1, -6193, 1, -1558, 1, \ 46 -4125, 1, 12116, 1, 2010, 1, \ 47 -888, 1, 1639, 1, 5220, 1 48 49 #define cam_CalibrationIlluminant1 17 // Standard light A 50 50 // cropping 51 #define CAM_JPEG_WIDTH 307252 #define CAM_JPEG_HEIGHT 230453 #define CAM_ACTIVE_AREA_X1 3854 #define CAM_ACTIVE_AREA_Y1 1455 #define CAM_ACTIVE_AREA_X2 314656 #define CAM_ACTIVE_AREA_Y2 233851 #define CAM_JPEG_WIDTH 3072 52 #define CAM_JPEG_HEIGHT 2304 53 #define CAM_ACTIVE_AREA_X1 38 54 #define CAM_ACTIVE_AREA_Y1 14 55 #define CAM_ACTIVE_AREA_X2 3146 56 #define CAM_ACTIVE_AREA_Y2 2338 57 57 // camera name 58 #define PARAM_CAMERA_NAME 4// parameter number for GetParameterData59 #define DNG_EXT_FROM ".DPS"58 #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData 59 #define DNG_EXT_FROM ".DPS" 60 60 61 #define CAM_EXT_TV_RANGE 161 #define CAM_EXT_TV_RANGE 1 62 62 63 63 #define REMOTE_SYNC_STATUS_LED 0xc02200C4 // specifies an LED that turns on while camera waits for USB remote to sync -
trunk/platform/a570/platform_camera.h
r1555 r1656 1 // Camera - A570 - platform_camera.h1 // Camera - a570 - platform_camera.h 2 2 3 // This file contains the various settings values specific to the A570 camera.3 // This file contains the various settings values specific to the a570 camera. 4 4 // This file is referenced via the 'include/camera.h' file and should not be loaded directly. 5 5 … … 21 21 // don't override them again in here. 22 22 23 #define CAM_PROPSET223 #define CAM_PROPSET 2 24 24 25 #define CAM_RAW_ROWPIX 3152// for 7 MP26 #define CAM_RAW_ROWS 2340// for 7 MP27 #define CAM_MULTIPART 1 28 #define CAM_CAN_MUTE_MICROPHONE129 #define CAM_ADJUSTABLE_ALT_BUTTON130 #define CAM_AF_SCAN_DURING_VIDEO_RECORD131 #define CAM_EV_IN_VIDEO132 #define CAM_REAR_CURTAIN125 #define CAM_RAW_ROWPIX 3152 // for 7 MP 26 #define CAM_RAW_ROWS 2340 // for 7 MP 27 28 #define CAM_MULTIPART 1 29 #define CAM_CAN_MUTE_MICROPHONE 1 30 #define CAM_ADJUSTABLE_ALT_BUTTON 1 31 #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 32 #define CAM_EV_IN_VIDEO 1 33 33 34 34 #define CAM_DNG_LENS_INFO { 58,10, 232,10, 26,10, 55,10 } // See comments in camera.h 35 // pattern 36 #define cam_CFAPattern 0x02010100 // Red Green Green Blue 37 // color 38 #define CAM_COLORMATRIX1 \ 39 528283, 1000000,-144259, 1000000, -85966, 1000000, \ 40 -202789, 1000000, 736563, 1000000, 73008, 1000000, \ 41 -27130, 1000000, 107702, 1000000, 264543, 1000000 35 #define CAM_REAR_CURTAIN 1 36 // pattern 37 #define cam_CFAPattern 0x02010100 // Red Green Green Blue 38 // color 39 #define CAM_COLORMATRIX1 \ 40 528283, 1000000, -144259, 1000000, -85966, 1000000, \ 41 -202789, 1000000, 736563, 1000000, 73008, 1000000, \ 42 -27130, 1000000, 107702, 1000000, 264543, 1000000 42 43 43 #define cam_CalibrationIlluminant1 1// Daylight44 // cropping45 #define CAM_JPEG_WIDTH307246 #define CAM_JPEG_HEIGHT230447 #define CAM_ACTIVE_AREA_X13848 #define CAM_ACTIVE_AREA_Y11449 #define CAM_ACTIVE_AREA_X2314650 #define CAM_ACTIVE_AREA_Y2233851 // camera name52 #define PARAM_CAMERA_NAME 4// parameter number for GetParameterData44 #define cam_CalibrationIlluminant1 1 // Daylight 45 // cropping 46 #define CAM_JPEG_WIDTH 3072 47 #define CAM_JPEG_HEIGHT 2304 48 #define CAM_ACTIVE_AREA_X1 38 49 #define CAM_ACTIVE_AREA_Y1 14 50 #define CAM_ACTIVE_AREA_X2 3146 51 #define CAM_ACTIVE_AREA_Y2 2338 52 // camera name 53 #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData 53 54 54 #define DNG_EXT_FROM ".DPS" 55 #define CAM_EXT_TV_RANGE 1 56 #define CAM_CHDK_PTP 1 // include CHDK PTP support 55 #define DNG_EXT_FROM ".DPS" 56 #define CAM_EXT_TV_RANGE 1 57 57 58 58 #define REMOTE_SYNC_STATUS_LED 0xc02200C4 // specifies an LED that turns on while camera waits for USB remote to sync -
trunk/platform/a580/lib.c
r1308 r1656 1 1 #include "platform.h" 2 //#include "../generic/lib.c"3 2 4 3 void shutdown() -
trunk/platform/a580/platform_camera.h
r1555 r1656 27 27 #define CAM_RAW_ROWS 2490 // for new 8 MP // Corrected! from 2480 (new value from stubs_entry.S) 28 28 29 #undef CAM_UNCACHED_BIT // Added! from stubs_entry.S30 #define CAM_UNCACHED_BIT 0x10000000 // Found @0xffc17e64 // Added! from stubs_entry.S31 32 29 #undef CAM_USE_ZOOM_FOR_MF 33 30 #define CAM_MULTIPART 1 … … 46 43 #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 47 44 // #define CAM_EV_IN_VIDEO 1 // not working on 101b!!! 48 #undef CAM_VIDEO_CONTROL // Not working45 #undef CAM_VIDEO_CONTROL // Not working 49 46 50 47 #define CAM_DNG_LENS_INFO { 58,10, 232,10, 26,10, 55,10 } // See comments in camera.h … … 55 52 726857, 1000000, -176454, 1000000, -124118, 1000000, \ 56 53 -71340, 1000000, 592001, 1000000, 75622, 1000000, \ 57 63222, 1000000, 50547, 1000000, 219582, 100000054 63222, 1000000, 50547, 1000000, 219582, 1000000 58 55 59 56 #define cam_CalibrationIlluminant1 1 // Daylight -
trunk/platform/a590/lib.c
r1022 r1656 1 1 #include "platform.h" 2 2 3 extern void my_debug_led(); 3 4 void shutdown() -
trunk/platform/a590/platform_camera.h
r1555 r1656 1 // Camera - A590 - platform_camera.h1 // Camera - a590 - platform_camera.h 2 2 3 // This file contains the various settings values specific to the A590 camera.3 // This file contains the various settings values specific to the a590 camera. 4 4 // This file is referenced via the 'include/camera.h' file and should not be loaded directly. 5 5 … … 21 21 // don't override them again in here. 22 22 23 #define CAM_ADJUSTABLE_ALT_BUTTON 1 24 #define CAM_PROPSET 2 25 #define CAM_DRYOS 1 23 #define CAM_PROPSET 2 24 #define CAM_DRYOS 1 26 25 27 #define CAM_RAW_ROWPIX 3336// for new 8 MP28 #define CAM_RAW_ROWS 2480// for new 8 MP26 #define CAM_RAW_ROWPIX 3336 // for new 8 MP 27 #define CAM_RAW_ROWS 2480 // for new 8 MP 29 28 30 29 #define CAM_USE_ZOOM_FOR_MF 1 31 30 32 #define CAM_CAN_MUTE_MICROPHONE 1 31 #define CAM_CAN_MUTE_MICROPHONE 1 32 #define CAM_ADJUSTABLE_ALT_BUTTON 1 33 33 #define CAM_HAS_IRIS_DIAPHRAGM 1 34 34 #undef CAM_HAS_ND_FILTER … … 36 36 #define CAM_HAS_MANUAL_FOCUS 1 37 37 38 #define CAM_AF_SCAN_DURING_VIDEO_RECORD 139 //#define CAM_EV_IN_VIDEO1 // not working on 101b!!!38 #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 39 //#define CAM_EV_IN_VIDEO 1 // not working on 101b!!! 40 40 41 41 #define CAM_DNG_LENS_INFO { 58,10, 232,10, 26,10, 55,10 } // See comments in camera.h 42 // pattern43 #define cam_CFAPattern 0x01000201 // Green Blue Red Green 44 // color 45 #define CAM_COLORMATRIX1 \46 726857, 1000000, -176454, 1000000, -124118, 1000000, \47 -71340, 1000000, 592001, 1000000, 75622, 1000000, \48 63222, 1000000, 50547, 1000000, 219582, 100000042 // pattern 43 #define cam_CFAPattern 0x01000201 // Green Blue Red Green 44 // color 45 #define CAM_COLORMATRIX1 \ 46 726857, 1000000, -176454, 1000000, -124118, 1000000, \ 47 -71340, 1000000, 592001, 1000000, 75622, 1000000, \ 48 63222, 1000000, 50547, 1000000, 219582, 1000000 49 49 50 #define cam_CalibrationIlluminant1 1// Daylight51 // cropping52 #define CAM_JPEG_WIDTH326453 #define CAM_JPEG_HEIGHT244854 #define CAM_ACTIVE_AREA_X11255 #define CAM_ACTIVE_AREA_Y11050 #define cam_CalibrationIlluminant1 1 // Daylight 51 // cropping 52 #define CAM_JPEG_WIDTH 3264 53 #define CAM_JPEG_HEIGHT 2448 54 #define CAM_ACTIVE_AREA_X1 12 55 #define CAM_ACTIVE_AREA_Y1 10 56 56 // note: the above contains some pixels which have valid data, 57 57 // but are not at the same levels as the rest of the frame … … 59 59 //#define CAM_ACTIVE_AREA_X1 16 60 60 //#define CAM_ACTIVE_AREA_Y1 18 61 #define CAM_ACTIVE_AREA_X2330062 #define CAM_ACTIVE_AREA_Y2248061 #define CAM_ACTIVE_AREA_X2 3300 62 #define CAM_ACTIVE_AREA_Y2 2480 63 63 64 // camera name65 #define PARAM_CAMERA_NAME 4// parameter number for GetParameterData64 // camera name 65 #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData 66 66 67 #define CAM_EXT_TV_RANGE 1 68 #define CAM_MULTIPART 1 69 #define CAM_STARTUP_CRASH_FILE_OPEN_FIX 1 67 #define CAM_EXT_TV_RANGE 1 68 #define CAM_MULTIPART 1 69 #define CAM_STARTUP_CRASH_FILE_OPEN_FIX 1 // enable fix for camera crash at startup when opening the conf / font files see http://chdk.setepontos.com/index.php?topic=6179.0 70 #undef CAMERA_MIN_DIST 71 #define CAMERA_MIN_DIST 100 // Override min subject distance 72 #undef CAMERA_MAX_DIST 73 #define CAMERA_MAX_DIST 52855 // Override max subject distance 70 74 71 75 #define CAM_FIRMWARE_MEMINFO 1 // Use 'GetMemInfo' to get free memory size. -
trunk/platform/a610/platform_camera.h
r1555 r1656 1 // Camera - A610 - platform_camera.h1 // Camera - a610 - platform_camera.h 2 2 3 // This file contains the various settings values specific to the A610 camera.3 // This file contains the various settings values specific to the a610 camera. 4 4 // This file is referenced via the 'include/camera.h' file and should not be loaded directly. 5 5 … … 21 21 // don't override them again in here. 22 22 23 #define CAM_PROPSET 123 #define CAM_PROPSET 1 24 24 25 #define CAM_RAW_ROWPIX 2672// for 5 MP26 #define CAM_RAW_ROWS 1968// for 5 MP27 28 #define CAM_SWIVEL_SCREEN 129 #define CAM_MULTIPART 125 #define CAM_RAW_ROWPIX 2672 // for 5 MP 26 #define CAM_RAW_ROWS 1968 // for 5 MP 27 28 #define CAM_SWIVEL_SCREEN 1 29 #define CAM_MULTIPART 1 30 30 #undef CAM_CAN_SD_OVER_NOT_IN_MF 31 31 #undef CAM_HAS_IS 32 #define CAM_CAN_MUTE_MICROPHONE 132 #define CAM_CAN_MUTE_MICROPHONE 1 33 33 #define CAM_AF_SCAN_DURING_VIDEO_RECORD 2 34 #define CAM_EV_IN_VIDEO 1 35 #define CAM_EXT_TV_RANGE 1 36 34 #define CAM_EV_IN_VIDEO 1 35 #define CAM_EXT_TV_RANGE 1 37 36 #define CAM_DNG_LENS_INFO { 73,10, 292,10, 28,10, 41,10 } // See comments in camera.h 38 37 // pattern 39 #define cam_CFAPattern 0x02010100 // Red Green Green Blue38 #define cam_CFAPattern 0x02010100 // Red Green Green Blue 40 39 // color 41 #define CAM_COLORMATRIX1 \42 15887, 10000, -6524, 10000, -1622, 10000,\43 -5467, 10000, 13449, 10000, 2209, 10000,\44 -1325, 10000, 1859, 10000,5172, 1000045 46 #define cam_CalibrationIlluminant1 17// Standard light A40 #define CAM_COLORMATRIX1 \ 41 15887, 10000, -6524, 10000, -1622, 10000, \ 42 -5467, 10000, 13449, 10000, 2209, 10000, \ 43 -1325, 10000, 1859, 10000, 5172, 10000 44 45 #define cam_CalibrationIlluminant1 17 // Standard light A 47 46 // cropping 48 #define CAM_JPEG_WIDTH 259249 #define CAM_JPEG_HEIGHT 194450 #define CAM_ACTIVE_AREA_X1 1451 #define CAM_ACTIVE_AREA_Y1 1052 #define CAM_ACTIVE_AREA_X2 262653 #define CAM_ACTIVE_AREA_Y2 196647 #define CAM_JPEG_WIDTH 2592 48 #define CAM_JPEG_HEIGHT 1944 49 #define CAM_ACTIVE_AREA_X1 14 50 #define CAM_ACTIVE_AREA_Y1 10 51 #define CAM_ACTIVE_AREA_X2 2626 52 #define CAM_ACTIVE_AREA_Y2 1966 54 53 // camera name 55 #define PARAM_CAMERA_NAME 3// parameter number for GetParameterData54 #define PARAM_CAMERA_NAME 3 // parameter number for GetParameterData 56 55 57 #define DNG_EXT_FROM ".DPS" 58 #define CAM_CHDK_PTP 1 // include CHDK PTP support 56 #define DNG_EXT_FROM ".DPS" 57 #undef CAMERA_MIN_DIST 58 #define CAMERA_MIN_DIST 62 // Override min subject distance 59 #undef CAMERA_MAX_DIST 60 #define CAMERA_MAX_DIST 43517 // Override max subject distance 59 61 60 62 // #define REMOTE_SYNC_STATUS_LED 0xC0xxyyyy // specifies an LED that turns on while camera waits for USB remote to sync -
trunk/platform/a620/platform_camera.h
r1555 r1656 1 // Camera - A620 - platform_camera.h1 // Camera - a620 - platform_camera.h 2 2 3 // This file contains the various settings values specific to the A620 camera.3 // This file contains the various settings values specific to the a620 camera. 4 4 // This file is referenced via the 'include/camera.h' file and should not be loaded directly. 5 5 … … 21 21 // don't override them again in here. 22 22 23 #define CAM_PROPSET 123 #define CAM_PROPSET 1 24 24 25 #define CAM_RAW_ROWPIX 3152// for 7 MP26 #define CAM_RAW_ROWS 2340// for 7 MP25 #define CAM_RAW_ROWPIX 3152 // for 7 MP 26 #define CAM_RAW_ROWS 2340 // for 7 MP 27 27 28 #define CAM_SWIVEL_SCREEN 128 #define CAM_SWIVEL_SCREEN 1 29 29 #undef CAM_CAN_SD_OVER_NOT_IN_MF 30 #undef CAM_HAS_IS 31 #define CAM_CAN_MUTE_MICROPHONE 130 #undef CAM_HAS_IS 31 #define CAM_CAN_MUTE_MICROPHONE 1 32 32 #define CAM_AF_SCAN_DURING_VIDEO_RECORD 2 33 #define CAM_EV_IN_VIDEO 133 #define CAM_EV_IN_VIDEO 1 34 34 35 35 #define CAM_DNG_LENS_INFO { 73,10, 292,10, 28,10, 41,10 } // See comments in camera.h 36 36 // pattern 37 #define cam_CFAPattern 0x02010100 // Red Green Green Blue37 #define cam_CFAPattern 0x02010100 // Red Green Green Blue 38 38 // color 39 #define CAM_COLORMATRIX1 \40 15265, 10000, -6193, 10000, -1558, 10000,\41 -4125, 10000, 12116, 10000, 2010, 10000,\42 -888, 10000, 1639, 10000,5220, 1000039 #define CAM_COLORMATRIX1 \ 40 15265, 10000, -6193, 10000, -1558, 10000, \ 41 -4125, 10000, 12116, 10000, 2010, 10000, \ 42 -888, 10000, 1639, 10000, 5220, 10000 43 43 44 #define cam_CalibrationIlluminant1 17// Standard light A44 #define cam_CalibrationIlluminant1 17 // Standard light A 45 45 // cropping 46 #define CAM_JPEG_WIDTH 307247 #define CAM_JPEG_HEIGHT 230448 #define CAM_ACTIVE_AREA_X1 3849 #define CAM_ACTIVE_AREA_Y1 1450 #define CAM_ACTIVE_AREA_X2 314651 #define CAM_ACTIVE_AREA_Y2 233846 #define CAM_JPEG_WIDTH 3072 47 #define CAM_JPEG_HEIGHT 2304 48 #define CAM_ACTIVE_AREA_X1 38 49 #define CAM_ACTIVE_AREA_Y1 14 50 #define CAM_ACTIVE_AREA_X2 3146 51 #define CAM_ACTIVE_AREA_Y2 2338 52 52 // camera name 53 #define PARAM_CAMERA_NAME 3// parameter number for GetParameterData54 #define DNG_EXT_FROM ".DPS"53 #define PARAM_CAMERA_NAME 3 // parameter number for GetParameterData 54 #define DNG_EXT_FROM ".DPS" 55 55 56 56 // #define REMOTE_SYNC_STATUS_LED 0xC0xxyyyy // specifies an LED that turns on while camera waits for USB remote to sync -
trunk/platform/a630/platform_camera.h
r1555 r1656 1 // Camera - A630 - platform_camera.h1 // Camera - a630 - platform_camera.h 2 2 3 // This file contains the various settings values specific to the A630 camera.3 // This file contains the various settings values specific to the a630 camera. 4 4 // This file is referenced via the 'include/camera.h' file and should not be loaded directly. 5 5 … … 21 21 // don't override them again in here. 22 22 23 #define CAM_PROPSET 123 #define CAM_PROPSET 1 24 24 25 #define CAM_RAW_ROWPIX 3344// for 8 MP26 #define CAM_RAW_ROWS 2484// for 8 MP27 28 #define CAM_SWIVEL_SCREEN 129 #define CAM_MULTIPART 125 #define CAM_RAW_ROWPIX 3344 // for 8 MP 26 #define CAM_RAW_ROWS 2484 // for 8 MP 27 28 #define CAM_SWIVEL_SCREEN 1 29 #define CAM_MULTIPART 1 30 30 #undef CAM_CAN_SD_OVER_NOT_IN_MF 31 31 #undef CAM_HAS_IS 32 #define CAM_CAN_MUTE_MICROPHONE 132 #define CAM_CAN_MUTE_MICROPHONE 1 33 33 #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 34 #define CAM_EV_IN_VIDEO 134 #define CAM_EV_IN_VIDEO 1 35 35 36 36 #define CAM_DNG_LENS_INFO { 73,10, 292,10, 28,10, 41,10 } // See comments in camera.h 37 37 // pattern 38 #define cam_CFAPattern 0x02010100 // Red Green Green Blue38 #define cam_CFAPattern 0x02010100 // Red Green Green Blue 39 39 // color 40 #define CAM_COLORMATRIX1 \41 656080, 1000000,-226478, 1000000, -85884, 1000000,\42 -194636, 1000000, 687905, 1000000, 37862, 1000000,\43 22873, 1000000, 75523, 1000000,265822, 100000044 45 #define cam_CalibrationIlluminant1 1// Daylight40 #define CAM_COLORMATRIX1 \ 41 656080, 1000000, -226478, 1000000, -85884, 1000000, \ 42 -194636, 1000000, 687905, 1000000, 37862, 1000000, \ 43 22873, 1000000, 75523, 1000000, 265822, 1000000 44 45 #define cam_CalibrationIlluminant1 1 // Daylight 46 46 // cropping 47 #define CAM_JPEG_WIDTH 326448 #define CAM_JPEG_HEIGHT 244849 #define CAM_ACTIVE_AREA_X1 1450 #define CAM_ACTIVE_AREA_Y1 851 #define CAM_ACTIVE_AREA_X2 329852 #define CAM_ACTIVE_AREA_Y2 247647 #define CAM_JPEG_WIDTH 3264 48 #define CAM_JPEG_HEIGHT 2448 49 #define CAM_ACTIVE_AREA_X1 14 50 #define CAM_ACTIVE_AREA_Y1 8 51 #define CAM_ACTIVE_AREA_X2 3298 52 #define CAM_ACTIVE_AREA_Y2 2476 53 53 // camera name 54 #define PARAM_CAMERA_NAME 4// parameter number for GetParameterData55 #define DNG_EXT_FROM ".DPS"56 #define CAM_EXT_TV_RANGE 154 #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData 55 #define DNG_EXT_FROM ".DPS" 56 #define CAM_EXT_TV_RANGE 1 57 57 58 58 // #define REMOTE_SYNC_STATUS_LED 0xC0xxyyyy // specifies an LED that turns on while camera waits for USB remote to sync -
trunk/platform/a640/platform_camera.h
r1555 r1656 1 // Camera - A640 - platform_camera.h1 // Camera - a640 - platform_camera.h 2 2 3 // This file contains the various settings values specific to the A640 camera.3 // This file contains the various settings values specific to the a640 camera. 4 4 // This file is referenced via the 'include/camera.h' file and should not be loaded directly. 5 5 … … 21 21 // don't override them again in here. 22 22 23 #define CAM_PROPSET 123 #define CAM_PROPSET 1 24 24 25 #define CAM_RAW_ROWPIX 3736// for 10 MP26 #define CAM_RAW_ROWS 2772// for 10 MP27 28 #define CAM_SWIVEL_SCREEN 129 #define CAM_MULTIPART 125 #define CAM_RAW_ROWPIX 3736 // for 10 MP 26 #define CAM_RAW_ROWS 2772 // for 10 MP 27 28 #define CAM_SWIVEL_SCREEN 1 29 #define CAM_MULTIPART 1 30 30 #undef CAM_CAN_SD_OVER_NOT_IN_MF 31 31 #undef CAM_HAS_IS 32 #define CAM_CAN_MUTE_MICROPHONE 132 #define CAM_CAN_MUTE_MICROPHONE 1 33 33 #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 34 #define CAM_EV_IN_VIDEO 134 #define CAM_EV_IN_VIDEO 1 35 35 36 36 #define CAM_DNG_LENS_INFO { 73,10, 292,10, 28,10, 41,10 } // See comments in camera.h 37 37 // pattern 38 #define cam_CFAPattern 0x02010100 // Red Green Green Blue38 #define cam_CFAPattern 0x02010100 // Red Green Green Blue 39 39 // color 40 #define CAM_COLORMATRIX1 \41 13124, 10000, -5329, 10000, -1390, 10000,\42 -3602, 10000, 11658, 10000, 1944, 10000,\43 -1612, 10000, 2863, 10000,4885, 1000044 45 #define cam_CalibrationIlluminant1 17// Standard light A40 #define CAM_COLORMATRIX1 \ 41 13124, 10000, -5329, 10000, -1390, 10000, \ 42 -3602, 10000, 11658, 10000, 1944, 10000, \ 43 -1612, 10000, 2863, 10000, 4885, 10000 44 45 #define cam_CalibrationIlluminant1 17 // Standard light A 46 46 // cropping 47 #define CAM_JPEG_WIDTH 364848 #define CAM_JPEG_HEIGHT 273649 #define CAM_ACTIVE_AREA_X1 1450 #define CAM_ACTIVE_AREA_Y1 851 #define CAM_ACTIVE_AREA_X2 368252 #define CAM_ACTIVE_AREA_Y2 276447 #define CAM_JPEG_WIDTH 3648 48 #define CAM_JPEG_HEIGHT 2736 49 #define CAM_ACTIVE_AREA_X1 14 50 #define CAM_ACTIVE_AREA_Y1 8 51 #define CAM_ACTIVE_AREA_X2 3682 52 #define CAM_ACTIVE_AREA_Y2 2764 53 53 // camera name 54 #define PARAM_CAMERA_NAME 4// parameter number for GetParameterData55 #define DNG_EXT_FROM ".DPS"54 #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData 55 #define DNG_EXT_FROM ".DPS" 56 56 57 57 // #define REMOTE_SYNC_STATUS_LED 0xC0xxyyyy // specifies an LED that turns on while camera waits for USB remote to sync -
trunk/platform/a650/platform_camera.h
r1555 r1656 1 // Camera - A650 - platform_camera.h1 // Camera - a650 - platform_camera.h 2 2 3 // This file contains the various settings values specific to the A650 camera.3 // This file contains the various settings values specific to the a650 camera. 4 4 // This file is referenced via the 'include/camera.h' file and should not be loaded directly. 5 5 … … 21 21 // don't override them again in here. 22 22 23 #define CAM_PROPSET 224 #define CAM_DRYOS 123 #define CAM_PROPSET 2 24 #define CAM_DRYOS 1 25 25 26 #define CAM_RAW_ROWPIX 4104// for 12 MP27 #define CAM_RAW_ROWS 3048// for 12 MP28 29 #define CAM_ADJUSTABLE_ALT_BUTTON 130 #define CAM_SWIVEL_SCREEN 131 #define CAM_CAN_MUTE_MICROPHONE 126 #define CAM_RAW_ROWPIX 4104 // for 12 MP 27 #define CAM_RAW_ROWS 3048 // for 12 MP 28 29 #define CAM_ADJUSTABLE_ALT_BUTTON 1 30 #define CAM_SWIVEL_SCREEN 1 31 #define CAM_CAN_MUTE_MICROPHONE 1 32 32 33 33 #undef CAM_EMUL_KEYPRESS_DURATION 34 #define CAM_EMUL_KEYPRESS_DURATION 1034 #define CAM_EMUL_KEYPRESS_DURATION 10 35 35 #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 36 #define CAM_EV_IN_VIDEO 136 #define CAM_EV_IN_VIDEO 1 37 37 38 38 #define CAM_DNG_LENS_INFO { 74,10, 444,10, 28,10, 48,10 } // See comments in camera.h 39 39 // pattern 40 #define cam_CFAPattern 0x02010100 // Red Green Green Blue40 #define cam_CFAPattern 0x02010100 // Red Green Green Blue 41 41 // color 42 42 #define CAM_COLORMATRIX1 \ 43 913762, 1000000,-261578, 1000000, -135582, 1000000, \44 -99049, 1000000,1067089, 1000000, 61442, 1000000, \45 48717, 1000000, 96802,1000000, 412056, 100000046 47 #define cam_CalibrationIlluminant1 1// Daylight43 913762, 1000000, -261578, 1000000, -135582, 1000000, \ 44 -99049, 1000000, 1067089, 1000000, 61442, 1000000, \ 45 48717, 1000000, 96802, 1000000, 412056, 1000000 46 47 #define cam_CalibrationIlluminant1 1 // Daylight 48 48 // cropping 49 #define CAM_JPEG_WIDTH 400050 #define CAM_JPEG_HEIGHT 300051 #define CAM_ACTIVE_AREA_X1 5252 #define CAM_ACTIVE_AREA_Y1 1453 #define CAM_ACTIVE_AREA_X2 407654 #define CAM_ACTIVE_AREA_Y2 303049 #define CAM_JPEG_WIDTH 4000 50 #define CAM_JPEG_HEIGHT 3000 51 #define CAM_ACTIVE_AREA_X1 52 52 #define CAM_ACTIVE_AREA_Y1 14 53 #define CAM_ACTIVE_AREA_X2 4076 54 #define CAM_ACTIVE_AREA_Y2 3030 55 55 // camera name 56 #define PARAM_CAMERA_NAME 4// parameter number for GetParameterData56 #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData 57 57 58 #define DNG_EXT_FROM ".CR2"58 #define DNG_EXT_FROM ".CR2" 59 59 60 60 #define REMOTE_SYNC_STATUS_LED 0xc02200C4 // specifies an LED that turns on while camera waits for USB remote to sync -
trunk/platform/a700/platform_camera.h
r1555 r1656 1 // Camera - A700 - platform_camera.h1 // Camera - a700 - platform_camera.h 2 2 3 // This file contains the various settings values specific to the A700 camera.3 // This file contains the various settings values specific to the a700 camera. 4 4 // This file is referenced via the 'include/camera.h' file and should not be loaded directly. 5 5 … … 21 21 // don't override them again in here. 22 22 23 #define CAM_PROPSET 123 #define CAM_PROPSET 1 24 24 25 #define CAM_RAW_ROWPIX 2888// for 6 MP26 #define CAM_RAW_ROWS 2136// for 6 MP25 #define CAM_RAW_ROWPIX 2888 // for 6 MP 26 #define CAM_RAW_ROWS 2136 // for 6 MP 27 27 28 28 #undef CAM_HAS_IS 29 #define CAM_CAN_MUTE_MICROPHONE 129 #define CAM_CAN_MUTE_MICROPHONE 1 30 30 #define CAM_AF_SCAN_DURING_VIDEO_RECORD 2 31 #define CAM_EV_IN_VIDEO 131 #define CAM_EV_IN_VIDEO 1 32 32 33 33 #define CAM_DNG_LENS_INFO { 58,10, 348,10, 28,10, 48,10 } // See comments in camera.h 34 34 // pattern 35 #define cam_CFAPattern 0x02010100 // Red Green Green Blue35 #define cam_CFAPattern 0x02010100 // Red Green Green Blue 36 36 // color 37 #define CAM_COLORMATRIX1 \38 14062, 10000, -5199, 10000, -1446, 10000,\39 -4712, 10000, 12470, 10000, 2243, 10000,\40 -1286, 10000, 2028, 10000,4836, 1000041 42 #define cam_CalibrationIlluminant1 17// Standard light A37 #define CAM_COLORMATRIX1 \ 38 14062, 10000, -5199, 10000, -1446, 10000, \ 39 -4712, 10000, 12470, 10000, 2243, 10000, \ 40 -1286, 10000, 2028, 10000, 4836, 10000 41 42 #define cam_CalibrationIlluminant1 17 // Standard light A 43 43 // cropping 44 #define CAM_JPEG_WIDTH 281645 #define CAM_JPEG_HEIGHT 211246 #define CAM_ACTIVE_AREA_X1 4447 #define CAM_ACTIVE_AREA_Y1 848 #define CAM_ACTIVE_AREA_X2 288449 #define CAM_ACTIVE_AREA_Y2 213644 #define CAM_JPEG_WIDTH 2816 45 #define CAM_JPEG_HEIGHT 2112 46 #define CAM_ACTIVE_AREA_X1 44 47 #define CAM_ACTIVE_AREA_Y1 8 48 #define CAM_ACTIVE_AREA_X2 2884 49 #define CAM_ACTIVE_AREA_Y2 2136 50 50 // camera name 51 #define PARAM_CAMERA_NAME 3// parameter number for GetParameterData52 #define DNG_EXT_FROM ".DPS"51 #define PARAM_CAMERA_NAME 3 // parameter number for GetParameterData 52 #define DNG_EXT_FROM ".DPS" 53 53 54 54 // #define REMOTE_SYNC_STATUS_LED 0xC0xxyyyy // specifies an LED that turns on while camera waits for USB remote to sync -
trunk/platform/a710/platform_camera.h
r1555 r1656 1 // Camera - A710 - platform_camera.h1 // Camera - a710 - platform_camera.h 2 2 3 // This file contains the various settings values specific to the A710 camera.3 // This file contains the various settings values specific to the a710 camera. 4 4 // This file is referenced via the 'include/camera.h' file and should not be loaded directly. 5 5 … … 21 21 // don't override them again in here. 22 22 23 #define CAM_PROPSET 123 #define CAM_PROPSET 1 24 24 25 #define CAM_RAW_ROWPIX 3152// for 7 MP26 #define CAM_RAW_ROWS 2340// for 7 MP25 #define CAM_RAW_ROWPIX 3152 // for 7 MP 26 #define CAM_RAW_ROWS 2340 // for 7 MP 27 27 28 #define CAM_MULTIPART 129 #define CAM_CAN_MUTE_MICROPHONE 128 #define CAM_MULTIPART 1 29 #define CAM_CAN_MUTE_MICROPHONE 1 30 30 #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 31 #define CAM_EV_IN_VIDEO 131 #define CAM_EV_IN_VIDEO 1 32 32 #define CAM_REAR_CURTAIN 1 // http://chdk.setepontos.com/index.php/topic,650.msg54434.html#msg54434 33 33 34 34 #define CAM_DNG_LENS_INFO { 58,10, 348,10, 28,10, 48,10 } // See comments in camera.h 35 35 // pattern 36 #define cam_CFAPattern 0x02010100 // Red Green Green Blue36 #define cam_CFAPattern 0x02010100 // Red Green Green Blue 37 37 // color 38 #define CAM_COLORMATRIX1 \39 13349, 10000, -4141, 10000,-2128, 10000, \40 -4189, 10000, 13178, 10000,1044, 10000, \41 -1037, 10000, 2326, 10000, 4720, 1000042 43 #define cam_CalibrationIlluminant1 1// Daylight38 #define CAM_COLORMATRIX1 \ 39 13349, 10000, -4141, 10000, -2128, 10000, \ 40 -4189, 10000, 13178, 10000, 1044, 10000, \ 41 -1037, 10000, 2326, 10000, 4720, 10000 42 43 #define cam_CalibrationIlluminant1 1 // Daylight 44 44 // cropping 45 #define CAM_JPEG_WIDTH 307246 #define CAM_JPEG_HEIGHT 230447 #define CAM_ACTIVE_AREA_X1 3848 #define CAM_ACTIVE_AREA_Y1 1449 #define CAM_ACTIVE_AREA_X2 314650 #define CAM_ACTIVE_AREA_Y2 233845 #define CAM_JPEG_WIDTH 3072 46 #define CAM_JPEG_HEIGHT 2304 47 #define CAM_ACTIVE_AREA_X1 38 48 #define CAM_ACTIVE_AREA_Y1 14 49 #define CAM_ACTIVE_AREA_X2 3146 50 #define CAM_ACTIVE_AREA_Y2 2338 51 51 // camera name 52 #define PARAM_CAMERA_NAME 4// parameter number for GetParameterData52 #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData 53 53 54 #define DNG_EXT_FROM ".DPS"54 #define DNG_EXT_FROM ".DPS" 55 55 56 #define CAM_EXT_TV_RANGE 156 #define CAM_EXT_TV_RANGE 1 57 57 58 58 // #define REMOTE_SYNC_STATUS_LED 0xC0xxyyyy // specifies an LED that turns on while camera waits for USB remote to sync -
trunk/platform/a720/platform_camera.h
r1556 r1656 1 // Camera - A720 - platform_camera.h1 // Camera - a720 - platform_camera.h 2 2 3 // This file contains the various settings values specific to the A720 camera.3 // This file contains the various settings values specific to the a720 camera. 4 4 // This file is referenced via the 'include/camera.h' file and should not be loaded directly. 5 5 … … 24 24 #define CAM_DRYOS 1 25 25 26 #define CAM_RAW_ROWPIX 3336 // for new 8 MP27 #define CAM_RAW_ROWS 2480 // for new 8 MP26 #define CAM_RAW_ROWPIX 3336 // for new 8 MP 27 #define CAM_RAW_ROWS 2480 // for new 8 MP 28 28 29 29 #define CAM_MULTIPART 1 … … 33 33 #define CAM_EV_IN_VIDEO 1 34 34 #undef CAM_VIDEO_CONTROL 35 36 // #define CAM_EXT_TV_RANGE 1 // disabled for now, see http://chdk.setepontos.com/index.php?topic=6182.0 35 //#define CAM_EXT_TV_RANGE 1 //disabled, because some trouble in video mode (http://forum.chdk-treff.de/viewtopic.php?f=12&t=2284, http://chdk.setepontos.com/index.php?topic=6182.0) 37 36 38 37 #define CAM_DNG_LENS_INFO { 58,10, 348,10, 28,10, 48,10 } // See comments in camera.h 39 38 // pattern 40 #define cam_CFAPattern 0x01000201 // Green Blue Red Green39 #define cam_CFAPattern 0x01000201 // Green Blue Red Green 41 40 // color 42 41 #define CAM_COLORMATRIX1 \ 43 640019, 1000000, -220031, 1000000,-96241, 1000000, \44 -77419, 1000000, 639766, 1000000,44009, 1000000, \45 17965, 1000000, 78396, 1000000,231868, 100000046 47 #define cam_CalibrationIlluminant1 1 // Daylight42 640019, 1000000, -220031, 1000000, -96241, 1000000, \ 43 -77419, 1000000, 639766, 1000000, 44009, 1000000, \ 44 17965, 1000000, 78396, 1000000, 231868, 1000000 45 46 #define cam_CalibrationIlluminant1 1 // Daylight 48 47 // cropping 49 48 #define CAM_JPEG_WIDTH 3264 … … 54 53 #define CAM_ACTIVE_AREA_Y2 2474 55 54 // camera name 56 #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData55 #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData 57 56 58 57 #define DNG_EXT_FROM ".CR2" 58 59 #undef CAMERA_MIN_DIST 60 #define CAMERA_MIN_DIST 59 // Override min subject distance 61 #undef CAMERA_MAX_DIST 62 #define CAMERA_MAX_DIST 58686 // Override max subject distance 59 63 60 64 #define CAM_USE_COLORED_ICONS 1 // Enable using the CHDK-DE colored icons. -
trunk/platform/d10/platform_camera.h
r1555 r1656 1 // Camera - D10 - platform_camera.h1 // Camera - d10 - platform_camera.h 2 2 3 // This file contains the various settings values specific to the D10 camera.3 // This file contains the various settings values specific to the d10 camera. 4 4 // This file is referenced via the 'include/camera.h' file and should not be loaded directly. 5 5 … … 21 21 // don't override them again in here. 22 22 23 #define CAM_PROPSET 224 #define CAM_DRYOS 123 #define CAM_PROPSET 2 24 #define CAM_DRYOS 1 25 25 26 #define CAM_RAW_ROWPIX 4104// 12 MP 12bpp27 #define CAM_RAW_ROWS 3048// from " CrwAddress %lx, CrwSize H %ld V %ld\r"26 #define CAM_RAW_ROWPIX 4104 // 12 MP 12bpp 27 #define CAM_RAW_ROWS 3048 // from " CrwAddress %lx, CrwSize H %ld V %ld\r" 28 28 29 29 #undef CAM_HAS_ERASE_BUTTON 30 30 #undef CAM_USE_ZOOM_FOR_MF 31 #define CAM_MULTIPART 1 31 #define CAM_MULTIPART 1 32 32 33 #undef CAM_HAS_IRIS_DIAPHRAGM 33 #define CAM_HAS_ND_FILTER 134 #define CAM_HAS_ND_FILTER 1 34 35 35 36 #define CAM_HAS_ZOOM_LEVER 1 // note, has zoom in/out buttons, not lever 36 37 37 38 38 // TODO39 // #define CAM_CAN_SD_OVER_NOT_IN_MF 1// Camera allows subject distance (focus) override when not in manual focus mode40 // #define CAM_CAN_SD_OVERRIDE 1// Camera allows to do subject distance override39 // TODO 40 // #define CAM_CAN_SD_OVER_NOT_IN_MF 1 // Camera allows subject distance (focus) override when not in manual focus mode 41 // #define CAM_CAN_SD_OVERRIDE 1 // Camera allows to do subject distance override 41 42 42 43 #define CAM_HAS_MANUAL_FOCUS 1 43 // long shutter is acutally user TV, may work ? 44 #undef CAM_HAS_USER_TV_MODES 45 #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 46 #define CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO 1 44 // long shutter is acutally user TV, may work ? 45 #undef CAM_HAS_USER_TV_MODES 46 #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 47 47 #define CAM_DETECT_SCREEN_ERASE 1 48 // TODO this doesn't seem to be working49 #define CAM_AF_SCAN_DURING_VIDEO_RECORD 148 // TODO this doesn't seem to be working 49 #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 50 50 #define CAM_CHDK_HAS_EXT_VIDEO_MENU 1 // In CHDK for this camera realized adjustable video compression 51 51 … … 54 54 55 55 #undef CAM_VIDEO_CONTROL 56 #define CAM_VIDEO_QUALITY_ONLY 156 #define CAM_VIDEO_QUALITY_ONLY 1 57 57 58 #define CAM_EXT_TV_RANGE 1 58 59 59 #define CAM_EXT_TV_RANGE 1 60 #undef CAM_UNCACHED_BIT 61 #define CAM_UNCACHED_BIT 0x40000000 60 62 61 #undef CAM_UNCACHED_BIT 62 #define CAM_UNCACHED_BIT 0x40000000 63 #undef CAM_BITMAP_PALETTE 64 // OK looks similar to ixus100 based on forum posts 65 #define CAM_BITMAP_PALETTE 5 63 66 64 #undef CAM_BITMAP_PALETTE 65 // OK looks similar to ixus100 based on forum posts 66 #define CAM_BITMAP_PALETTE 5 67 68 #define CAM_QUALITY_OVERRIDE 1 67 #define CAM_QUALITY_OVERRIDE 1 69 68 #undef CAM_SENSOR_BITS_PER_PIXEL 70 #define CAM_SENSOR_BITS_PER_PIXEL 1269 #define CAM_SENSOR_BITS_PER_PIXEL 12 71 70 72 71 #define CAM_STARTUP_CRASH_FILE_OPEN_FIX 1 … … 74 73 #define CAM_DNG_LENS_INFO { 62,10, 186,10, 28,10, 49,10 } // See comments in camera.h 75 74 76 #define cam_CFAPattern 0x01000201 // Green Blue Red Green75 #define cam_CFAPattern 0x01000201 // Green Blue Red Green 77 76 78 #define CAM_COLORMATRIX1 \79 14052, 10000, -5229, 10000,-1156, 10000, \80 -1325, 10000, 9420, 10000,2252, 10000, \81 -498, 10000, 1957, 10000,4116, 1000082 #define cam_CalibrationIlluminant1 21// D6577 #define CAM_COLORMATRIX1 \ 78 14052, 10000, -5229, 10000, -1156, 10000, \ 79 -1325, 10000, 9420, 10000, 2252, 10000, \ 80 -498, 10000, 1957, 10000, 4116, 10000 81 #define cam_CalibrationIlluminant1 21 // D65 83 82 84 // cropping OK85 #define CAM_JPEG_WIDTH 400086 #define CAM_JPEG_HEIGHT 300087 #define CAM_ACTIVE_AREA_X1 0// some data all the way to left, normal 8 ?88 #define CAM_ACTIVE_AREA_Y1 1089 #define CAM_ACTIVE_AREA_X2 4072 // or 402490 #define CAM_ACTIVE_AREA_Y2 3040// or 3041 or 302083 // cropping OK 84 #define CAM_JPEG_WIDTH 4000 85 #define CAM_JPEG_HEIGHT 3000 86 #define CAM_ACTIVE_AREA_X1 0 // some data all the way to left, normal 8 ? 87 #define CAM_ACTIVE_AREA_Y1 10 88 #define CAM_ACTIVE_AREA_X2 4072 // or 4024 89 #define CAM_ACTIVE_AREA_Y2 3040 // or 3041 or 3020 91 90 92 91 // camera name OK 93 #define PARAM_CAMERA_NAME 4// parameter number for GetParameterData92 #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData 94 93 95 // XXXX96 #undef CAM_USES_ASPECT_CORRECTION97 #define CAM_USES_ASPECT_CORRECTION 1 //camera uses the modified graphics primitives to map screens an viewports to buffers more sized94 //aspect correction 95 #undef CAM_USES_ASPECT_CORRECTION 96 #define CAM_USES_ASPECT_CORRECTION 1 //camera uses the modified graphics primitives to map screens an viewports to buffers more sized 98 97 #undef CAM_BITMAP_WIDTH 99 98 #define CAM_BITMAP_WIDTH 720 // Actual width of bitmap screen in bytes 100 99 101 #define CAM_ZEBRA_ASPECT_ADJUST 1 102 103 #define CAM_CHDK_PTP 1 // include CHDK PTP support 100 #define CAM_ZEBRA_ASPECT_ADJUST 1 104 101 105 102 #define CAM_FIRMWARE_MEMINFO 1 // Use 'GetMemInfo' to get free memory size. 106 103 107 #define CAM_DRIVE_MODE_FROM_TIMER_MODE // use PROPCASE_TIMER_MODE to check for multiple shot custom timer.104 #define CAM_DRIVE_MODE_FROM_TIMER_MODE 1 // use PROPCASE_TIMER_MODE to check for multiple shot custom timer. 108 105 // Used to enabled bracketing in custom timer, required on many recent cameras 109 106 // see http://chdk.setepontos.com/index.php/topic,3994.405.html 110 111 107 #define REMOTE_SYNC_STATUS_LED 0xc0220134 // specifies an LED that turns on while camera waits for USB remote to sync 112 108 -
trunk/platform/g10/platform_camera.h
r1580 r1656 21 21 // don't override them again in here. 22 22 23 #define CAM_DRYOS 124 #define CAM_DRYOS_2_3_R31 1 // note : structure used by stat changes in R3925 26 #define CAM_PROPSET 223 #define CAM_DRYOS 1 24 #define CAM_DRYOS_2_3_R31 1 // note : structure used by stat changes in R39 25 26 #define CAM_PROPSET 2 27 27 28 28 #undef CAM_CAN_SD_OVER_NOT_IN_MF 29 29 #undef CAM_USE_ZOOM_FOR_MF 30 #define CAM_HAS_ND_FILTER 130 #define CAM_HAS_ND_FILTER 1 31 31 32 32 #undef CAM_EMUL_KEYPRESS_DURATION 33 #define CAM_EMUL_KEYPRESS_DURATION 10 34 35 #define CAM_ADJUSTABLE_ALT_BUTTON 1 33 #define CAM_EMUL_KEYPRESS_DURATION 10 36 34 37 #define CAM_RAW_ROWPIX 4480 // G10 auto found @0xffacde38 38 #define CAM_RAW_ROWS 3348 // G10 auto found @0xffacde3c 39 40 #define CAM_JPEG_WIDTH 4416 // taken from G10 jpg header info 41 #define CAM_JPEG_HEIGHT 3312 // " 42 43 #define CAM_ACTIVE_AREA_X1 12 // calibrated with G10 RAW picture converted with rawconvert.exe (rawconvert -12to8 -pgm -w=4480 -h=3348 g10.crw g10.pgm) 44 #define CAM_ACTIVE_AREA_Y1 12 // " 45 #define CAM_ACTIVE_AREA_X2 4440 // " 46 #define CAM_ACTIVE_AREA_Y2 3334 // " 47 48 #undef CAM_MENU_BORDERWIDTH 49 #define CAM_MENU_BORDERWIDTH 10 35 #define CAM_ADJUSTABLE_ALT_BUTTON 1 50 36 51 #define CAM_QUALITY_OVERRIDE 1 37 #define CAM_RAW_ROWPIX 4480 // G10 auto found @0xffacde38 38 #define CAM_RAW_ROWS 3348 // G10 auto found @0xffacde3c 39 40 #define CAM_JPEG_WIDTH 4416 // taken from G10 jpg header info 41 #define CAM_JPEG_HEIGHT 3312 // " 42 43 #define CAM_ACTIVE_AREA_X1 12 // calibrated with G10 RAW picture converted with rawconvert.exe (rawconvert -12to8 -pgm -w=4480 -h=3348 g10.crw g10.pgm) 44 #define CAM_ACTIVE_AREA_Y1 12 // " 45 #define CAM_ACTIVE_AREA_X2 4440 // " 46 #define CAM_ACTIVE_AREA_Y2 3334 // " 47 48 #undef CAM_MENU_BORDERWIDTH 49 #define CAM_MENU_BORDERWIDTH 10 50 51 #define CAM_QUALITY_OVERRIDE 1 52 52 #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 53 #define CAM_HAS_JOGDIAL 153 #define CAM_HAS_JOGDIAL 1 54 54 #undef CAM_CONSOLE_LOG_ENABLED // Development: internal camera stdout -> A/stdout.txt 55 #define CAM_BRACKETING 156 #define CAM_MULTIPART 157 #define CAM_EXT_TV_RANGE 155 #define CAM_BRACKETING 1 56 #define CAM_MULTIPART 1 57 #define CAM_EXT_TV_RANGE 1 58 58 #undef OPT_CURVES 59 #undefCAM_UNCACHED_BIT60 #define CAM_UNCACHED_BIT 0x40000000 // G10 auto found @0xff828844 59 #undef CAM_UNCACHED_BIT 60 #define CAM_UNCACHED_BIT 0x40000000 // G10 auto found @0xff828844 61 61 62 #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 63 #define CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO 1 64 65 #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData 66 #define PARAM_DISPLAY_MODE1 57 // param number for LCD display mode when camera in playback 67 #define PARAM_DISPLAY_MODE2 58 // param number for LCD display mode when camera in record view hold mode 68 69 #undef CAM_BITMAP_PALETTE 70 #define CAM_BITMAP_PALETTE 2 71 62 #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 63 64 #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData 65 #define PARAM_DISPLAY_MODE1 57 // param number for LCD display mode when camera in playback 66 #define PARAM_DISPLAY_MODE2 58 // param number for LCD display mode when camera in record view hold mode 67 68 #undef CAM_BITMAP_PALETTE 69 #define CAM_BITMAP_PALETTE 2 70 72 71 #undef CAM_SENSOR_BITS_PER_PIXEL 73 #define CAM_SENSOR_BITS_PER_PIXEL 1272 #define CAM_SENSOR_BITS_PER_PIXEL 12 74 73 75 #undef CAM_USES_ASPECT_CORRECTION76 #define CAM_USES_ASPECT_CORRECTION 1//camera uses the modified graphics primitives to map screens an viewports to buffers more sized74 #undef CAM_USES_ASPECT_CORRECTION 75 #define CAM_USES_ASPECT_CORRECTION 1 //camera uses the modified graphics primitives to map screens an viewports to buffers more sized 77 76 #undef CAM_BITMAP_WIDTH 78 77 #define CAM_BITMAP_WIDTH 720 // Actual width of bitmap screen in bytes 79 78 80 #undef EDGE_HMARGIN79 #undef EDGE_HMARGIN 81 80 #define EDGE_HMARGIN 28 82 81 83 82 #define CAM_DNG_LENS_INFO { 61,10, 305,10, 28,10, 45,10 } // See comments in camera.h 84 83 // G10 pattern 85 #define cam_CFAPattern 0x01000201 // 0x01000201 = Green Blue Red Green 86 // 0x02010100 = Red Green Green Blue 87 88 // G10 color - values from dcraw for G10 Canon RAW files 89 #define cam_CalibrationIlluminant1 17 // standard light A 90 #define CAM_COLORMATRIX1 \ 91 11093, 1000000, -3906, 1000000, -1028, 1000000, \ 92 -5047, 1000000, 12492, 1000000, 2879, 1000000, \ 93 -1003, 1000000, 1750, 1000000, 5561, 1000000 94 84 #define cam_CFAPattern 0x01000201 // 0x01000201 = Green Blue Red Green 85 // 0x02010100 = Red Green Green Blue 95 86 96 // zebra 97 #define CAM_ZEBRA_ASPECT_ADJUST 1 98 #define CAM_ZEBRA_NOBUF 1 87 // G10 color - values from dcraw for G10 Canon RAW files 88 #define cam_CalibrationIlluminant1 17 // standard light A 89 #define CAM_COLORMATRIX1 \ 90 11093, 1000000, -3906, 1000000, -1028, 1000000, \ 91 -5047, 1000000, 12492, 1000000, 2879, 1000000, \ 92 -1003, 1000000, 1750, 1000000, 5561, 1000000 93 94 // zebra 95 #define CAM_ZEBRA_ASPECT_ADJUST 1 96 #define CAM_ZEBRA_NOBUF 1 99 97 100 98 #undef CAM_DATE_FOLDER_NAMING // not needed for G10 101 99 102 #define CAM_STARTUP_CRASH_FILE_OPEN_FIX 1// enable fix for camera crash at startup when opening the conf / font files103 // see http://chdk.setepontos.com/index.php?topic=6179.0100 #define CAM_STARTUP_CRASH_FILE_OPEN_FIX 1 // enable fix for camera crash at startup when opening the conf / font files 101 // see http://chdk.setepontos.com/index.php?topic=6179.0 104 102 #define CAM_FIRMWARE_MEMINFO 1 // Use 'GetMemInfo' to get free memory size. 105 103 106 #define CAM_DRIVE_MODE_FROM_TIMER_MODE 1// use PROPCASE_TIMER_MODE to check for multiple shot custom timer.107 // Used to enabled bracketing in custom timer, required on many recent cameras108 // see http://chdk.setepontos.com/index.php/topic,3994.405.html104 #define CAM_DRIVE_MODE_FROM_TIMER_MODE 1 // use PROPCASE_TIMER_MODE to check for multiple shot custom timer. 105 // Used to enabled bracketing in custom timer, required on many recent cameras 106 // see http://chdk.setepontos.com/index.php/topic,3994.405.html 109 107 110 108 #define CAM_DETECT_SCREEN_ERASE 1 // http://chdk.setepontos.com/index.php?topic=6705.msg71062#msg71062 -
trunk/platform/g11/platform_camera.h
r1555 r1656 1 // Camera - G11 - platform_camera.h1 // Camera - g11 - platform_camera.h 2 2 3 // This file contains the various settings values specific to the G11 camera.3 // This file contains the various settings values specific to the g11 camera. 4 4 // This file is referenced via the 'include/camera.h' file and should not be loaded directly. 5 5 … … 21 21 // don't override them again in here. 22 22 23 #define CAM_DRYOS_2_3_R39 1 24 #define CAM_PROPSET 3 25 #define CAM_DRYOS 1 23 #define CAM_PROPSET 3 24 #define CAM_DRYOS 1 25 #define CAM_DRYOS_2_3_R39 1 26 27 #define CAM_RAW_ROWPIX 3744 // See g11 lib.c 28 #define CAM_RAW_ROWS 2784 // See g11 lib.c 29 30 #undef CAM_EMUL_KEYPRESS_DURATION 31 #define CAM_EMUL_KEYPRESS_DURATION 10 32 33 #define CAM_ADJUSTABLE_ALT_BUTTON 1 34 35 #undef CAM_MENU_BORDERWIDTH 36 #define CAM_MENU_BORDERWIDTH 10 37 26 38 #undef CAM_USE_ZOOM_FOR_MF 27 #define CAM_HAS_ND_FILTER 1 28 #define CAM_RAW_ROWPIX 3744 // See g11 lib.c 29 #define CAM_RAW_ROWS 2784 // See g11 lib.c 30 #undef CAM_EMUL_KEYPRESS_DURATION 31 #define CAM_EMUL_KEYPRESS_DURATION 10 39 #define CAM_HAS_ND_FILTER 1 40 #define CAM_QUALITY_OVERRIDE 1 41 #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 42 #define CAM_HAS_JOGDIAL 1 43 #undef CAM_CONSOLE_LOG_ENABLED // Development: internal camera stdout -> A/stdout.txt 44 #define CAM_BRACKETING 1 45 #define CAM_MULTIPART 1 46 #define CAM_EXT_TV_RANGE 1 47 #undef OPT_CURVES 48 #undef CAM_UNCACHED_BIT 49 #define CAM_UNCACHED_BIT 0x40000000 // G11 @FF888204(via ExMem.FreeCacheable) 32 50 33 #define CAM_ADJUSTABLE_ALT_BUTTON 1 34 35 #undef CAM_MENU_BORDERWIDTH 36 #define CAM_MENU_BORDERWIDTH 10 37 38 #define CAM_QUALITY_OVERRIDE 1 39 #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 40 #define CAM_HAS_JOGDIAL 1 41 #undef CAM_CONSOLE_LOG_ENABLED // Development: internal camera stdout -> A/stdout.txt 42 #define CAM_BRACKETING 1 43 #define CAM_MULTIPART 1 44 #define CAM_EXT_TV_RANGE 1 45 #undef OPT_CURVES 46 #undef CAM_UNCACHED_BIT 47 #define CAM_UNCACHED_BIT 0x40000000 // G11 @FF888204(via ExMem.FreeCacheable) 48 49 #define CAM_SWIVEL_SCREEN 1 50 #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 51 #define CAM_SWIVEL_SCREEN 1 52 #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 51 53 52 54 // camera name 53 #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData 55 #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData 56 #define PARAM_DISPLAY_MODE1 59 // param number for LCD display mode when camera in playback 57 #define PARAM_DISPLAY_MODE2 62 // param number for LCD display mode when camera in record view hold mode 54 58 #undef CAM_SENSOR_BITS_PER_PIXEL 55 #define CAM_SENSOR_BITS_PER_PIXEL 1259 #define CAM_SENSOR_BITS_PER_PIXEL 12 56 60 57 #undef CAM_USES_ASPECT_CORRECTION58 #define CAM_USES_ASPECT_CORRECTION 1 //camera uses the modified graphics primitives to map screens an viewports to buffers more sized61 #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 59 63 #undef CAM_BITMAP_WIDTH 60 64 #undef CAM_BITMAP_HEIGHT … … 62 66 #define CAM_BITMAP_HEIGHT 270 // Actual height of bitmap screen in rows 63 67 64 #undef CAM_BITMAP_PALETTE65 #define CAM_BITMAP_PALETTE 468 #undef CAM_BITMAP_PALETTE 69 #define CAM_BITMAP_PALETTE 4 66 70 67 #undef EDGE_HMARGIN68 #define EDGE_HMARGIN 2871 #undef EDGE_HMARGIN 72 #define EDGE_HMARGIN 20 69 73 70 74 #define CAM_DNG_LENS_INFO { 61,10, 305,10, 28,10, 45,10 } // See comments in camera.h 71 75 /**** From SX200IS, ok for G11 ?*/ 72 76 // pattern 73 #define cam_CFAPattern 0x02010100 // Red Green Green Blue77 #define cam_CFAPattern 0x02010100 // Red Green Green Blue 74 78 // color 75 //need fixing ***************************************************** 76 #define CAM_COLORMATRIX1 \ 77 14134, 1000000, -5576, 1000000, -1527, 1000000, \ 78 -1991, 1000000, 10719, 1000000, 1273, 1000000, \ 79 -1158, 1000000, 1929, 1000000, 3581, 1000000 80 #define cam_CalibrationIlluminant1 17 // Standard Light A 79 #define CAM_COLORMATRIX1 \ 80 14134, 1000000, -5576, 1000000, -1527, 1000000, \ 81 -1991, 1000000, 10719, 1000000, 1273, 1000000, \ 82 -1158, 1000000, 1929, 1000000, 3581, 1000000 83 #define cam_CalibrationIlluminant1 17 // Standard Light A 81 84 82 85 // cropping 83 86 //g11 values from Amit Talwar 84 #define CAM_JPEG_WIDTH 364885 #define CAM_JPEG_HEIGHT 273686 #define CAM_ACTIVE_AREA_X1 1687 #define CAM_ACTIVE_AREA_Y1 888 #define CAM_ACTIVE_AREA_X2 369289 #define CAM_ACTIVE_AREA_Y2 277687 #define CAM_JPEG_WIDTH 3648 88 #define CAM_JPEG_HEIGHT 2736 89 #define CAM_ACTIVE_AREA_X1 16 90 #define CAM_ACTIVE_AREA_Y1 8 91 #define CAM_ACTIVE_AREA_X2 3692 92 #define CAM_ACTIVE_AREA_Y2 2776 90 93 91 94 /**** From SX200IS, ok for G11 END?*/ 92 #define CAM_ZEBRA_ASPECT_ADJUST 195 #define CAM_ZEBRA_ASPECT_ADJUST 1 93 96 94 #define CAM_DRIVE_MODE_FROM_TIMER_MODE // use PROPCASE_TIMER_MODE to check for multiple shot custom timer. 97 #define CAM_DATE_FOLDER_NAMING 0x100 //Value found in the last function, which is called in GetImageFolder. (first compare) 98 99 #define CAM_DRIVE_MODE_FROM_TIMER_MODE 1 // use PROPCASE_TIMER_MODE to check for multiple shot custom timer. 95 100 // Used to enabled bracketing in custom timer, required on many recent cameras 96 101 // see http://chdk.setepontos.com/index.php/topic,3994.405.html 97 98 102 #define REMOTE_SYNC_STATUS_LED 0xC0220128 // specifies an LED that turns on while camera waits for USB remote to sync 99 103 -
trunk/platform/g11/shooting.c
r1632 r1656 138 138 } 139 139 140 #if defined(CAM_DATE_FOLDER_NAMING) 141 void get_target_dir_name(char *out) { 142 extern void _GetImageFolder(char*,int,int,int); 143 out[0] = 'A'; 144 _GetImageFolder(out+1,get_file_next_counter(),CAM_DATE_FOLDER_NAMING,time(NULL)); 145 out[15] = '\0'; 146 } 147 #else 140 148 long get_target_dir_num() { 141 149 long n; … … 145 153 return n; 146 154 } 155 #endif 147 156 148 157 int circle_of_confusion = 7; -
trunk/platform/g12/platform_camera.h
r1641 r1656 62 62 #define CAM_SENSOR_BITS_PER_PIXEL 12 63 63 64 #undef CAM_BITMAP_PALETTE64 #undef CAM_BITMAP_PALETTE 65 65 #define CAM_BITMAP_PALETTE 12 66 66 … … 82 82 #define CAM_DNG_LENS_INFO { 61,10, 305,10, 28,10, 45,10 } // See comments in camera.h 83 83 84 #define cam_CalibrationIlluminant1 17 // Standard Light A85 84 // From dcraw 86 #define CAM_COLORMATRIX1 \85 #define CAM_COLORMATRIX1 \ 87 86 13244, 10000, -5501, 10000, -1248, 10000, \ 88 87 -1508, 10000, 9858, 10000, 1935, 10000, \ 89 88 -270, 10000, 1083, 10000, 4366, 10000 89 90 #define cam_CalibrationIlluminant1 17 // Standard Light A 90 91 91 92 // Sensor size, DNG image size & cropping … … 100 101 101 102 #define CAM_ZEBRA_ASPECT_ADJUST 1 102 103 #define CAM_DATE_FOLDER_NAMING 1104 103 105 #define CAM_STARTUP_CRASH_FILE_OPEN_FIX 1 // enable fix for camera crash at startup when opening the conf / font files 106 // see http://chdk.setepontos.com/index.php?topic=6179.0 104 #define CAM_DATE_FOLDER_NAMING 0x400 //Value found in the last function, which is called in GetImageFolder. (first compare) 105 106 #define CAM_STARTUP_CRASH_FILE_OPEN_FIX 1 // enable fix for camera crash at startup when opening the conf / font files see http://chdk.setepontos.com/index.php?topic=6179.0 107 107 108 108 #define CAM_FIRMWARE_MEMINFO 1 // Use 'GetMemInfo' to get free memory size. … … 111 111 // Used to enabled bracketing in custom timer, required on many recent cameras 112 112 // see http://chdk.setepontos.com/index.php/topic,3994.405.html 113 114 #define CAM_AV_OVERRIDE_IRIS_FIX 1 // for cameras that require _MoveIrisWithAv function to override Av in bracketing.115 113 116 #define CAM_ DISABLE_RAW_IN_LOW_LIGHT_MODE 1 // For cameras with 'low light' mode that does now work with raw define this114 #define CAM_AV_OVERRIDE_IRIS_FIX 1 // for cameras that require _MoveIrisWithAv function to override Av. 117 115 118 #define CAM_LOAD_CUSTOM_COLORS 1 // Enable loading CHDK colors into the camera palette memory/hardware 119 #define CHDK_COLOR_BASE 0xB3 // Start color index for CHDK colors loaded into camera palette. 116 #define CAM_DISABLE_RAW_IN_LOW_LIGHT_MODE 1 // For cameras with 'low light' mode that does now work with raw define this 117 118 #define CAM_LOAD_CUSTOM_COLORS 1 // Enable loading CHDK colors into the camera palette memory/hardware 119 #define CHDK_COLOR_BASE 0xB3// Start color index for CHDK colors loaded into camera palette. 120 120 #define CAM_USE_COLORED_ICONS 1 // Enable using the CHDK-DE colored icons. 121 121 122 122 // #define REMOTE_SYNC_STATUS_LED 0xC0xxyyyy // specifies an LED that turns on while camera waits for USB remote to sync 123 123 124 #undef CAMERA_MIN_DIST124 #undef CAMERA_MIN_DIST 125 125 #define CAMERA_MIN_DIST 68 // Override min subject distance 126 #undef CAMERA_MAX_DIST126 #undef CAMERA_MAX_DIST 127 127 #define CAMERA_MAX_DIST 258065 // Override max subject distance 128 129 128 //---------------------------------------------------------- 130 -
trunk/platform/g12/shooting.c
r1632 r1656 156 156 extern void _GetImageFolder(char*,int,int,int); 157 157 out[0] = 'A'; 158 _GetImageFolder(out+1,get_file_next_counter(), 0x400,time(NULL));158 _GetImageFolder(out+1,get_file_next_counter(),CAM_DATE_FOLDER_NAMING,time(NULL)); 159 159 } 160 160 #else -
trunk/platform/g7/platform_camera.h
r1555 r1656 1 // Camera - G7 - platform_camera.h1 // Camera - g7 - platform_camera.h 2 2 3 // This file contains the various settings values specific to the G7 camera.3 // This file contains the various settings values specific to the g7 camera. 4 4 // This file is referenced via the 'include/camera.h' file and should not be loaded directly. 5 5 … … 21 21 // don't override them again in here. 22 22 23 #define CAM_PROPSET 123 #define CAM_PROPSET 1 24 24 25 #define CAM_RAW_ROWPIX 3736// for 10 MP26 #define CAM_RAW_ROWS 2772// for 10 MP25 #define CAM_RAW_ROWPIX 3736 // for 10 MP 26 #define CAM_RAW_ROWS 2772 // for 10 MP 27 27 28 28 #undef CAM_USE_ZOOM_FOR_MF 29 #define CAM_ADJUSTABLE_ALT_BUTTON 130 #define CAM_MULTIPART 131 #define CAM_HAS_ND_FILTER 129 #define CAM_ADJUSTABLE_ALT_BUTTON 1 30 #define CAM_MULTIPART 1 31 #define CAM_HAS_ND_FILTER 1 32 32 #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 33 #define CAM_HAS_JOGDIAL 133 #define CAM_HAS_JOGDIAL 1 34 34 35 35 #define CAM_DNG_LENS_INFO { 74,10, 444,10, 28,10, 48,10 } // See comments in camera.h 36 36 // pattern 37 #define cam_CFAPattern 0x02010100 // Red Green Green Blue37 #define cam_CFAPattern 0x02010100 // Red Green Green Blue 38 38 // color 39 39 #define CAM_COLORMATRIX1 \ 40 575419, 1000000,-185557, 1000000, -77898,1000000, \41 -213702, 1000000,733569, 1000000, 81514, 1000000, \42 -24604, 1000000,131906, 1000000, 280378, 100000040 575419, 1000000, -185557, 1000000, -77898, 1000000, \ 41 -213702, 1000000, 733569, 1000000, 81514, 1000000, \ 42 -24604, 1000000, 131906, 1000000, 280378, 1000000 43 43 44 #define cam_CalibrationIlluminant1 1// Daylight44 #define cam_CalibrationIlluminant1 1 // Daylight 45 45 // cropping 46 #define CAM_JPEG_WIDTH 364847 #define CAM_JPEG_HEIGHT 273648 #define CAM_ACTIVE_AREA_X1 1449 #define CAM_ACTIVE_AREA_Y1 850 #define CAM_ACTIVE_AREA_X2 368251 #define CAM_ACTIVE_AREA_Y2 276446 #define CAM_JPEG_WIDTH 3648 47 #define CAM_JPEG_HEIGHT 2736 48 #define CAM_ACTIVE_AREA_X1 14 49 #define CAM_ACTIVE_AREA_Y1 8 50 #define CAM_ACTIVE_AREA_X2 3682 51 #define CAM_ACTIVE_AREA_Y2 2764 52 52 // camera name 53 #define PARAM_CAMERA_NAME 4// parameter number for GetParameterData54 #define CAM_BRACKETING 155 #define DNG_EXT_FROM ".DPS"53 #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData 54 #define CAM_BRACKETING 1 55 #define DNG_EXT_FROM ".DPS" 56 56 57 57 #define REMOTE_SYNC_STATUS_LED 0xc022006C // specifies an LED that turns on while camera waits for USB remote to sync -
trunk/platform/g9/platform_camera.h
r1555 r1656 1 // Camera - G9 - platform_camera.h1 // Camera - g9 - platform_camera.h 2 2 3 // This file contains the various settings values specific to the G9 camera.3 // This file contains the various settings values specific to the g9 camera. 4 4 // This file is referenced via the 'include/camera.h' file and should not be loaded directly. 5 5 … … 21 21 // don't override them again in here. 22 22 23 #define CAM_PROPSET224 #define CAM_DRYOS123 #define CAM_PROPSET 2 24 #define CAM_DRYOS 1 25 25 26 #define CAM_RAW_ROWPIX 4104// for 12 MP27 #define CAM_RAW_ROWS 3048// for 12 MP28 #define CAM_HAS_ND_FILTER129 #define CAM_ADJUSTABLE_ALT_BUTTON130 #undef CAM_EMUL_KEYPRESS_DURATION31 #define CAM_EMUL_KEYPRESS_DURATION1032 #define CAM_AF_SCAN_DURING_VIDEO_RECORD133 #define CAM_HAS_JOGDIAL126 #define CAM_RAW_ROWPIX 4104 // for 12 MP 27 #define CAM_RAW_ROWS 3048 // for 12 MP 28 #define CAM_HAS_ND_FILTER 1 29 #define CAM_ADJUSTABLE_ALT_BUTTON 1 30 #undef CAM_EMUL_KEYPRESS_DURATION 31 #define CAM_EMUL_KEYPRESS_DURATION 10 32 #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 33 #define CAM_HAS_JOGDIAL 1 34 34 // #define CAM_CONSOLE_LOG_ENABLED 1 35 #define CAM_BRACKETING136 #define CAM_MULTIPART137 #define CAM_EXT_TV_RANGE135 #define CAM_BRACKETING 1 36 #define CAM_MULTIPART 1 37 #define CAM_EXT_TV_RANGE 1 38 38 39 // camera name 40 #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData 41 39 // camera name 40 #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData 42 41 43 42 #define CAM_DNG_LENS_INFO { 74,10, 444,10, 28,10, 48,10 } // See comments in camera.h 44 // pattern45 #define cam_CFAPattern 0x02010100// Red Green Green Blue46 // color (alternativ: http://lclevy.free.fr/cr2/)47 #define CAM_COLORMATRIX1\48 1679727, 1000000, 422803, 1000000, 803343, 1000000, \49 220204, 1000000, 1784845, 1000000, -63290, 1000000, \50 -282882, 1000000, -475034, 1000000, 4502592, 100000043 // pattern 44 #define cam_CFAPattern 0x02010100 // Red Green Green Blue 45 // color (alternativ: http://lclevy.free.fr/cr2/) 46 #define CAM_COLORMATRIX1 \ 47 1679727, 1000000, 422803, 1000000, 803343, 1000000, \ 48 220204, 1000000, 1784845, 1000000, -63290, 1000000, \ 49 -282882, 1000000, -475034, 1000000, 4502592, 1000000 51 50 52 #define cam_CalibrationIlluminant1 1// Daylight51 #define cam_CalibrationIlluminant1 1 // Daylight 53 52 54 // cropping55 #define CAM_JPEG_WIDTH400056 #define CAM_JPEG_HEIGHT300057 #define CAM_ACTIVE_AREA_X15258 #define CAM_ACTIVE_AREA_Y11459 #define CAM_ACTIVE_AREA_X2407660 #define CAM_ACTIVE_AREA_Y2303053 // cropping 54 #define CAM_JPEG_WIDTH 4000 55 #define CAM_JPEG_HEIGHT 3000 56 #define CAM_ACTIVE_AREA_X1 52 57 #define CAM_ACTIVE_AREA_Y1 14 58 #define CAM_ACTIVE_AREA_X2 4076 59 #define CAM_ACTIVE_AREA_Y2 3030 61 60 62 61 #define REMOTE_SYNC_STATUS_LED 0xC022006C // specifies an LED that turns on while camera waits for USB remote to sync -
trunk/platform/generic/main.c
r980 r1656 138 138 { 139 139 long *bss = &link_bss_start; 140 long *ptr;141 140 142 141 // sanity check … … 153 152 // parts of memory were or not used 154 153 #if 0 154 long *ptr; 155 155 for (ptr=(void*)MEMBASEADDR;((long)ptr)<MEMISOSTART;ptr+=4){ 156 156 ptr[0]=0x55555555; -
trunk/platform/generic/wrappers.c
r1641 r1656 11 11 12 12 #if CAM_DRYOS 13 #define _U 0x01 /* upper */14 #define _L 0x02 /* lower */15 #define _D 0x04 /* digit */16 #define _C 0x20 /* cntrl */17 #define _P 0x10 /* punct */18 #define _S 0x40 /* white space (space/lf/tab) */19 #define _X 0x80 /* hex digit */20 #define _SP 0x08 /* hard space (0x20) */13 #define _U 0x01 /* upper */ 14 #define _L 0x02 /* lower */ 15 #define _D 0x04 /* digit */ 16 #define _C 0x20 /* cntrl */ 17 #define _P 0x10 /* punct */ 18 #define _S 0x40 /* white space (space/lf/tab) */ 19 #define _X 0x80 /* hex digit */ 20 #define _SP 0x08 /* hard space (0x20) */ 21 21 static int _ctype(int c,int t) { 22 extern unsigned char ctypes[]; // Firmware ctypes table (in stubs_entry.S) 22 extern unsigned char ctypes[]; // Firmware ctypes table (in stubs_entry.S) 23 23 return ctypes[c&0xFF] & t; 24 24 } … … 151 151 } 152 152 153 #if defined(CAMERA_sx30) || defined(CAMERA_g12) || defined(CAMERA_sx130is)|| defined(CAMERA_g10) 153 #if defined(CAMERA_sx30) || \ 154 defined(CAMERA_g12) || \ 155 defined(CAMERA_sx130is)|| \ 156 defined(CAMERA_g10) || \ 157 defined(CAMERA_sx220hs) || \ 158 defined(CAMERA_sx230hs) || \ 159 defined(CAMERA_ixus220_elph300hs) 154 160 if (lens_get_zoom_point() != newpt) 155 161 { … … 167 173 } 168 174 169 #if defined(CAMERA_sx30) || defined(CAMERA_sx130is) 175 #if defined(CAMERA_sx30) || \ 176 defined(CAMERA_sx130is) || \ 177 defined(CAMERA_sx220hs) || \ 178 defined(CAMERA_sx230hs) || \ 179 defined(CAMERA_ixus220_elph300hs) 170 180 // SX30 - _MoveZoomLensWithPoint crashes camera 171 181 // _PT_MoveOpticalZoomAt works, and updates PROPCASE_OPTICAL_ZOOM_POSITION; but doesn't wait for zoom to finish 182 // IXUS220, SX220/230 - _MoveZoomLensWithPoint does not notify the JPEG engine of the new focal length, 183 // causing incorrect lens distortion fixes to be applied; _PT_MoveOpticalZoomAt works 172 184 extern void _PT_MoveOpticalZoomAt(long*); 173 185 _PT_MoveOpticalZoomAt(&newpt); … … 182 194 zoom_status=ZOOM_OPTICAL_MAX; 183 195 184 #if defined(CAMERA_g12)|| defined(CAMERA_g10) 196 #if defined(CAMERA_g12)|| defined(CAMERA_g10) 185 197 _SetPropertyCase(PROPCASE_OPTICAL_ZOOM_POSITION, &newpt, sizeof(newpt)); 186 198 #endif … … 214 226 if (newpos >= MAX_DIST) newpos = INFINITY_DIST; // Set to infinity value that will work on all cameras 215 227 _MoveFocusLensToDistance((short*)&newpos); 216 while ((shooting_is_flash_ready()!=1) || (focus_busy)) msleep(10);217 newpos = _GetFocusLensSubjectDistance();218 _SetPropertyCase(PROPCASE_SUBJECT_DIST1, &newpos, sizeof(newpos));219 _SetPropertyCase(PROPCASE_SUBJECT_DIST2, &newpos, sizeof(newpos));228 while ((shooting_is_flash_ready()!=1) || (focus_busy)) msleep(10); 229 newpos = _GetFocusLensSubjectDistance(); 230 _SetPropertyCase(PROPCASE_SUBJECT_DIST1, &newpos, sizeof(newpos)); 231 _SetPropertyCase(PROPCASE_SUBJECT_DIST2, &newpos, sizeof(newpos)); 220 232 } 221 233 … … 1382 1394 */ 1383 1395 1396 unsigned char SetFileAttributes(const char* fn, unsigned char attr) 1397 { 1398 int fd; 1399 unsigned char ret = -1; 1400 1401 fd = open(fn, 0, 0); 1402 if( fd ) { 1403 _SetFileAttributes(fd, attr); 1404 close(fd); 1405 ret = attr; 1406 } 1407 return ret; 1408 } 1409 1384 1410 // Default implementation of PTP live view functions. 1385 1411 // Override as needed for camera specific variations (see G12/SX30/IXUS310/SX130IS for working examples) -
trunk/platform/ixus1000_sd4500/platform_camera.h
r1580 r1656 22 22 23 23 // copied from SX200 and modified 24 #define CAM_DRYOS_2_3_R39 125 #define CAM_PROPSET 424 #define CAM_DRYOS_2_3_R39 1 25 #define CAM_PROPSET 4 26 26 27 #define CAM_DATE_FOLDER_NAMING127 #define CAM_DATE_FOLDER_NAMING 1 28 28 29 // #define CAM_PROPSET 230 #define CAM_DRYOS 131 #define CAM_RAW_ROWPIX 3816 // from calcs see 100C lib.c //ASM198932 #define CAM_RAW_ROWS 2784 // " " " " " //ASM198933 #undefCAM_EMUL_KEYPRESS_DURATION34 #define CAM_EMUL_KEYPRESS_DURATION10035 #define EXMEM_HEAP_SKIP (0x08000000-0x07D08A00)// G12 & SX30 uses movie memory buffers at the top of the memory allocated by exmem_alloc36 #define EXMEM_BUFFER_SIZE (1024*1024*2) // desired amount of exmem memory to allocate29 // #define CAM_PROPSET 2 30 #define CAM_DRYOS 1 31 #define CAM_RAW_ROWPIX 3816 // from calcs see 100C lib.c //ASM1989 32 #define CAM_RAW_ROWS 2784 // " " " " " //ASM1989 33 #undef CAM_EMUL_KEYPRESS_DURATION 34 #define CAM_EMUL_KEYPRESS_DURATION 100 35 #define EXMEM_HEAP_SKIP (0x08000000-0x07D08A00) // G12 & SX30 uses movie memory buffers at the top of the memory allocated by exmem_alloc 36 #define EXMEM_BUFFER_SIZE (1024*1024*2) // desired amount of exmem memory to allocate 37 37 38 38 #undef CAM_CAN_SD_OVER_NOT_IN_MF … … 41 41 //ASM1989 TESTING VIDEO HANG 42 42 //#define CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO 1 43 #define CAM_HAS_VIDEO_BUTTON 143 #define CAM_HAS_VIDEO_BUTTON 1 44 44 #define CAM_VIDEO_QUALITY_ONLY 1 45 45 #undef CAM_VIDEO_CONTROL 46 #define CAM_MULTIPART 147 #define CAM_HAS_JOGDIAL 146 #define CAM_MULTIPART 1 47 #define CAM_HAS_JOGDIAL 1 48 48 #undef CAM_USE_ZOOM_FOR_MF 49 49 50 50 //Why not?? 51 //#define CAM_BRACKETING151 //#define CAM_BRACKETING 1 52 52 53 53 #undef CAM_UNCACHED_BIT // shut up compiler … … 55 55 56 56 #define CAM_DNG_LENS_INFO { 63,10, 630,10, 34,10, 56,10 } // See comments in camera.h 57 //#define cam_CFAPattern 0x01020001 // Green red blue Green 58 #define cam_CFAPattern0x01000201 // Green blue red Green59 60 #define CAM_COLORMATRIX1 \57 58 #define cam_CFAPattern 0x01000201 // Green blue red Green 59 60 #define CAM_COLORMATRIX1 \ 61 61 14134, 1000000, -5576, 1000000, -1527, 1000000, \ 62 -1991, 1000000, 10719, 1000000, 1273,1000000, \63 -1158, 1000000, 1929, 1000000, 3581,100000062 -1991, 1000000, 10719, 1000000, 1273, 1000000, \ 63 -1158, 1000000, 1929, 1000000, 3581, 1000000 64 64 65 65 //Testing 66 #define cam_CalibrationIlluminant1 1 // Daylight ?!?67 //#define cam_CalibrationIlluminant1 17 // Standard Light A66 #define cam_CalibrationIlluminant1 1 // Daylight ?!? 67 //#define cam_CalibrationIlluminant1 17 // Standard Light A 68 68 // cropping //ASM1989 69 #define CAM_JPEG_WIDTH 364870 #define CAM_JPEG_HEIGHT 273669 #define CAM_JPEG_WIDTH 3648 70 #define CAM_JPEG_HEIGHT 2736 71 71 72 72 // ASM1989 for IXus 1000 needs testing 73 #define CAM_ACTIVE_AREA_X120 //4274 #define CAM_ACTIVE_AREA_Y110 //2475 #define CAM_ACTIVE_AREA_X23816-12676 #define CAM_ACTIVE_AREA_Y22784-10 //2784-2473 #define CAM_ACTIVE_AREA_X1 20 //42 74 #define CAM_ACTIVE_AREA_Y1 10 //24 75 #define CAM_ACTIVE_AREA_X2 3816-126 76 #define CAM_ACTIVE_AREA_Y2 2784-10 //2784-24 77 77 // 78 78 // #define CAM_ACTIVE_AREA_X1 10 // ToDo, just guesswork … … 83 83 84 84 // camera name 85 #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData85 #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData 86 86 #undef CAM_SENSOR_BITS_PER_PIXEL 87 #define CAM_SENSOR_BITS_PER_PIXEL 1287 #define CAM_SENSOR_BITS_PER_PIXEL 12 88 88 89 #define CAM_EXT_TV_RANGE 190 89 91 #undef CAM_BITMAP_PALETTE 92 #define CAM_BITMAP_PALETTE 7 93 #undef CAM_HAS_ERASE_BUTTON 94 #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 90 #define CAM_EXT_TV_RANGE 1 95 91 96 #define CAM_HAS_VARIABLE_ASPECT 1 92 #undef CAM_BITMAP_PALETTE 93 #define CAM_BITMAP_PALETTE 7 94 #undef CAM_HAS_ERASE_BUTTON 95 #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 97 96 98 #undef CAM_USES_ASPECT_CORRECTION99 #define CAM_USES_ASPECT_CORRECTION 1 //camera uses the modified graphics primitives to map screens an viewports to buffers more sized100 97 #undef CAM_SCREEN_WIDTH 101 98 #undef CAM_BITMAP_WIDTH … … 105 102 #define CAM_BITMAP_HEIGHT 270 // Actual height of bitmap screen in rows 106 103 107 #undef EDGE_HMARGIN 108 #define EDGE_HMARGIN 10 //10 fits video mode of sx210 104 #define CAM_HAS_VARIABLE_ASPECT 1 105 106 #undef CAM_USES_ASPECT_CORRECTION 107 #define CAM_USES_ASPECT_CORRECTION 1 //camera uses the modified graphics primitives to map screens an viewports to buffers more sized 108 109 #undef EDGE_HMARGIN 110 #define EDGE_HMARGIN 10 //10 fits video mode of sx210 109 111 110 112 //zebra letterbox for saving memory 111 #define CAM_ZEBRA_ASPECT_ADJUST 1 112 //#ifndef OPT_EXMEM_MALLOC 113 #define CAM_ZEBRA_NOBUF 1 114 //#endif 113 #define CAM_ZEBRA_ASPECT_ADJUST 1 114 115 #define CAM_ZEBRA_NOBUF 1 115 116 116 #define CAM_QUALITY_OVERRIDE 1 117 #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 117 #undef ZEBRA_HMARGIN0 118 #define ZEBRA_HMARGIN0 30 //this 30 rows are not used by the display buffer is 720x240 effective, no 960x270, i.e. (270-240) reduction in widht possible but not done (more difficult to manage it and slower). 119 120 //end nandoide sept-2009 121 #define CAM_QUALITY_OVERRIDE 1 122 #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 118 123 119 124 #define CAM_DETECT_SCREEN_ERASE 1 // http://chdk.setepontos.com/index.php?topic=6705.msg71062#msg71062 120 125 121 #define CAM_STARTUP_CRASH_FILE_OPEN_FIX 1 // enable workaround for camera crash at startup when opening the conf / font files126 #define CAM_STARTUP_CRASH_FILE_OPEN_FIX 1 // enable workaround for camera crash at startup when opening the conf / font files 122 127 // see http://chdk.setepontos.com/index.php?topic=6179.0 128 #define CAM_HAS_CMOS 1 129 123 130 // FOR TESTING PURPOSE 124 131 // push all regs except SP and PC … … 126 133 // restore value for R0 from stack 127 134 #define ASM_SAFE_ENTER \ 128 "STMFD SP!, {R0-R12,LR}\n" \129 "MRS R0, CPSR\n" \130 "STR R0,[SP,#-4]!\n" \131 "LDR R0,[SP,#4]\n"135 "STMFD SP!, {R0-R12,LR}\n" \ 136 "MRS R0, CPSR\n" \ 137 "STR R0,[SP,#-4]!\n" \ 138 "LDR R0,[SP,#4]\n" 132 139 133 140 // pop CPSR via R0 134 141 // pop all regs except SP and PC 135 142 #define ASM_SAFE_LEAVE \ 136 "LDR R0,[SP],#4\n" \137 "MSR CPSR_cxsf,R0\n" \138 "LDMFD SP!, {R0-R12,LR}\n"143 "LDR R0,[SP],#4\n" \ 144 "MSR CPSR_cxsf,R0\n" \ 145 "LDMFD SP!, {R0-R12,LR}\n" 139 146 140 147 #define ASM_SAFE(asmcode) \ 141 ASM_SAFE_ENTER \142 asmcode \143 ASM_SAFE_LEAVE148 ASM_SAFE_ENTER \ 149 asmcode \ 150 ASM_SAFE_LEAVE 144 151 145 152 // #define REMOTE_SYNC_STATUS_LED 0xC0xxyyyy // specifies an LED that turns on while camera waits for USB remote to sync -
trunk/platform/ixus100_sd780/platform_camera.h
r1580 r1656 1 // Camera - IXUS100_SD780 - platform_camera.h1 // Camera - ixus100_sd780 - platform_camera.h 2 2 3 // This file contains the various settings values specific to the IXUS100_SD780 camera.3 // This file contains the various settings values specific to the ixus100_sd780 camera. 4 4 // This file is referenced via the 'include/camera.h' file and should not be loaded directly. 5 5 … … 21 21 // don't override them again in here. 22 22 23 #define CAM_PROPSET 224 #define CAM_DRYOS 123 #define CAM_PROPSET 2 24 #define CAM_DRYOS 1 25 25 26 #define CAM_RAW_ROWPIX 4080// 12 MP 12bpp27 #define CAM_RAW_ROWS 3048// VERIFY_SD780 Found RAW #s by searching " CrwAddress %lx, CrwSize H %ld V %ld\r"26 #define CAM_RAW_ROWPIX 4080 // 12 MP 12bpp 27 #define CAM_RAW_ROWS 3048 // VERIFY_SD780 Found RAW #s by searching " CrwAddress %lx, CrwSize H %ld V %ld\r" 28 28 29 29 #undef CAM_HAS_ERASE_BUTTON 30 30 #undef CAM_USE_ZOOM_FOR_MF 31 #define CAM_MULTIPART 131 #define CAM_MULTIPART 1 32 32 #undef CAM_HAS_IRIS_DIAPHRAGM 33 #define CAM_HAS_ND_FILTER 1 33 #define CAM_HAS_ND_FILTER 1 34 #undef CAM_HAS_MANUAL_FOCUS 35 #define CAM_HAS_USER_TV_MODES 1 34 36 35 #undef CAM_REMOTE36 #undef CAM_SYNCH37 #undef CAM_REMOTE 38 #undef CAM_SYNCH 37 39 38 40 #define CAM_HAS_ZOOM_LEVER 1 39 41 40 // #define CAM_CAN_SD_OVER_NOT_IN_MF 1// Camera allows subject distance (focus) override when not in manual focus mode41 // #define CAM_CAN_SD_OVERRIDE 1// Camera allows to do subject distance override42 // #define CAM_CAN_SD_OVER_NOT_IN_MF 1 // Camera allows subject distance (focus) override when not in manual focus mode 43 // #define CAM_CAN_SD_OVERRIDE 1 // Camera allows to do subject distance override 42 44 43 #undef CAM_HAS_MANUAL_FOCUS 44 #define CAM_HAS_USER_TV_MODES 1 45 #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 46 #define CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO 1 47 #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 45 #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 46 #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 48 47 #define CAM_CHDK_HAS_EXT_VIDEO_MENU 1 49 48 … … 52 51 53 52 #undef CAM_VIDEO_CONTROL 54 #define CAM_VIDEO_QUALITY_ONLY 153 #define CAM_VIDEO_QUALITY_ONLY 1 55 54 56 #define CAM_EXT_TV_RANGE 155 #define CAM_EXT_TV_RANGE 1 57 56 58 #undef CAM_UNCACHED_BIT59 #define CAM_UNCACHED_BIT 0x4000000057 #undef CAM_UNCACHED_BIT 58 #define CAM_UNCACHED_BIT 0x40000000 60 59 61 #undef CAM_BITMAP_PALETTE 62 #define CAM_BITMAP_PALETTE 5 60 #undef CAM_BITMAP_PALETTE 61 #define CAM_BITMAP_PALETTE 5 62 63 63 64 64 #define CAM_QUALITY_OVERRIDE 1 … … 69 69 // pattern 70 70 //RealRom:FFA99FB4 ADR R0, aObRG1G2BLdLdLd ; "\n OB : (R, G1, G2, B) = (%ld, %ld, %ld"... 71 #define cam_CFAPattern 0x02010100// Red Green Green Blue71 #define cam_CFAPattern 0x02010100 // Red Green Green Blue 72 72 73 73 // color preliminary (see DNG4PS2 wiki) 74 #define CAM_COLORMATRIX1 \75 661840, 1000000, -185671, 1000000, -97110,1000000, \76 -83661, 1000000, 578860, 1000000, 32308,1000000, \77 -8681, 1000000, 70356,1000000, 207341, 100000074 #define CAM_COLORMATRIX1 \ 75 661840, 1000000, -185671, 1000000, -97110, 1000000, \ 76 -83661, 1000000, 578860, 1000000, 32308, 1000000, \ 77 -8681, 1000000, 70356, 1000000, 207341, 1000000 78 78 79 79 //Here is an alternate CAM_COLORMATRIX1 - Current one is nice for me but hey I'm no colour expert. … … 83 83 //-0.004622 0.048662 0.139970 84 84 85 #define cam_CalibrationIlluminant1 17// Standard Light A85 #define cam_CalibrationIlluminant1 17 // Standard Light A 86 86 87 // cropping88 #define CAM_JPEG_WIDTH 400089 #define CAM_JPEG_HEIGHT 300090 #define CAM_ACTIVE_AREA_X1 4091 #define CAM_ACTIVE_AREA_Y1 2492 #define CAM_ACTIVE_AREA_X2 405693 #define CAM_ACTIVE_AREA_Y2 304087 // cropping 88 #define CAM_JPEG_WIDTH 4000 89 #define CAM_JPEG_HEIGHT 3000 90 #define CAM_ACTIVE_AREA_X1 40 91 #define CAM_ACTIVE_AREA_Y1 24 92 #define CAM_ACTIVE_AREA_X2 4056 93 #define CAM_ACTIVE_AREA_Y2 3040 94 94 // camera name 95 #define PARAM_CAMERA_NAME 4// parameter number for GetParameterData sd990: OK95 #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData sd990: OK 96 96 97 97 #undef CAM_USES_ASPECT_CORRECTION 98 #define CAM_USES_ASPECT_CORRECTION 1 //camera uses the modified graphics primitives to map screens an viewports to buffers more sized98 #define CAM_USES_ASPECT_CORRECTION 1 //camera uses the modified graphics primitives to map screens an viewports to buffers more sized 99 99 #undef CAM_BITMAP_WIDTH 100 100 #undef CAM_BITMAP_HEIGHT … … 102 102 #define CAM_BITMAP_HEIGHT 270 // Actual height of bitmap screen in rows 103 103 104 #define CAM_ZEBRA_ASPECT_ADJUST 1105 // camera has little free memory106 #define CAM_ZEBRA_NOBUF 1104 #define CAM_ZEBRA_ASPECT_ADJUST 1 105 // camera has little free memory 106 #define CAM_ZEBRA_NOBUF 1 107 107 108 #define CAM_DRIVE_MODE_FROM_TIMER_MODE // use PROPCASE_TIMER_MODE to check for multiple shot custom timer.108 #define CAM_DRIVE_MODE_FROM_TIMER_MODE 1 // use PROPCASE_TIMER_MODE to check for multiple shot custom timer. 109 109 // Used to enabled bracketing in custom timer, required on many recent cameras 110 110 // see http://chdk.setepontos.com/index.php/topic,3994.405.html -
trunk/platform/ixus120_sd940/platform_camera.h
r1580 r1656 1 // Camera - IXUS120_SD940 - platform_camera.h1 // Camera - ixus120_sd940 - platform_camera.h 2 2 3 // This file contains the various settings values specific to the IXUS120_SD940 camera.3 // This file contains the various settings values specific to the ixus120_sd940 camera. 4 4 // This file is referenced via the 'include/camera.h' file and should not be loaded directly. 5 5 … … 21 21 // don't override them again in here. 22 22 23 #define CAM_DRYOS_2_3_R39 1 //stat is different, as well as some other functions 23 #define CAM_DRYOS_2_3_R39 1 //stat is different, as well as some other functions 24 #define CAM_PROPSET 3 25 #define CAM_DRYOS 1 24 26 25 27 // #define SYNCHABLE_REMOTE_NOT_ENABLED 1 26 28 27 #define CAM_PROPSET 3 28 #define CAM_DRYOS 1 29 30 #define CAM_RAW_ROWPIX 4080 // 12M 41044080 ?? // from calcs see 100C lib.c 31 #define CAM_RAW_ROWS 3048 // " " " " " 29 #define CAM_RAW_ROWPIX 4080 // 12M 41044080 ?? // from calcs see 100C lib.c 30 #define CAM_RAW_ROWS 3048 // " " " " " 32 31 33 32 #undef CAM_SWIVEL_SCREEN 34 33 #undef CAM_ADJUSTABLE_ALT_BUTTON 35 34 #define CAM_CAN_SD_OVER_NOT_IN_MF 1 36 #define CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO 137 35 #undef CAM_HAS_VIDEO_BUTTON 38 36 #define CAM_VIDEO_QUALITY_ONLY 1 39 #define CAM_AF_SCAN_DURING_VIDEO_RECORD 140 #define CAM_BRACKETING 137 #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 38 #define CAM_BRACKETING 1 41 39 #undef CAM_VIDEO_CONTROL 42 40 #undef CAM_HAS_IRIS_DIAPHRAGM 43 #define CAM_MULTIPART 141 #define CAM_MULTIPART 1 44 42 #undef CAM_HAS_JOGDIAL 45 43 #undef CAM_USE_ZOOM_FOR_MF 46 44 #undef CAM_UNCACHED_BIT // shut up compiler 47 #define CAM_UNCACHED_BIT 0x4000000048 #define CAM_HAS_ND_FILTER 145 #define CAM_UNCACHED_BIT 0x40000000 46 #define CAM_HAS_ND_FILTER 1 49 47 #define CAM_CAN_SD_OVERRIDE 1 50 48 51 49 #define CAM_DNG_LENS_INFO { 50,10, 200,10, 28,10, 59,10 } // See comments in camera.h 52 50 // pattern 53 #define cam_CFAPattern 0x02010100 // Red Green Green Blue51 #define cam_CFAPattern 0x02010100 // Red Green Green Blue 54 52 // color 55 53 56 #undef CAM_BITMAP_PALETTE57 #define CAM_BITMAP_PALETTE 354 #undef CAM_BITMAP_PALETTE 55 #define CAM_BITMAP_PALETTE 3 58 56 59 57 #define CAM_COLORMATRIX1 \ … … 62 60 5181, 1000000, 48183, 1000000, 245014, 1000000 63 61 64 #define cam_CalibrationIlluminant1 1 // Daylight62 #define cam_CalibrationIlluminant1 1 // Daylight 65 63 // cropping 66 #define CAM_JPEG_WIDTH 400067 #define CAM_JPEG_HEIGHT 300068 #define CAM_ACTIVE_AREA_X1 2069 #define CAM_ACTIVE_AREA_Y1 1270 #define CAM_ACTIVE_AREA_X2 405664 #define CAM_JPEG_WIDTH 4000 65 #define CAM_JPEG_HEIGHT 3000 66 #define CAM_ACTIVE_AREA_X1 20 67 #define CAM_ACTIVE_AREA_Y1 12 68 #define CAM_ACTIVE_AREA_X2 4056 71 69 #define CAM_ACTIVE_AREA_Y2 3038 72 70 // camera name 73 #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData 74 #define PARAM_DISPLAY_MODE1 57 // param number for LCD display mode when camera in playback 75 #define PARAM_DISPLAY_MODE2 58 // param number for LCD display mode when camera in record view hold mode 76 77 #define PARAM_DISPLAY_MODE1 57 // param number for LCD display mode when camera in playback 78 #define PARAM_DISPLAY_MODE2 58 // param number for LCD display mode when camera in record view hold mode 79 71 #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData 72 #define PARAM_DISPLAY_MODE1 57 // param number for LCD display mode when camera in playback 73 #define PARAM_DISPLAY_MODE2 58 // param number for LCD display mode when camera in record view hold mode 74 80 75 #undef CAM_SENSOR_BITS_PER_PIXEL 81 #define CAM_SENSOR_BITS_PER_PIXEL 1276 #define CAM_SENSOR_BITS_PER_PIXEL 12 82 77 83 #define CAM_EXT_TV_RANGE 178 #define CAM_EXT_TV_RANGE 1 84 79 85 #define CAM_SHOW_OSD_IN_SHOOT_MENU180 #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 86 81 87 #undef CAM_USES_ASPECT_CORRECTION88 #define CAM_USES_ASPECT_CORRECTION 1 //camera uses the modified graphics primitives to map screens an viewports to buffers more sized82 #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 89 84 #undef CAM_BITMAP_WIDTH 90 85 #undef CAM_BITMAP_HEIGHT … … 92 87 #define CAM_BITMAP_HEIGHT 270 // Actual height of bitmap screen in rows 93 88 94 #undef EDGE_HMARGIN95 #define EDGE_HMARGIN 2089 #undef EDGE_HMARGIN 90 #define EDGE_HMARGIN 20 96 91 97 #define CAM_ZEBRA_ASPECT_ADJUST 1 98 #define CAM_ZEBRA_NOBUF 1 99 100 #define CAM_CHDK_PTP 1 92 #define CAM_ZEBRA_ASPECT_ADJUST 1 93 #define CAM_ZEBRA_NOBUF 1 94 95 #define CAM_STARTUP_CRASH_FILE_OPEN_FIX 1 // enable workaround for camera crash at startup when opening the conf / font files 96 // see http://chdk.setepontos.com/index.php?topic=6179.0 97 98 #define CAM_DATE_FOLDER_NAMING 0x100 //Value found in the last function, which is called in GetImageFolder. (first compare) 101 99 102 #define CAM_STARTUP_CRASH_FILE_OPEN_FIX 1 // enable workaround for camera crash at startup when opening the conf / font files 103 // see http://chdk.setepontos.com/index.php?topic=6179.0 104 105 #define CAM_DATE_FOLDER_NAMING 0x100 //Value found in the last function, which is called in GetImageFolder. (first compare) 106 107 #define CAM_DRIVE_MODE_FROM_TIMER_MODE // use PROPCASE_TIMER_MODE to check for multiple shot custom timer. 100 #define CAM_DRIVE_MODE_FROM_TIMER_MODE 1 // use PROPCASE_TIMER_MODE to check for multiple shot custom timer. 108 101 // Used to enabled bracketing in custom timer, required on many recent cameras 109 102 // see http://chdk.setepontos.com/index.php/topic,3994.405.html 110 103 111 104 #define CAM_DETECT_SCREEN_ERASE 1 // http://chdk.setepontos.com/index.php?topic=6705.msg71062#msg71062 112 105 113 #define CAM_USE_COLORED_ICONS 1 // Enable using the CHDK-DE colored icons.106 #define CAM_USE_COLORED_ICONS 1 // Enable using the CHDK-DE colored icons. 114 107 115 108 #define REMOTE_SYNC_STATUS_LED 0xC0220130 // specifies an LED that turns on while camera waits for USB remote to sync -
trunk/platform/ixus120_sd940/sub/100e/boot.c
r1525 r1656 22 22 23 23 if(p[0]==0xFF88E520) p[0]=(int)init_file_modules_task; // 24 if(p[0]==0x ff872f84) p[0]=(int)capt_seq_task; //24 if(p[0]==0xFF872F84) p[0]=(int)capt_seq_task; // 25 25 if(p[0]==0xFF8B2F58) p[0]=(int)exp_drv_task; // 26 26 if(p[0]==0xFF93D62C) p[0]=(int)movie_record_task; // -
trunk/platform/ixus200_sd980/platform_camera.h
r1580 r1656 1 // Camera - a495- platform_camera.h1 // Camera - ixus200_sd980 - platform_camera.h 2 2 3 3 // This file contains the various settings values specific to the a495 camera. … … 21 21 // don't override them again in here. 22 22 23 #define CAM_DRYOS_2_3_R391//stat is different, as well as some other functions24 #define SYNCHABLE_REMOTE_NOT_ENABLED125 #define CAM_PROPSET 326 #define CAM_DRYOS 123 #define CAM_DRYOS_2_3_R39 1//stat is different, as well as some other functions 24 #define SYNCHABLE_REMOTE_NOT_ENABLED 1 25 #define CAM_PROPSET 3 26 #define CAM_DRYOS 1 27 27 28 #define CAM_RAW_ROWPIX 4080 // from calcs see 100C lib.c29 #define CAM_RAW_ROWS 3048 // " " " " "28 #define CAM_RAW_ROWPIX 4080 // from calcs see 100C lib.c 29 #define CAM_RAW_ROWS 3048 // " " " " " 30 30 31 31 #undef CAM_SWIVEL_SCREEN 32 #define CAM_ADJUSTABLE_ALT_BUTTON 032 #define CAM_ADJUSTABLE_ALT_BUTTON 0 33 33 #define CAM_CAN_SD_OVER_NOT_IN_MF 1 34 #define CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO 1 35 #define CAM_HAS_VIDEO_BUTTON 1 34 #define CAM_HAS_VIDEO_BUTTON 1 36 35 #define CAM_VIDEO_QUALITY_ONLY 1 37 #define CAM_BRACKETING 136 #define CAM_BRACKETING 1 38 37 #undef CAM_VIDEO_CONTROL 39 38 #undef CAM_HAS_IRIS_DIAPHRAGM 40 #define CAM_MULTIPART 141 #define CAM_HAS_JOGDIAL 139 #define CAM_MULTIPART 1 40 #define CAM_HAS_JOGDIAL 1 42 41 #undef CAM_USE_ZOOM_FOR_MF 43 42 #undef CAM_UNCACHED_BIT // shut up compiler 44 #define CAM_UNCACHED_BIT 0x4000000045 #define CAM_HAS_ND_FILTER 143 #define CAM_UNCACHED_BIT 0x40000000 44 #define CAM_HAS_ND_FILTER 1 46 45 #define CAM_CAN_SD_OVERRIDE 1 47 46 … … 56 55 5181, 1000000, 48183, 1000000, 245014, 1000000 57 56 58 #define cam_CalibrationIlluminant1 1 // Daylight57 #define cam_CalibrationIlluminant1 1 // Daylight 59 58 // cropping 60 #define CAM_JPEG_WIDTH 400061 #define CAM_JPEG_HEIGHT 300062 #define CAM_ACTIVE_AREA_X1 2063 #define CAM_ACTIVE_AREA_Y1 1264 #define CAM_ACTIVE_AREA_X2 405665 #define CAM_ACTIVE_AREA_Y2 303859 #define CAM_JPEG_WIDTH 4000 60 #define CAM_JPEG_HEIGHT 3000 61 #define CAM_ACTIVE_AREA_X1 20 62 #define CAM_ACTIVE_AREA_Y1 12 63 #define CAM_ACTIVE_AREA_X2 4056 64 #define CAM_ACTIVE_AREA_Y2 3038 66 65 // camera name 67 #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData66 #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData 68 67 #undef CAM_SENSOR_BITS_PER_PIXEL 69 #define CAM_SENSOR_BITS_PER_PIXEL 1268 #define CAM_SENSOR_BITS_PER_PIXEL 12 70 69 71 #define CAM_EXT_TV_RANGE 170 #define CAM_EXT_TV_RANGE 1 72 71 73 #define CAM_SHOW_OSD_IN_SHOOT_MENU 172 #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 74 73 75 74 #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 sized75 #define CAM_USES_ASPECT_CORRECTION 1 //camera uses the modified graphics primitives to map screens an viewports to buffers more sized 77 76 #undef CAM_SCREEN_WIDTH 78 77 #undef CAM_BITMAP_WIDTH … … 83 82 84 83 #undef EDGE_HMARGIN 85 #define EDGE_HMARGIN 2086 87 #define CAM_ZEBRA_ASPECT_ADJUST188 #define CAM_ZEBRA_NOBUF184 #define EDGE_HMARGIN 20 85 86 #define CAM_ZEBRA_ASPECT_ADJUST 1 87 #define CAM_ZEBRA_NOBUF 1 89 88 90 #define CAM_STARTUP_CRASH_FILE_OPEN_FIX1 // enable workaround for camera crash at startup when opening the conf / font files89 #define CAM_STARTUP_CRASH_FILE_OPEN_FIX 1 // enable workaround for camera crash at startup when opening the conf / font files 91 90 // see http://chdk.setepontos.com/index.php?topic=6179.0 92 91 93 92 // #define CAM_DATE_FOLDER_NAMING 0x100 //Value found in the last function, which is called in GetImageFolder. (first compare) 94 93 95 #define CAM_DRIVE_MODE_FROM_TIMER_MODE // use PROPCASE_TIMER_MODE to check for multiple shot custom timer.94 #define CAM_DRIVE_MODE_FROM_TIMER_MODE 1 // use PROPCASE_TIMER_MODE to check for multiple shot custom timer. 96 95 // Used to enabled bracketing in custom timer, required on many recent cameras 97 96 // see http://chdk.setepontos.com/index.php/topic,3994.405.html -
trunk/platform/ixus220_elph300hs/lib.c
r1527 r1656 12 12 _ScreenUnlock(); 13 13 } 14 14 15 15 16 void shutdown() … … 31 32 #define LED_PR 0xC0220130 32 33 34 33 35 void debug_led(int state) 34 36 { 35 37 *(int*)LED_PR=state ? 0x46 : 0x44; 36 38 } 39 40 41 37 42 38 43 void camera_set_led(int led, int state, int bright) { -
trunk/platform/ixus220_elph300hs/platform_camera.h
r1580 r1656 20 20 // for information on each setting. If the default values are correct for your camera then 21 21 // don't override them again in here. 22 23 #define CAM_DRYOS_2_3_R47 124 #define CAM_DETECT_SCREEN_ERASE 125 #define CAM_DISABLE_RAW_IN_LOW_LIGHT_MODE 126 #define DNG_VERT_RLE_BADPIXELS 127 #define CAM_AV_OVERRIDE_IRIS_FIX 1 // for cameras that require _MoveIrisWithAv function to override Av.28 #define CAM_KEY_CLICK_DELAY 15029 #define CAM_ADJUSTABLE_ALT_BUTTON 130 #define CAM_DRIVE_MODE_FROM_TIMER_MODE 131 22 32 #define CAM_DRYOS_2_3_R39 1 33 #define CAM_PROPSET 4 34 #define CAM_DATE_FOLDER_NAMING 1 35 #define CAM_DRYOS 1 36 #define CAM_RAW_ROWPIX 4168 37 #define CAM_RAW_ROWS 3060 // actual size from fw 12754080pix at FF375484 -> 19131120/12*8 38 #define CAM_HAS_ND_FILTER 1 23 #define CAM_DRYOS_2_3_R47 1 24 #define CAM_DISABLE_RAW_IN_LOW_LIGHT_MODE 1 25 #define DNG_VERT_RLE_BADPIXELS 1 26 #define CAM_AV_OVERRIDE_IRIS_FIX 1 // for cameras that require _MoveIrisWithAv function to override Av. 27 #define CAM_KEY_CLICK_DELAY 150 28 #define CAM_ADJUSTABLE_ALT_BUTTON 1 29 #define CAM_DRIVE_MODE_FROM_TIMER_MODE 1 30 31 #define CAM_DRYOS_2_3_R39 1 32 #define CAM_PROPSET 4 33 #define CAM_DATE_FOLDER_NAMING 1 34 #define CAM_DRYOS 1 35 #define CAM_RAW_ROWPIX 4168 36 #define CAM_RAW_ROWS 3060 // actual size from fw 12754080pix at FF375484 -> 19131120/12*8 37 #define CAM_HAS_ND_FILTER 1 39 38 #undef CAM_CAN_SD_OVER_NOT_IN_MF 40 #define CAM_CAN_SD_OVER_IN_AF_LOCK 139 #define CAM_CAN_SD_OVER_IN_AF_LOCK 1 41 40 #undef CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO 42 #define CAM_HAS_VIDEO_BUTTON 141 #define CAM_HAS_VIDEO_BUTTON 1 43 42 #define CAM_VIDEO_QUALITY_ONLY 1 44 43 #undef CAM_VIDEO_CONTROL 45 44 #undef CAM_HAS_JOGDIAL 46 45 #undef CAM_USE_ZOOM_FOR_MF 47 #undef CAM_UNCACHED_BIT // shut up compiler48 #define CAM_UNCACHED_BIT 0x4000000046 #undef CAM_UNCACHED_BIT // shut up compiler 47 #define CAM_UNCACHED_BIT 0x40000000 49 48 50 49 #define CAM_DNG_LENS_INFO { 50,10, 700,10, 31,10, 59,10 } // See comments in camera.h 51 50 #define cam_CFAPattern 0x02010100 52 51 53 #define CAM_COLORMATRIX1\54 544808, 1000000, -174047, 1000000, -80399, 1000000, \55 -75055, 1000000, 440444, 1000000,11367, 1000000, \56 -5801, 1000000,71589, 1000000, 118914, 100000052 #define CAM_COLORMATRIX1 \ 53 544808, 1000000, -174047, 1000000, -80399, 1000000, \ 54 -75055, 1000000, 440444, 1000000, 11367, 1000000, \ 55 -5801, 1000000, 71589, 1000000, 118914, 1000000 57 56 58 #define cam_CalibrationIlluminant1157 #define cam_CalibrationIlluminant1 1 59 58 60 #define CAM_JPEG_WIDTH 400061 #define CAM_JPEG_HEIGHT 300062 #define CAM_ACTIVE_AREA_X1 9663 #define CAM_ACTIVE_AREA_Y12464 #define CAM_ACTIVE_AREA_X2416865 #define CAM_ACTIVE_AREA_Y2306066 #define PARAM_CAMERA_NAME 4// parameter number for GetParameterData59 #define CAM_JPEG_WIDTH 4000 60 #define CAM_JPEG_HEIGHT 3000 61 #define CAM_ACTIVE_AREA_X1 96 62 #define CAM_ACTIVE_AREA_Y1 24 63 #define CAM_ACTIVE_AREA_X2 4168 64 #define CAM_ACTIVE_AREA_Y2 3060 65 #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData 67 66 #undef CAM_SENSOR_BITS_PER_PIXEL 68 #define CAM_SENSOR_BITS_PER_PIXEL 1269 #define CAM_EXT_TV_RANGE 170 #undef CAM_BITMAP_PALETTE71 #define CAM_BITMAP_PALETTE 972 #undef CAM_HAS_ERASE_BUTTON73 #define CAM_SHOW_OSD_IN_SHOOT_MENU167 #define CAM_SENSOR_BITS_PER_PIXEL 12 68 #define CAM_EXT_TV_RANGE 1 69 #undef CAM_BITMAP_PALETTE 70 #define CAM_BITMAP_PALETTE 9 71 #undef CAM_HAS_ERASE_BUTTON 72 #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 74 73 75 #define CAM_HAS_VARIABLE_ASPECT 176 #undef CAM_USES_ASPECT_CORRECTION77 #define CAM_USES_ASPECT_CORRECTION 1//camera uses the modified graphics primitives to map screens an viewports to buffers more sized74 #define CAM_HAS_VARIABLE_ASPECT 1 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 78 77 #undef CAM_BITMAP_WIDTH 79 78 #undef CAM_BITMAP_HEIGHT … … 81 80 #define CAM_BITMAP_HEIGHT 270 // Actual height of bitmap screen in rows 82 81 83 #undef EDGE_HMARGIN84 #define EDGE_HMARGIN 1082 #undef EDGE_HMARGIN 83 #define EDGE_HMARGIN 10 85 84 86 #define CAM_ZEBRA_ASPECT_ADJUST 187 #define CAM_ZEBRA_NOBUF 185 #define CAM_ZEBRA_ASPECT_ADJUST 1 86 #define CAM_ZEBRA_NOBUF 1 88 87 89 #define CAM_QUALITY_OVERRIDE 1 90 91 #define CAM_STARTUP_CRASH_FILE_OPEN_FIX 1 88 #define CAM_QUALITY_OVERRIDE 1 92 89 93 #undef CAM_HAS_IRIS_DIAPHRAGM 94 #undef CAM_HAS_MANUAL_FOCUS 90 #define CAM_STARTUP_CRASH_FILE_OPEN_FIX 1 91 92 #undef CAM_HAS_IRIS_DIAPHRAGM 93 #undef CAM_HAS_MANUAL_FOCUS 94 95 #define CAM_HAS_CMOS 1 96 97 #define CAM_DETECT_SCREEN_ERASE 1 95 98 96 99 #define REMOTE_SYNC_STATUS_LED 0xC0220130 // specifies an LED that turns on while camera waits for USB remote to sync -
trunk/platform/ixus300_sd4000/platform_camera.h
r1555 r1656 21 21 // don't override them again in here. 22 22 23 #define CAM_PROPSET 3 // ToDo: check PropSet 4 & 5 24 #define CAM_DRYOS 1 25 #define CAM_DRYOS_2_3_R39 1 // ROM:FFB5E1C0, actually its DRYOS version 2.3, release #0043 23 #define CAM_PROPSET 3 // ToDo 24 #define CAM_DRYOS 1 25 #define CAM_DRYOS_2_3_R39 1 // ROM:FFB5E1C0, actually its DRYOS version 2.3, release #0043 26 27 #define CAM_HAS_CMOS 1 26 28 27 29 #undef CAM_BITMAP_PALETTE // shut up compiler 28 // ToDo: canon palette does not contain all colors anymore like on vxworks and palette is different in playback/record mode 29 //#define CAM_BITMAP_PALETTE 8 30 //#define CAM_BITMAP_PALETTE 5 // ToDo 31 #define CAM_BITMAP_PALETTE 11 // ToDo: optimize palette (gui_draw.h) 30 //#define CAM_BITMAP_PALETTE 8 // canon palette does not contain all colors anymore like on vxworks and palette is different in playback/record modus 31 #define CAM_BITMAP_PALETTE 11 // ToDo 32 32 33 33 #undef CAM_UNCACHED_BIT // shut up compiler 34 #define CAM_UNCACHED_BIT 0x40000000 // ROM:FF88A248 via ExMem.FreeCacheable(), finsig234 #define CAM_UNCACHED_BIT 0x40000000 // ROM:FF88A248 via ExMem.FreeCacheable() 35 35 36 36 #undef CAM_HAS_ERASE_BUTTON 37 37 #undef CAM_SYNCH 38 #define CAM_HAS_ND_FILTER 1// ToDo: does camera have ND ?38 #define CAM_HAS_ND_FILTER 1 // ToDo: does camera have ND ? 39 39 #define CAM_HAS_IRIS_DIAPHRAGM 1 // OK 40 //#undef CAM_HAS_MANUAL_FOCUS // ToDo: working ?40 //#undef CAM_HAS_MANUAL_FOCUS // ToDo: test if its working 41 41 //#undef CAM_CAN_SD_OVERRIDE // ToDo: looks like always cause ASSERT Error "FocusLensController.c Line 714" on CaptSeqTask 42 //#undef CAM_USE_ZOOM_FOR_MF // ToDo: working ?42 //#undef CAM_USE_ZOOM_FOR_MF // ToDo: test if its working 43 43 #define CAM_HAS_USER_TV_MODES 1 44 44 //#define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 45 45 #undef CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO // canon firmware allow optical zoom while recording movie 46 //#define CAM_EV_IN_VIDEO 1 46 //#define CAM_EV_IN_VIDEO 1 47 47 48 #define CAM_VIDEO_CONTROL 1 48 #define CAM_VIDEO_QUALITY_ONLY 1// ToDo: Video Bitrate override cause crash49 #define CAM_HAS_JOGDIAL 150 #define CAM_FEATURE_FEATHER 151 //#define CAM_SHOW_OSD_IN_SHOOT_MENU 1 // not required anymore, workaround to force CHDK to display OSD in record mode while canon_shoot_menu_active was wrong52 #define CAM_MULTIPART 1 // ToDo: working ?53 #define CAM_DATE_FOLDER_NAMING 154 //#define CAM_DRAW_EXPOSITION 1// not required because Canon Firmware does always show it on Shutter half press55 //#define CAM_ADJUSTABLE_ALT_BUTTON 1 // ToDo: let user choose different key combo if possible49 #define CAM_VIDEO_QUALITY_ONLY 1 // ToDo: Video Bitrate override cause crash 50 #define CAM_HAS_JOGDIAL 1 51 #define CAM_FEATURE_FEATHER 1 52 //#define CAM_SHOW_OSD_IN_SHOOT_MENU 1 // not required anymore, workaround to force CHDK to display OSD in record mode while canon_shoot_menu_active was wrong 53 #define CAM_MULTIPART 1 // ToDo: test if its working 54 #define CAM_DATE_FOLDER_NAMING 1 55 //#define CAM_DRAW_EXPOSITION 1 // not required because Canon Firmware does always show it on Shutter half press 56 //#define CAM_ADJUSTABLE_ALT_BUTTON 1 // ToDo 56 57 57 #define CAM_CHDK_PTP 1 // OK 58 59 #define PARAM_CAMERA_NAME 4 // OK 58 #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData to get camera name 60 59 61 60 #define CAM_DNG_LENS_INFO { 49,10, 186,10, 20,10, 53,10 } // See comments in camera.h 62 61 63 #define cam_CFAPattern 0x02010100 // RAW/DNG: Red Green Green Blue, OK 64 65 #define CAM_DRIVE_MODE_FROM_TIMER_MODE // ToDo: working ? 66 67 #define CAM_QUALITY_OVERRIDE 1 // enable 'super fine' override, OK 68 69 #define CAM_DETECT_SCREEN_ERASE 1 // ToDo: CHDK OSD flicker more often, OSD redrawn is more reliable 70 71 #define CAM_STARTUP_CRASH_FILE_OPEN_FIX 1 // cameras intermittently crashing on startup with "ASSERT!! FsIoNotify.c Line 457 Task name: SpyTask" in ROMLOG, ToDo: working ? 62 // colors are messed up in DNG if not correct 63 #define cam_CFAPattern 0x02010100 // Red Green Green Blue, OK 72 64 73 65 // ToDo … … 77 69 17965, 1000000, 78396, 1000000, 231868, 1000000 78 70 79 #define cam_CalibrationIlluminant1 1// ToDo: Daylight ?71 #define cam_CalibrationIlluminant1 1 // ToDo: Daylight ? 80 72 81 #define CAM_RAW_ROWPIX 3816 // ROM:FFB28EEC or ROM:ff93c408, finsig282 #define CAM_RAW_ROWS 2784 // ROM:FFB28EF4 or ROM:ff93c414, finsig273 #define CAM_RAW_ROWPIX 3816 // ROM:FFB28EEC 74 #define CAM_RAW_ROWS 2784 // ROM:FFB28EF4 83 75 84 #define CAM_JPEG_WIDTH 3648// JPEG Exif data or ROM:FFB28EFC85 #define CAM_JPEG_HEIGHT 2736// JPEG Exif data or ROM:FFB28F0476 #define CAM_JPEG_WIDTH 3648 // JPEG Exif data or ROM:FFB28EFC 77 #define CAM_JPEG_HEIGHT 2736 // JPEG Exif data or ROM:FFB28F04 86 78 87 79 // http://chdk.setepontos.com/index.php?topic=6122.0 … … 89 81 // use even numbers! 90 82 91 // RAW/DNGwithout Dark Frame92 #define CAM_ACTIVE_AREA_X1 120// x offset (right)93 #define CAM_ACTIVE_AREA_Y1 24// y offset (down)94 #define CAM_ACTIVE_AREA_X2 378495 #define CAM_ACTIVE_AREA_Y2 276483 // without Dark Frame 84 #define CAM_ACTIVE_AREA_X1 120 // x offset (right) 85 #define CAM_ACTIVE_AREA_Y1 24 // y offset (down) 86 #define CAM_ACTIVE_AREA_X2 3784 87 #define CAM_ACTIVE_AREA_Y2 2764 96 88 97 89 /* 98 // RAW/DNGwith Dark Frame99 #define CAM_ACTIVE_AREA_X1 92 // x offset (right)100 #define CAM_ACTIVE_AREA_Y1 4 // y offset (down)90 // with Dark Frame 91 #define CAM_ACTIVE_AREA_X1 92 // x offset (right) 92 #define CAM_ACTIVE_AREA_Y1 4 // y offset (down) 101 93 #define CAM_ACTIVE_AREA_X2 3812 102 94 #define CAM_ACTIVE_AREA_Y2 2784 … … 104 96 105 97 /* 106 // Test values to messure correct buffer"crop" Values98 // Test values to messure correct "crop" Values 107 99 #define CAM_ACTIVE_AREA_X1 0 108 100 #define CAM_ACTIVE_AREA_Y1 0 … … 112 104 113 105 #undef CAM_SENSOR_BITS_PER_PIXEL 114 #define CAM_SENSOR_BITS_PER_PIXEL 12106 #define CAM_SENSOR_BITS_PER_PIXEL 12 115 107 116 #define PARAM_CAMERA_NAME 4 // parameter number (index) for GetParameterData to get Camera Name117 #define DNG_EXT_FROM ".CR2"108 #define PARAM_CAMERA_NAME 4 // parameter number (index) for GetParameterData to get Camera Name 109 #define DNG_EXT_FROM ".CR2" 118 110 119 // --- everthing below is ToDo !!! -------------------------------------------------------------------------------------------------------------------111 // everthing below is ToDo !!!!!!!!!!!!!!!! 120 112 121 //#define CAM_HAS_VARIABLE_ASPECT 1 // ToDo: SD4000 do switch between 16:9 and 4:3113 //#define CAM_HAS_VARIABLE_ASPECT 1 // ?!? like SX1 122 114 123 115 #undef CAM_USES_ASPECT_CORRECTION 124 #define CAM_USES_ASPECT_CORRECTION 1 // camera uses the modified graphics primitives to map screens an viewports to buffers more sized116 #define CAM_USES_ASPECT_CORRECTION 1 // camera uses the modified graphics primitives to map screens an viewports to buffers more sized 125 117 #undef CAM_SCREEN_WIDTH 126 118 #undef CAM_BITMAP_WIDTH … … 135 127 136 128 // #define REMOTE_SYNC_STATUS_LED 0xC0xxyyyy // specifies an LED that turns on while camera waits for USB remote to sync 137 129 130 #define CAM_DRIVE_MODE_FROM_TIMER_MODE 1 // use PROPCASE_TIMER_MODE to check for multiple shot custom timer. 131 // Used to enabled bracketing in custom timer, required on many recent cameras 132 // see http://chdk.setepontos.com/index.php/topic,3994.405.html 133 134 #define CAM_QUALITY_OVERRIDE 1 // enable 'super fine' override 135 136 #define CAM_STARTUP_CRASH_FILE_OPEN_FIX 1 // cameras intermittently crashing on startup with "ASSERT!! FsIoNotify.c Line 457 Task name: SpyTask" in ROMLOG, ToDo: working ? 137 138 #define CAM_DETECT_SCREEN_ERASE 1 // ToDo: CHDK OSD flicker more often, OSD redrawn is more reliable -
trunk/platform/ixus310_elph500hs/platform_camera.h
r1580 r1656 46 46 #define CAM_VIDEO_QUALITY_ONLY 1 47 47 #define CAM_EXT_TV_RANGE 1 48 48 //#define CAM_EV_IN_VIDEO 1 49 //#define CAM_SHOW_OSD_IN_SHOOT_MENU 1 50 //#define CAM_QUALITY_OVERRIDE 1 51 52 #define CAM_HAS_CMOS 1 49 53 #define CAM_HAS_ND_FILTER 1 50 54 51 #undef CAM_HAS_ERASE_BUTTON // No erase button52 #undef CAM_HAS_MANUAL_FOCUS // No manual focus mode55 #undef CAM_HAS_ERASE_BUTTON // No erase button 56 #undef CAM_HAS_MANUAL_FOCUS // No manual focus mode 53 57 54 #undef CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO // Can already zoom in video, no need to unlock58 #undef CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO // Can already zoom in video, no need to unlock 55 59 56 #undef DEFAULT_RAW_EXT60 #undef DEFAULT_RAW_EXT 57 61 #define DEFAULT_RAW_EXT 2 // use .CR2 58 62 59 #undef CAM_MENU_BORDERWIDTH60 #define CAM_MENU_BORDERWIDTH 70 // Need to leave this much border to avoid overlap with on screen buttons.61 #undef CAM_TS_BUTTON_BORDER62 #define CAM_TS_BUTTON_BORDER 60 // Define this to leave a border on each side of the palette display. Used on the IXUS 310 to63 #undef CAM_MENU_BORDERWIDTH 64 #define CAM_MENU_BORDERWIDTH 70 // Need to leave this much border to avoid overlap with on screen buttons. 65 #undef CAM_TS_BUTTON_BORDER 66 #define CAM_TS_BUTTON_BORDER 60 // Define this to leave a border on each side of the palette display. Used on the IXUS 310 to 63 67 // stop the palette from overlapping the on screen buttons on each side 64 #undef CAM_DISP_ALT_TEXT // Turn off <ALT> at bottom of screen in Alt mode - changes button color instead68 #undef CAM_DISP_ALT_TEXT // Turn off <ALT> at bottom of screen in Alt mode - changes button color instead 65 69 #define CAM_DETECT_SCREEN_ERASE 1 // Turn on guard pixels to detect screen erase and redraw CHDK buttons and menus 66 #define CAM_TOUCHSCREEN_UI 1 // Enable touch screen U/I70 #define CAM_TOUCHSCREEN_UI 1 // Enable touch screen U/I 67 71 68 72 // camera name 69 #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData73 #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData 70 74 #define PARAM_DISPLAY_MODE1 60 // param number for LCD display mode when camera in playback 71 75 #define PARAM_DISPLAY_MODE2 64 // param number for LCD display mode when camera in record view hold mode … … 73 77 #define CAM_SENSOR_BITS_PER_PIXEL 12 74 78 75 #undef CAM_BITMAP_PALETTE79 #undef CAM_BITMAP_PALETTE 76 80 #define CAM_BITMAP_PALETTE 12 77 81 78 #undef CAM_USES_ASPECT_CORRECTION79 #define CAM_USES_ASPECT_CORRECTION 1 //camera uses the modified graphics primitives to map screens an viewports to buffers more sized82 #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 80 84 #undef CAM_SCREEN_WIDTH 81 85 #undef CAM_BITMAP_WIDTH … … 85 89 #define CAM_BITMAP_HEIGHT 270 // Actual height of bitmap screen in rows 86 90 87 #undef EDGE_HMARGIN91 #undef EDGE_HMARGIN 88 92 #define EDGE_HMARGIN 2 89 93 … … 91 95 #define cam_CFAPattern 0x02010100 // Red Green Green Blue 92 96 93 #define CAM_DNG_EXPOSURE_BIAS 0,1 // Specify DNG exposure bias value to 0 (to override default of -0.5 in the dng.c code)97 #define CAM_DNG_EXPOSURE_BIAS 0,1 // Specify DNG exposure bias value to 0 (to override default of -0.5 in the dng.c code) 94 98 95 #define CAM_DNG_LENS_INFO { 43,10, 188,10, 20,10, 58,10 }// See comments in camera.h99 #define CAM_DNG_LENS_INFO { 43,10, 188,10, 20,10, 58,10 } // See comments in camera.h 96 100 97 101 #define cam_CalibrationIlluminant1 1 … … 102 106 103 107 #define CAM_ZEBRA_ASPECT_ADJUST 1 104 108 109 105 110 #define CAM_DATE_FOLDER_NAMING 1 106 111 … … 116 121 #define CAM_AV_OVERRIDE_IRIS_FIX 1 // for cameras that require _MoveIrisWithAv function to override Av in bracketing. 117 122 118 #define CAM_DISABLE_RAW_IN_LOW_LIGHT_MODE 1 // For cameras with 'low light' mode that does now work with raw define this123 #define CAM_DISABLE_RAW_IN_LOW_LIGHT_MODE 1 // For cameras with 'low light' mode that does now work with raw define this 119 124 120 #define CAM_LOAD_CUSTOM_COLORS 1 // Enable loading CHDK colors into the camera palette memory/hardware121 #define CHDK_COLOR_BASE 0xA2 // Start color index for CHDK colors loaded into camera palette.125 #define CAM_LOAD_CUSTOM_COLORS 1 // Enable loading CHDK colors into the camera palette memory/hardware 126 #define CHDK_COLOR_BASE 0xA2 // Start color index for CHDK colors loaded into camera palette. 122 127 #define CAM_USE_COLORED_ICONS 1 // Enable using the CHDK-DE colored icons. 123 128 124 129 // #define REMOTE_SYNC_STATUS_LED 0xC0xxyyyy // specifies an LED that turns on while camera waits for USB remote to sync 125 130 126 #undef CAMERA_MIN_DIST131 #undef CAMERA_MIN_DIST 127 132 #define CAMERA_MIN_DIST 71 // Override min subject distance 128 #undef CAMERA_MAX_DIST133 #undef CAMERA_MAX_DIST 129 134 #define CAMERA_MAX_DIST 125392 // Override max subject distance 130 131 135 //---------------------------------------------------------- 132 136 -
trunk/platform/ixus40_sd300/lib.c
r977 r1656 2 2 #include "lolevel.h" 3 3 #define PARAM_FILE_COUNTER 0x2E 4 5 4 6 5 extern void _sub_FF821D04(long mem, long *data); -
trunk/platform/ixus40_sd300/platform_camera.h
r1555 r1656 1 // Camera - IXUS40_SD300 - platform_camera.h1 // Camera - ixus40_sd300 - platform_camera.h 2 2 3 // This file contains the various settings values specific to the IXUS40_SD300 camera.3 // This file contains the various settings values specific to the ixus40_sd300 camera. 4 4 // This file is referenced via the 'include/camera.h' file and should not be loaded directly. 5 5 … … 21 21 // don't override them again in here. 22 22 23 #define CAM_PROPSET 123 #define CAM_PROPSET 1 24 24 25 #define CAM_RAW_ROWPIX 240026 #define CAM_RAW_ROWS 176625 #define CAM_RAW_ROWPIX 2400 26 #define CAM_RAW_ROWS 1766 27 27 28 28 #define CAM_USE_ZOOM_FOR_MF 1 29 29 #undef CAM_HAS_ERASE_BUTTON 30 30 #undef CAM_HAS_IRIS_DIAPHRAGM 31 #define CAM_HAS_ND_FILTER 131 #define CAM_HAS_ND_FILTER 1 32 32 #undef CAM_HAS_MANUAL_FOCUS 33 33 #undef CAM_HAS_USER_TV_MODES 34 #define CAM_SHOW_OSD_IN_SHOOT_MENU 134 #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 35 35 #undef CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO 36 36 #undef CAM_HAS_IS 37 37 #undef CAM_CONSOLE_LOG_ENABLED 38 38 39 40 39 #define CAM_DNG_LENS_INFO { 58,10, 174,10, 28,10, 49,10 } // See comments in camera.h 41 40 // pattern 42 #define cam_CFAPattern 0x02010100 // Red Green Green Blue41 #define cam_CFAPattern 0x02010100 // Red Green Green Blue 43 42 // color 44 #define CAM_COLORMATRIX1 \45 652674, 1000000, -172074, 1000000, -107575, 1000000, \46 -139063, 1000000, 594517, 1000000, 60252,1000000, \47 -9088, 1000000, 82013,1000000, 238080, 100000048 49 #define cam_CalibrationIlluminant1 1// Daylight43 #define CAM_COLORMATRIX1 \ 44 652674, 1000000, -172074, 1000000, -107575, 1000000, \ 45 -139063, 1000000, 594517, 1000000, 60252, 1000000, \ 46 -9088, 1000000, 82013, 1000000, 238080, 1000000 47 48 #define cam_CalibrationIlluminant1 1 // Daylight 50 49 // cropping 51 #define CAM_JPEG_WIDTH 227252 #define CAM_JPEG_HEIGHT 170453 #define CAM_ACTIVE_AREA_X1 1254 #define CAM_ACTIVE_AREA_Y1 1255 #define CAM_ACTIVE_AREA_X2 235656 #define CAM_ACTIVE_AREA_Y2 176450 #define CAM_JPEG_WIDTH 2272 51 #define CAM_JPEG_HEIGHT 1704 52 #define CAM_ACTIVE_AREA_X1 12 53 #define CAM_ACTIVE_AREA_Y1 12 54 #define CAM_ACTIVE_AREA_X2 2356 55 #define CAM_ACTIVE_AREA_Y2 1764 57 56 // camera name 58 #define PARAM_CAMERA_NAME 2 // parameter number for GetParameterData 57 #define PARAM_CAMERA_NAME 2 // parameter number for GetParameterData 58 59 59 #define CAM_NO_MEMPARTINFO 1 // vxworks function missing 60 60 -
trunk/platform/ixus40_sd300/sub/100j/stubs_min.S
r1179 r1656 23 23 DEF(playrec_mode,0x598C) // "MenuIn" 24 24 DEF(sys_mempart_id, 0xF414) // mem* functions 25 -
trunk/platform/ixus40_sd300/sub/100k/stubs_min.S
r1179 r1656 22 22 DEF(playrec_mode, 0x598C) // "MenuIn" 23 23 DEF(sys_mempart_id, 0xF41C) // mem* functions 24 -
trunk/platform/ixus50_sd400/platform_camera.h
r1555 r1656 1 // Camera - IXUS50_SD400 - platform_camera.h1 // Camera - ixus50_sd400 - platform_camera.h 2 2 3 // This file contains the various settings values specific to the IXUS50_SD400 camera.3 // This file contains the various settings values specific to the ixus50_sd400 camera. 4 4 // This file is referenced via the 'include/camera.h' file and should not be loaded directly. 5 5 … … 21 21 // don't override them again in here. 22 22 23 #define CAM_PROPSET 123 #define CAM_PROPSET 1 24 24 25 #define CAM_RAW_ROWPIX 2672// for 5 MP26 #define CAM_RAW_ROWS 1968// for 5 MP25 #define CAM_RAW_ROWPIX 2672 // for 5 MP 26 #define CAM_RAW_ROWS 1968 // for 5 MP 27 27 28 #undef CAM_SYNCH 28 #undef CAM_SYNCH 29 29 #undef CAM_USE_ZOOM_FOR_MF 30 30 #undef CAM_HAS_ERASE_BUTTON 31 31 #undef CAM_HAS_IRIS_DIAPHRAGM 32 #define CAM_HAS_ND_FILTER 132 #define CAM_HAS_ND_FILTER 1 33 33 #undef CAM_HAS_MANUAL_FOCUS 34 34 #undef CAM_HAS_USER_TV_MODES 35 #define CAM_SHOW_OSD_IN_SHOOT_MENU 135 #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 36 36 #undef CAM_HAS_IS 37 //#define CAM_CONSOLE_LOG_ENABLED137 //#define CAM_CONSOLE_LOG_ENABLED 1 38 38 #undef CAM_VIDEO_CONTROL 39 39 40 40 #define CAM_DNG_LENS_INFO { 58,10, 174,10, 28,10, 49,10 } // See comments in camera.h 41 41 // pattern 42 #define cam_CFAPattern 0x02010100 // Red Green Green Blue42 #define cam_CFAPattern 0x02010100 // Red Green Green Blue 43 43 // color 44 #define CAM_COLORMATRIX1 \45 685247, 1000000, -204939, 1000000, -106531,1000000, \46 -267616, 1000000, 790509, 1000000, 73359,1000000, \47 32401, 1000000, 15655, 1000000, 314892,100000048 49 #define cam_CalibrationIlluminant1 1// Daylight44 #define CAM_COLORMATRIX1 \ 45 685247, 1000000, -204939, 1000000, -106531, 1000000, \ 46 -267616, 1000000, 790509, 1000000, 73359, 1000000, \ 47 32401, 1000000, 15655, 1000000, 314892, 1000000 48 49 #define cam_CalibrationIlluminant1 1 // Daylight 50 50 // cropping 51 #define CAM_JPEG_WIDTH 259252 #define CAM_JPEG_HEIGHT 194453 #define CAM_ACTIVE_AREA_X1 1254 #define CAM_ACTIVE_AREA_Y1 855 #define CAM_ACTIVE_AREA_X2 262856 #define CAM_ACTIVE_AREA_Y2 196851 #define CAM_JPEG_WIDTH 2592 52 #define CAM_JPEG_HEIGHT 1944 53 #define CAM_ACTIVE_AREA_X1 12 54 #define CAM_ACTIVE_AREA_Y1 8 55 #define CAM_ACTIVE_AREA_X2 2628 56 #define CAM_ACTIVE_AREA_Y2 1968 57 57 // camera name 58 #define PARAM_CAMERA_NAME 2// parameter number for GetParameterData58 #define PARAM_CAMERA_NAME 2 // parameter number for GetParameterData 59 59 60 60 // #define REMOTE_SYNC_STATUS_LED 0xC0xxyyyy // specifies an LED that turns on while camera waits for USB remote to sync -
trunk/platform/ixus55_sd450/platform_camera.h
r1555 r1656 1 // Camera - IXUS55_SD450 - platform_camera.h1 // Camera - ixus55_sd450 - platform_camera.h 2 2 3 // This file contains the various settings values specific to the IXUS55_SD450 camera.3 // This file contains the various settings values specific to the ixus55_sd450 camera. 4 4 // This file is referenced via the 'include/camera.h' file and should not be loaded directly. 5 5 … … 21 21 // don't override them again in here. 22 22 23 #define CAM_PROPSET 123 #define CAM_PROPSET 1 24 24 25 #define CAM_RAW_ROWPIX 2672 // for 5 MP26 #define CAM_RAW_ROWS 1968 // for 5 MP25 #define CAM_RAW_ROWPIX 2672 // for 5 MP 26 #define CAM_RAW_ROWS 1968 // for 5 MP 27 27 28 28 #undef CAM_USE_ZOOM_FOR_MF 29 29 #undef CAM_HAS_ERASE_BUTTON 30 30 #undef CAM_HAS_IRIS_DIAPHRAGM 31 #define CAM_HAS_ND_FILTER 131 #define CAM_HAS_ND_FILTER 1 32 32 #undef CAM_HAS_MANUAL_FOCUS 33 33 #undef CAM_HAS_USER_TV_MODES 34 #define CAM_SHOW_OSD_IN_SHOOT_MENU 134 #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 35 35 #undef CAM_HAS_IS 36 36 #define CAM_AF_SCAN_DURING_VIDEO_RECORD 2 … … 38 38 #define CAM_DNG_LENS_INFO { 58,10, 174,10, 28,10, 49,10 } // See comments in camera.h 39 39 // pattern 40 #define cam_CFAPattern 0x02010100 // Red Green Green Blue40 #define cam_CFAPattern 0x02010100 // Red Green Green Blue 41 41 // color 42 #define CAM_COLORMATRIX1 \43 536034, 1000000, -173429, 1000000, -89823,1000000, \44 -290416, 1000000, 735807, 1000000, 47894,1000000, \45 -71455, 1000000, 114314, 1000000, 274533, 100000046 47 #define cam_CalibrationIlluminant1 1// Daylight42 #define CAM_COLORMATRIX1 \ 43 536034, 1000000, -173429, 1000000, -89823, 1000000, \ 44 -290416, 1000000, 735807, 1000000, 47894, 1000000, \ 45 -71455, 1000000, 114314, 1000000, 274533, 1000000 46 47 #define cam_CalibrationIlluminant1 1 // Daylight 48 48 // cropping 49 #define CAM_JPEG_WIDTH 259250 #define CAM_JPEG_HEIGHT 194451 #define CAM_ACTIVE_AREA_X1 1252 #define CAM_ACTIVE_AREA_Y1 853 #define CAM_ACTIVE_AREA_X2 262854 #define CAM_ACTIVE_AREA_Y2 196849 #define CAM_JPEG_WIDTH 2592 50 #define CAM_JPEG_HEIGHT 1944 51 #define CAM_ACTIVE_AREA_X1 12 52 #define CAM_ACTIVE_AREA_Y1 8 53 #define CAM_ACTIVE_AREA_X2 2628 54 #define CAM_ACTIVE_AREA_Y2 1968 55 55 // camera name 56 #define PARAM_CAMERA_NAME 3// parameter number for GetParameterData57 #define DNG_EXT_FROM ".DPS"56 #define PARAM_CAMERA_NAME 3 // parameter number for GetParameterData 57 #define DNG_EXT_FROM ".DPS" 58 58 59 59 #define REMOTE_SYNC_STATUS_LED 0xc02200e4 // specifies an LED that turns on while camera waits for USB remote to sync -
trunk/platform/ixus60_sd600/platform_camera.h
r1555 r1656 1 // Camera - IXUS60_SD600 - platform_camera.h1 // Camera - ixus60_sd600 - platform_camera.h 2 2 3 // This file contains the various settings values specific to the IXUS60_SD600 camera.3 // This file contains the various settings values specific to the ixus60_sd600 camera. 4 4 // This file is referenced via the 'include/camera.h' file and should not be loaded directly. 5 5 … … 21 21 // don't override them again in here. 22 22 23 #define CAM_PROPSET 123 #define CAM_PROPSET 1 24 24 25 #define CAM_RAW_ROWPIX 2888// for 6 MP26 #define CAM_RAW_ROWS 2136// for 6 MP25 #define CAM_RAW_ROWPIX 2888 // for 6 MP 26 #define CAM_RAW_ROWS 2136 // for 6 MP 27 27 28 28 #undef CAM_SYNCH … … 30 30 #undef CAM_HAS_ERASE_BUTTON 31 31 #undef CAM_HAS_IRIS_DIAPHRAGM 32 #define CAM_HAS_ND_FILTER 132 #define CAM_HAS_ND_FILTER 1 33 33 #undef CAM_HAS_MANUAL_FOCUS 34 34 #undef CAM_HAS_USER_TV_MODES 35 #define CAM_DRAW_EXPOSITION 136 #define CAM_SHOW_OSD_IN_SHOOT_MENU 137 #define CAM_FEATURE_FEATHER 135 #define CAM_DRAW_EXPOSITION 1 36 #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 37 #define CAM_FEATURE_FEATHER 1 38 38 39 // #define CAM_CONSOLE_LOG_ENABLED 1//100a won't compile if this is defined ("undefined reference to `_iosDevFind'")39 // #define CAM_CONSOLE_LOG_ENABLED 1 //100a won't compile if this is defined ("undefined reference to `_iosDevFind'") 40 40 #undef CAM_CHDK_HAS_EXT_VIDEO_MENU 41 41 #undef CAM_HAS_IS … … 43 43 #define CAM_DNG_LENS_INFO { 58,10, 174,10, 28,10, 49,10 } // See comments in camera.h 44 44 // pattern 45 #define cam_CFAPattern 0x02010100 // Red Green Green Blue45 #define cam_CFAPattern 0x02010100 // Red Green Green Blue 46 46 // color 47 #define CAM_COLORMATRIX1 \48 767398,1000000, -227658, 1000000, -144213, 1000000, \49 -217466, 1000000, 669319, 1000000, 38180,1000000, \50 -23152, 1000000, 77743, 1000000,238669, 100000051 52 #define cam_CalibrationIlluminant1 1// Daylight47 #define CAM_COLORMATRIX1 \ 48 767398, 1000000, -227658, 1000000, -144213, 1000000, \ 49 -217466, 1000000, 669319, 1000000, 38180, 1000000, \ 50 -23152, 1000000, 77743, 1000000, 238669, 1000000 51 52 #define cam_CalibrationIlluminant1 1 // Daylight 53 53 // cropping 54 #define CAM_JPEG_WIDTH 281655 #define CAM_JPEG_HEIGHT 211256 #define CAM_ACTIVE_AREA_X1 4457 #define CAM_ACTIVE_AREA_Y1 858 #define CAM_ACTIVE_AREA_X2 288459 #define CAM_ACTIVE_AREA_Y2 213654 #define CAM_JPEG_WIDTH 2816 55 #define CAM_JPEG_HEIGHT 2112 56 #define CAM_ACTIVE_AREA_X1 44 57 #define CAM_ACTIVE_AREA_Y1 8 58 #define CAM_ACTIVE_AREA_X2 2884 59 #define CAM_ACTIVE_AREA_Y2 2136 60 60 // camera name 61 #define PARAM_CAMERA_NAME 3// parameter number for GetParameterData61 #define PARAM_CAMERA_NAME 3 // parameter number for GetParameterData 62 62 63 63 // #define REMOTE_SYNC_STATUS_LED 0xC0xxyyyy // specifies an LED that turns on while camera waits for USB remote to sync -
trunk/platform/ixus65_sd630/platform_camera.h
r1555 r1656 1 // Camera - IXUS65_SD630 - platform_camera.h1 // Camera - ixus65_sd630 - platform_camera.h 2 2 3 // This file contains the various settings values specific to the IXUS65_SD630 camera.3 // This file contains the various settings values specific to the ixus65_sd630 camera. 4 4 // This file is referenced via the 'include/camera.h' file and should not be loaded directly. 5 5 … … 21 21 // don't override them again in here. 22 22 23 #define CAM_PROPSET 123 #define CAM_PROPSET 1 24 24 25 #define CAM_RAW_ROWPIX 2888// for 6 MP26 #define CAM_RAW_ROWS 2136 // for 6 MP25 #define CAM_RAW_ROWPIX 2888 // for 6 MP 26 #define CAM_RAW_ROWS 2136 // for 6 MP 27 27 28 #define CAM_ADJUSTABLE_ALT_BUTTON 1 29 28 #define CAM_ADJUSTABLE_ALT_BUTTON 1 29 30 30 #undef CAM_USE_ZOOM_FOR_MF 31 31 #undef CAM_HAS_ERASE_BUTTON 32 32 #undef CAM_HAS_IRIS_DIAPHRAGM 33 #define CAM_HAS_ND_FILTER 133 #define CAM_HAS_ND_FILTER 1 34 34 #undef CAM_HAS_MANUAL_FOCUS 35 35 #undef CAM_HAS_USER_TV_MODES 36 #define CAM_DRAW_EXPOSITION 137 #define CAM_SHOW_OSD_IN_SHOOT_MENU 136 #define CAM_DRAW_EXPOSITION 1 37 #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 38 38 #undef CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO 39 #define CAM_FEATURE_FEATHER 139 #define CAM_FEATURE_FEATHER 1 40 40 41 41 #define CAM_CONSOLE_LOG_ENABLED 1 … … 45 45 #define CAM_DNG_LENS_INFO { 58,10, 174,10, 28,10, 49,10 } // See comments in camera.h 46 46 // pattern 47 #define cam_CFAPattern 0x02010100 // Red Green Green Blue47 #define cam_CFAPattern 0x02010100 // Red Green Green Blue 48 48 // color 49 #define CAM_COLORMATRIX1 \50 783384,1000000, -227078, 1000000, -127919, 1000000, \51 -181247, 1000000, 661743, 1000000, 58868,1000000, \52 25727, 1000000, 43891, 1000000, 247655, 100000053 54 #define cam_CalibrationIlluminant1 1// Daylight49 #define CAM_COLORMATRIX1 \ 50 783384, 1000000, -227078, 1000000, -127919, 1000000, \ 51 -181247, 1000000, 661743, 1000000, 58868, 1000000, \ 52 25727, 1000000, 43891, 1000000, 247655, 1000000 53 54 #define cam_CalibrationIlluminant1 1 // Daylight 55 55 // cropping 56 #define CAM_JPEG_WIDTH 281657 #define CAM_JPEG_HEIGHT 211258 #define CAM_ACTIVE_AREA_X1 4459 #define CAM_ACTIVE_AREA_Y1 860 #define CAM_ACTIVE_AREA_X2 288461 #define CAM_ACTIVE_AREA_Y2 213656 #define CAM_JPEG_WIDTH 2816 57 #define CAM_JPEG_HEIGHT 2112 58 #define CAM_ACTIVE_AREA_X1 44 59 #define CAM_ACTIVE_AREA_Y1 8 60 #define CAM_ACTIVE_AREA_X2 2884 61 #define CAM_ACTIVE_AREA_Y2 2136 62 62 // camera name 63 #define PARAM_CAMERA_NAME 3// parameter number for GetParameterData64 #define DNG_EXT_FROM ".DPS"63 #define PARAM_CAMERA_NAME 3 // parameter number for GetParameterData 64 #define DNG_EXT_FROM ".DPS" 65 65 66 66 // #define REMOTE_SYNC_STATUS_LED 0xC0xxyyyy // specifies an LED that turns on while camera waits for USB remote to sync -
trunk/platform/ixus700_sd500/Makefile
r515 r1656 14 14 15 15 kbd.o: kbd.c ../generic/kbd.c 16 lib.o: lib.c ../generic/lib.c16 lib.o: lib.c 17 17 main.o: main.c ../generic/main.c 18 18 shooting.o: shooting.c ../generic/shooting.c -
trunk/platform/ixus70_sd1000/lib.c
r977 r1656 54 54 p[0]=0x44; 55 55 } 56 -
trunk/platform/ixus70_sd1000/platform_camera.h
r1555 r1656 1 // Camera - IXUS70_SD1000 - platform_camera.h1 // Camera - ixus70_sd1000 - platform_camera.h 2 2 3 // This file contains the various settings values specific to the IXUS70_SD1000 camera.3 // This file contains the various settings values specific to the ixus70_sd1000 camera. 4 4 // This file is referenced via the 'include/camera.h' file and should not be loaded directly. 5 5 … … 21 21 // don't override them again in here. 22 22 23 #define CAM_PROPSET 223 #define CAM_PROPSET 2 24 24 25 #define CAM_RAW_ROWPIX 3152// for 7 MP26 #define CAM_RAW_ROWS 2340// for 7 MP25 #define CAM_RAW_ROWPIX 3152 // for 7 MP 26 #define CAM_RAW_ROWS 2340 // for 7 MP 27 27 28 28 #undef CAM_USE_ZOOM_FOR_MF 29 29 #undef CAM_HAS_ERASE_BUTTON 30 30 #undef CAM_HAS_IRIS_DIAPHRAGM 31 #define CAM_HAS_ND_FILTER 131 #define CAM_HAS_ND_FILTER 1 32 32 #undef CAM_HAS_MANUAL_FOCUS 33 33 #undef CAM_HAS_USER_TV_MODES 34 #define CAM_SHOW_OSD_IN_SHOOT_MENU 134 #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 35 35 #undef CAM_HAS_IS 36 36 #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 37 #define CAM_MULTIPART 1 37 38 #define CAM_MULTIPART 1 38 39 39 40 #define CAM_DNG_LENS_INFO { 58,10, 174,10, 28,10, 49,10 } // See comments in camera.h 40 41 // pattern 41 #define cam_CFAPattern 0x02010100 // Red Green Green Blue42 #define cam_CFAPattern 0x02010100 // Red Green Green Blue 42 43 // color 43 #define CAM_COLORMATRIX1 \44 652674,1000000, -172074, 1000000, -107575, 1000000, \45 -139063, 1000000, 594517, 1000000, 60252,1000000, \46 -9088, 1000000, 82013,1000000, 238048, 100000047 48 #define cam_CalibrationIlluminant1 1// Daylight44 #define CAM_COLORMATRIX1 \ 45 652674, 1000000, -172074, 1000000, -107575, 1000000, \ 46 -139063, 1000000, 594517, 1000000, 60252, 1000000, \ 47 -9088, 1000000, 82013, 1000000, 238048, 1000000 48 49 #define cam_CalibrationIlluminant1 1 // Daylight 49 50 // cropping 50 #define CAM_JPEG_WIDTH 307251 #define CAM_JPEG_HEIGHT 230452 #define CAM_ACTIVE_AREA_X1 3853 #define CAM_ACTIVE_AREA_Y1 1454 #define CAM_ACTIVE_AREA_X2 314655 #define CAM_ACTIVE_AREA_Y2 233851 #define CAM_JPEG_WIDTH 3072 52 #define CAM_JPEG_HEIGHT 2304 53 #define CAM_ACTIVE_AREA_X1 38 54 #define CAM_ACTIVE_AREA_Y1 14 55 #define CAM_ACTIVE_AREA_X2 3146 56 #define CAM_ACTIVE_AREA_Y2 2338 56 57 // camera name 57 #define PARAM_CAMERA_NAME 4// parameter number for GetParameterData58 #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData 58 59 59 #define DNG_EXT_FROM ".DPS"60 #define DNG_EXT_FROM ".DPS" 60 61 61 #define CAM_EXT_TV_RANGE 162 #define CAM_EXT_TV_RANGE 1 62 63 63 64 #define REMOTE_SYNC_STATUS_LED 0xc02200C4 // specifies an LED that turns on while camera waits for USB remote to sync -
trunk/platform/ixus750_sd550/lib.c
r977 r1656 47 47 return 83; 48 48 } 49 -
trunk/platform/ixus750_sd550/platform_camera.h
r1555 r1656 1 // Camera - IXUS750_SD550 - platform_camera.h1 // Camera - ixus750_sd550 - platform_camera.h 2 2 3 // This file contains the various settings values specific to the IXUS750_SD550 camera.3 // This file contains the various settings values specific to the ixus750_sd550 camera. 4 4 // This file is referenced via the 'include/camera.h' file and should not be loaded directly. 5 5 … … 21 21 // don't override them again in here. 22 22 23 #define CAM_PROPSET 123 #define CAM_PROPSET 1 24 24 25 #define CAM_RAW_ROWPIX 3152// for 7 MP26 #define CAM_RAW_ROWS 2340// for 7 MP25 #define CAM_RAW_ROWPIX 3152 // for 7 MP 26 #define CAM_RAW_ROWS 2340 // for 7 MP 27 27 28 #define CAM_USE_ZOOM_FOR_MF129 #define CAM_DRAW_EXPOSITION 128 #define CAM_USE_ZOOM_FOR_MF 1 29 #define CAM_DRAW_EXPOSITION 1 30 30 #undef CAM_HAS_ERASE_BUTTON 31 31 #undef CAM_HAS_IRIS_DIAPHRAGM 32 #define CAM_HAS_ND_FILTER 132 #define CAM_HAS_ND_FILTER 1 33 33 #undef CAM_HAS_MANUAL_FOCUS 34 34 #undef CAM_HAS_USER_TV_MODES 35 #define CAM_CAN_SD_OVERRIDE136 #define CAM_SHOW_OSD_IN_SHOOT_MENU 135 #define CAM_CAN_SD_OVERRIDE 1 36 #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 37 37 #undef CAM_HAS_IS 38 #define CAM_MULTIPART 139 #undef CAM_SYNCH38 #define CAM_MULTIPART 1 39 #undef CAM_SYNCH 40 40 41 41 #define CAM_DNG_LENS_INFO { 77,10, 231,10, 28,10, 49,10 } // See comments in camera.h 42 42 // pattern 43 #define cam_CFAPattern 0x02010100 // Red Green Green Blue43 #define cam_CFAPattern 0x02010100 // Red Green Green Blue 44 44 // color 45 45 #define CAM_COLORMATRIX1 \ 46 46 580280, 1000000, -172239, 1000000, -89707, 1000000, \ 47 47 -206596, 1000000, 634926, 1000000, 63877, 1000000, \ 48 10377, 1000000, 62053, 1000000, 242646,100000049 50 #define cam_CalibrationIlluminant1 1// Daylight48 10377, 1000000, 62053, 1000000, 242646, 1000000 49 50 #define cam_CalibrationIlluminant1 1 // Daylight 51 51 // cropping 52 #define CAM_JPEG_WIDTH 307253 #define CAM_JPEG_HEIGHT 230454 #define CAM_ACTIVE_AREA_X1 3655 #define CAM_ACTIVE_AREA_Y1 1256 #define CAM_ACTIVE_AREA_X2 314857 #define CAM_ACTIVE_AREA_Y2 234052 #define CAM_JPEG_WIDTH 3072 53 #define CAM_JPEG_HEIGHT 2304 54 #define CAM_ACTIVE_AREA_X1 36 55 #define CAM_ACTIVE_AREA_Y1 12 56 #define CAM_ACTIVE_AREA_X2 3148 57 #define CAM_ACTIVE_AREA_Y2 2340 58 58 // camera name 59 #define PARAM_CAMERA_NAME 3// parameter number for GetParameterData59 #define PARAM_CAMERA_NAME 3 // parameter number for GetParameterData 60 60 61 61 // #define REMOTE_SYNC_STATUS_LED 0xC0xxyyyy // specifies an LED that turns on while camera waits for USB remote to sync -
trunk/platform/ixus75_sd750/lib.c
r977 r1656 54 54 p[0]=0x44; 55 55 } 56 -
trunk/platform/ixus75_sd750/platform_camera.h
r1555 r1656 1 // Camera - IXUS75_SD750 - platform_camera.h1 // Camera - ixus75_sd750 - platform_camera.h 2 2 3 // This file contains the various settings values specific to the IXUS75_SD750 camera.3 // This file contains the various settings values specific to the ixus75_sd750 camera. 4 4 // This file is referenced via the 'include/camera.h' file and should not be loaded directly. 5 5 … … 21 21 // don't override them again in here. 22 22 23 #define CAM_PROPSET 223 #define CAM_PROPSET 2 24 24 25 #define CAM_RAW_ROWPIX 3152// for 7 MP26 #define CAM_RAW_ROWS 2340// for 7 MP25 #define CAM_RAW_ROWPIX 3152 // for 7 MP 26 #define CAM_RAW_ROWS 2340 // for 7 MP 27 27 28 28 /* … … 30 30 #undef CAM_HAS_ERASE_BUTTON 31 31 #undef CAM_HAS_IRIS_DIAPHRAGM 32 #define CAM_HAS_ND_FILTER 132 #define CAM_HAS_ND_FILTER 1 33 33 #undef CAM_HAS_MANUAL_FOCUS 34 34 #undef CAM_HAS_USER_TV_MODES 35 #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 35 #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 36 36 37 #undef CAM_HAS_IS 37 38 */ … … 52 53 #define CAM_HAS_USER_TV_MODES 1 // Camera has tv-priority or manual modes with ability to set tv value 53 54 #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 // On some cameras Canon shoot menu has additional functionality and useful in this case to see CHDK OSD in this mode 54 // #undef CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO // adress for zoom_status missing, probably more55 #define CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO 1 // Camera can unlock optical zoom in video (if it is locked)56 55 #define CAM_FEATURE_FEATHER 1 // Cameras with "feather" or touch wheel. 57 56 #undef CAM_HAS_IS // Camera has image stabilizer … … 61 60 #define CAM_DNG_LENS_INFO { 58,10, 174,10, 28,10, 49,10 } // See comments in camera.h 62 61 // pattern 63 #define cam_CFAPattern 0x02010100 // Red Green Green Blue62 #define cam_CFAPattern 0x02010100 // Red Green Green Blue 64 63 // color 65 #define CAM_COLORMATRIX1 \66 689833,1000000, -198299, 1000000, -101299, 1000000, \67 -164267, 1000000, 667466, 1000000, 74132,1000000, \68 -36515, 1000000, 123872,1000000, 248498, 100000069 70 #define cam_CalibrationIlluminant1 1// Daylight64 #define CAM_COLORMATRIX1 \ 65 689833, 1000000, -198299, 1000000, -101299, 1000000, \ 66 -164267, 1000000, 667466, 1000000, 74132, 1000000, \ 67 -36515, 1000000, 123872, 1000000, 248498, 1000000 68 69 #define cam_CalibrationIlluminant1 1 // Daylight 71 70 // cropping 72 #define CAM_JPEG_WIDTH 307273 #define CAM_JPEG_HEIGHT 230474 #define CAM_ACTIVE_AREA_X1 3875 #define CAM_ACTIVE_AREA_Y1 1476 #define CAM_ACTIVE_AREA_X2 314677 #define CAM_ACTIVE_AREA_Y2 233871 #define CAM_JPEG_WIDTH 3072 72 #define CAM_JPEG_HEIGHT 2304 73 #define CAM_ACTIVE_AREA_X1 38 74 #define CAM_ACTIVE_AREA_Y1 14 75 #define CAM_ACTIVE_AREA_X2 3146 76 #define CAM_ACTIVE_AREA_Y2 233