Changeset 1318


Ignore:
Timestamp:
09/07/11 08:15:11 (21 months ago)
Author:
philmoz
Message:

Updates fpr S90 (tested by wrobbie):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/platform/s90/platform_camera.h

    r1224 r1318  
    5050    #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData 
    5151    #undef  CAM_SENSOR_BITS_PER_PIXEL 
    52     #undef  CAM_WHITE_LEVEL 
    53     #undef  CAM_BLACK_LEVEL 
    5452    #define CAM_SENSOR_BITS_PER_PIXEL   12 
    55     #define CAM_WHITE_LEVEL             ((1<<CAM_SENSOR_BITS_PER_PIXEL)-1) 
    56     #define CAM_BLACK_LEVEL             127 
    5753 
    5854    #undef CAM_USES_ASPECT_CORRECTION    
    59     #undef CAM_USES_ASPECT_YCORRECTION   
    6055    #define CAM_USES_ASPECT_CORRECTION  1  //camera uses the modified graphics primitives to map screens an viewports to buffers more sized  
    61     #define CAM_USES_ASPECT_YCORRECTION  0  //only uses mappings on x coordinate 
    62     //games mappings 
    63         #undef GAMES_SCREEN_WIDTH 
    64         #undef GAMES_SCREEN_HEIGHT 
    65         #define GAMES_SCREEN_WIDTH 360 
    66         #define GAMES_SCREEN_HEIGHT 240 
    6756 
    6857    #undef CAM_BITMAP_PALETTE 
    6958    #define CAM_BITMAP_PALETTE    4 
    7059 
    71     #undef ASPECT_XCORRECTION 
    72         #define ASPECT_XCORRECTION(x)  ( ( ((x)<<3) + (x) )  >>2 ) 
    73         #undef ASPECT_GAMES_XCORRECTION  
    74         #define ASPECT_GAMES_XCORRECTION(x)   ( ((x)<<1) )   
    75         #undef ASPECT_GAMES_YCORRECTION 
    76         #define ASPECT_GAMES_YCORRECTION(y)   ( (y) )  //none 
    77  
    78     #undef ASPECT_GRID_XCORRECTION 
    79     #define ASPECT_GRID_XCORRECTION(x)  ( ((x)<<3)/9  )  //grids are designed on a 360x240 basis and screen is 320x240, we need x*320/360=x*8/9 
    80     #undef ASPECT_GRID_YCORRECTION 
    81     #define ASPECT_GRID_YCORRECTION(y)  ( (y) )       //y correction for grids  made on a 360x240 As the buffer is 720x240 we have no correction here. 
    82  
    83     #undef ASPECT_VIEWPORT_XCORRECTION  
    84     #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 
    85     #undef ASPECT_VIEWPORT_YCORRECTION  
    86     #define ASPECT_VIEWPORT_YCORRECTION(y) ( (y) )  
    8760    #undef EDGE_HMARGIN  
    8861    #define EDGE_HMARGIN 28 
     
    10881    /**** From SX200IS, ok for S90 END?*/ 
    10982 
    110    #define CAM_ZEBRA_ASPECT_ADJUST 1 
     83    #define CAM_ZEBRA_ASPECT_ADJUST 1 
    11184 
    11285    #define CAM_DRIVE_MODE_FROM_TIMER_MODE      // use PROPCASE_TIMER_MODE to check for multiple shot custom timer. 
     
    11487                                                // see http://chdk.setepontos.com/index.php/topic,3994.405.html 
    11588 
     89        #define CAM_STARTUP_CRASH_FILE_OPEN_FIX 1                               // enable fix for camera crash at startup when opening the conf / font files 
     90                                                                                                                        // see http://chdk.setepontos.com/index.php?topic=6179.0 
     91 
    11692//---------------------------------------------------------- 
    11793 
Note: See TracChangeset for help on using the changeset viewer.