Changeset 1136 for trunk


Ignore:
Timestamp:
04/10/11 06:38:25 (2 years ago)
Author:
reyalP
Message:

a580 work in progress, not added to batch builds. From various authors in http://chdk.setepontos.com/index.php?topic=2900.105 via horape in http://chdk.setepontos.com/index.php?topic=650.msg64412#msg64412

Location:
trunk
Files:
30 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/core/kbd.c

    r1128 r1136  
    4141#endif 
    4242 
    43 #if defined(CAMERA_a450) || defined(CAMERA_ixus50_sd400) || defined(CAMERA_ixusizoom_sd30) || defined(CAMERA_ixus40_sd300) || defined(CAMERA_ixus55_sd450) || defined(CAMERA_ixus60_sd600) || defined(CAMERA_ixus65_sd630) || defined(CAMERA_ixus70_sd1000) || defined(CAMERA_ixus700_sd500) || defined(CAMERA_ixus750_sd550) || defined(CAMERA_ixus850_sd800) || defined(CAMERA_ixus900_sd900) || defined(CAMERA_ixus75_sd750) || defined(CAMERA_a470) || defined(CAMERA_ixus90_sd790) || defined(CAMERA_ixus100_sd780) || defined(CAMERA_ixus120_sd940) || defined(CAMERA_a480) || defined(CAMERA_d10) || defined(CAMERA_ixus85_sd770) || defined(CAMERA_ixus95_sd1200) 
     43#if defined(CAMERA_a450) || defined(CAMERA_ixus50_sd400) || defined(CAMERA_ixusizoom_sd30) || defined(CAMERA_ixus40_sd300) || defined(CAMERA_ixus55_sd450) || defined(CAMERA_ixus60_sd600) || defined(CAMERA_ixus65_sd630) || defined(CAMERA_ixus70_sd1000) || defined(CAMERA_ixus700_sd500) || defined(CAMERA_ixus750_sd550) || defined(CAMERA_ixus850_sd800) || defined(CAMERA_ixus900_sd900) || defined(CAMERA_ixus75_sd750) || defined(CAMERA_a470) || defined(CAMERA_ixus90_sd790) || defined(CAMERA_ixus100_sd780) || defined(CAMERA_ixus120_sd940) || defined(CAMERA_a480) || defined(CAMERA_d10) || defined(CAMERA_ixus85_sd770) || defined(CAMERA_ixus95_sd1200) || defined(CAMERA_a580) 
    4444#define ZSTEP_TABLE_SIZE 7 
    4545static int nTxtbl[]={0,1,2,3,4,5,6};    // remote zoom steps (we need a distinct number of steps, even if the camera zooms smoothly) 
  • trunk/include/camera.h

    r1128 r1136  
    652652#define CAM_MULTIPART               1 
    653653#define  CAM_CHDK_PTP               1 // include CHDK PTP support 
     654//---------------------------------------------------------- 
     655 
     656#elif defined (CAMERA_a580) 
     657#define CAM_PROPSET                 2 
     658#define CAM_DRYOS                   1 
     659 
     660#define CAM_RAW_ROWPIX              3336   // for new 8 MP 
     661#define CAM_RAW_ROWS                2480   // for new 8 MP 
     662 
     663#define CAM_USE_ZOOM_FOR_MF         1 
     664 
     665#undef CAM_CAN_MUTE_MICROPHONE 
     666#define CAM_HAS_IRIS_DIAPHRAGM      1 
     667#undef  CAM_HAS_ND_FILTER 
     668 
     669#define CAM_HAS_MANUAL_FOCUS        1 
     670 
     671#define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 
     672//#define CAM_EV_IN_VIDEO             1      // not working on 101b!!! 
     673#define DNG_SUPPORT                 1 
     674// pattern 
     675#define cam_CFAPattern 0x01000201 // Green  Blue  Red  Green 
     676// color 
     677#define CAM_COLORMATRIX1                              \ 
     678 726857, 1000000, -176454, 1000000, -124118, 1000000, \ 
     679 -71340, 1000000,  592001, 1000000,   75622, 1000000, \ 
     680  63222, 1000000,   50547, 1000000,  219582, 1000000 
     681 
     682#define cam_CalibrationIlluminant1 1 // Daylight 
     683// cropping 
     684#define CAM_JPEG_WIDTH  3264 
     685#define CAM_JPEG_HEIGHT 2448 
     686#define CAM_ACTIVE_AREA_X1 12 
     687#define CAM_ACTIVE_AREA_Y1 10 
     688// note: the above contains some pixels which have valid data, 
     689// but are not at the same levels as the rest of the frame 
     690// the values below crop the "different" looking pixels. 
     691//#define CAM_ACTIVE_AREA_X1 16 
     692//#define CAM_ACTIVE_AREA_Y1 18 
     693#define CAM_ACTIVE_AREA_X2 3300 
     694#define CAM_ACTIVE_AREA_Y2 2480 
     695 
     696// camera name 
     697#define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData 
     698 
     699#undef CAM_ADJUSTABLE_ALT_BUTTON 
     700#undef CAM_EXT_TV_RANGE 
     701//#define CAM_MULTIPART               1 
     702#undef CAM_MULTIPART 
    654703//---------------------------------------------------------- 
    655704 
Note: See TracChangeset for help on using the changeset viewer.