Changeset 1652
- Timestamp:
- 02/09/12 10:43:09 (15 months ago)
- Location:
- branches/release-1_0
- Files:
-
- 122 edited
-
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) (1 diff)
-
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) (2 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) (3 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/a610/sub/100e/stubs_min.S (modified) (1 diff)
-
platform/a610/sub/100f/stubs_min.S (modified) (1 diff)
-
platform/a620/platform_camera.h (modified) (2 diffs)
-
platform/a620/sub/100f/stubs_min.S (modified) (1 diff)
-
platform/a630/platform_camera.h (modified) (2 diffs)
-
platform/a630/sub/100c/stubs_min.S (modified) (1 diff)
-
platform/a640/platform_camera.h (modified) (2 diffs)
-
platform/a640/sub/100b/stubs_min.S (modified) (1 diff)
-
platform/a650/platform_camera.h (modified) (2 diffs)
-
platform/a700/platform_camera.h (modified) (2 diffs)
-
platform/a700/sub/100b/stubs_min.S (modified) (1 diff)
-
platform/a710/platform_camera.h (modified) (2 diffs)
-
platform/a710/sub/100a/stubs_min.S (modified) (1 diff)
-
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) (2 diffs)
-
platform/g11/shooting.c (modified) (2 diffs)
-
platform/g12/lib.c (modified) (1 diff)
-
platform/g12/platform_camera.h (modified) (4 diffs)
-
platform/g12/shooting.c (modified) (1 diff)
-
platform/g7/platform_camera.h (modified) (2 diffs)
-
platform/g7/sub/100e/stubs_min.S (modified) (1 diff)
-
platform/g7/sub/100g/stubs_min.S (modified) (1 diff)
-
platform/g7/sub/100i/stubs_min.S (modified) (1 diff)
-
platform/g7/sub/100j/stubs_min.S (modified) (1 diff)
-
platform/g9/platform_camera.h (modified) (2 diffs)
-
platform/generic/kbd.c (modified) (6 diffs)
-
platform/generic/main.c (modified) (2 diffs)
-
platform/generic/wrappers.c (modified) (7 diffs)
-
platform/ixus1000_sd4500/platform_camera.h (modified) (5 diffs)
-
platform/ixus100_sd780/platform_camera.h (modified) (5 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) (3 diffs)
-
platform/ixus220_elph300hs/lib.c (modified) (2 diffs)
-
platform/ixus220_elph300hs/platform_camera.h (modified) (1 diff)
-
platform/ixus300_sd4000/platform_camera.h (modified) (5 diffs)
-
platform/ixus310_elph500hs/platform_camera.h (modified) (5 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) (4 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) (4 diffs)
-
platform/s95/platform_camera.h (modified) (2 diffs)
-
platform/sx1/platform_camera.h (modified) (2 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) (3 diffs)
-
platform/sx20/platform_camera.h (modified) (3 diffs)
-
platform/sx200is/platform_camera.h (modified) (3 diffs)
-
platform/sx220hs/lib.c (modified) (1 diff)
-
platform/sx220hs/platform_camera.h (modified) (6 diffs)
-
platform/sx230hs/platform_camera.h (modified) (3 diffs)
-
platform/sx230hs/sub/100c/lib.c (modified) (1 diff)
-
platform/sx30/platform_camera.h (modified) (6 diffs)
-
platform/sx30/shooting.c (modified) (1 diff)
-
platform/sx40hs/platform_camera.h (modified) (3 diffs)
-
platform/tx1/lib.c (modified) (3 diffs)
-
platform/tx1/platform_camera.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/release-1_0/include/lolevel.h
r1611 r1652 310 310 extern int _memPartInfoGet(int mempart_id,int *info); 311 311 312 #endif 312 extern void _SetFileAttributes(int fd, int attr); 313 314 #endif -
branches/release-1_0/include/platform.h
r1561 r1652 607 607 #endif 608 608 609 #endif 609 unsigned char SetFileAttributes(const char* fn, unsigned char attr); 610 611 #endif -
branches/release-1_0/platform/a1000/lib.c
r1639 r1652 1 1 #include "platform.h" 2 2 #include "lolevel.h" 3 //#include "../generic/lib.c"4 3 5 4 void shutdown() -
branches/release-1_0/platform/a1100/lib.c
r1643 r1652 57 57 return -99; 58 58 } 59 -
branches/release-1_0/platform/a1100/platform_camera.h
r1645 r1652 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 -
branches/release-1_0/platform/a2000/lib.c
r977 r1652 1 2 1 #include "platform.h" 3 2 #include "lolevel.h" -
branches/release-1_0/platform/a3000/platform_camera.h
r1637 r1652 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 -
branches/release-1_0/platform/a3300/platform_camera.h
r1637 r1652 83 83 #undef CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO 84 84 85 #undefCAM_BITMAP_PALETTE86 #define CAM_BITMAP_PALETTE1485 #undef CAM_BITMAP_PALETTE 86 #define CAM_BITMAP_PALETTE 14 87 87 88 88 #define CHDK_COLOR_BASE 0x1D // Start color index for CHDK colors loaded into camera palette. -
branches/release-1_0/platform/a410/platform_camera.h
r1418 r1652 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 -
branches/release-1_0/platform/a430/platform_camera.h
r1627 r1652 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 //---------------------------------------------------------- -
branches/release-1_0/platform/a450/platform_camera.h
r1418 r1652 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 -
branches/release-1_0/platform/a460/platform_camera.h
r1418 r1652 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 -
branches/release-1_0/platform/a460/sub/100d/stubs_min.S
r1184 r1652 18 18 DEF(playrec_mode,0xD29C) // "SSAPI::MenuIn" 19 19 DEF(sys_mempart_id, 0x4988) // memFindMax 20 -
branches/release-1_0/platform/a470/platform_camera.h
r1625 r1652 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 -
branches/release-1_0/platform/a480/platform_camera.h
r1418 r1652 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 72 73 //---------------------------------------------------------- 73 -
branches/release-1_0/platform/a490/platform_camera.h
r1418 r1652 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 80 #define CAM_DRIVE_MODE_FROM_TIMER_MODE 1 // use PROPCASE_TIMER_MODE to check for multiple shot custom timer. 81 // Used to enabled bracketing in custom timer, required on many recent cameras 82 // see http://chdk.setepontos.com/index.php/topic,3994.405.html 79 83 //---------------------------------------------------------- -
branches/release-1_0/platform/a495/platform_camera.h
r1418 r1652 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 //---------------------------------------------------------- -
branches/release-1_0/platform/a530/lib.c
r977 r1652 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 -
branches/release-1_0/platform/a530/platform_camera.h
r1418 r1652 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 -
branches/release-1_0/platform/a540/platform_camera.h
r1559 r1652 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 161 #define CAM_EXT_TV_RANGE 1 62 62 63 63 #define CAM_FIRMWARE_MEMINFO 1 // Use 'GetMemInfo' to get free memory size. 64 64 65 65 //---------------------------------------------------------- 66 -
branches/release-1_0/platform/a550/platform_camera.h
r1418 r1652 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 -
branches/release-1_0/platform/a560/platform_camera.h
r1418 r1652 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 -
branches/release-1_0/platform/a570/platform_camera.h
r1418 r1652 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 -
branches/release-1_0/platform/a580/lib.c
r1308 r1652 1 1 #include "platform.h" 2 //#include "../generic/lib.c"3 2 4 3 void shutdown() -
branches/release-1_0/platform/a580/platform_camera.h
r1418 r1652 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 -
branches/release-1_0/platform/a590/lib.c
r1022 r1652 1 1 #include "platform.h" 2 2 3 extern void my_debug_led(); 3 4 void shutdown() -
branches/release-1_0/platform/a590/platform_camera.h
r1418 r1652 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. -
branches/release-1_0/platform/a610/platform_camera.h
r1559 r1652 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" 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 58 61 //---------------------------------------------------------- 59 62 -
branches/release-1_0/platform/a610/sub/100e/stubs_min.S
r826 r1652 18 18 DEF(levent_table,0xFFD42290) 19 19 DEF(playrec_mode,0x6F18) // MenuIn 20 DEF(sys_mempart_id,0xEB60) // calloc -
branches/release-1_0/platform/a610/sub/100f/stubs_min.S
r826 r1652 17 17 DEF(levent_table,0xFFD42618) 18 18 DEF(playrec_mode,0x6F18) // "MenuIn" 19 DEF(sys_mempart_id,0xEB60) // calloc -
branches/release-1_0/platform/a620/platform_camera.h
r1418 r1652 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 -
branches/release-1_0/platform/a620/sub/100f/stubs_min.S
r826 r1652 17 17 DEF(levent_table,0xFFD4317C) 18 18 DEF(playrec_mode,0x6F7C) 19 DEF(sys_mempart_id,0xEC80) // calloc -
branches/release-1_0/platform/a630/platform_camera.h
r1418 r1652 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 -
branches/release-1_0/platform/a630/sub/100c/stubs_min.S
r826 r1652 16 16 DEF(levent_table,0xFFD60CE4) 17 17 DEF(playrec_mode,0x6530) 18 DEF(sys_mempart_id, 0xBFC8) // calloc -
branches/release-1_0/platform/a640/platform_camera.h
r1418 r1652 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 -
branches/release-1_0/platform/a640/sub/100b/stubs_min.S
r826 r1652 16 16 DEF(levent_table,0xFFD63808) 17 17 DEF(playrec_mode,0x658C) 18 DEF(sys_mempart_id,0xC140) -
branches/release-1_0/platform/a650/platform_camera.h
r1418 r1652 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 -
branches/release-1_0/platform/a700/platform_camera.h
r1418 r1652 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 -
branches/release-1_0/platform/a700/sub/100b/stubs_min.S
r826 r1652 18 18 DEF(levent_table,0xFFD51F94) 19 19 DEF(playrec_mode,0x6394) // "MenuIn" 20 DEF(sys_mempart_id,0xBCF0) // calloc -
branches/release-1_0/platform/a710/platform_camera.h
r1418 r1652 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 -
branches/release-1_0/platform/a710/sub/100a/stubs_min.S
r826 r1652 16 16 DEF(levent_table,0xFFD69BBC) 17 17 DEF(playrec_mode,0x6544) //"MenuIn" 18 DEF(sys_mempart_id,0xC110) // calloc -
branches/release-1_0/platform/a720/platform_camera.h
r1559 r1652 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. -
branches/release-1_0/platform/d10/platform_camera.h
r1560 r1652 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_MODES45 #define CAM_SHOW_OSD_IN_SHOOT_MENU 144 // long shutter is acutally user TV, may work ? 45 #undef CAM_HAS_USER_TV_MODES 46 #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 46 47 #define CAM_DETECT_SCREEN_ERASE 1 47 // TODO this doesn't seem to be working48 #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 49 50 #define CAM_CHDK_HAS_EXT_VIDEO_MENU 1 // In CHDK for this camera realized adjustable video compression 50 51 … … 53 54 54 55 #undef CAM_VIDEO_CONTROL 55 #define CAM_VIDEO_QUALITY_ONLY 156 #define CAM_VIDEO_QUALITY_ONLY 1 56 57 58 #define CAM_EXT_TV_RANGE 1 57 59 58 #define CAM_EXT_TV_RANGE 1 60 #undef CAM_UNCACHED_BIT 61 #define CAM_UNCACHED_BIT 0x40000000 59 62 60 #undef CAM_UNCACHED_BIT 61 #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 62 66 63 #undef CAM_BITMAP_PALETTE 64 // OK looks similar to ixus100 based on forum posts 65 #define CAM_BITMAP_PALETTE 5 66 67 #define CAM_QUALITY_OVERRIDE 1 67 #define CAM_QUALITY_OVERRIDE 1 68 68 #undef CAM_SENSOR_BITS_PER_PIXEL 69 #define CAM_SENSOR_BITS_PER_PIXEL 1269 #define CAM_SENSOR_BITS_PER_PIXEL 12 70 70 71 71 #define CAM_STARTUP_CRASH_FILE_OPEN_FIX 1 … … 73 73 #define CAM_DNG_LENS_INFO { 62,10, 186,10, 28,10, 49,10 } // See comments in camera.h 74 74 75 #define cam_CFAPattern 0x01000201 // Green Blue Red Green75 #define cam_CFAPattern 0x01000201 // Green Blue Red Green 76 76 77 #define CAM_COLORMATRIX1 \78 14052, 10000, -5229, 10000,-1156, 10000, \79 -1325, 10000, 9420, 10000,2252, 10000, \80 -498, 10000, 1957, 10000,4116, 1000081 #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 82 82 83 // cropping OK84 #define CAM_JPEG_WIDTH 400085 #define CAM_JPEG_HEIGHT 300086 #define CAM_ACTIVE_AREA_X1 0// some data all the way to left, normal 8 ?87 #define CAM_ACTIVE_AREA_Y1 1088 #define CAM_ACTIVE_AREA_X2 4072 // or 402489 #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 90 90 91 91 // camera name OK 92 #define PARAM_CAMERA_NAME 4// parameter number for GetParameterData92 #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData 93 93 94 // XXXX95 #undef CAM_USES_ASPECT_CORRECTION96 #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 97 97 98 #define CAM_ZEBRA_ASPECT_ADJUST 198 #define CAM_ZEBRA_ASPECT_ADJUST 1 99 99 100 100 #define CAM_FIRMWARE_MEMINFO 1 // Use 'GetMemInfo' to get free memory size. 101 101 102 #define CAM_DRIVE_MODE_FROM_TIMER_MODE // use PROPCASE_TIMER_MODE to check for multiple shot custom timer.102 #define CAM_DRIVE_MODE_FROM_TIMER_MODE 1 // use PROPCASE_TIMER_MODE to check for multiple shot custom timer. 103 103 // Used to enabled bracketing in custom timer, required on many recent cameras 104 104 // see http://chdk.setepontos.com/index.php/topic,3994.405.html 105 106 105 //---------------------------------------------------------- -
branches/release-1_0/platform/g10/platform_camera.h
r1571 r1652 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_MENU163 64 #define PARAM_CAMERA_NAME 4// parameter number for GetParameterData65 #define PARAM_DISPLAY_MODE1 57// param number for LCD display mode when camera in playback66 #define PARAM_DISPLAY_MODE2 58// param number for LCD display mode when camera in record view hold mode67 68 #undef CAM_BITMAP_PALETTE69 #define CAM_BITMAP_PALETTE 270 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 71 71 #undef CAM_SENSOR_BITS_PER_PIXEL 72 #define CAM_SENSOR_BITS_PER_PIXEL 1272 #define CAM_SENSOR_BITS_PER_PIXEL 12 73 73 74 #undef CAM_USES_ASPECT_CORRECTION75 #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 76 76 77 #undef EDGE_HMARGIN77 #undef EDGE_HMARGIN 78 78 #define EDGE_HMARGIN 28 79 79 80 80 #define CAM_DNG_LENS_INFO { 61,10, 305,10, 28,10, 45,10 } // See comments in camera.h 81 81 // G10 pattern 82 #define cam_CFAPattern 0x01000201 // 0x01000201 = Green Blue Red Green 83 // 0x02010100 = Red Green Green Blue 84 85 // G10 color - values from dcraw for G10 Canon RAW files 86 #define cam_CalibrationIlluminant1 17 // standard light A 87 #define CAM_COLORMATRIX1 \ 88 11093, 1000000, -3906, 1000000, -1028, 1000000, \ 89 -5047, 1000000, 12492, 1000000, 2879, 1000000, \ 90 -1003, 1000000, 1750, 1000000, 5561, 1000000 91 82 #define cam_CFAPattern 0x01000201 // 0x01000201 = Green Blue Red Green 83 // 0x02010100 = Red Green Green Blue 92 84 93 // zebra 94 #define CAM_ZEBRA_ASPECT_ADJUST 1 95 #define CAM_ZEBRA_NOBUF 1 96 #undef ZEBRA_HMARGIN0 97 #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). 85 // G10 color - values from dcraw for G10 Canon RAW files 86 #define cam_CalibrationIlluminant1 17 // standard light A 87 #define CAM_COLORMATRIX1 \ 88 11093, 1000000, -3906, 1000000, -1028, 1000000, \ 89 -5047, 1000000, 12492, 1000000, 2879, 1000000, \ 90 -1003, 1000000, 1750, 1000000, 5561, 1000000 91 92 // zebra 93 #define CAM_ZEBRA_ASPECT_ADJUST 1 94 #define CAM_ZEBRA_NOBUF 1 95 #undef ZEBRA_HMARGIN0 96 #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). 98 97 99 98 #undef CAM_DATE_FOLDER_NAMING // not needed for G10 100 99 101 #define CAM_STARTUP_CRASH_FILE_OPEN_FIX 1// enable fix for camera crash at startup when opening the conf / font files102 // 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 103 102 #define CAM_FIRMWARE_MEMINFO 1 // Use 'GetMemInfo' to get free memory size. 104 103 105 #define CAM_DRIVE_MODE_FROM_TIMER_MODE 1// use PROPCASE_TIMER_MODE to check for multiple shot custom timer.106 // Used to enabled bracketing in custom timer, required on many recent cameras107 // 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 108 107 109 108 #define CAM_DETECT_SCREEN_ERASE 1 // http://chdk.setepontos.com/index.php?topic=6705.msg71062#msg71062 -
branches/release-1_0/platform/g11/platform_camera.h
r1418 r1652 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 60 #undef CAM_BITMAP_PALETTE61 #define CAM_BITMAP_PALETTE 464 #undef CAM_BITMAP_PALETTE 65 #define CAM_BITMAP_PALETTE 4 62 66 63 #undef EDGE_HMARGIN64 #define EDGE_HMARGIN 2867 #undef EDGE_HMARGIN 68 #define EDGE_HMARGIN 20 65 69 66 70 #define CAM_DNG_LENS_INFO { 61,10, 305,10, 28,10, 45,10 } // See comments in camera.h 67 71 /**** From SX200IS, ok for G11 ?*/ 68 72 // pattern 69 #define cam_CFAPattern 0x02010100 // Red Green Green Blue73 #define cam_CFAPattern 0x02010100 // Red Green Green Blue 70 74 // color 71 //need fixing ***************************************************** 72 #define CAM_COLORMATRIX1 \ 73 14134, 1000000, -5576, 1000000, -1527, 1000000, \ 74 -1991, 1000000, 10719, 1000000, 1273, 1000000, \ 75 -1158, 1000000, 1929, 1000000, 3581, 1000000 76 #define cam_CalibrationIlluminant1 17 // Standard Light A 75 #define CAM_COLORMATRIX1 \ 76 14134, 1000000, -5576, 1000000, -1527, 1000000, \ 77 -1991, 1000000, 10719, 1000000, 1273, 1000000, \ 78 -1158, 1000000, 1929, 1000000, 3581, 1000000 79 #define cam_CalibrationIlluminant1 17 // Standard Light A 77 80 78 81 // cropping 79 82 //g11 values from Amit Talwar 80 #define CAM_JPEG_WIDTH 364881 #define CAM_JPEG_HEIGHT 273682 #define CAM_ACTIVE_AREA_X1 1683 #define CAM_ACTIVE_AREA_Y1 884 #define CAM_ACTIVE_AREA_X2 369285 #define CAM_ACTIVE_AREA_Y2 277683 #define CAM_JPEG_WIDTH 3648 84 #define CAM_JPEG_HEIGHT 2736 85 #define CAM_ACTIVE_AREA_X1 16 86 #define CAM_ACTIVE_AREA_Y1 8 87 #define CAM_ACTIVE_AREA_X2 3692 88 #define CAM_ACTIVE_AREA_Y2 2776 86 89 87 90 /**** From SX200IS, ok for G11 END?*/ 88 #define CAM_ZEBRA_ASPECT_ADJUST 191 #define CAM_ZEBRA_ASPECT_ADJUST 1 89 92 90 #define CAM_DRIVE_MODE_FROM_TIMER_MODE // use PROPCASE_TIMER_MODE to check for multiple shot custom timer. 93 #define CAM_DATE_FOLDER_NAMING 0x100 //Value found in the last function, which is called in GetImageFolder. (first compare) 94 95 #define CAM_DRIVE_MODE_FROM_TIMER_MODE 1 // use PROPCASE_TIMER_MODE to check for multiple shot custom timer. 91 96 // Used to enabled bracketing in custom timer, required on many recent cameras 92 97 // see http://chdk.setepontos.com/index.php/topic,3994.405.html 93 94 98 //---------------------------------------------------------- 95 99 -
branches/release-1_0/platform/g11/shooting.c
r1376 r1652 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; -
branches/release-1_0/platform/g12/lib.c
r1499 r1652 90 90 return bitmap_buffer[0]; 91 91 } 92 92 93 93 94 long vid_get_bitmap_screen_width() { return 360; } -
branches/release-1_0/platform/g12/platform_camera.h
r1637 r1652 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 … … 78 78 #define CAM_DNG_LENS_INFO { 61,10, 305,10, 28,10, 45,10 } // See comments in camera.h 79 79 80 #define cam_CalibrationIlluminant1 17 // Standard Light A81 80 // From dcraw 82 #define CAM_COLORMATRIX1 \81 #define CAM_COLORMATRIX1 \ 83 82 13244, 10000, -5501, 10000, -1248, 10000, \ 84 83 -1508, 10000, 9858, 10000, 1935, 10000, \ 85 84 -270, 10000, 1083, 10000, 4366, 10000 85 86 #define cam_CalibrationIlluminant1 17 // Standard Light A 86 87 87 88 // Sensor size, DNG image size & cropping … … 99 100 //zebra letterbox for saving memory 100 101 #undef ZEBRA_HMARGIN0 101 #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). 102 103 #define CAM_DATE_FOLDER_NAMING 1 102 #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). 104 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 #undef CAMERA_MIN_DIST122 #undef CAMERA_MIN_DIST 123 123 #define CAMERA_MIN_DIST 68 // Override min subject distance 124 #undef CAMERA_MAX_DIST124 #undef CAMERA_MAX_DIST 125 125 #define CAMERA_MAX_DIST 258065 // Override max subject distance 126 127 126 //---------------------------------------------------------- 128 -
branches/release-1_0/platform/g12/shooting.c
r1273 r1652 173 173 extern void _GetImageFolder(char*,int,int,int); 174 174 out[0] = 'A'; 175 _GetImageFolder(out+1,get_file_next_counter(), 0x400,time(NULL));175 _GetImageFolder(out+1,get_file_next_counter(),CAM_DATE_FOLDER_NAMING,time(NULL)); 176 176 } 177 177 #else -
branches/release-1_0/platform/g7/platform_camera.h
r1418 r1652 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 -
branches/release-1_0/platform/g7/sub/100e/stubs_min.S
r826 r1652 17 17 DEF(second_ext_for_dng, 0xA3CC) 18 18 DEF(levent_table,0xFF9AE7D4) 19 DEF(sys_mempart_id, 0xD9A0) // calloc -
branches/release-1_0/platform/g7/sub/100g/stubs_min.S
r826 r1652 17 17 DEF(second_ext_for_dng, 0xA3CC) 18 18 DEF(levent_table,0xFF9AE87C) 19 DEF(sys_mempart_id, 0xD9A0) // calloc -
branches/release-1_0/platform/g7/sub/100i/stubs_min.S
r826 r1652 17 17 DEF(second_ext_for_dng, 0xA3CC) 18 18 DEF(levent_table,0xFF9AE87C) 19 DEF(sys_mempart_id, 0xD9A0) // calloc -
branches/release-1_0/platform/g7/sub/100j/stubs_min.S
r826 r1652 17 17 DEF(second_ext_for_dng, 0xA3CC) 18 18 DEF(levent_table,0xFF9AE87C) 19 DEF(sys_mempart_id, 0xD9A0) // calloc -
branches/release-1_0/platform/g9/platform_camera.h
r1418 r1652 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 63 64 //==========================================================65 // A-series66 //========================================================== -
branches/release-1_0/platform/generic/kbd.c
r1627 r1652 56 56 long get_mmio(void) 57 57 { 58 long x; 58 long x; 59 59 60 60 #if defined(CAMERA_a530) || defined(CAMERA_a540) 61 61 x = (long)*mmio2; 62 62 #endif 63 63 64 64 #if defined(CAMERA_a610) || defined(CAMERA_a620) || defined(CAMERA_a630) || defined(CAMERA_a640) || defined(CAMERA_ixus800_sd700) || defined(CAMERA_a410) || defined(CAMERA_a430) 65 65 x = (long)*mmio1; … … 69 69 x = (long)*mmio0; 70 70 #endif 71 72 return x; 71 72 return x; 73 73 } 74 74 … … 118 118 nSW = 0; 119 119 do 120 { 120 { 121 121 x=get_mmio(); 122 122 cur_usb_power = x&USB_MASK; … … 137 137 { 138 138 tick3 = (int)get_tick_count()-tick2; 139 if(nSW==10) 139 if(nSW==10) 140 140 { 141 141 if(tick3>50) shutter_int=1; 142 142 nSW=20; 143 143 } 144 if(nSW==0 && tick3>0) 144 if(nSW==0 && tick3>0) 145 145 { 146 if(tick3<50) 146 if(tick3<50) 147 147 { 148 148 nSW=10; … … 176 176 177 177 // while((x&USB_MASK) && ((int)get_tick_count()-tick < DELAY_TIMEOUT)); 178 178 179 179 // ------ modif by Masuji SUTO (start) -------------- 180 180 while(((!(x&USB_MASK) && (nMode==0)) || ((x&USB_MASK) && (nMode==1))) && ((int)get_tick_count()-tick < DELAY_TIMEOUT)); … … 317 317 remote_key = (kbd_new_state[USB_REG] & USB_MASK)==USB_MASK; 318 318 319 if (remote_key) 319 if (remote_key) 320 320 remote_count += 1; 321 321 else if (remote_count) { -
branches/release-1_0/platform/generic/main.c
r980 r1652 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; -
branches/release-1_0/platform/generic/wrappers.c
r1622 r1652 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 … … 565 577 566 578 #ifdef CAM_DRYOS_2_3_R39 567 if (fd>=0) {568 _close(fd);569 res=_SetFileTimeStamp(file, newTimes->modtime, newTimes->actime);570 }571 #else 572 if (fd>=0) {579 if (fd>=0) { 580 _close(fd); 581 res=_SetFileTimeStamp(file, newTimes->modtime, newTimes->actime); 582 } 583 #else 584 if (fd>=0) { 573 585 res=_SetFileTimeStamp(fd, newTimes->modtime, newTimes->actime); 574 586 _close(fd); 575 }576 // return value compatibe with utime: ok=0 fail=-1587 } 588 // return value compatibe with utime: ok=0 fail=-1 577 589 #endif 578 590 return (res)?0:-1; … … 1305 1317 */ 1306 1318 1319 unsigned char SetFileAttributes(const char* fn, unsigned char attr) 1320 { 1321 int fd; 1322 unsigned char ret = -1; 1323 1324 fd = open(fn, 0, 0); 1325 if( fd ) { 1326 _SetFileAttributes(fd, attr); 1327 close(fd); 1328 ret = attr; 1329 } 1330 return ret; 1331 } 1332 1307 1333 // Default implementation of PTP live view functions. 1308 1334 // Override as needed for camera specific variations (see G12/SX30/IXUS310/SX130IS for working examples) -
branches/release-1_0/platform/ixus1000_sd4500/platform_camera.h
r1418 r1652 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 12 88 89 #define CAM_EXT_TV_RANGE 1 90 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 95 96 #define CAM_HAS_VARIABLE_ASPECT 1 97 98 //nandoide sept-2009 99 #undef CAM_USES_ASPECT_CORRECTION 100 #undef CAM_USES_ASPECT_YCORRECTION 101 #define CAM_USES_ASPECT_CORRECTION 1 //camera uses the modified graphics primitives to map screens an viewports to buffers more sized 102 #define CAM_USES_ASPECT_YCORRECTION 0 //only uses mappings on x coordinate 87 #define CAM_SENSOR_BITS_PER_PIXEL 12 103 88 104 89 105 //#undef ASPECT_XCORRECTION 106 //#define ASPECT_XCORRECTION(x) (((x)<<1)) //correction x*screen_buffer_width/screen_width = x*960/480 = x*2/1 90 #define CAM_EXT_TV_RANGE 1 107 91 108 #undef ASPECT_GRID_XCORRECTION 109 #define ASPECT_GRID_XCORRECTION(x) ( (x)+60 ) 110 #undef ASPECT_GRID_YCORRECTION111 #define ASPECT_GRID_YCORRECTION(y) ( (y) ) //y correction for grids made on a 360x240 As the buffer is 720x240 we have no correction here. 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 112 96 97 #define CAM_HAS_VARIABLE_ASPECT 1 113 98 114 #undef ASPECT_VIEWPORT_XCORRECTION 115 #define ASPECT_VIEWPORT_XCORRECTION(x) ASPECT_GRID_XCORRECTION(x) //viewport is 360x240 and screen 320x240, we need x*320/360=x*8/9, equal than grids, used by edgeoverlay 116 #undef ASPECT_VIEWPORT_YCORRECTION 117 #define ASPECT_VIEWPORT_YCORRECTION(y) ( (y) ) 99 #undef CAM_USES_ASPECT_CORRECTION 100 #define CAM_USES_ASPECT_CORRECTION 1 //camera uses the modified graphics primitives to map screens an viewports to buffers more sized 118 101 119 #undef EDGE_HMARGIN 120 #define EDGE_HMARGIN 10 //10 fits video mode of sx210 121 122 //games mappings 123 #undef GAMES_SCREEN_WIDTH 124 #undef GAMES_SCREEN_HEIGHT 125 #define GAMES_SCREEN_WIDTH 360 126 #define GAMES_SCREEN_HEIGHT 240 127 #undef ASPECT_GAMES_XCORRECTION 128 // 720/360=2 same aspect than grids and viewport but another approach: there is a lot of corrections to do in game's code, and we decide to paint directly on display buffer wirh another resolution 129 // used by gui.c that configures the draw environment (trhough new draw_gui function) depending on gui_mode: we have then 360x240 for games (but deformed output:circles are not circles) and 320x240 for 130 // other modes in perfect aspect ratio 4/3: slightly better visualization: file menus more readable, ... 131 #define ASPECT_GAMES_XCORRECTION(x) ( ((x)<<1) ) 132 #undef ASPECT_GAMES_YCORRECTION 133 #define ASPECT_GAMES_YCORRECTION(y) ( (y) ) //none 102 #undef EDGE_HMARGIN 103 #define EDGE_HMARGIN 10 //10 fits video mode of sx210 134 104 135 105 //zebra letterbox for saving memory 136 #define CAM_ZEBRA_ASPECT_ADJUST 1137 //#ifndef OPT_EXMEM_MALLOC138 #define CAM_ZEBRA_NOBUF 1139 //#endif 106 #define CAM_ZEBRA_ASPECT_ADJUST 1 107 108 #define CAM_ZEBRA_NOBUF 1 109 140 110 #undef ZEBRA_HMARGIN0 141 #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).111 #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). 142 112 143 113 //end nandoide sept-2009 144 #define CAM_QUALITY_OVERRIDE 1145 #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1114 #define CAM_QUALITY_OVERRIDE 1 115 #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 146 116 147 117 #define CAM_DETECT_SCREEN_ERASE 1 // http://chdk.setepontos.com/index.php?topic=6705.msg71062#msg71062 148 118 149 #define CAM_STARTUP_CRASH_FILE_OPEN_FIX 1 // enable workaround for camera crash at startup when opening the conf / font files119 #define CAM_STARTUP_CRASH_FILE_OPEN_FIX 1 // enable workaround for camera crash at startup when opening the conf / font files 150 120 // see http://chdk.setepontos.com/index.php?topic=6179.0 121 #define CAM_HAS_CMOS 1 122 151 123 // FOR TESTING PURPOSE 152 124 // push all regs except SP and PC … … 154 126 // restore value for R0 from stack 155 127 #define ASM_SAFE_ENTER \ 156 "STMFD SP!, {R0-R12,LR}\n" \157 "MRS R0, CPSR\n" \158 "STR R0,[SP,#-4]!\n" \159 "LDR R0,[SP,#4]\n"128 "STMFD SP!, {R0-R12,LR}\n" \ 129 "MRS R0, CPSR\n" \ 130 "STR R0,[SP,#-4]!\n" \ 131 "LDR R0,[SP,#4]\n" 160 132 161 133 // pop CPSR via R0 162 134 // pop all regs except SP and PC 163 135 #define ASM_SAFE_LEAVE \ 164 "LDR R0,[SP],#4\n" \165 "MSR CPSR_cxsf,R0\n" \166 "LDMFD SP!, {R0-R12,LR}\n"136 "LDR R0,[SP],#4\n" \ 137 "MSR CPSR_cxsf,R0\n" \ 138 "LDMFD SP!, {R0-R12,LR}\n" 167 139 168 140 #define ASM_SAFE(asmcode) \ 169 ASM_SAFE_ENTER \170 asmcode \171 ASM_SAFE_LEAVE141 ASM_SAFE_ENTER \ 142 asmcode \ 143 ASM_SAFE_LEAVE 172 144 173 145 //---------------------------------------------------------- -
branches/release-1_0/platform/ixus100_sd780/platform_camera.h
r1560 r1652 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_AF_SCAN_DURING_VIDEO_RECORD 1 45 #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 46 #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 47 47 #define CAM_CHDK_HAS_EXT_VIDEO_MENU 1 48 48 … … 51 51 52 52 #undef CAM_VIDEO_CONTROL 53 #define CAM_VIDEO_QUALITY_ONLY 153 #define CAM_VIDEO_QUALITY_ONLY 1 54 54 55 #define CAM_EXT_TV_RANGE 155 #define CAM_EXT_TV_RANGE 1 56 56 57 #undef CAM_UNCACHED_BIT58 #define CAM_UNCACHED_BIT 0x4000000057 #undef CAM_UNCACHED_BIT 58 #define CAM_UNCACHED_BIT 0x40000000 59 59 60 #undef CAM_BITMAP_PALETTE61 #define CAM_BITMAP_PALETTE 560 #undef CAM_BITMAP_PALETTE 61 #define CAM_BITMAP_PALETTE 5 62 62 63 #undef ZEBRA_HMARGIN064 #define ZEBRA_HMARGIN0 150//zebra adjust buffer height: show use at sx200is: needed for save memory space63 #undef ZEBRA_HMARGIN0 64 #define ZEBRA_HMARGIN0 150 //zebra adjust buffer height: show use at sx200is: needed for save memory space 65 65 66 66 #define CAM_QUALITY_OVERRIDE 1 … … 71 71 // pattern 72 72 //RealRom:FFA99FB4 ADR R0, aObRG1G2BLdLdLd ; "\n OB : (R, G1, G2, B) = (%ld, %ld, %ld"... 73 #define cam_CFAPattern 0x02010100// Red Green Green Blue73 #define cam_CFAPattern 0x02010100 // Red Green Green Blue 74 74 75 75 // color preliminary (see DNG4PS2 wiki) 76 #define CAM_COLORMATRIX1 \77 661840, 1000000, -185671, 1000000, -97110,1000000, \78 -83661, 1000000, 578860, 1000000, 32308,1000000, \79 -8681, 1000000, 70356,1000000, 207341, 100000076 #define CAM_COLORMATRIX1 \ 77 661840, 1000000, -185671, 1000000, -97110, 1000000, \ 78 -83661, 1000000, 578860, 1000000, 32308, 1000000, \ 79 -8681, 1000000, 70356, 1000000, 207341, 1000000 80 80 81 81 //Here is an alternate CAM_COLORMATRIX1 - Current one is nice for me but hey I'm no colour expert. … … 85 85 //-0.004622 0.048662 0.139970 86 86 87 #define cam_CalibrationIlluminant1 17// Standard Light A87 #define cam_CalibrationIlluminant1 17 // Standard Light A 88 88 89 // cropping90 #define CAM_JPEG_WIDTH 400091 #define CAM_JPEG_HEIGHT 300092 #define CAM_ACTIVE_AREA_X1 4093 #define CAM_ACTIVE_AREA_Y1 2494 #define CAM_ACTIVE_AREA_X2 405695 #define CAM_ACTIVE_AREA_Y2 304089 // cropping 90 #define CAM_JPEG_WIDTH 4000 91 #define CAM_JPEG_HEIGHT 3000 92 #define CAM_ACTIVE_AREA_X1 40 93 #define CAM_ACTIVE_AREA_Y1 24 94 #define CAM_ACTIVE_AREA_X2 4056 95 #define CAM_ACTIVE_AREA_Y2 3040 96 96 // camera name 97 #define PARAM_CAMERA_NAME 4// parameter number for GetParameterData sd990: OK97 #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData sd990: OK 98 98 99 99 #undef CAM_USES_ASPECT_CORRECTION 100 #define CAM_USES_ASPECT_CORRECTION 1 //camera uses the modified graphics primitives to map screens an viewports to buffers more sized100 #define CAM_USES_ASPECT_CORRECTION 1 //camera uses the modified graphics primitives to map screens an viewports to buffers more sized 101 101 102 #define CAM_ZEBRA_ASPECT_ADJUST 1103 // camera has little free memory104 #define CAM_ZEBRA_NOBUF 1102 #define CAM_ZEBRA_ASPECT_ADJUST 1 103 // camera has little free memory 104 #define CAM_ZEBRA_NOBUF 1 105 105 106 #define CAM_DRIVE_MODE_FROM_TIMER_MODE // use PROPCASE_TIMER_MODE to check for multiple shot custom timer.106 #define CAM_DRIVE_MODE_FROM_TIMER_MODE 1 // use PROPCASE_TIMER_MODE to check for multiple shot custom timer. 107 107 // Used to enabled bracketing in custom timer, required on many recent cameras 108 108 // see http://chdk.setepontos.com/index.php/topic,3994.405.html -
branches/release-1_0/platform/ixus120_sd940/platform_camera.h
r1560 r1652 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 … … 36 35 #undef CAM_HAS_VIDEO_BUTTON 37 36 #define CAM_VIDEO_QUALITY_ONLY 1 38 #define CAM_AF_SCAN_DURING_VIDEO_RECORD 139 #define CAM_BRACKETING 137 #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 38 #define CAM_BRACKETING 1 40 39 #undef CAM_VIDEO_CONTROL 41 40 #undef CAM_HAS_IRIS_DIAPHRAGM 42 #define CAM_MULTIPART 141 #define CAM_MULTIPART 1 43 42 #undef CAM_HAS_JOGDIAL 44 43 #undef CAM_USE_ZOOM_FOR_MF 45 44 #undef CAM_UNCACHED_BIT // shut up compiler 46 #define CAM_UNCACHED_BIT 0x4000000047 #define CAM_HAS_ND_FILTER 145 #define CAM_UNCACHED_BIT 0x40000000 46 #define CAM_HAS_ND_FILTER 1 48 47 #define CAM_CAN_SD_OVERRIDE 1 49 48 50 49 #define CAM_DNG_LENS_INFO { 50,10, 200,10, 28,10, 59,10 } // See comments in camera.h 51 50 // pattern 52 #define cam_CFAPattern 0x02010100 // Red Green Green Blue51 #define cam_CFAPattern 0x02010100 // Red Green Green Blue 53 52 // color 54 53 55 #undef CAM_BITMAP_PALETTE56 #define CAM_BITMAP_PALETTE 354 #undef CAM_BITMAP_PALETTE 55 #define CAM_BITMAP_PALETTE 3 57 56 58 57 #define CAM_COLORMATRIX1 \ … … 61 60 5181, 1000000, 48183, 1000000, 245014, 1000000 62 61 63 #define cam_CalibrationIlluminant1 1 // Daylight62 #define cam_CalibrationIlluminant1 1 // Daylight 64 63 // cropping 65 #define CAM_JPEG_WIDTH 400066 #define CAM_JPEG_HEIGHT 300067 #define CAM_ACTIVE_AREA_X1 2068 #define CAM_ACTIVE_AREA_Y1 1269 #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 70 69 #define CAM_ACTIVE_AREA_Y2 3038 71 70 // camera name 72 #define PARAM_CAMERA_NAME 4// parameter number for GetParameterData73 #define PARAM_DISPLAY_MODE1 57// param number for LCD display mode when camera in playback74 #define PARAM_DISPLAY_MODE2 58// param number for LCD display mode when camera in record view hold mode75 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 76 75 #undef CAM_SENSOR_BITS_PER_PIXEL 77 #define CAM_SENSOR_BITS_PER_PIXEL 1276 #define CAM_SENSOR_BITS_PER_PIXEL 12 78 77 79 #define CAM_EXT_TV_RANGE 178 #define CAM_EXT_TV_RANGE 1 80 79 81 #define CAM_SHOW_OSD_IN_SHOOT_MENU180 #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 82 81 83 #undef CAM_USES_ASPECT_CORRECTION84 #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 85 84 86 #undef EDGE_HMARGIN87 #define EDGE_HMARGIN 2085 #undef EDGE_HMARGIN 86 #define EDGE_HMARGIN 20 88 87 89 //zebra letterbox for saving memory90 #undefZEBRA_HMARGIN091 #define ZEBRA_HMARGIN030 //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).88 //zebra letterbox for saving memory 89 #undef ZEBRA_HMARGIN0 90 #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). 92 91 93 #define CAM_ZEBRA_ASPECT_ADJUST 1 94 #define CAM_ZEBRA_NOBUF 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) 95 99 96 #define CAM_STARTUP_CRASH_FILE_OPEN_FIX 1 // enable workaround for camera crash at startup when opening the conf / font files 97 // see http://chdk.setepontos.com/index.php?topic=6179.0 98 99 #define CAM_DATE_FOLDER_NAMING 0x100 //Value found in the last function, which is called in GetImageFolder. (first compare) 100 101 #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. 102 101 // Used to enabled bracketing in custom timer, required on many recent cameras 103 102 // see http://chdk.setepontos.com/index.php/topic,3994.405.html 104 103 105 104 #define CAM_DETECT_SCREEN_ERASE 1 // http://chdk.setepontos.com/index.php?topic=6705.msg71062#msg71062 106 105 -
branches/release-1_0/platform/ixus120_sd940/sub/100e/boot.c
r1524 r1652 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; // -
branches/release-1_0/platform/ixus200_sd980/platform_camera.h
r1560 r1652 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_HAS_VIDEO_BUTTON 134 #define CAM_HAS_VIDEO_BUTTON 1 35 35 #define CAM_VIDEO_QUALITY_ONLY 1 36 #define CAM_BRACKETING 136 #define CAM_BRACKETING 1 37 37 #undef CAM_VIDEO_CONTROL 38 38 #undef CAM_HAS_IRIS_DIAPHRAGM 39 #define CAM_MULTIPART 140 #define CAM_HAS_JOGDIAL 139 #define CAM_MULTIPART 1 40 #define CAM_HAS_JOGDIAL 1 41 41 #undef CAM_USE_ZOOM_FOR_MF 42 42 #undef CAM_UNCACHED_BIT // shut up compiler 43 #define CAM_UNCACHED_BIT 0x4000000044 #define CAM_HAS_ND_FILTER 143 #define CAM_UNCACHED_BIT 0x40000000 44 #define CAM_HAS_ND_FILTER 1 45 45 #define CAM_CAN_SD_OVERRIDE 1 46 46 … … 55 55 5181, 1000000, 48183, 1000000, 245014, 1000000 56 56 57 #define cam_CalibrationIlluminant1 1 // Daylight57 #define cam_CalibrationIlluminant1 1 // Daylight 58 58 // cropping 59 #define CAM_JPEG_WIDTH 400060 #define CAM_JPEG_HEIGHT 300061 #define CAM_ACTIVE_AREA_X1 2062 #define CAM_ACTIVE_AREA_Y1 1263 #define CAM_ACTIVE_AREA_X2 405664 #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 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 1268 #define CAM_SENSOR_BITS_PER_PIXEL 12 69 69 70 #define CAM_EXT_TV_RANGE 170 #define CAM_EXT_TV_RANGE 1 71 71 72 #define CAM_SHOW_OSD_IN_SHOOT_MENU 172 #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 73 73 74 74 #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 sized75 #define CAM_USES_ASPECT_CORRECTION 1 //camera uses the modified graphics primitives to map screens an viewports to buffers more sized 76 76 77 77 #undef EDGE_HMARGIN 78 #define EDGE_HMARGIN 2078 #define EDGE_HMARGIN 20 79 79 80 80 //zebra letterbox for saving memory 81 81 #undef ZEBRA_HMARGIN0 82 #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).83 84 #define CAM_ZEBRA_ASPECT_ADJUST185 #define CAM_ZEBRA_NOBUF182 #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). 83 84 #define CAM_ZEBRA_ASPECT_ADJUST 1 85 #define CAM_ZEBRA_NOBUF 1 86 86 87 #define CAM_STARTUP_CRASH_FILE_OPEN_FIX1 // enable workaround for camera crash at startup when opening the conf / font files87 #define CAM_STARTUP_CRASH_FILE_OPEN_FIX 1 // enable workaround for camera crash at startup when opening the conf / font files 88 88 // see http://chdk.setepontos.com/index.php?topic=6179.0 89 89 90 90 // #define CAM_DATE_FOLDER_NAMING 0x100 //Value found in the last function, which is called in GetImageFolder. (first compare) 91 91 92 #define CAM_DRIVE_MODE_FROM_TIMER_MODE // use PROPCASE_TIMER_MODE to check for multiple shot custom timer.92 #define CAM_DRIVE_MODE_FROM_TIMER_MODE 1 // use PROPCASE_TIMER_MODE to check for multiple shot custom timer. 93 93 // Used to enabled bracketing in custom timer, required on many recent cameras 94 94 // see http://chdk.setepontos.com/index.php/topic,3994.405.html -
branches/release-1_0/platform/ixus220_elph300hs/lib.c
r1499 r1652 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) { -
branches/release-1_0/platform/ixus220_elph300hs/platform_camera.h
r1457 r1652 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 79 #undef EDGE_HMARGIN80 #define EDGE_HMARGIN 1078 #undef EDGE_HMARGIN 79 #define EDGE_HMARGIN 10 81 80 82 #undef ZEBRA_HMARGIN083 #define ZEBRA_HMARGIN0 3081 #undef ZEBRA_HMARGIN0 82 #define ZEBRA_HMARGIN0 30 84 83 85 #define CAM_ZEBRA_ASPECT_ADJUST 186 #define CAM_ZEBRA_NOBUF 184 #define CAM_ZEBRA_ASPECT_ADJUST 1 85 #define CAM_ZEBRA_NOBUF 1 87 86 88 #define CAM_QUALITY_OVERRIDE 1 89 90 #define CAM_STARTUP_CRASH_FILE_OPEN_FIX 1 87 #define CAM_QUALITY_OVERRIDE 1 91 88 92 #undef CAM_HAS_IRIS_DIAPHRAGM 93 #undef CAM_HAS_MANUAL_FOCUS 89 #define CAM_STARTUP_CRASH_FILE_OPEN_FIX 1 90 91 #undef CAM_HAS_IRIS_DIAPHRAGM 92 #undef CAM_HAS_MANUAL_FOCUS 93 94 #define CAM_HAS_CMOS 1 95 96 #define CAM_DETECT_SCREEN_ERASE 1 94 97 //---------------------------------------------------------- -
branches/release-1_0/platform/ixus300_sd4000/platform_camera.h
r1559 r1652 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 PARAM_CAMERA_NAME 4 // OK58 #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData to get camera name 58 59 59 60 #define CAM_DNG_LENS_INFO { 49,10, 186,10, 20,10, 53,10 } // See comments in camera.h 60 61 61 #define cam_CFAPattern 0x02010100 // RAW/DNG: Red Green Green Blue, OK 62 63 #define CAM_DRIVE_MODE_FROM_TIMER_MODE // ToDo: working ? 64 65 #define CAM_QUALITY_OVERRIDE 1 // enable 'super fine' override, OK 66 67 #define CAM_DETECT_SCREEN_ERASE 1 // ToDo: CHDK OSD flicker more often, OSD redrawn is more reliable 68 69 #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 70 64 71 65 // ToDo … … 75 69 17965, 1000000, 78396, 1000000, 231868, 1000000 76 70 77 #define cam_CalibrationIlluminant1 1// ToDo: Daylight ?71 #define cam_CalibrationIlluminant1 1 // ToDo: Daylight ? 78 72 79 #define CAM_RAW_ROWPIX 3816 // ROM:FFB28EEC or ROM:ff93c408, finsig280 #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 81 75 82 #define CAM_JPEG_WIDTH 3648// JPEG Exif data or ROM:FFB28EFC83 #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 84 78 85 79 // http://chdk.setepontos.com/index.php?topic=6122.0 … … 87 81 // use even numbers! 88 82 89 // RAW/DNGwithout Dark Frame90 #define CAM_ACTIVE_AREA_X1 120// x offset (right)91 #define CAM_ACTIVE_AREA_Y1 24// y offset (down)92 #define CAM_ACTIVE_AREA_X2 378493 #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 94 88 95 89 /* 96 // RAW/DNGwith Dark Frame97 #define CAM_ACTIVE_AREA_X1 92 // x offset (right)98 #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) 99 93 #define CAM_ACTIVE_AREA_X2 3812 100 94 #define CAM_ACTIVE_AREA_Y2 2784 … … 102 96 103 97 /* 104 // Test values to messure correct buffer"crop" Values98 // Test values to messure correct "crop" Values 105 99 #define CAM_ACTIVE_AREA_X1 0 106 100 #define CAM_ACTIVE_AREA_Y1 0 … … 110 104 111 105 #undef CAM_SENSOR_BITS_PER_PIXEL 112 #define CAM_SENSOR_BITS_PER_PIXEL 12106 #define CAM_SENSOR_BITS_PER_PIXEL 12 113 107 114 #define PARAM_CAMERA_NAME 4 // parameter number (index) for GetParameterData to get Camera Name115 #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" 116 110 117 // --- everthing below is ToDo !!! -------------------------------------------------------------------------------------------------------------------111 // everthing below is ToDo !!!!!!!!!!!!!!!! 118 112 119 //#define CAM_HAS_VARIABLE_ASPECT 1 // ToDo: SD4000 do switch between 16:9 and 4:3113 //#define CAM_HAS_VARIABLE_ASPECT 1 // ?!? like SX1 120 114 121 115 #undef CAM_USES_ASPECT_CORRECTION 122 #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 123 117 124 118 // Not required 125 119 //#undef EDGE_HMARGIN 126 120 //#define EDGE_HMARGIN 10 // 10 fits video mode of sx210 121 122 #define CAM_DRIVE_MODE_FROM_TIMER_MODE 1 // use PROPCASE_TIMER_MODE to check for multiple shot custom timer. 123 // Used to enabled bracketing in custom timer, required on many recent cameras 124 // see http://chdk.setepontos.com/index.php/topic,3994.405.html 125 126 #define CAM_QUALITY_OVERRIDE 1 // enable 'super fine' override 127 128 #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 ? 129 130 #define CAM_DETECT_SCREEN_ERASE 1 // ToDo: CHDK OSD flicker more often, OSD redrawn is more reliable -
branches/release-1_0/platform/ixus310_elph500hs/platform_camera.h
r1561 r1652 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 81 #undef EDGE_HMARGIN85 #undef EDGE_HMARGIN 82 86 #define EDGE_HMARGIN 2 83 87 … … 85 89 #define cam_CFAPattern 0x02010100 // Red Green Green Blue 86 90 87 #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)91 #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) 88 92 89 #define CAM_DNG_LENS_INFO { 43,10, 188,10, 20,10, 58,10 }// See comments in camera.h93 #define CAM_DNG_LENS_INFO { 43,10, 188,10, 20,10, 58,10 } // See comments in camera.h 90 94 91 95 #define cam_CalibrationIlluminant1 1 … … 100 104 #undef ZEBRA_HMARGIN0 101 105 #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). 102 106 103 107 #define CAM_DATE_FOLDER_NAMING 1 104 108 … … 114 118 #define CAM_AV_OVERRIDE_IRIS_FIX 1 // for cameras that require _MoveIrisWithAv function to override Av in bracketing. 115 119 116 #define CAM_DISABLE_RAW_IN_LOW_LIGHT_MODE 1 // For cameras with 'low light' mode that does now work with raw define this120 #define CAM_DISABLE_RAW_IN_LOW_LIGHT_MODE 1 // For cameras with 'low light' mode that does now work with raw define this 117 121 118 122 #define DNG_VERT_RLE_BADPIXELS 1 // Enable vertical run length compression of bad pixels, reduces badpixel.bin file size by approx 45% 119 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.123 124 #define CAM_LOAD_CUSTOM_COLORS 1 // Enable loading CHDK colors into the camera palette memory/hardware 125 #define CHDK_COLOR_BASE 0xA2 // Start color index for CHDK colors loaded into camera palette. 122 126 #define CAM_USE_COLORED_ICONS 1 // Enable using the CHDK-DE colored icons. 123 127 124 #undef CAMERA_MIN_DIST128 #undef CAMERA_MIN_DIST 125 129 #define CAMERA_MIN_DIST 71 // Override min subject distance 126 #undef CAMERA_MAX_DIST130 #undef CAMERA_MAX_DIST 127 131 #define CAMERA_MAX_DIST 125392 // Override max subject distance 128 129 132 //---------------------------------------------------------- 130 133 -
branches/release-1_0/platform/ixus40_sd300/lib.c
r977 r1652 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); -
branches/release-1_0/platform/ixus40_sd300/platform_camera.h
r1418 r1652 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 //---------------------------------------------------------- -
branches/release-1_0/platform/ixus40_sd300/sub/100j/stubs_min.S
r1179 r1652 23 23 DEF(playrec_mode,0x598C) // "MenuIn" 24 24 DEF(sys_mempart_id, 0xF414) // mem* functions 25 -
branches/release-1_0/platform/ixus40_sd300/sub/100k/stubs_min.S
r1179 r1652 22 22 DEF(playrec_mode, 0x598C) // "MenuIn" 23 23 DEF(sys_mempart_id, 0xF41C) // mem* functions 24 -
branches/release-1_0/platform/ixus50_sd400/platform_camera.h
r1418 r1652 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 -
branches/release-1_0/platform/ixus55_sd450/platform_camera.h
r1418 r1652 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 -
branches/release-1_0/platform/ixus60_sd600/platform_camera.h
r1418 r1652 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 -
branches/release-1_0/platform/ixus65_sd630/platform_camera.h
r1418 r1652 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 -
branches/release-1_0/platform/ixus700_sd500/Makefile
r515 r1652 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 -
branches/release-1_0/platform/ixus70_sd1000/lib.c
r977 r1652 54 54 p[0]=0x44; 55 55 } 56 -
branches/release-1_0/platform/ixus70_sd1000/platform_camera.h
r1418 r1652 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 -
branches/release-1_0/platform/ixus750_sd550/lib.c