Changeset 797


Ignore:
Timestamp:
09/09/09 23:07:22 (4 years ago)
Author:
reyalp
Message:

preliminary checkin to support a2000 porting. From http://chdk.setepontos.com/index.php/topic,4141.30.html

Location:
trunk
Files:
28 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/core/kbd.c

    r795 r797  
    9696#endif 
    9797 
    98 #if defined (CAMERA_a700) || defined(CAMERA_a710) || defined (CAMERA_a720) 
     98#if defined (CAMERA_a700) || defined(CAMERA_a710) || defined (CAMERA_a720) || defined (CAMERA_a2000)  
    9999#define ZSTEP_TABLE_SIZE 8 
    100100static int nTxtbl[]={0,2,4,6,8,10,12,14}; 
  • trunk/include/camera.h

    r789 r797  
    774774    #define DNG_EXT_FROM ".CR2" 
    775775 
     776//---------------------------------------------------------- 
     777#elif defined (CAMERA_a2000) 
     778 
     779                //////////////////////////////// 
     780                // Sure values 
     781                //////////////////////////////// 
     782    #define CAM_MAKE                    "Canon" 
     783    #define CAM_PROPSET                 2 
     784    #define CAM_DRYOS                   1 
     785 
     786    #define CAM_RAW_ROWPIX              3720   
     787    #define CAM_RAW_ROWS                2772   
     788 
     789    #define CAM_JPEG_WIDTH  3648 
     790    #define CAM_JPEG_HEIGHT 2736 
     791     
     792    #define DNG_SUPPORT                 1 
     793 
     794    #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData 
     795 
     796    //////////////////////////////// 
     797    // Almost sure, sensor data taken from  
     798    // ixus870_sd880 which should have same sensor.. 
     799    //////////////////////////////// 
     800    #undef CAM_SENSOR_BITS_PER_PIXEL 
     801    #undef CAM_WHITE_LEVEL 
     802    #undef CAM_BLACK_LEVEL 
     803    #define CAM_SENSOR_BITS_PER_PIXEL   12 
     804    #define CAM_WHITE_LEVEL             ((1<<CAM_SENSOR_BITS_PER_PIXEL)-1) 
     805    #define CAM_BLACK_LEVEL             127 
     806     
     807    #define cam_CFAPattern              0x02010100 // Red  Green  Green  Blue 
     808    #define CAM_COLORMATRIX1                               \ 
     809      827547, 1000000, -290458, 1000000, -126086, 1000000, \ 
     810     -12829,  1000000, 530507,  1000000, 50537,   1000000, \ 
     811      5181,   1000000, 48183,   1000000, 245014,  1000000  
     812    #define cam_CalibrationIlluminant1  1 // Daylight 
     813 
     814                //////////////////////////////// 
     815                // Unsure 
     816                //////////////////////////////// 
     817//    #undef  CAM_UNCACHED_BIT 
     818//    #define CAM_UNCACHED_BIT    0x40000000 
     819 
     820    // cropping (from ixus870_sd880) 
     821    #define CAM_ACTIVE_AREA_X1          14 
     822    #define CAM_ACTIVE_AREA_Y1          8 
     823    #define CAM_ACTIVE_AREA_X2          3682 
     824    #define CAM_ACTIVE_AREA_Y2          2764 
     825 
    776826//========================================================== 
    777827// SD-Series (IXUS-Series) 
  • trunk/makefile.inc

    r792 r797  
    231231#PLATFORM=ixus980_sd990 
    232232#PLATFORMSUB=101b 
     233 
     234#PLATFORM=a2000 
     235#PLATFORMSUB=100c 
    233236 
    234237MEMISOSIZE="(&_end-&_start)" 
Note: See TracChangeset for help on using the changeset viewer.