Changeset 1318
- Timestamp:
- 09/07/11 08:15:11 (21 months ago)
- File:
-
- 1 edited
-
trunk/platform/s90/platform_camera.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/platform/s90/platform_camera.h
r1224 r1318 50 50 #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData 51 51 #undef CAM_SENSOR_BITS_PER_PIXEL 52 #undef CAM_WHITE_LEVEL53 #undef CAM_BLACK_LEVEL54 52 #define CAM_SENSOR_BITS_PER_PIXEL 12 55 #define CAM_WHITE_LEVEL ((1<<CAM_SENSOR_BITS_PER_PIXEL)-1)56 #define CAM_BLACK_LEVEL 12757 53 58 54 #undef CAM_USES_ASPECT_CORRECTION 59 #undef CAM_USES_ASPECT_YCORRECTION60 55 #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 coordinate62 //games mappings63 #undef GAMES_SCREEN_WIDTH64 #undef GAMES_SCREEN_HEIGHT65 #define GAMES_SCREEN_WIDTH 36066 #define GAMES_SCREEN_HEIGHT 24067 56 68 57 #undef CAM_BITMAP_PALETTE 69 58 #define CAM_BITMAP_PALETTE 4 70 59 71 #undef ASPECT_XCORRECTION72 #define ASPECT_XCORRECTION(x) ( ( ((x)<<3) + (x) ) >>2 )73 #undef ASPECT_GAMES_XCORRECTION74 #define ASPECT_GAMES_XCORRECTION(x) ( ((x)<<1) )75 #undef ASPECT_GAMES_YCORRECTION76 #define ASPECT_GAMES_YCORRECTION(y) ( (y) ) //none77 78 #undef ASPECT_GRID_XCORRECTION79 #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/980 #undef ASPECT_GRID_YCORRECTION81 #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_XCORRECTION84 #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 edgeoverlay85 #undef ASPECT_VIEWPORT_YCORRECTION86 #define ASPECT_VIEWPORT_YCORRECTION(y) ( (y) )87 60 #undef EDGE_HMARGIN 88 61 #define EDGE_HMARGIN 28 … … 108 81 /**** From SX200IS, ok for S90 END?*/ 109 82 110 #define CAM_ZEBRA_ASPECT_ADJUST 183 #define CAM_ZEBRA_ASPECT_ADJUST 1 111 84 112 85 #define CAM_DRIVE_MODE_FROM_TIMER_MODE // use PROPCASE_TIMER_MODE to check for multiple shot custom timer. … … 114 87 // see http://chdk.setepontos.com/index.php/topic,3994.405.html 115 88 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 116 92 //---------------------------------------------------------- 117 93
Note: See TracChangeset
for help on using the changeset viewer.