Changeset 1258 for trunk/platform/sx130is/platform_camera.h
- Timestamp:
- 07/31/11 02:31:11 (22 months ago)
- File:
-
- 1 edited
-
trunk/platform/sx130is/platform_camera.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/platform/sx130is/platform_camera.h
r1224 r1258 61 61 #undef CAM_SENSOR_BITS_PER_PIXEL 62 62 #define CAM_SENSOR_BITS_PER_PIXEL 12 63 #undef CAM_WHITE_LEVEL64 #define CAM_WHITE_LEVEL ((1<<CAM_SENSOR_BITS_PER_PIXEL)-1)65 #undef CAM_BLACK_LEVEL66 #define CAM_BLACK_LEVEL 12767 63 68 64 #define CAM_EXT_TV_RANGE 1 … … 71 67 // copied from the SX200 which has the same video buffer size 72 68 #undef CAM_USES_ASPECT_CORRECTION 73 #undef CAM_USES_ASPECT_YCORRECTION74 69 #define CAM_USES_ASPECT_CORRECTION 1 //camera uses the modified graphics primitives to map screens an viewports to buffers more sized 75 #define CAM_USES_ASPECT_YCORRECTION 0 //only uses mappings on x coordinate76 77 #undef ASPECT_XCORRECTION78 #define ASPECT_XCORRECTION(x) ((x)<<1)79 80 #undef ASPECT_GRID_XCORRECTION81 #define ASPECT_GRID_XCORRECTION(x) (x) //grids are designed on a 360x240 basis and screen is 320x240, we need x*320/360=x*8/982 #undef ASPECT_GRID_YCORRECTION83 #define ASPECT_GRID_YCORRECTION(y) (y) //y correction for grids made on a 360x240 As the buffer is 720x240 we have no correction here.84 85 #undef ASPECT_VIEWPORT_XCORRECTION86 #define ASPECT_VIEWPORT_XCORRECTION(x) ASPECT_GRID_XCORRECTION(x)87 #undef ASPECT_VIEWPORT_YCORRECTION88 #define ASPECT_VIEWPORT_YCORRECTION(y) (y)89 90 //games mappings91 #undef GAMES_SCREEN_WIDTH92 #define GAMES_SCREEN_WIDTH 36093 #undef GAMES_SCREEN_HEIGHT94 #define GAMES_SCREEN_HEIGHT 24095 #undef ASPECT_GAMES_XCORRECTION96 // 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 resolution97 // 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 for98 // other modes in perfect aspect ratio 4/3: slightly better visualization: file menus more readable, ...99 #define ASPECT_GAMES_XCORRECTION(x) (((x)<<1))100 #undef ASPECT_GAMES_YCORRECTION101 #define ASPECT_GAMES_YCORRECTION(y) ((y)) //none102 70 103 71 #define CAM_ZEBRA_ASPECT_ADJUST 1 … … 129 97 // Used to enabled bracketing in custom timer, required on many recent cameras 130 98 // see http://chdk.setepontos.com/index.php/topic,3994.405.html 99 100 #define CAM_DETECT_SCREEN_ERASE 1 // Turn on guard pixels to detect screen erase and redraw CHDK buttons and menus 131 101 132 102 //---------------------------------------------------------- 133 134 //********135 /////SX200136 //********
Note: See TracChangeset
for help on using the changeset viewer.