Changeset 1514
- Timestamp:
- 12/30/11 04:07:44 (18 months ago)
- Location:
- branches/reyalp-flt
- Files:
-
- 247 edited
-
core/bitvector.c (modified) (1 diff, 1 prop)
-
core/bitvector.h (modified) (1 prop)
-
core/conf.c (modified) (2 diffs)
-
core/console.c (modified) (1 diff)
-
core/curves.c (modified) (4 diffs)
-
core/dng.c (modified) (10 diffs)
-
core/edgeoverlay.c (modified) (5 diffs)
-
core/gui.c (modified) (4 diffs)
-
core/gui_4wins.c (modified) (6 diffs)
-
core/gui_bench.c (modified) (4 diffs)
-
core/gui_calendar.c (modified) (3 diffs)
-
core/gui_debug.c (modified) (1 diff)
-
core/gui_draw.c (modified) (10 diffs)
-
core/gui_draw.h (modified) (1 diff)
-
core/gui_fselect.c (modified) (1 diff)
-
core/gui_mastermind.c (modified) (7 diffs)
-
core/gui_mbox.c (modified) (1 diff)
-
core/gui_menu.c (modified) (3 diffs)
-
core/gui_osd.c (modified) (19 diffs)
-
core/gui_palette.c (modified) (2 diffs)
-
core/gui_read.c (modified) (5 diffs)
-
core/gui_reversi.c (modified) (4 diffs)
-
core/gui_snake.c (modified) (2 diffs)
-
core/gui_sokoban.c (modified) (8 diffs)
-
core/gui_space.c (modified) (3 diffs)
-
core/gui_tetris.c (modified) (4 diffs)
-
core/gui_usb.c (modified) (1 prop)
-
core/gui_usb.h (modified) (1 prop)
-
core/luascript.c (modified) (2 diffs)
-
core/main.c (modified) (2 diffs)
-
core/module_exportlist.c (modified) (2 diffs)
-
core/module_wrappers.c (modified) (1 prop)
-
core/modules/module_inspector.c (modified) (1 diff)
-
core/modules/module_menu.c (modified) (1 prop)
-
core/modules/simple_game.c (modified) (1 prop)
-
core/motion_detector.c (modified) (3 diffs)
-
core/ptp.c (modified) (1 prop)
-
core/ptp.h (modified) (1 prop)
-
core/raw.c (modified) (3 diffs)
-
core/raw_merge.c (modified) (13 diffs)
-
core/shot_histogram.c (modified) (1 diff)
-
include/camera.h (modified) (2 diffs)
-
include/platform.h (modified) (1 diff)
-
loader/sx120is (modified) (1 prop)
-
loader/sx120is/Makefile (modified) (1 prop)
-
loader/sx120is/blobs.S (modified) (1 prop)
-
loader/sx120is/entry.S (modified) (1 prop)
-
loader/sx120is/main.c (modified) (1 prop)
-
loader/sx120is/resetcode (modified) (1 prop)
-
loader/sx120is/resetcode/Makefile (modified) (1 prop)
-
loader/sx120is/resetcode/entry.S (modified) (1 prop)
-
loader/sx120is/resetcode/main.c (modified) (1 prop)
-
platform/a1100/platform_camera.h (modified) (1 diff)
-
platform/a1100/sub/100c/lib.c (modified) (2 diffs)
-
platform/a2000/sub/100c/lib.c (modified) (2 diffs)
-
platform/a3000/sub/100b/lib.c (modified) (2 diffs)
-
platform/a3000/sub/100c/lib.c (modified) (2 diffs)
-
platform/a3000/sub/100d/lib.c (modified) (2 diffs)
-
platform/a410/sub/100f/lib.c (modified) (2 diffs)
-
platform/a430/sub/100b/lib.c (modified) (2 diffs)
-
platform/a450/sub/100d/lib.c (modified) (2 diffs)
-
platform/a460/sub/100d/lib.c (modified) (2 diffs)
-
platform/a470/sub/100e/lib.c (modified) (2 diffs)
-
platform/a470/sub/101b/lib.c (modified) (2 diffs)
-
platform/a470/sub/102c/lib.c (modified) (2 diffs)
-
platform/a480/sub/100b/lib.c (modified) (2 diffs)
-
platform/a490/sub/100d/lib.c (modified) (1 diff)
-
platform/a490/sub/100f/lib.c (modified) (1 diff)
-
platform/a495/sub/100d/lib.c (modified) (1 diff)
-
platform/a495/sub/100e/lib.c (modified) (1 diff)
-
platform/a495/sub/100f/lib.c (modified) (1 diff)
-
platform/a530/sub/100a/lib.c (modified) (2 diffs)
-
platform/a540/sub/100b/lib.c (modified) (2 diffs)
-
platform/a550/sub/100c/lib.c (modified) (2 diffs)
-
platform/a570/sub/100e/lib.c (modified) (1 diff)
-
platform/a570/sub/101a/lib.c (modified) (1 diff)
-
platform/a580/sub/101b/lib.c (modified) (1 diff)
-
platform/a590/sub/100e/lib.c (modified) (2 diffs)
-
platform/a590/sub/101b/lib.c (modified) (2 diffs)
-
platform/a610/sub/100e/lib.c (modified) (2 diffs)
-
platform/a610/sub/100f/lib.c (modified) (2 diffs)
-
platform/a620/sub/100f/lib.c (modified) (2 diffs)
-
platform/a630/sub/100c/lib.c (modified) (2 diffs)
-
platform/a640/sub/100b/lib.c (modified) (2 diffs)
-
platform/a650/sub/100d/lib.c (modified) (2 diffs)
-
platform/a700/sub/100b/lib.c (modified) (2 diffs)
-
platform/a710/sub/100a/lib.c (modified) (2 diffs)
-
platform/a720/sub/100c/lib.c (modified) (2 diffs)
-
platform/d10/platform_camera.h (modified) (1 diff)
-
platform/d10/sub/100a/lib.c (modified) (2 diffs)
-
platform/g10/lib.c (modified) (1 diff)
-
platform/g10/platform_camera.h (modified) (1 diff)
-
platform/g11/platform_camera.h (modified) (1 diff)
-
platform/g11/sub/100f/lib.c (modified) (2 diffs)
-
platform/g11/sub/100j/lib.c (modified) (2 diffs)
-
platform/g11/sub/100l/lib.c (modified) (2 diffs)
-
platform/g12/lib.c (modified) (1 diff)
-
platform/g12/platform_camera.h (modified) (1 diff)
-
platform/g7/sub/100e/lib.c (modified) (2 diffs)
-
platform/g7/sub/100g/lib.c (modified) (2 diffs)
-
platform/g7/sub/100i/lib.c (modified) (2 diffs)
-
platform/g7/sub/100j/lib.c (modified) (2 diffs)
-
platform/g9/sub/100d/lib.c (modified) (2 diffs)
-
platform/g9/sub/100g/lib.c (modified) (2 diffs)
-
platform/g9/sub/100i/lib.c (modified) (2 diffs)
-
platform/generic/wrappers.c (modified) (1 diff)
-
platform/ixus1000_sd4500/platform_camera.h (modified) (2 diffs)
-
platform/ixus1000_sd4500/sub/100d/lib.c (modified) (2 diffs)
-
platform/ixus1000_sd4500/sub/100f/lib.c (modified) (2 diffs)
-
platform/ixus100_sd780/platform_camera.h (modified) (1 diff)
-
platform/ixus100_sd780/sub/100b/lib.c (modified) (2 diffs)
-
platform/ixus100_sd780/sub/100c/lib.c (modified) (2 diffs)
-
platform/ixus120_sd940/platform_camera.h (modified) (1 diff)
-
platform/ixus120_sd940/sub/100e/lib.c (modified) (2 diffs)
-
platform/ixus120_sd940/sub/101a/lib.c (modified) (2 diffs)
-
platform/ixus120_sd940/sub/102c/lib.c (modified) (2 diffs)
-
platform/ixus120_sd940/sub/103b/lib.c (modified) (2 diffs)
-
platform/ixus120_sd940/sub/103c/lib.c (modified) (2 diffs)
-
platform/ixus200_sd980/platform_camera.h (modified) (1 diff)
-
platform/ixus200_sd980/sub/101c/lib.c (modified) (1 diff)
-
platform/ixus200_sd980/sub/101d/lib.c (modified) (1 diff)
-
platform/ixus220_elph300hs/lib.c (modified) (1 diff)
-
platform/ixus220_elph300hs/platform_camera.h (modified) (1 diff)
-
platform/ixus220_elph300hs/sub/100c/stubs_entry.S (modified) (1 prop)
-
platform/ixus220_elph300hs/sub/101a/stubs_entry.S (modified) (1 prop)
-
platform/ixus220_elph300hs/sub/101c/stubs_entry.S (modified) (1 prop)
-
platform/ixus300_sd4000/lib.c (modified) (1 diff)
-
platform/ixus300_sd4000/platform_camera.h (modified) (1 diff)
-
platform/ixus310_elph500hs/kbd.c (modified) (1 diff)
-
platform/ixus310_elph500hs/lib.c (modified) (1 diff)
-
platform/ixus310_elph500hs/platform_camera.h (modified) (1 diff)
-
platform/ixus40_sd300/sub/100j/lib.c (modified) (2 diffs)
-
platform/ixus40_sd300/sub/100k/lib.c (modified) (2 diffs)
-
platform/ixus50_sd400/sub/101a/lib.c (modified) (2 diffs)
-
platform/ixus50_sd400/sub/101b/lib.c (modified) (2 diffs)
-
platform/ixus55_sd450/sub/100b/lib.c (modified) (2 diffs)
-
platform/ixus55_sd450/sub/100c/lib.c (modified) (2 diffs)
-
platform/ixus55_sd450/sub/100d/lib.c (modified) (2 diffs)
-
platform/ixus60_sd600/sub/100a/lib.c (modified) (2 diffs)
-
platform/ixus60_sd600/sub/100d/lib.c (modified) (2 diffs)
-
platform/ixus65_sd630/sub/100a/lib.c (modified) (2 diffs)
-
platform/ixus700_sd500/sub/101a/lib.c (modified) (2 diffs)
-
platform/ixus700_sd500/sub/101b/lib.c (modified) (2 diffs)
-
platform/ixus70_sd1000/sub/100c/lib.c (modified) (2 diffs)
-
platform/ixus70_sd1000/sub/101b/lib.c (modified) (2 diffs)
-
platform/ixus70_sd1000/sub/102a/lib.c (modified) (2 diffs)
-
platform/ixus750_sd550/sub/100f/lib.c (modified) (2 diffs)
-
platform/ixus750_sd550/sub/100g/lib.c (modified) (2 diffs)
-
platform/ixus750_sd550/sub/100h/lib.c (modified) (2 diffs)
-
platform/ixus75_sd750/sub/100b/lib.c (modified) (2 diffs)
-
platform/ixus75_sd750/sub/101a/lib.c (modified) (2 diffs)
-
platform/ixus75_sd750/sub/102a/lib.c (modified) (2 diffs)
-
platform/ixus800_sd700/sub/100b/lib.c (modified) (2 diffs)
-
platform/ixus800_sd700/sub/101b/lib.c (modified) (2 diffs)
-
platform/ixus80_sd1100/sub/100c/lib.c (modified) (1 diff)
-
platform/ixus80_sd1100/sub/101a/lib.c (modified) (2 diffs)
-
platform/ixus850_sd800/sub/100e/lib.c (modified) (2 diffs)
-
platform/ixus85_sd770/sub/100a/lib.c (modified) (1 diff)
-
platform/ixus860_sd870/sub/100c/lib.c (modified) (2 diffs)
-
platform/ixus870_sd880/sub/100e/lib.c (modified) (2 diffs)
-
platform/ixus870_sd880/sub/101a/lib.c (modified) (2 diffs)
-
platform/ixus870_sd880/sub/102b/lib.c (modified) (2 diffs)
-
platform/ixus900_sd900/sub/100c/lib.c (modified) (2 diffs)
-
platform/ixus90_sd790/sub/100c/lib.c (modified) (2 diffs)
-
platform/ixus90_sd790/sub/100d/lib.c (modified) (2 diffs)
-
platform/ixus950_sd850/sub/100c/lib.c (modified) (2 diffs)
-
platform/ixus95_sd1200/platform_camera.h (modified) (1 diff)
-
platform/ixus95_sd1200/sub/100c/lib.c (modified) (2 diffs)
-
platform/ixus960_sd950/sub/100d/lib.c (modified) (2 diffs)
-
platform/ixus970_sd890/sub/100b/lib.c (modified) (1 diff)
-
platform/ixus970_sd890/sub/100c/lib.c (modified) (1 diff)
-
platform/ixus970_sd890/sub/100f/lib.c (modified) (1 diff)
-
platform/ixus980_sd990/platform_camera.h (modified) (1 diff)
-
platform/ixus980_sd990/sub/100e/lib.c (modified) (2 diffs)
-
platform/ixus980_sd990/sub/101b/lib.c (modified) (2 diffs)
-
platform/ixusizoom_sd30/sub/100g/lib.c (modified) (2 diffs)
-
platform/s2is/sub/100e/lib.c (modified) (2 diffs)
-
platform/s2is/sub/100f/lib.c (modified) (2 diffs)
-
platform/s2is/sub/100g/lib.c (modified) (2 diffs)
-
platform/s3is/sub/100a/lib.c (modified) (2 diffs)
-
platform/s5is/sub/101a/lib.c (modified) (2 diffs)
-
platform/s5is/sub/101b/lib.c (modified) (2 diffs)
-
platform/s90/platform_camera.h (modified) (1 diff)
-
platform/s90/sub/100c/lib.c (modified) (2 diffs)
-
platform/s90/sub/101a/lib.c (modified) (2 diffs)
-
platform/s90/sub/101c/lib.c (modified) (2 diffs)
-
platform/s95/platform_camera.h (modified) (1 diff)
-
platform/s95/sub/100e/lib.c (modified) (2 diffs)
-
platform/s95/sub/100h/lib.c (modified) (2 diffs)
-
platform/s95/sub/100i/lib.c (modified) (2 diffs)
-
platform/s95/sub/100k/lib.c (modified) (2 diffs)
-
platform/sx1/platform_camera.h (modified) (1 diff)
-
platform/sx1/sub/200h/lib.c (modified) (2 diffs)
-
platform/sx1/sub/201a/lib.c (modified) (2 diffs)
-
platform/sx10/sub/100c/lib.c (modified) (2 diffs)
-
platform/sx10/sub/101a/lib.c (modified) (2 diffs)
-
platform/sx10/sub/101b/lib.c (modified) (2 diffs)
-
platform/sx10/sub/102b/lib.c (modified) (2 diffs)
-
platform/sx10/sub/103a/lib.c (modified) (2 diffs)
-
platform/sx100is/sub/100b/lib.c (modified) (2 diffs)
-
platform/sx100is/sub/100c/lib.c (modified) (2 diffs)
-
platform/sx110is/sub/100b/lib.c (modified) (2 diffs)
-
platform/sx120is (modified) (1 prop)
-
platform/sx120is/Makefile (modified) (1 prop)
-
platform/sx120is/kbd.c (modified) (1 prop)
-
platform/sx120is/lib.c (modified) (1 prop)
-
platform/sx120is/main.c (modified) (1 prop)
-
platform/sx120is/platform_camera.h (modified) (1 diff, 1 prop)
-
platform/sx120is/shooting.c (modified) (1 prop)
-
platform/sx120is/sub/100b (modified) (1 prop)
-
platform/sx120is/sub/100b/Makefile (modified) (1 prop)
-
platform/sx120is/sub/100b/boot.c (modified) (1 prop)
-
platform/sx120is/sub/100b/capt_seq.c (modified) (1 prop)
-
platform/sx120is/sub/100b/lib.c (modified) (2 diffs, 1 prop)
-
platform/sx120is/sub/100b/makefile.inc (modified) (1 prop)
-
platform/sx120is/sub/100b/movie_rec.c (modified) (1 prop)
-
platform/sx120is/sub/100b/stubs_asm.h (modified) (1 prop)
-
platform/sx120is/sub/100b/stubs_auto.S (modified) (1 prop)
-
platform/sx120is/sub/100b/stubs_entry.S (modified) (1 prop)
-
platform/sx120is/sub/100b/stubs_entry_2.S (modified) (1 prop)
-
platform/sx120is/sub/100b/stubs_entry_ida.S (modified) (1 prop)
-
platform/sx120is/sub/100b/stubs_min.S (modified) (1 prop)
-
platform/sx120is/sub/Makefile (modified) (1 prop)
-
platform/sx120is/wrappers.c (modified) (1 prop)
-
platform/sx130is/platform_camera.h (modified) (1 diff)
-
platform/sx130is/sub/101c/lib.c (modified) (1 diff)
-
platform/sx130is/sub/101d/lib.c (modified) (1 diff)
-
platform/sx130is/sub/101f/lib.c (modified) (1 diff)
-
platform/sx150is/platform_camera.h (modified) (1 diff)
-
platform/sx150is/sub/100a/lib.c (modified) (1 diff)
-
platform/sx20/platform_camera.h (modified) (1 diff)
-
platform/sx20/sub/100f/lib.c (modified) (2 diffs)
-
platform/sx20/sub/102b/lib.c (modified) (2 diffs)
-
platform/sx20/sub/102d/lib.c (modified) (2 diffs)
-
platform/sx200is/platform_camera.h (modified) (1 diff)
-
platform/sx200is/sub/100c/lib.c (modified) (2 diffs)
-
platform/sx220hs/lib.c (modified) (1 diff)
-
platform/sx220hs/platform_camera.h (modified) (1 diff)
-
platform/sx230hs/lib.c (modified) (1 diff)
-
platform/sx230hs/platform_camera.h (modified) (1 diff)
-
platform/sx30/lib.c (modified) (1 diff)
-
platform/sx30/platform_camera.h (modified) (1 diff)
-
platform/sx40hs/lib.c (modified) (1 diff)
-
platform/sx40hs/platform_camera.h (modified) (1 diff)
-
platform/tx1/platform_camera.h (modified) (1 diff)
-
platform/tx1/sub/100g/lib.c (modified) (2 diffs)
-
platform/tx1/sub/101b/lib.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/reyalp-flt/core/bitvector.c
- Property svn:eol-style set to native
r931 r1514 143 143 } 144 144 dst[i] = lookup[elem]; 145 dst[i+ screen_buffer_size] = lookup[elem];145 dst[i+camera_screen.buffer_size] = lookup[elem]; 146 146 } 147 147 } -
branches/reyalp-flt/core/bitvector.h
- Property svn:eol-style set to native
-
branches/reyalp-flt/core/conf.c
r1511 r1514 527 527 def_batt_volts_min = get_vbatt_min(); 528 528 def_histo_pos.x = 45; 529 def_histo_pos.y = vid_get_bitmap_screen_height()-HISTO_HEIGHT-40;529 def_histo_pos.y = camera_screen.height-HISTO_HEIGHT-40; 530 530 def_dof_pos.x = 90; 531 531 def_dof_pos.y = 45; … … 536 536 def_usb_info_pos.x = 95; 537 537 def_usb_info_pos.y = 0; 538 def_space_icon_pos.x = vid_get_bitmap_screen_width()-100;538 def_space_icon_pos.x = camera_screen.width-100; 539 539 def_space_icon_pos.y = 0; 540 def_space_ver_pos.x = vid_get_bitmap_screen_width()-7;540 def_space_ver_pos.x = camera_screen.width-7; 541 541 def_space_ver_pos.y = 0; 542 542 def_space_hor_pos.x = 0; 543 def_space_hor_pos.y = vid_get_bitmap_screen_height()-7;543 def_space_hor_pos.y = camera_screen.height-7; 544 544 def_space_txt_pos.x=128; 545 545 def_space_txt_pos.y=0; 546 546 def_mode_state_pos.x=35; 547 547 def_mode_state_pos.y=0; 548 def_mode_raw_pos.x= vid_get_bitmap_screen_width()-7*FONT_WIDTH-2;549 def_mode_raw_pos.y= vid_get_bitmap_screen_height()-3*FONT_HEIGHT-2;550 def_mode_video_pos.x= vid_get_bitmap_screen_width()-25*FONT_WIDTH-2;551 def_mode_video_pos.y= vid_get_bitmap_screen_height()-6*FONT_HEIGHT-2;552 def_mode_ev_pos.x= vid_get_bitmap_screen_width()-40*FONT_WIDTH-2;553 def_mode_ev_pos.y= vid_get_bitmap_screen_height()-8*FONT_HEIGHT-2;554 def_values_pos.x= vid_get_bitmap_screen_width()-9*FONT_WIDTH;548 def_mode_raw_pos.x=camera_screen.width-7*FONT_WIDTH-2; 549 def_mode_raw_pos.y=camera_screen.height-3*FONT_HEIGHT-2; 550 def_mode_video_pos.x=camera_screen.width-25*FONT_WIDTH-2; 551 def_mode_video_pos.y=camera_screen.height-6*FONT_HEIGHT-2; 552 def_mode_ev_pos.x=camera_screen.width-40*FONT_WIDTH-2; 553 def_mode_ev_pos.y=camera_screen.height-8*FONT_HEIGHT-2; 554 def_values_pos.x=camera_screen.width-9*FONT_WIDTH; 555 555 def_values_pos.y=30; 556 def_clock_pos.x= vid_get_bitmap_screen_width()-5*FONT_WIDTH-2;556 def_clock_pos.x=camera_screen.width-5*FONT_WIDTH-2; 557 557 def_clock_pos.y=0; 558 def_temp_pos.x= vid_get_bitmap_screen_width()-9*FONT_WIDTH-2;558 def_temp_pos.x=camera_screen.width-9*FONT_WIDTH-2; 559 559 def_temp_pos.y=1*FONT_HEIGHT; 560 560 def_ev_video_pos.x=18; -
branches/reyalp-flt/core/console.c
r1512 r1514 131 131 { 132 132 int y = (console_y + console_max_lines - console_num_lines) * FONT_HEIGHT; 133 int x = console_x * FONT_WIDTH + camera_ info.ts_button_border;133 int x = console_x * FONT_WIDTH + camera_screen.ts_button_border; 134 134 135 135 for(c = 0; c < console_num_lines; ++c) -
branches/reyalp-flt/core/curves.c
r1512 r1514 146 146 147 147 // Loop through picture rows 148 for (i=camera_ info.raw_rows; i;i-=2){148 for (i=camera_sensor.raw_rows; i;i-=2){ 149 149 // Loop through picture columns 150 for (j=camera_ info.raw_rows; j; j-=8, src+=10){150 for (j=camera_sensor.raw_rows; j; j-=8, src+=10){ 151 151 pixVal0=((0x3fc&(((unsigned short)(src[1]))<<2)) | (src[0] >> 6)); 152 152 pixVal1=((0x3f0&(((unsigned short)(src[0]))<<4)) | (src[3] >> 4)); … … 179 179 *(src+8) = (unsigned char) ((pixVal0)); //7 (=>0) } 180 180 } 181 for (j=camera_ info.raw_rows;j; j-=8, src+=10){181 for (j=camera_sensor.raw_rows;j; j-=8, src+=10){ 182 182 pixVal0=((0x3fc&(((unsigned short)(src[1]))<<2)) | (src[0] >> 6)); 183 183 pixVal1=((0x3f0&(((unsigned short)(src[0]))<<4)) | (src[3] >> 4)); … … 242 242 243 243 // Loop through picture rows 244 for (i=camera_ info.raw_rows; i;i-=2){244 for (i=camera_sensor.raw_rows; i;i-=2){ 245 245 // Loop through picture columns 246 for (j=camera_ info.raw_rows; j; j-=8, src+=10){246 for (j=camera_sensor.raw_rows; j; j-=8, src+=10){ 247 247 pixVal0=((0x3fc&(((unsigned short)(src[1]))<<2)) | (src[0] >> 6)); 248 248 pixVal1=((0x3f0&(((unsigned short)(src[0]))<<4)) | (src[3] >> 4)); … … 307 307 *(src+8) = (unsigned char) ((pixVal0)); //7 (=>0) 308 308 } 309 for (j=camera_ info.raw_rows;j; j-=8, src+=10){309 for (j=camera_sensor.raw_rows;j; j-=8, src+=10){ 310 310 pixVal0=((0x3fc&(((unsigned short)(src[1]))<<2)) | (src[0] >> 6)); 311 311 pixVal1=((0x3f0&(((unsigned short)(src[0]))<<4)) | (src[3] >> 4)); -
branches/reyalp-flt/core/dng.c
r1513 r1514 87 87 {0xC612, T_BYTE, 4, 0x00000101}, //DNGVersion: 1.1.0.0 88 88 {0xC614, T_ASCII, 32, (int)cam_name}, //UniqueCameraModel. Filled at header generation. 89 {0xC621, T_SRATIONAL, 9, (int)&camera_ info.color_matrix1},89 {0xC621, T_SRATIONAL, 9, (int)&camera_sensor.color_matrix1}, 90 90 {0xC627, T_RATIONAL, 3, (int)cam_AnalogBalance}, 91 91 {0xC628, T_RATIONAL, 3, (int)cam_AsShotNeutral}, 92 {0xC62A, T_SRATIONAL, 1, (int)&camera_ info.exposure_bias},92 {0xC62A, T_SRATIONAL, 1, (int)&camera_sensor.exposure_bias}, 93 93 {0xC62B, T_RATIONAL, 1, (int)cam_BaselineNoise}, 94 94 {0xC62C, T_RATIONAL, 1, (int)cam_BaselineSharpness}, 95 95 {0xC62E, T_RATIONAL, 1, (int)cam_LinearResponseLimit}, 96 {0xC630, T_RATIONAL, 4, (int)&camera_ info.lens_info},97 {0xC65A, T_SHORT|T_PTR,1, (int)&camera_ info.calibration_illuminant1},96 {0xC630, T_RATIONAL, 4, (int)&camera_sensor.lens_info}, 97 {0xC65A, T_SHORT|T_PTR,1, (int)&camera_sensor.calibration_illuminant1}, 98 98 {0} 99 99 }; … … 102 102 struct dir_entry IFD1[]={ 103 103 {0xFE, T_LONG, 1, 0}, // NewSubFileType: Main Image 104 {0x100, T_LONG|T_PTR, 1, (int)&camera_ info.raw_rowpix}, // ImageWidth105 {0x101, T_LONG|T_PTR, 1, (int)&camera_ info.raw_rows}, // ImageLength106 {0x102, T_SHORT|T_PTR,1, (int)&camera_ info.bits_per_pixel}, // BitsPerSample104 {0x100, T_LONG|T_PTR, 1, (int)&camera_sensor.raw_rowpix}, // ImageWidth 105 {0x101, T_LONG|T_PTR, 1, (int)&camera_sensor.raw_rows}, // ImageLength 106 {0x102, T_SHORT|T_PTR,1, (int)&camera_sensor.bits_per_pixel}, // BitsPerSample 107 107 {0x103, T_SHORT, 1, 1}, // Compression: Uncompressed 108 108 {0x106, T_SHORT, 1, 0x8023}, //PhotometricInterpretation: CFA 109 109 {0x111, T_LONG, 1, 0}, //StripOffsets: Offset 110 110 {0x115, T_SHORT, 1, 1}, // SamplesPerPixel: 1 111 {0x116, T_SHORT|T_PTR,1, (int)&camera_ info.raw_rows}, //RowsPerStrip112 {0x117, T_LONG|T_PTR, 1, (int)&camera_ info.raw_size}, // StripByteCounts = CHDK RAW size111 {0x116, T_SHORT|T_PTR,1, (int)&camera_sensor.raw_rows}, //RowsPerStrip 112 {0x117, T_LONG|T_PTR, 1, (int)&camera_sensor.raw_size}, // StripByteCounts = CHDK RAW size 113 113 {0x11A, T_RATIONAL, 1, (int)cam_Resolution}, // XResolution 114 114 {0x11B, T_RATIONAL, 1, (int)cam_Resolution}, // YResolution … … 116 116 {0x128, T_SHORT, 1, 2}, // ResolutionUnit: inch 117 117 {0x828D, T_SHORT, 2, 0x00020002}, // CFARepeatPatternDim: Rows = 2, Cols = 2 118 {0x828E, T_BYTE|T_PTR, 4, (int)&camera_ info.cfa_pattern},119 {0xC61A, T_LONG|T_PTR, 1, (int)&camera_ info.black_level}, // BlackLevel120 {0xC61D, T_LONG|T_PTR, 1, (int)&camera_ info.white_level}, // WhiteLevel121 {0xC61F, T_LONG, 2, (int)&camera_ info.crop.origin},122 {0xC620, T_LONG, 2, (int)&camera_ info.crop.size},123 {0xC68D, T_LONG, 4, (int)&camera_ info.dng_active_area},118 {0x828E, T_BYTE|T_PTR, 4, (int)&camera_sensor.cfa_pattern}, 119 {0xC61A, T_LONG|T_PTR, 1, (int)&camera_sensor.black_level}, // BlackLevel 120 {0xC61D, T_LONG|T_PTR, 1, (int)&camera_sensor.white_level}, // WhiteLevel 121 {0xC61F, T_LONG, 2, (int)&camera_sensor.crop.origin}, 122 {0xC620, T_LONG, 2, (int)&camera_sensor.crop.size}, 123 {0xC68D, T_LONG, 4, (int)&camera_sensor.dng_active_area}, 124 124 {0} 125 125 }; … … 229 229 // filling EXIF fields 230 230 231 if (camera_ info.has_gps)232 get_property_case( PROPCASE_GPS, &gps_data, sizeof(tGPS));231 if (camera_sensor.gps_propcase) 232 get_property_case(camera_sensor.gps_propcase, &gps_data, sizeof(tGPS)); 233 233 else 234 memset(&gps_data, 0, sizeof(tGPS));234 memset(&gps_data, 0, sizeof(tGPS)); 235 235 236 236 for (j=0;j<IFDs;j++) { … … 471 471 struct utimbuf t; 472 472 473 if (safe_stat(fn, &st) != 0 || st.st_size<=camera_ info.raw_size) return;473 if (safe_stat(fn, &st) != 0 || st.st_size<=camera_sensor.raw_size) return; 474 474 buf=malloc(BUF_SIZE); 475 475 if (buf){ … … 483 483 raw=fopen(fn,"w+b"); 484 484 if (raw){ 485 fseek(dng, st.st_size-camera_ info.raw_size, SEEK_SET); // SEEK_END is not working?486 for (i=0; i<camera_ info.raw_size/BUF_SIZE; i++) {485 fseek(dng, st.st_size-camera_sensor.raw_size, SEEK_SET); // SEEK_END is not working? 486 for (i=0; i<camera_sensor.raw_size/BUF_SIZE; i++) { 487 487 fread(buf, 1, BUF_SIZE, dng); 488 488 reverse_bytes_order((char*)buf, BUF_SIZE); 489 489 fwrite(buf, 1, BUF_SIZE, raw); 490 490 } 491 fread(buf, 1, camera_ info.raw_size%BUF_SIZE, dng);492 reverse_bytes_order((char*)buf, camera_ info.raw_size%BUF_SIZE);493 fwrite(buf, 1, camera_ info.raw_size%BUF_SIZE, raw);491 fread(buf, 1, camera_sensor.raw_size%BUF_SIZE, dng); 492 reverse_bytes_order((char*)buf, camera_sensor.raw_size%BUF_SIZE); 493 fwrite(buf, 1, camera_sensor.raw_size%BUF_SIZE, raw); 494 494 fclose(raw); 495 495 t.actime = t.modtime = time(NULL); … … 520 520 register int i, j, x, y, yadj; 521 521 register char *buf = thumbnail_buf; 522 register int shift = camera_ info.bits_per_pixel - 8;522 register int shift = camera_sensor.bits_per_pixel - 8; 523 523 524 524 // Two patterns are: … … 527 527 // for the second pattern yadj shifts the thumbnail row down one line 528 528 // essentially making the patterns the same 529 yadj = (camera_ info.cfa_pattern == 0x01000201) ? 1 : 0;529 yadj = (camera_sensor.cfa_pattern == 0x01000201) ? 1 : 0; 530 530 531 531 for (i=0; i<DNG_TH_HEIGHT; i++) 532 532 for (j=0; j<DNG_TH_WIDTH; j++) 533 533 { 534 x = (camera_ info.jpeg.x + (camera_info.jpeg.width * j) / DNG_TH_WIDTH) & 0xFFFFFFFE;535 y = ((camera_ info.jpeg.y + (camera_info.jpeg.height * i) / DNG_TH_HEIGHT) & 0xFFFFFFFE) + yadj;534 x = (camera_sensor.jpeg.x + (camera_sensor.jpeg.width * j) / DNG_TH_WIDTH) & 0xFFFFFFFE; 535 y = ((camera_sensor.jpeg.y + (camera_sensor.jpeg.height * i) / DNG_TH_HEIGHT) & 0xFFFFFFFE) + yadj; 536 536 537 537 *buf++ = gamma[get_raw_pixel(x,y)>>shift]; // red pixel … … 565 565 } 566 566 count = 0; 567 for (c[0]=camera_ info.active_area.x1; c[0]<camera_info.active_area.x2; c[0]++)567 for (c[0]=camera_sensor.active_area.x1; c[0]<camera_sensor.active_area.x2; c[0]++) 568 568 { 569 for (c[1]=camera_ info.active_area.y1; c[1]<camera_info.active_area.y2; c[1]++)569 for (c[1]=camera_sensor.active_area.y1; c[1]<camera_sensor.active_area.y2; c[1]++) 570 570 { 571 571 if (get_raw_pixel(c[0],c[1])==0) … … 733 733 write(fd, thumbnail_buf, DNG_TH_WIDTH*DNG_TH_HEIGHT*3); 734 734 735 reverse_bytes_order2(rawadr, altrawadr, camera_ info.raw_size);735 reverse_bytes_order2(rawadr, altrawadr, camera_sensor.raw_size); 736 736 737 737 // Write alternate (inactive) buffer that we reversed the bytes into above (if only one buffer then it will be the active buffer instead) 738 write(fd, (char*)(((unsigned long)altrawadr)|uncachedbit), camera_ info.raw_size);738 write(fd, (char*)(((unsigned long)altrawadr)|uncachedbit), camera_sensor.raw_size); 739 739 740 740 if (rawadr == altrawadr) // If only one RAW buffer then we have to swap the bytes back 741 reverse_bytes_order2(rawadr, altrawadr, camera_ info.raw_size);741 reverse_bytes_order2(rawadr, altrawadr, camera_sensor.raw_size); 742 742 743 743 free_dng_header(); -
branches/reyalp-flt/core/edgeoverlay.c
r1512 r1514 48 48 static void get_viewport_size() 49 49 { 50 viewport_height = vid_get_viewport_height()-camera_ info.edge_hmargin*2; //don't trace bottom lines50 viewport_height = vid_get_viewport_height()-camera_screen.edge_hmargin*2; //don't trace bottom lines 51 51 viewport_width = vid_get_viewport_width(); 52 52 viewport_byte_width = vid_get_viewport_byte_width(); … … 290 290 int conv1, conv2; 291 291 292 const int y_min = viewport_yoffset + camera_ info.edge_hmargin+ slice *slice_height;293 const int y_max = viewport_yoffset + camera_ info.edge_hmargin+(slice+1)*slice_height;292 const int y_min = viewport_yoffset + camera_screen.edge_hmargin+ slice *slice_height; 293 const int y_max = viewport_yoffset + camera_screen.edge_hmargin+(slice+1)*slice_height; 294 294 const int x_min = viewport_xoffset*3 + 6; 295 295 const int x_max = (viewport_width + viewport_xoffset - 2) * 3; … … 387 387 if (conv1 + conv2 > *conf_edge_overlay_thresh) 388 388 { 389 bv_set(edgebuf, (y-viewport_yoffset-camera_ info.edge_hmargin)*viewport_width + xdiv3, 1);389 bv_set(edgebuf, (y-viewport_yoffset-camera_screen.edge_hmargin)*viewport_width + xdiv3, 1); 390 390 } 391 391 … … 417 417 if (conv1 + conv2 > *conf_edge_overlay_thresh) 418 418 { 419 bv_set(edgebuf, (y-viewport_yoffset-camera_ info.edge_hmargin)*viewport_width + xdiv3+1, 1);419 bv_set(edgebuf, (y-viewport_yoffset-camera_screen.edge_hmargin)*viewport_width + xdiv3+1, 1); 420 420 } 421 421 } // for x … … 493 493 494 494 const color cl = *conf_edge_overlay_color; 495 const int y_slice_min = viewport_yoffset+camera_ info.edge_hmargin+ slice *slice_height;496 const int y_slice_max = viewport_yoffset+camera_ info.edge_hmargin+(slice+1)*slice_height;497 const int y_min = viewport_yoffset+camera_ info.edge_hmargin;498 const int y_max = viewport_yoffset+camera_ info.edge_hmargin+viewport_height;495 const int y_slice_min = viewport_yoffset+camera_screen.edge_hmargin+ slice *slice_height; 496 const int y_slice_max = viewport_yoffset+camera_screen.edge_hmargin+(slice+1)*slice_height; 497 const int y_min = viewport_yoffset+camera_screen.edge_hmargin; 498 const int y_max = viewport_yoffset+camera_screen.edge_hmargin+viewport_height; 499 499 const int x_min = viewport_xoffset+2; 500 500 const int x_max = (viewport_width + viewport_xoffset - 2); -
branches/reyalp-flt/core/gui.c
r1513 r1514 1614 1614 draw_init(); 1615 1615 1616 exposition_thresh = screen_size/500;1616 exposition_thresh = camera_screen.size/500; 1617 1617 voltage_step = (conf.batt_step_25)?25:1; 1618 1618 load_from_file( "A/CHDK/badpixel", make_pixel_list ); … … 2368 2368 #if CAM_SWIVEL_SCREEN 2369 2369 if (conf.flashlight && (m&MODE_SCREEN_OPENED) && (m&MODE_SCREEN_ROTATED) && (gui_get_mode()==GUI_MODE_NONE /* || gui_get_mode()==GUI_MODE_ALT */)) { 2370 draw_filled_rect(0, 0, screen_width-1, screen_height-1, MAKE_COLOR(COLOR_WHITE, COLOR_WHITE));2370 draw_filled_rect(0, 0, camera_screen.width-1, camera_screen.height-1, MAKE_COLOR(COLOR_WHITE, COLOR_WHITE)); 2371 2371 flashlight = 1; 2372 2372 } … … 2598 2598 w=w*FONT_WIDTH+10; 2599 2599 2600 x = ( screen_width-w)>>1; y = ((screen_height-h)>>1) + 20;2600 x = (camera_screen.width-w)>>1; y = ((camera_screen.height-h)>>1) + 20; 2601 2601 draw_filled_round_rect(x, y, x+w, y+h, MAKE_COLOR(COLOR_RED, COLOR_RED)); 2602 2602 for (i=0; i<sizeof(text)/sizeof(text[0]); ++i) { … … 2607 2607 int mx=0; 2608 2608 int my=0; 2609 int offset_x = ( screen_width-150)>>1;2610 int offset_y = (( screen_height-84)>>1) - 42;2609 int offset_x = (camera_screen.width-150)>>1; 2610 int offset_y = ((camera_screen.height-84)>>1) - 42; 2611 2611 const color color_lookup[8] = {COLOR_BLACK, 2612 2612 COLOR_SPLASH_RED/*0x2E redish*/, -
branches/reyalp-flt/core/gui_4wins.c
r1513 r1514 25 25 26 26 #define BORDER 20 27 #define XBORDER (camera_ info.ts_button_border+BORDER)27 #define XBORDER (camera_screen.ts_button_border+BORDER) 28 28 #define RECT_SIZE 30 29 29 #define BORDER_TOP RECT_SIZE … … 183 183 w=l*FONT_WIDTH+10; 184 184 185 x = ( screen_width-camera_info.ts_button_border-w)>>1; y = ((screen_height)>>1);185 x = (camera_screen.width-camera_screen.ts_button_border-w)>>1; y = ((camera_screen.height)>>1); 186 186 draw_filled_round_rect(x, y, x+w, y+FONT_HEIGHT+6, MAKE_COLOR(COLOR_RED, COLOR_RED)); 187 187 draw_string(x+((w-strlen(text)*FONT_WIDTH)>>1), y+4, text, cl); … … 248 248 void draw_mode() 249 249 { 250 int x = (camera_ info.ts_button_border/FONT_WIDTH) + 30;250 int x = (camera_screen.ts_button_border/FONT_WIDTH) + 30; 251 251 draw_txt_string(x, 4, " ", TEXT_COLOR); 252 252 if (mode_rival==1) … … 312 312 srand(time(NULL)); 313 313 314 draw_filled_rect(0, 0, screen_width, screen_height, BG_COLOR); // draw backgraund314 draw_filled_rect(0, 0, camera_screen.width, camera_screen.height, BG_COLOR); // draw backgraund 315 315 draw_filled_rect(XBORDER, BORDER+BORDER_TOP, XBORDER+(7*RECT_SIZE), BORDER+(6*RECT_SIZE)+BORDER_TOP, FIELD_COLOR); 316 draw_filled_round_rect(camera_ info.ts_button_border+240, 90, camera_info.ts_button_border+360-BORDER, 240-10, INFO_COLOR);317 draw_txt_string((camera_ info.ts_button_border/FONT_WIDTH)+12, 0, lang_str(LANG_MENU_GAMES_CONNECT4), TEXT_COLOR);318 draw_line(camera_ info.ts_button_border,15,camera_info.ts_button_border+360,15,COLOR_SPLASH_GREY);316 draw_filled_round_rect(camera_screen.ts_button_border+240, 90, camera_screen.ts_button_border+360-BORDER, 240-10, INFO_COLOR); 317 draw_txt_string((camera_screen.ts_button_border/FONT_WIDTH)+12, 0, lang_str(LANG_MENU_GAMES_CONNECT4), TEXT_COLOR); 318 draw_line(camera_screen.ts_button_border,15,camera_screen.ts_button_border+360,15,COLOR_SPLASH_GREY); 319 319 320 320 for(i=0;i<7;i++) … … 332 332 333 333 move_cursor(0); 334 draw_txt_string((camera_ info.ts_button_border/FONT_WIDTH)+30, 3, lang_str(LANG_CONNECT4_RIVAL), TEXT_COLOR);334 draw_txt_string((camera_screen.ts_button_border/FONT_WIDTH)+30, 3, lang_str(LANG_CONNECT4_RIVAL), TEXT_COLOR); 335 335 sprintf(str, "%d",count_win[0]); 336 draw_txt_string(( screen_width-camera_info.ts_button_border)/FONT_WIDTH-2-10, screen_height/FONT_HEIGHT-9, str, MAKE_COLOR(INFO_COLOR, P1_COLOR));336 draw_txt_string((camera_screen.width-camera_screen.ts_button_border)/FONT_WIDTH-2-10, camera_screen.height/FONT_HEIGHT-9, str, MAKE_COLOR(INFO_COLOR, P1_COLOR)); 337 337 sprintf(str, ":"); 338 draw_txt_string(( screen_width-camera_info.ts_button_border)/FONT_WIDTH-2-7, screen_height/FONT_HEIGHT-9, str, INFO_TEXT_COLOR);338 draw_txt_string((camera_screen.width-camera_screen.ts_button_border)/FONT_WIDTH-2-7, camera_screen.height/FONT_HEIGHT-9, str, INFO_TEXT_COLOR); 339 339 sprintf(str, "%d",count_win[1]); 340 draw_txt_string(( screen_width-camera_info.ts_button_border)/FONT_WIDTH-2-4, screen_height/FONT_HEIGHT-9, str, MAKE_COLOR(INFO_COLOR, P2_COLOR));340 draw_txt_string((camera_screen.width-camera_screen.ts_button_border)/FONT_WIDTH-2-4, camera_screen.height/FONT_HEIGHT-9, str, MAKE_COLOR(INFO_COLOR, P2_COLOR)); 341 341 draw_mode(); 342 342 if(cur_player==2&&!mode_rival) set(); … … 373 373 static char str[16]; 374 374 sprintf(str, "%3d%%", get_batt_perc()); 375 draw_txt_string(( screen_width-camera_info.ts_button_border)/FONT_WIDTH-2-13, screen_height/FONT_HEIGHT-2, str, INFO_TEXT_COLOR);376 gui_osd_draw_clock(camera_ info.ts_button_border+290,208,INFO_TEXT_COLOR);375 draw_txt_string((camera_screen.width-camera_screen.ts_button_border)/FONT_WIDTH-2-13, camera_screen.height/FONT_HEIGHT-2, str, INFO_TEXT_COLOR); 376 gui_osd_draw_clock(camera_screen.ts_button_border+290,208,INFO_TEXT_COLOR); 377 377 } 378 378 -
branches/reyalp-flt/core/gui_bench.c
r1513 r1514 70 70 switch (bench_to_draw) { 71 71 case 1: 72 draw_filled_rect(0, 0, screen_width-1, screen_height-1, MAKE_COLOR(SCREEN_COLOR, SCREEN_COLOR));72 draw_filled_rect(0, 0, camera_screen.width-1, camera_screen.height-1, MAKE_COLOR(SCREEN_COLOR, SCREEN_COLOR)); 73 73 draw_txt_string(1, 0, lang_str(LANG_BENCH_TITLE), MAKE_COLOR(SCREEN_COLOR, COLOR_WHITE)); 74 74 … … 89 89 /* no break here */ 90 90 case 2: 91 gui_bench_draw_results_screen(3, bench.screen_output_bps, screen_buffer_size);92 gui_bench_draw_results_screen(4, bench.screen_input_bps, screen_width * vid_get_viewport_height() * 3);91 gui_bench_draw_results_screen(3, bench.screen_output_bps, camera_screen.buffer_size); 92 gui_bench_draw_results_screen(4, bench.screen_input_bps, camera_screen.width * vid_get_viewport_height() * 3); 93 93 94 94 gui_bench_draw_results(7, bench.memory_write_bps); … … 127 127 gui_bench_draw(); 128 128 scr = vid_get_bitmap_fb(); 129 s = screen_buffer_size;129 s = camera_screen.buffer_size; 130 130 t = get_tick_count(); 131 131 for (c=0; c<64; ++c) … … 139 139 gui_bench_draw(); 140 140 scr = vid_get_viewport_fb(); 141 s = screen_width * vid_get_viewport_height() * 3;141 s = camera_screen.width * vid_get_viewport_height() * 3; 142 142 t = get_tick_count(); 143 143 for (n=0; n<64; ++n) -
branches/reyalp-flt/core/gui_calendar.c
r1513 r1514 71 71 int x, i; 72 72 73 draw_filled_rect(0, 0, screen_width-1, screen_height-1, MAKE_COLOR(SCREEN_COLOR, SCREEN_COLOR));74 draw_txt_string((camera_ info.ts_button_border/FONT_WIDTH)+1, 0, lang_str(LANG_CALENDAR_TODAY), MAKE_COLOR(SCREEN_COLOR, COLOR_WHITE));73 draw_filled_rect(0, 0, camera_screen.width-1, camera_screen.height-1, MAKE_COLOR(SCREEN_COLOR, SCREEN_COLOR)); 74 draw_txt_string((camera_screen.ts_button_border/FONT_WIDTH)+1, 0, lang_str(LANG_CALENDAR_TODAY), MAKE_COLOR(SCREEN_COLOR, COLOR_WHITE)); 75 75 draw_rect(cal_x-3, cal_y-3, cal_x+cal_w+2, cal_y+cal_h+2, CALENDAR_COLOR); 76 76 draw_filled_rect(cal_x-1, cal_y-1, cal_x+cal_w, cal_y+FONT_HEIGHT+8, TITLE_COLOR); … … 91 91 cal_w = FONT_WIDTH*4*7; 92 92 cal_h = 4+FONT_HEIGHT+4+4+FONT_HEIGHT+4+(FONT_HEIGHT+4)*6; 93 cal_x = ( screen_width-cal_w)/2;94 cal_y = FONT_HEIGHT+( screen_height-FONT_HEIGHT-cal_h)/2;93 cal_x = (camera_screen.width-cal_w)/2; 94 cal_y = FONT_HEIGHT+(camera_screen.height-FONT_HEIGHT-cal_h)/2; 95 95 gui_calendar_initial_draw(); 96 96 need_redraw = 1; … … 142 142 ttm = localtime(&t); 143 143 sprintf(str, " %2u %s %04u %2u:%02u:%02u ", ttm->tm_mday, lang_str(months[ttm->tm_mon]), 1900+ttm->tm_year, ttm->tm_hour, ttm->tm_min, ttm->tm_sec); 144 draw_txt_string((camera_ info.ts_button_border/FONT_WIDTH)+8, 0, str, MAKE_COLOR(SCREEN_COLOR, COLOR_WHITE));144 draw_txt_string((camera_screen.ts_button_border/FONT_WIDTH)+8, 0, str, MAKE_COLOR(SCREEN_COLOR, COLOR_WHITE)); 145 145 146 146 if (need_redraw) { -
branches/reyalp-flt/core/gui_debug.c
r1513 r1514 67 67 switch (debug_to_draw) { 68 68 case 1: 69 draw_filled_rect(0, 0, screen_width-1, screen_height-1, MAKE_COLOR(SCREEN_COLOR, SCREEN_COLOR));69 draw_filled_rect(0, 0, camera_screen.width-1, camera_screen.height-1, MAKE_COLOR(SCREEN_COLOR, SCREEN_COLOR)); 70 70 draw_txt_string(1, 0, "Address:", MAKE_COLOR(SCREEN_COLOR, COLOR_WHITE)); 71 71 draw_txt_string(22, 0, "Incr:", MAKE_COLOR(SCREEN_COLOR, COLOR_WHITE)); -
branches/reyalp-flt/core/gui_draw.c
r1467 r1514 9 9 //------------------------------------------------------------------- 10 10 static char* frame_buffer[2]; 11 unsigned int screen_width=0, screen_height=0, screen_size=0;12 unsigned int screen_buffer_width=0, screen_buffer_height=0, screen_buffer_size=0;13 11 void (*draw_pixel_proc)(unsigned int offset, color cl); 14 12 … … 44 42 int draw_test_pixel(coord x, coord y, color c) 45 43 { 46 if (x >= screen_width || y >= screen_height) return 0;47 return (frame_buffer[0][y * screen_buffer_width + ASPECT_XCORRECTION(x)] == c) &&48 (frame_buffer[1][y * screen_buffer_width + ASPECT_XCORRECTION(x)] == c);44 if (x >= camera_screen.width || y >= camera_screen.height) return 0; 45 return (frame_buffer[0][y * camera_screen.buffer_width + ASPECT_XCORRECTION(x)] == c) && 46 (frame_buffer[1][y * camera_screen.buffer_width + ASPECT_XCORRECTION(x)] == c); 49 47 } 50 48 … … 55 53 register int i; 56 54 57 screen_width = vid_get_bitmap_screen_width();58 screen_height = vid_get_bitmap_screen_height();59 screen_size = screen_width * screen_height;60 screen_buffer_width = vid_get_bitmap_buffer_width();61 screen_buffer_height = vid_get_bitmap_buffer_height();62 screen_buffer_size = screen_buffer_width * screen_buffer_height;63 55 frame_buffer[0] = vid_get_bitmap_fb(); 64 frame_buffer[1] = frame_buffer[0] + screen_buffer_size;56 frame_buffer[1] = frame_buffer[0] + camera_screen.buffer_size; 65 57 draw_set_draw_proc(NULL); 66 58 … … 72 64 //------------------------------------------------------------------- 73 65 void draw_pixel(coord x, coord y, color cl) { 74 if (x >= screen_width || y >= screen_height) return;66 if (x >= camera_screen.width || y >= camera_screen.height) return; 75 67 else { 76 register unsigned int offset = y * screen_buffer_width + ASPECT_XCORRECTION(x);68 register unsigned int offset = y * camera_screen.buffer_width + ASPECT_XCORRECTION(x); 77 69 draw_pixel_proc(offset, cl); 78 70 #if CAM_USES_ASPECT_CORRECTION … … 84 76 //------------------------------------------------------------------- 85 77 color draw_get_pixel(coord x, coord y) { 86 if (x >= screen_width || y >= screen_height) return 0;87 return frame_buffer[0][y * screen_buffer_width + ASPECT_XCORRECTION(x) ];78 if (x >= camera_screen.width || y >= camera_screen.height) return 0; 79 return frame_buffer[0][y * camera_screen.buffer_width + ASPECT_XCORRECTION(x) ]; 88 80 } 89 81 … … 120 112 void draw_hline(coord x, coord y, int len, color cl) 121 113 { 122 if (x >= screen_width || y >= screen_height) return;114 if (x >= camera_screen.width || y >= camera_screen.height) return; 123 115 if (x < 0) { len += x; x = 0; } 124 if ((x + len) > screen_width) len = screen_width - x;125 register unsigned int offset = y * screen_buffer_width + ASPECT_XCORRECTION(x);116 if ((x + len) > camera_screen.width) len = camera_screen.width - x; 117 register unsigned int offset = y * camera_screen.buffer_width + ASPECT_XCORRECTION(x); 126 118 len = ASPECT_XCORRECTION(len); // Scale the line length if needed 127 119 for (; len>=0; len--, offset++) … … 131 123 void draw_vline(coord x, coord y, int len, color cl) 132 124 { 133 if ((x < 0) || (x >= screen_width) || (y >= screen_height)) return;125 if ((x < 0) || (x >= camera_screen.width) || (y >= camera_screen.height)) return; 134 126 if (y < 0) { len += y; y = 0; } 135 if ((y + len) > screen_height) len = screen_height - y;127 if ((y + len) > camera_screen.height) len = camera_screen.height - y; 136 128 for (; len>=0; len--, y++) 137 129 draw_pixel(x, y, cl); … … 156 148 yMin=y1; yMax=y2; 157 149 } 158 if (xMax>= screen_width) xMax=screen_width-1;159 if (xMin>= screen_width) xMin=screen_width-1;160 if (yMax>= screen_height) yMax=screen_height-1;161 if (yMin>= screen_height) yMin=screen_height-1;150 if (xMax>=camera_screen.width) xMax=camera_screen.width-1; 151 if (xMin>=camera_screen.width) xMin=camera_screen.width-1; 152 if (yMax>=camera_screen.height) yMax=camera_screen.height-1; 153 if (yMin>=camera_screen.height) yMin=camera_screen.height-1; 162 154 163 155 for (y=yMin+(round<<1); y<=yMax-(round<<1); ++y) … … 260 252 s++; 261 253 x+=FONT_WIDTH; 262 if ((x>= screen_width) && (*s))254 if ((x>=camera_screen.width) && (*s)) 263 255 { 264 256 draw_char(x-FONT_WIDTH,y, '>', cl); … … 300 292 //------------------------------------------------------------------- 301 293 void draw_clear() { 302 memset(frame_buffer[0], COLOR_TRANSPARENT, screen_buffer_size*2);294 memset(frame_buffer[0], COLOR_TRANSPARENT, camera_screen.buffer_size*2); 303 295 } 304 296 -
branches/reyalp-flt/core/gui_draw.h
r1513 r1514 775 775 776 776 //------------------------------------------------------------------- 777 extern unsigned int screen_width, screen_height, screen_size;778 extern unsigned int screen_buffer_width, screen_buffer_height, screen_buffer_size;779 780 //-------------------------------------------------------------------781 777 extern void draw_init(); 782 778 extern void draw_set_draw_proc(void (*pixel_proc)(unsigned int offset, color cl)); -
branches/reyalp-flt/core/gui_fselect.c
r1513 r1514 352 352 main_w = SPACING/*N*/+SPACING+TAB_DIVIDER+SPACING/*S*/+SPACING+TAB_DIVIDER+SPACING/*T*/+SPACING+SCROLLBAR+chars_width; 353 353 main_h = HEAD_FONT_LINES + TAB_DIVIDER + BODY_FONT_LINES + TAB_DIVIDER + FOOT_FONT_LINES; 354 main_x = ( screen_width - main_w) >> 1;355 main_y = ( screen_height - main_h) >> 1;354 main_x = (camera_screen.width - main_w) >> 1; 355 main_y = (camera_screen.height - main_h) >> 1; 356 356 357 357 head_x = body_x = foot_x = main_x; -
branches/reyalp-flt/core/gui_mastermind.c
r1513 r1514 38 38 static void guess_box(int pos, color col) 39 39 { 40 draw_filled_rect(camera_ info.ts_button_border+100+(pos*10), BORDER+(2*curr_y*10)+2+2*curr_y, camera_info.ts_button_border+100+(pos*10)+6, BORDER+(2*curr_y*10)+8+2*curr_y , MAKE_COLOR(col,col));40 draw_filled_rect(camera_screen.ts_button_border+100+(pos*10), BORDER+(2*curr_y*10)+2+2*curr_y, camera_screen.ts_button_border+100+(pos*10)+6, BORDER+(2*curr_y*10)+8+2*curr_y , MAKE_COLOR(col,col)); 41 41 } 42 42 … … 87 87 curr_color[1]==curr_color[2] || curr_color[1]==curr_color[3] || curr_color[2]==curr_color[3]) 88 88 { 89 draw_string(camera_ info.ts_button_border+167, 130, lang_str(LANG_MENU_GAMES_DCOLOR), TEXT_COLOR);89 draw_string(camera_screen.ts_button_border+167, 130, lang_str(LANG_MENU_GAMES_DCOLOR), TEXT_COLOR); 90 90 return 0; 91 91 } … … 116 116 curr_y=7; 117 117 118 draw_filled_rect( 0, 0, screen_width-1, screen_height-1, BG_COLOR);118 draw_filled_rect( 0, 0, camera_screen.width-1, camera_screen.height-1, BG_COLOR); 119 119 120 120 for (i=0;i<4;i++) 121 121 for (j=0;j<8;j++) 122 draw_filled_rect(camera_ info.ts_button_border+BORDER+(2*i*10), BORDER+(2*j*10)+2*j, camera_info.ts_button_border+BORDER+(2*i*10)+10, BORDER+(2*j*10)+2*j+10 , COLOR_LIGHT_GRAY);123 124 draw_filled_rect(camera_ info.ts_button_border+10, BORDER+(2*j*10)+2*j, camera_info.ts_button_border+150,BORDER+(2*j*10)+2*j+1, MAKE_COLOR(BG_COLOR,COLOR_WHITE));125 draw_filled_rect(camera_ info.ts_button_border+148, 10, camera_info.ts_button_border+149,230, MAKE_COLOR(BG_COLOR,COLOR_WHITE));126 draw_filled_rect(camera_ info.ts_button_border+151, 10, camera_info.ts_button_border+152,230, MAKE_COLOR(BG_COLOR,COLOR_WHITE));122 draw_filled_rect(camera_screen.ts_button_border+BORDER+(2*i*10), BORDER+(2*j*10)+2*j, camera_screen.ts_button_border+BORDER+(2*i*10)+10, BORDER+(2*j*10)+2*j+10 , COLOR_LIGHT_GRAY); 123 124 draw_filled_rect(camera_screen.ts_button_border+10, BORDER+(2*j*10)+2*j, camera_screen.ts_button_border+150,BORDER+(2*j*10)+2*j+1, MAKE_COLOR(BG_COLOR,COLOR_WHITE)); 125 draw_filled_rect(camera_screen.ts_button_border+148, 10, camera_screen.ts_button_border+149,230, MAKE_COLOR(BG_COLOR,COLOR_WHITE)); 126 draw_filled_rect(camera_screen.ts_button_border+151, 10, camera_screen.ts_button_border+152,230, MAKE_COLOR(BG_COLOR,COLOR_WHITE)); 127 127 128 128 for (i=0; i<6;i++) 129 draw_filled_rect(camera_ info.ts_button_border+BORDER+(2*(i+7)*10)+20, 40, camera_info.ts_button_border+BORDER+(2*(i+7)*10)+35,55, MAKE_COLOR(colors[i],colors[i]));129 draw_filled_rect(camera_screen.ts_button_border+BORDER+(2*(i+7)*10)+20, 40, camera_screen.ts_button_border+BORDER+(2*(i+7)*10)+35,55, MAKE_COLOR(colors[i],colors[i])); 130 130 131 draw_filled_rect(camera_ info.ts_button_border+BORDER+(2*7*10)+20, 65, camera_info.ts_button_border+BORDER+(2*7*10)+35,80, MAKE_COLOR(COLOR_BLACK,COLOR_BLACK));132 draw_string(camera_ info.ts_button_border+BORDER+(2*7*10)+50, 65 , lang_str(LANG_MENU_GAMES_RIGHT_PLACE), TEXT_COLOR);133 134 draw_filled_rect(camera_ info.ts_button_border+BORDER+(2*7*10)+20, 90, camera_info.ts_button_border+BORDER+(2*7*10)+35,105, MAKE_COLOR(COLOR_WHITE,COLOR_WHITE));135 draw_string(camera_ info.ts_button_border+BORDER+(2*7*10)+50, 90 , lang_str(LANG_MENU_GAMES_C_IN_ANSWER), TEXT_COLOR);131 draw_filled_rect(camera_screen.ts_button_border+BORDER+(2*7*10)+20, 65, camera_screen.ts_button_border+BORDER+(2*7*10)+35,80, MAKE_COLOR(COLOR_BLACK,COLOR_BLACK)); 132 draw_string(camera_screen.ts_button_border+BORDER+(2*7*10)+50, 65 , lang_str(LANG_MENU_GAMES_RIGHT_PLACE), TEXT_COLOR); 133 134 draw_filled_rect(camera_screen.ts_button_border+BORDER+(2*7*10)+20, 90, camera_screen.ts_button_border+BORDER+(2*7*10)+35,105, MAKE_COLOR(COLOR_WHITE,COLOR_WHITE)); 135 draw_string(camera_screen.ts_button_border+BORDER+(2*7*10)+50, 90 , lang_str(LANG_MENU_GAMES_C_IN_ANSWER), TEXT_COLOR); 136 136 137 draw_string(camera_ info.ts_button_border+173, 20 , lang_str(LANG_MENU_GAMES_AC_COLORS), TEXT_COLOR);137 draw_string(camera_screen.ts_button_border+173, 20 , lang_str(LANG_MENU_GAMES_AC_COLORS), TEXT_COLOR); 138 138 139 draw_string(camera_ info.ts_button_border+167, 200 , lang_str(LANG_MENU_GAMES_CURSOR1), TEXT_COLOR);140 draw_string(camera_ info.ts_button_border+167, 185 , lang_str(LANG_MENU_GAMES_CURSOR2), TEXT_COLOR);141 draw_string(camera_ info.ts_button_border+167, 170 , lang_str(LANG_MENU_GAMES_CURSOR3), TEXT_COLOR);139 draw_string(camera_screen.ts_button_border+167, 200 , lang_str(LANG_MENU_GAMES_CURSOR1), TEXT_COLOR); 140 draw_string(camera_screen.ts_button_border+167, 185 , lang_str(LANG_MENU_GAMES_CURSOR2), TEXT_COLOR); 141 draw_string(camera_screen.ts_button_border+167, 170 , lang_str(LANG_MENU_GAMES_CURSOR3), TEXT_COLOR); 142 142 143 143 for(i=0;i<4;i++) curr_color[i]=99; … … 151 151 { 152 152 if (curr_color[curr_x] == 99) curr_color[curr_x] = 0; 153 draw_filled_rect(camera_ info.ts_button_border+BORDER+(2*curr_x*10), BORDER+(2*curr_y*10)+2*curr_y, camera_info.ts_button_border+BORDER+(2*curr_x*10)+10, BORDER+(2*curr_y*10)+2*curr_y+10 , MAKE_COLOR(colors[curr_color[curr_x]],border));153 draw_filled_rect(camera_screen.ts_button_border+BORDER+(2*curr_x*10), BORDER+(2*curr_y*10)+2*curr_y, camera_screen.ts_button_border+BORDER+(2*curr_x*10)+10, BORDER+(2*curr_y*10)+2*curr_y+10 , MAKE_COLOR(colors[curr_color[curr_x]],border)); 154 154 } 155 155 … … 157 157 { 158 158 int i; 159 draw_string(camera_ info.ts_button_border+198, 130 , lang_str(msg), TEXT_COLOR);159 draw_string(camera_screen.ts_button_border+198, 130 , lang_str(msg), TEXT_COLOR); 160 160 for (i=0; i<4;i++) 161 draw_filled_rect(camera_ info.ts_button_border+BORDER+(2*i*10), 213, camera_info.ts_button_border+BORDER+(2*i*10)+10,223, MAKE_COLOR(colors[answer[i]],colors[answer[i]]));161 draw_filled_rect(camera_screen.ts_button_border+BORDER+(2*i*10), 213, camera_screen.ts_button_border+BORDER+(2*i*10)+10,223, MAKE_COLOR(colors[answer[i]],colors[answer[i]])); 162 162 } 163 163 … … 181 181 if (GameGo == 1) 182 182 { 183 draw_string(camera_ info.ts_button_border+167, 130 , " ", TEXT_COLOR);183 draw_string(camera_screen.ts_button_border+167, 130 , " ", TEXT_COLOR); 184 184 switch (kbd_get_autoclicked_key()) 185 185 { … … 233 233 static struct tm *ttm; 234 234 235 draw_txt_string(camera_ info.ts_button_border/FONT_WIDTH+15, 0, lang_str(LANG_MENU_GAMES_MASTERMIND), MAKE_COLOR(BG_COLOR, COLOR_WHITE));235 draw_txt_string(camera_screen.ts_button_border/FONT_WIDTH+15, 0, lang_str(LANG_MENU_GAMES_MASTERMIND), MAKE_COLOR(BG_COLOR, COLOR_WHITE)); 236 236 237 237 t = time(NULL); 238 238 ttm = localtime(&t); 239 239 sprintf(buf, "Time: %2u:%02u Batt:%3d%%", ttm->tm_hour, ttm->tm_min, get_batt_perc()); 240 draw_txt_string(( screen_width-camera_info.ts_button_border)/FONT_WIDTH-2-1-1-9-2-5-4, screen_height/FONT_HEIGHT-1, buf, TEXT_COLOR);240 draw_txt_string((camera_screen.width-camera_screen.ts_button_border)/FONT_WIDTH-2-1-1-9-2-5-4, camera_screen.height/FONT_HEIGHT-1, buf, TEXT_COLOR); 241 241 } 242 242 -
branches/reyalp-flt/core/gui_mbox.c
r1513 r1514 119 119 w=(bw+BUTTON_SEP)/FONT_WIDTH+1; 120 120 121 x = ( vid_get_bitmap_screen_width()- w * FONT_WIDTH) >> 1;122 y = ( vid_get_bitmap_screen_height()- (h+2) * FONT_HEIGHT) >> 1;121 x = (camera_screen.width - w * FONT_WIDTH) >> 1; 122 y = (camera_screen.height - (h+2) * FONT_HEIGHT) >> 1; 123 123 draw_rect_shadow(x-3, y-3, x+w*FONT_WIDTH+5, y+(h+2)*FONT_HEIGHT+SPACING_BTN+2+SPACING_TITLE+8, COLOR_BLACK, 3); //shadow 124 124 draw_filled_rect_thick(x-4, y-4, x+w*FONT_WIDTH+4, y+(h+2)*FONT_HEIGHT+SPACING_BTN+2+SPACING_TITLE+7, MAKE_COLOR(COLOR_GREY, COLOR_WHITE), 3); // main box -
branches/reyalp-flt/core/gui_menu.c
r1513 r1514 55 55 } 56 56 57 num_lines = screen_height/rbf_font_height()-1;57 num_lines = camera_screen.height/rbf_font_height()-1; 58 58 x = CAM_MENU_BORDERWIDTH; 59 w = screen_width-x-x;59 w = camera_screen.width-x-x; 60 60 len_bool = rbf_str_width("\x95"); 61 61 len_int = rbf_str_width("99999"); … … 602 602 if (count > num_lines) 603 603 { 604 y = (( screen_height-(num_lines-1)*rbf_font_height())>>1);604 y = ((camera_screen.height-(num_lines-1)*rbf_font_height())>>1); 605 605 wplus = 8; 606 606 // scrollbar background … … 612 612 if (conf.menu_center) 613 613 { 614 y = ( screen_height-(count-1)*rbf_font_height())>>1;614 y = (camera_screen.height-(count-1)*rbf_font_height())>>1; 615 615 } 616 616 else 617 617 { 618 y = (( screen_height-(num_lines-1)*rbf_font_height())>>1);618 y = ((camera_screen.height-(num_lines-1)*rbf_font_height())>>1); 619 619 } 620 620 } -
branches/reyalp-flt/core/gui_osd.c
r1513 r1514 140 140 } 141 141 sprintf(osd_buf, " %s: x:%d y:%d s:%d ", lang_str(osd[curr_item].title), osd[curr_item].pos->x, osd[curr_item].pos->y, step); 142 draw_string(0, (osd[curr_item].pos->x<strlen(osd_buf)*FONT_WIDTH+4 && osd[curr_item].pos->y<FONT_HEIGHT+4)? screen_height-FONT_HEIGHT:0,142 draw_string(0, (osd[curr_item].pos->x<strlen(osd_buf)*FONT_WIDTH+4 && osd[curr_item].pos->y<FONT_HEIGHT+4)?camera_screen.height-FONT_HEIGHT:0, 143 143 osd_buf, MAKE_COLOR(COLOR_RED, COLOR_WHITE)); 144 144 osd_to_draw = 0; … … 156 156 break; 157 157 case KEY_RIGHT: 158 if (osd[curr_item].pos->x < screen_width-osd[curr_item].size.x) {159 osd[curr_item].pos->x+=( screen_width-osd[curr_item].size.x-osd[curr_item].pos->x>step)?step:screen_width-osd[curr_item].size.x-osd[curr_item].pos->x;158 if (osd[curr_item].pos->x < camera_screen.width-osd[curr_item].size.x) { 159 osd[curr_item].pos->x+=(camera_screen.width-osd[curr_item].size.x-osd[curr_item].pos->x>step)?step:camera_screen.width-osd[curr_item].size.x-osd[curr_item].pos->x; 160 160 osd_to_draw = 1; 161 161 } else 162 osd[curr_item].pos->x = screen_width-osd[curr_item].size.x;162 osd[curr_item].pos->x = camera_screen.width-osd[curr_item].size.x; 163 163 break; 164 164 case KEY_UP: … … 169 169 break; 170 170 case KEY_DOWN: 171 if (osd[curr_item].pos->y < screen_height-osd[curr_item].size.y) {172 osd[curr_item].pos->y+=( screen_height-osd[curr_item].size.y-osd[curr_item].pos->y>step)?step:screen_height-osd[curr_item].size.y-osd[curr_item].pos->y;171 if (osd[curr_item].pos->y < camera_screen.height-osd[curr_item].size.y) { 172 osd[curr_item].pos->y+=(camera_screen.height-osd[curr_item].size.y-osd[curr_item].pos->y>step)?step:camera_screen.height-osd[curr_item].size.y-osd[curr_item].pos->y; 173 173 osd_to_draw = 1; 174 174 } else 175 osd[curr_item].pos->y = screen_height-osd[curr_item].size.y;175 osd[curr_item].pos->y = camera_screen.height-osd[curr_item].size.y; 176 176 break; 177 177 case KEY_SET: … … 267 267 timer = 0; 268 268 #if defined (CAM_ZEBRA_NOBUF) 269 buffer_size= screen_buffer_size-ZEBRA_HMARGIN0*screen_buffer_width;269 buffer_size=camera_screen.buffer_size-ZEBRA_HMARGIN0*camera_screen.buffer_width; 270 270 buf=vid_get_bitmap_fb(); 271 271 #elif defined (CAM_ZEBRA_ASPECT_ADJUST) 272 buffer_size= screen_buffer_size-ZEBRA_HMARGIN0*screen_buffer_width;272 buffer_size=camera_screen.buffer_size-ZEBRA_HMARGIN0*camera_screen.buffer_width; 273 273 buf = malloc(buffer_size); 274 274 //~ if (!buf) draw_txt_string(0, 14, "Warn: No space to allocate zebra buffer: restart camera", MAKE_COLOR(COLOR_ALT_BG, COLOR_FG)); … … 277 277 //~ msleep(50); 278 278 #else 279 buf = malloc( screen_buffer_size);279 buf = malloc(camera_screen.buffer_size); 280 280 #endif 281 281 scr_buf = vid_get_bitmap_fb(); 282 282 #if ZEBRA_CANONOSD_BORDER_RESTORE 283 cur_buf_top = malloc( screen_buffer_width * ZFIX_TOP);284 cur_buf_bot = malloc( screen_buffer_width * ZFIX_BOTTOM);283 cur_buf_top = malloc(camera_screen.buffer_width * ZFIX_TOP); 284 cur_buf_bot = malloc(camera_screen.buffer_width * ZFIX_BOTTOM); 285 285 #if defined (CAM_ZEBRA_ASPECT_ADJUST) 286 if (cur_buf_top) memset(cur_buf_top,0, screen_buffer_width * ZFIX_TOP);287 if (cur_buf_bot) memset(cur_buf_bot,0, screen_buffer_width * ZFIX_BOTTOM);286 if (cur_buf_top) memset(cur_buf_top,0,camera_screen.buffer_width * ZFIX_TOP); 287 if (cur_buf_bot) memset(cur_buf_bot,0,camera_screen.buffer_width * ZFIX_BOTTOM); 288 288 #endif 289 289 #else 290 cur_buf = malloc( screen_buffer_size);290 cur_buf = malloc(camera_screen.buffer_size); 291 291 #endif 292 292 // cleanup and disable zebra if any mallocs failed … … 303 303 #if CAM_HAS_VARIABLE_ASPECT 304 304 else // in variable aspect, the borders would never be cleared 305 memset(buf,0, screen_buffer_size);305 memset(buf,0,camera_screen.buffer_size); 306 306 #endif 307 307 } … … 329 329 //------------------------------------------------------------------- 330 330 int draw_guard_pixel() { 331 unsigned char* buffer1 = vid_get_bitmap_fb()+ screen_buffer_size/2;332 unsigned char* buffer2 = buffer1+ screen_buffer_size;331 unsigned char* buffer1 = vid_get_bitmap_fb()+camera_screen.buffer_size/2; 332 unsigned char* buffer2 = buffer1+camera_screen.buffer_size; 333 333 int has_disappeared=0; 334 334 … … 344 344 unsigned int a; 345 345 346 a= screen_buffer_size - screen_buffer_width * ZFIX_BOTTOM;346 a=camera_screen.buffer_size - camera_screen.buffer_width * ZFIX_BOTTOM; 347 347 348 if (idx < screen_buffer_width * ZFIX_TOP) return(cur_buf_top[idx]);349 if (idx >= a && idx < screen_buffer_size) return(cur_buf_bot[idx - a]);348 if (idx < camera_screen.buffer_width * ZFIX_TOP) return(cur_buf_top[idx]); 349 if (idx >= a && idx < camera_screen.buffer_size) return(cur_buf_bot[idx - a]); 350 350 return (COLOR_TRANSPARENT); 351 351 } … … 485 485 if (f) { 486 486 if (viewport_yoffset > 0) { // clear top & bottom areas of buffer if image height if smaller than viewport 487 memset(buf, COLOR_TRANSPARENT, viewport_yoffset* screen_buffer_width);488 memset(buf+(viewport_yoffset+viewport_height)* screen_buffer_width, COLOR_TRANSPARENT, viewport_yoffset*screen_buffer_width);487 memset(buf, COLOR_TRANSPARENT, viewport_yoffset*camera_screen.buffer_width); 488 memset(buf+(viewport_yoffset+viewport_height)*camera_screen.buffer_width, COLOR_TRANSPARENT, viewport_yoffset*camera_screen.buffer_width); 489 489 } 490 490 int step_x, step_v, sy, sx; … … 492 492 if (conf.zebra_multichannel) {step_x=2; step_v=6;} else {step_x=1; step_v=3;} 493 493 for (y=viewport_yoffset, v=viewport_image_offset; y<viewport_yoffset+viewport_height; ++y) { 494 sy=y* screen_buffer_width;494 sy=y*camera_screen.buffer_width; 495 495 sx=viewport_xoffset; 496 496 if (viewport_xoffset > 0) { // clear left & right areas of buffer if image width if smaller than viewport … … 544 544 //~ #if ZEBRA_CANONOSD_BORDER_RESTORE 545 545 //~ // copy rescued Canon OSD to buf[] top/bottom parts and fill center with transparent color: 546 //~ memcpy(buf, cur_buf_top, screen_buffer_width * ZFIX_TOP);547 //~ memcpy(buf + screen_buffer_size - screen_buffer_width * ZFIX_BOTTOM, cur_buf_bot, screen_buffer_width * ZFIX_BOTTOM);548 //~ for (s = screen_buffer_width*ZFIX_TOP; s < screen_buffer_size-screen_buffer_width*ZFIX_BOTTOM; s++) {546 //~ memcpy(buf, cur_buf_top, camera_screen.buffer_width * ZFIX_TOP); 547 //~ memcpy(buf + camera_screen.buffer_size - camera_screen.buffer_width * ZFIX_BOTTOM, cur_buf_bot, camera_screen.buffer_width * ZFIX_BOTTOM); 548 //~ for (s = camera_screen.buffer_width*ZFIX_TOP; s < camera_screen.buffer_size-camera_screen.buffer_width*ZFIX_BOTTOM; s++) { 549 549 //~ buf[s]=COLOR_TRANSPARENT; 550 550 //~ } 551 551 //~ #else 552 552 //~ // copy from a complete Canon OSD rescue screen dump 553 //~ memcpy(buf, cur_buf, screen_buffer_size);553 //~ memcpy(buf, cur_buf, camera_screen.buffer_size); 554 554 //~ #endif 555 555 } else { // Not REC mode … … 563 563 if (buf!=scr_buf) 564 564 memcpy(scr_buf, buf, buffer_size); 565 memcpy(scr_buf+ screen_buffer_size, buf, buffer_size);565 memcpy(scr_buf+camera_screen.buffer_size, buf, buffer_size); 566 566 } 567 567 need_restore=0; … … 575 575 if (buf!=scr_buf) 576 576 memcpy(scr_buf, buf, buffer_size); 577 memcpy(scr_buf+ screen_buffer_size, buf, buffer_size);577 memcpy(scr_buf+camera_screen.buffer_size, buf, buffer_size); 578 578 579 579 need_restore=1; … … 609 609 { 610 610 bWide = 0; 611 //aspOffset = ( screen_width - (screen_width * 12 / 16)) / 2; // = actual calculation, simplified below612 aspOffset = screen_width / 8; // half of the difference in width between equal height 16:9 and 4:3 screens, = black bar width611 //aspOffset = (camera_screen.width - (camera_screen.width * 12 / 16)) / 2; // = actual calculation, simplified below 612 aspOffset = camera_screen.width / 8; // half of the difference in width between equal height 16:9 and 4:3 screens, = black bar width 613 613 } 614 614 #endif … … 632 632 // rescue Canon OSD from scr_buf to cur_buf_top and _bot: 633 633 if (n==1) { 634 memcpy(cur_buf_top, scr_buf, screen_buffer_width*ZFIX_TOP);635 memcpy(cur_buf_bot, scr_buf + screen_buffer_size - screen_buffer_width*ZFIX_BOTTOM, screen_buffer_width*ZFIX_BOTTOM);634 memcpy(cur_buf_top, scr_buf, camera_screen.buffer_width*ZFIX_TOP); 635 memcpy(cur_buf_bot, scr_buf + camera_screen.buffer_size - camera_screen.buffer_width*ZFIX_BOTTOM, camera_screen.buffer_width*ZFIX_BOTTOM); 636 636 } 637 637 else { 638 memcpy(cur_buf_top, scr_buf + screen_buffer_size, screen_buffer_width*ZFIX_TOP);639 memcpy(cur_buf_bot, scr_buf + 2* screen_buffer_size - screen_buffer_width*ZFIX_BOTTOM, screen_buffer_width*ZFIX_BOTTOM);638 memcpy(cur_buf_top, scr_buf + camera_screen.buffer_size, camera_screen.buffer_width*ZFIX_TOP); 639 memcpy(cur_buf_bot, scr_buf + 2*camera_screen.buffer_size - camera_screen.buffer_width*ZFIX_BOTTOM, camera_screen.buffer_width*ZFIX_BOTTOM); 640 640 } 641 641 #else 642 642 // rescue Canon OSD from cur_buf 643 if(n==1) memcpy(cur_buf, scr_buf, screen_buffer_size);644 else memcpy(cur_buf, scr_buf+ screen_buffer_size, screen_buffer_size);643 if(n==1) memcpy(cur_buf, scr_buf, camera_screen.buffer_size); 644 else memcpy(cur_buf, scr_buf+camera_screen.buffer_size, camera_screen.buffer_size); 645 645 #endif 646 646 } … … 686 686 s = aspOffset; 687 687 for (y=1, v=0; y<=viewport_height; ++y) { 688 for (x=0; x< screen_width; x+=step_x, s+=step_x, v+=step_v) {688 for (x=0; x<camera_screen.width; x+=step_x, s+=step_x, v+=step_v) { 689 689 register int yy, uu, vv; 690 690 int sel; 691 691 692 if (!bWide && (x + aspOffset >= screen_width - aspOffset)) continue; // do not draw "outside screen"692 if (!bWide && (x + aspOffset >= camera_screen.width - aspOffset)) continue; // do not draw "outside screen" 693 693 694 694 yy = img_buf[v+1]; … … 718 718 } 719 719 } 720 s+= screen_buffer_width-screen_width;721 if (y* screen_height/viewport_height == (s+screen_buffer_width)/screen_buffer_width) {722 memcpy(buf+s, buf+s- screen_buffer_width, screen_buffer_width);723 s+= screen_buffer_width;720 s+=camera_screen.buffer_width-camera_screen.width; 721 if (y*camera_screen.height/viewport_height == (s+camera_screen.buffer_width)/camera_screen.buffer_width) { 722 memcpy(buf+s, buf+s-camera_screen.buffer_width, camera_screen.buffer_width); 723 s+=camera_screen.buffer_width; 724 724 } 725 725 } … … 736 736 #if ZEBRA_CANONOSD_BORDER_RESTORE 737 737 // copy rescued Canon OSD to buf[] top/bottom parts and fill center with transparent color: 738 memcpy(buf, cur_buf_top, screen_buffer_width * ZFIX_TOP);739 memcpy(buf + screen_buffer_size - screen_buffer_width * ZFIX_BOTTOM, cur_buf_bot, screen_buffer_width * ZFIX_BOTTOM);740 for (s = screen_buffer_width*ZFIX_TOP; s < screen_buffer_size-screen_buffer_width*ZFIX_BOTTOM; s++) {738 memcpy(buf, cur_buf_top, camera_screen.buffer_width * ZFIX_TOP); 739 memcpy(buf + camera_screen.buffer_size - camera_screen.buffer_width * ZFIX_BOTTOM, cur_buf_bot, camera_screen.buffer_width * ZFIX_BOTTOM); 740 for (s = camera_screen.buffer_width*ZFIX_TOP; s < camera_screen.buffer_size-camera_screen.buffer_width*ZFIX_BOTTOM; s++) { 741 741 buf[s]=COLOR_TRANSPARENT; 742 742 } 743 743 #else 744 744 // copy from a complete Canon OSD rescue screen dump 745 memcpy(buf, cur_buf, screen_buffer_size);745 memcpy(buf, cur_buf, camera_screen.buffer_size); 746 746 #endif 747 747 } else { // Not REC mode 748 748 // No Canon OSD restore, fill buf[] with transparent color: 749 memset(buf, COLOR_TRANSPARENT, screen_buffer_size);749 memset(buf, COLOR_TRANSPARENT, camera_screen.buffer_size); 750 750 } 751 751 // draw CHDK osd and histogram to buf[] (if enabled in config) 752 752 gui_osd_draw_zebra_osd(); 753 753 // copy buf[] to both display buffers 754 memcpy(scr_buf, buf, screen_buffer_size);755 memcpy(scr_buf+ screen_buffer_size, buf, screen_buffer_size);754 memcpy(scr_buf, buf, camera_screen.buffer_size); 755 memcpy(scr_buf+camera_screen.buffer_size, buf, camera_screen.buffer_size); 756 756 } 757 757 need_restore=0; … … 763 763 gui_osd_draw_zebra_osd(); 764 764 // copy buf[] to both display buffers 765 memcpy(scr_buf, buf, screen_buffer_size);766 memcpy(scr_buf+ screen_buffer_size, buf, screen_buffer_size);765 memcpy(scr_buf, buf, camera_screen.buffer_size); 766 memcpy(scr_buf+camera_screen.buffer_size, buf, camera_screen.buffer_size); 767 767 768 768 need_restore=1; -
branches/reyalp-flt/core/gui_palette.c
r1513 r1514 82 82 static char buf[64]; 83 83 84 xl = camera_ info.ts_button_border;85 xr = screen_width - camera_info.ts_button_border;84 xl = camera_screen.ts_button_border; 85 xr = camera_screen.width - camera_screen.ts_button_border; 86 86 87 87 if (gui_palette_redraw) … … 103 103 104 104 // Draw gray borders 105 draw_rect_thick(xl, DISP_TOP-BORDER_SIZE, xr-1, screen_height-1, COLOR_GREY, BORDER_SIZE); // outer border105 draw_rect_thick(xl, DISP_TOP-BORDER_SIZE, xr-1, camera_screen.height-1, COLOR_GREY, BORDER_SIZE); // outer border 106 106 draw_filled_rect(xl+DISP_RIGHT+1, DISP_TOP, xl+DISP_RIGHT+BORDER_SIZE, DISP_BOTTOM, MAKE_COLOR(COLOR_GREY, COLOR_GREY)); //middle 107 107 -
branches/reyalp-flt/core/gui_read.c
r1513 r1514 47 47 static void gui_read_draw_batt() { 48 48 sprintf(buffer, "Batt:%3d%%", get_batt_perc()); 49 draw_txt_string(( screen_width-camera_info.ts_button_border)/FONT_WIDTH-2-1-1-9, 0, buffer, MAKE_COLOR(COLOR_BLACK, COLOR_WHITE));49 draw_txt_string((camera_screen.width-camera_screen.ts_button_border)/FONT_WIDTH-2-1-1-9, 0, buffer, MAKE_COLOR(COLOR_BLACK, COLOR_WHITE)); 50 50 } 51 51 … … 58 58 ttm = localtime(&t); 59 59 sprintf(buffer, "%2u:%02u", ttm->tm_hour, ttm->tm_min); 60 draw_txt_string(( screen_width-camera_info.ts_button_border)/FONT_WIDTH-2-1-1-9-2-5, 0, buffer, MAKE_COLOR(COLOR_BLACK, COLOR_WHITE));60 draw_txt_string((camera_screen.width-camera_screen.ts_button_border)/FONT_WIDTH-2-1-1-9-2-5, 0, buffer, MAKE_COLOR(COLOR_BLACK, COLOR_WHITE)); 61 61 } 62 62 63 63 //------------------------------------------------------------------- 64 64 static void gui_read_draw_scroll_indicator() { 65 draw_txt_char(( screen_width-camera_info.ts_button_border)/FONT_WIDTH-2, 0, (*conf_reader_autoscroll)?((pause)?'\x05':'\x04'):'\x03', MAKE_COLOR(COLOR_BLACK, COLOR_WHITE)); //title infoline65 draw_txt_char((camera_screen.width-camera_screen.ts_button_border)/FONT_WIDTH-2, 0, (*conf_reader_autoscroll)?((pause)?'\x05':'\x04'):'\x03', MAKE_COLOR(COLOR_BLACK, COLOR_WHITE)); //title infoline 66 66 } 67 67 … … 81 81 pause = 0; 82 82 read_to_draw = 1; 83 x=camera_ info.ts_button_border+6;83 x=camera_screen.ts_button_border+6; 84 84 y=FONT_HEIGHT; 85 w= screen_width-camera_info.ts_button_border*2-6-6-8;86 h= screen_height-y;85 w=camera_screen.width-camera_screen.ts_button_border*2-6-6-8; 86 h=camera_screen.height-y; 87 87 last_time = get_tick_count(); 88 88 … … 90 90 gui_set_mode(&GUI_MODE_READ); 91 91 92 draw_filled_rect(0, 0, screen_width-1, y-1, MAKE_COLOR(COLOR_BLACK, COLOR_BLACK));93 draw_filled_rect(0, y, screen_width-1, screen_height-1, MAKE_COLOR((*conf_reader_color>>8)&0xFF, (*conf_reader_color>>8)&0xFF));92 draw_filled_rect(0, 0, camera_screen.width-1, y-1, MAKE_COLOR(COLOR_BLACK, COLOR_BLACK)); 93 draw_filled_rect(0, y, camera_screen.width-1, camera_screen.height-1, MAKE_COLOR((*conf_reader_color>>8)&0xFF, (*conf_reader_color>>8)&0xFF)); 94 94 95 95 gui_read_draw_scroll_indicator(); … … 190 190 191 191 sprintf(buffer, "(%3d%%) %d/%d ", (read_file_size)?(*conf_reader_pos*100/read_file_size):0, *conf_reader_pos, read_file_size); 192 buffer[ screen_width/FONT_WIDTH]=0;193 draw_txt_string((camera_ info.ts_button_border/FONT_WIDTH), 0, buffer, MAKE_COLOR(COLOR_BLACK, COLOR_WHITE)); //title infoline192 buffer[camera_screen.width/FONT_WIDTH]=0; 193 draw_txt_string((camera_screen.ts_button_border/FONT_WIDTH), 0, buffer, MAKE_COLOR(COLOR_BLACK, COLOR_WHITE)); //title infoline 194 194 195 195 // scrollbar -
branches/reyalp-flt/core/gui_reversi.c
r1513 r1514 205 205 uchar x, y; 206 206 207 draw_filled_rect(0, 0, screen_width-1, screen_height-1, MAKE_COLOR(SCREEN_COLOR, SCREEN_COLOR));207 draw_filled_rect(0, 0, camera_screen.width-1, camera_screen.height-1, MAKE_COLOR(SCREEN_COLOR, SCREEN_COLOR)); 208 208 for (y=0; y<8; ++y) { 209 209 for (x=0; x<8; ++x) { … … 229 229 InGame=0; 230 230 231 field_size = ( screen_height-2*FONT_HEIGHT-4)&0xFFF8;232 field_x = camera_ info.ts_button_border+FONT_WIDTH+8;233 field_y = ( screen_height-field_size)>>1;231 field_size = (camera_screen.height-2*FONT_HEIGHT-4)&0xFFF8; 232 field_x = camera_screen.ts_button_border+FONT_WIDTH+8; 233 field_y = (camera_screen.height-field_size)>>1; 234 234 cell_size = field_size >> 3; 235 235 … … 332 332 //------------------------------------------------------------------- 333 333 static void redrawstatus() { 334 int x=camera_ info.ts_button_border+field_size+FONT_WIDTH*2+23, y = 25;334 int x=camera_screen.ts_button_border+field_size+FONT_WIDTH*2+23, y = 25; 335 335 if (InGame) { 336 336 if (CurrPlayer==FIELD_PLAYER1) { … … 413 413 414 414 sprintf(buf, "Batt:%3d%%", get_batt_perc()); 415 draw_txt_string(( screen_width-camera_info.ts_button_border)/FONT_WIDTH-2-9, screen_height/FONT_HEIGHT-1, buf, MAKE_COLOR(SCREEN_COLOR, COLOR_WHITE));415 draw_txt_string((camera_screen.width-camera_screen.ts_button_border)/FONT_WIDTH-2-9, camera_screen.height/FONT_HEIGHT-1, buf, MAKE_COLOR(SCREEN_COLOR, COLOR_WHITE)); 416 416 417 417 Timer(); -
branches/reyalp-flt/core/gui_snake.c
r1513 r1514 295 295 296 296 static void game_over(){ 297 draw_filled_rect(0,0, screen_width,screen_height, COLOR_WHITE);297 draw_filled_rect(0,0,camera_screen.width,camera_screen.height, COLOR_WHITE); 298 298 sprintf(str_buf,"Points: %d",points); 299 299 draw_string(0,0,str_buf, MAKE_COLOR(COLOR_WHITE, COLOR_BLUE)); … … 423 423 424 424 int gui_snake_init() { 425 draw_filled_rect(0,0, screen_width,screen_height, COLOR_WHITE);425 draw_filled_rect(0,0,camera_screen.width,camera_screen.height, COLOR_WHITE); 426 426 snake_start(); 427 427 gui_set_mode(&GUI_MODE_SNAKE); -
branches/reyalp-flt/core/gui_sokoban.c
r1513 r1514 262 262 //------------------------------------------------------------------- 263 263 static void sokoban_draw_box(int x, int y, color cl) { 264 draw_filled_rect(camera_ info.ts_button_border+x*cell_size, y*cell_size, camera_info.ts_button_border+x*cell_size+cell_size-1, y*cell_size+cell_size-1, cl);265 draw_line(camera_ info.ts_button_border+x*cell_size+2, y*cell_size, camera_info.ts_button_border+x*cell_size+2, y*cell_size+cell_size-1, cl);266 draw_line(camera_ info.ts_button_border+x*cell_size+cell_size-1-2, y*cell_size, camera_info.ts_button_border+x*cell_size+cell_size-1-2, y*cell_size+cell_size-1, cl);267 draw_line(camera_ info.ts_button_border+x*cell_size+2, y*cell_size+2, camera_info.ts_button_border+x*cell_size+cell_size-1-2, y*cell_size+2, cl);268 draw_line(camera_ info.ts_button_border+x*cell_size+2, y*cell_size+cell_size-1-2, camera_info.ts_button_border+x*cell_size+cell_size-1-2, y*cell_size+cell_size-1-2, cl);264 draw_filled_rect(camera_screen.ts_button_border+x*cell_size, y*cell_size, camera_screen.ts_button_border+x*cell_size+cell_size-1, y*cell_size+cell_size-1, cl); 265 draw_line(camera_screen.ts_button_border+x*cell_size+2, y*cell_size, camera_screen.ts_button_border+x*cell_size+2, y*cell_size+cell_size-1, cl); 266 draw_line(camera_screen.ts_button_border+x*cell_size+cell_size-1-2, y*cell_size, camera_screen.ts_button_border+x*cell_size+cell_size-1-2, y*cell_size+cell_size-1, cl); 267 draw_line(camera_screen.ts_button_border+x*cell_size+2, y*cell_size+2, camera_screen.ts_button_border+x*cell_size+cell_size-1-2, y*cell_size+2, cl); 268 draw_line(camera_screen.ts_button_border+x*cell_size+2, y*cell_size+cell_size-1-2, camera_screen.ts_button_border+x*cell_size+cell_size-1-2, y*cell_size+cell_size-1-2, cl); 269 269 } 270 270 … … 328 328 *conf_sokoban_level = 0; 329 329 } 330 cell_size = screen_height/FIELD_HEIGHT;330 cell_size = camera_screen.height/FIELD_HEIGHT; 331 331 sokoban_set_level(*conf_sokoban_level); 332 332 // if the file is no longer readable, set_level will set this … … 386 386 387 387 if (need_redraw_all) { 388 draw_filled_rect(0, 0, screen_width-1, screen_height-1, MAKE_COLOR(SCREEN_COLOR, SCREEN_COLOR));388 draw_filled_rect(0, 0, camera_screen.width-1, camera_screen.height-1, MAKE_COLOR(SCREEN_COLOR, SCREEN_COLOR)); 389 389 need_redraw_all = 0; 390 390 need_redraw = 1; … … 397 397 switch (field[y][x]) { 398 398 case MARKER_WALL: 399 draw_filled_rect(camera_ info.ts_button_border+x*cell_size, y*cell_size, camera_info.ts_button_border+x*cell_size+cell_size-1, y*cell_size+cell_size-1, MAKE_COLOR(WALL_COLOR_1, WALL_COLOR_2));399 draw_filled_rect(camera_screen.ts_button_border+x*cell_size, y*cell_size, camera_screen.ts_button_border+x*cell_size+cell_size-1, y*cell_size+cell_size-1, MAKE_COLOR(WALL_COLOR_1, WALL_COLOR_2)); 400 400 break; 401 401 case MARKER_BOX: … … 403 403 break; 404 404 case MARKER_PLACE: 405 draw_filled_rect(camera_ info.ts_button_border+x*cell_size, y*cell_size, camera_info.ts_button_border+x*cell_size+cell_size-1, y*cell_size+cell_size-1, MAKE_COLOR(SCREEN_COLOR, SCREEN_COLOR));406 draw_filled_rect(camera_ info.ts_button_border+x*cell_size+4, y*cell_size+4, camera_info.ts_button_border+x*cell_size+cell_size-1-4, y*cell_size+cell_size-1-4, MAKE_COLOR(PLACE_COLOR_1, PLACE_COLOR_2));405 draw_filled_rect(camera_screen.ts_button_border+x*cell_size, y*cell_size, camera_screen.ts_button_border+x*cell_size+cell_size-1, y*cell_size+cell_size-1, MAKE_COLOR(SCREEN_COLOR, SCREEN_COLOR)); 406 draw_filled_rect(camera_screen.ts_button_border+x*cell_size+4, y*cell_size+4, camera_screen.ts_button_border+x*cell_size+cell_size-1-4, y*cell_size+cell_size-1-4, MAKE_COLOR(PLACE_COLOR_1, PLACE_COLOR_2)); 407 407 break; 408 408 case MARKER_BOX_PLACE: … … 411 411 case MARKER_PLAYER: 412 412 case MARKER_PLAYER_PLACE: 413 draw_filled_rect(camera_ info.ts_button_border+x*cell_size, y*cell_size, camera_info.ts_button_border+x*cell_size+cell_size-1, y*cell_size+cell_size-1, MAKE_COLOR(SCREEN_COLOR, SCREEN_COLOR));414 draw_filled_ellipse(camera_ info.ts_button_border+x*cell_size+(cell_size>>1)-1, y*cell_size+(cell_size>>1)-1, (cell_size>>1)-3, (cell_size>>1)-3, MAKE_COLOR(PLAYER_COLOR_1, PLAYER_COLOR_2));413 draw_filled_rect(camera_screen.ts_button_border+x*cell_size, y*cell_size, camera_screen.ts_button_border+x*cell_size+cell_size-1, y*cell_size+cell_size-1, MAKE_COLOR(SCREEN_COLOR, SCREEN_COLOR)); 414 draw_filled_ellipse(camera_screen.ts_button_border+x*cell_size+(cell_size>>1)-1, y*cell_size+(cell_size>>1)-1, (cell_size>>1)-3, (cell_size>>1)-3, MAKE_COLOR(PLAYER_COLOR_1, PLAYER_COLOR_2)); 415 415 break; 416 416 case MARKER_EMPTY: 417 417 default: 418 draw_filled_rect(camera_ info.ts_button_border+x*cell_size, y*cell_size, camera_info.ts_button_border+x*cell_size+cell_size-1, y*cell_size+cell_size-1, MAKE_COLOR(SCREEN_COLOR, SCREEN_COLOR));418 draw_filled_rect(camera_screen.ts_button_border+x*cell_size, y*cell_size, camera_screen.ts_button_border+x*cell_size+cell_size-1, y*cell_size+cell_size-1, MAKE_COLOR(SCREEN_COLOR, SCREEN_COLOR)); 419 419 break; 420 420 } … … 422 422 } 423 423 424 draw_line(camera_ info.ts_button_border+cell_size*FIELD_WIDTH, 0, camera_info.ts_button_border+cell_size*FIELD_WIDTH, screen_height-1, COLOR_WHITE);425 draw_line(camera_ info.ts_button_border+cell_size*FIELD_WIDTH+1, 0, camera_info.ts_button_border+cell_size*FIELD_WIDTH+1, screen_height-1, COLOR_BLACK);424 draw_line(camera_screen.ts_button_border+cell_size*FIELD_WIDTH, 0, camera_screen.ts_button_border+cell_size*FIELD_WIDTH, camera_screen.height-1, COLOR_WHITE); 425 draw_line(camera_screen.ts_button_border+cell_size*FIELD_WIDTH+1, 0, camera_screen.ts_button_border+cell_size*FIELD_WIDTH+1, camera_screen.height-1, COLOR_BLACK); 426 426 427 427 sprintf(str, "%s: %-6d", lang_str(LANG_SOKOBAN_TEXT_LEVEL), *conf_sokoban_level+1); 428 draw_string(camera_ info.ts_button_border+cell_size*FIELD_WIDTH+2, 8, str, MAKE_COLOR(SCREEN_COLOR, COLOR_WHITE));428 draw_string(camera_screen.ts_button_border+cell_size*FIELD_WIDTH+2, 8, str, MAKE_COLOR(SCREEN_COLOR, COLOR_WHITE)); 429 429 sprintf(str, "%s: %-6d", lang_str(LANG_SOKOBAN_TEXT_MOVES), moves); 430 draw_string(camera_ info.ts_button_border+cell_size*FIELD_WIDTH+2, 8+FONT_HEIGHT, str, MAKE_COLOR(SCREEN_COLOR, COLOR_WHITE));431 432 //draw_filled_rect(cell_size*FIELD_WIDTH+2, 8+FONT_HEIGHT*2, screen_width-1, screen_height-1, MAKE_COLOR(SCREEN_COLOR, SCREEN_COLOR));430 draw_string(camera_screen.ts_button_border+cell_size*FIELD_WIDTH+2, 8+FONT_HEIGHT, str, MAKE_COLOR(SCREEN_COLOR, COLOR_WHITE)); 431 432 //draw_filled_rect(cell_size*FIELD_WIDTH+2, 8+FONT_HEIGHT*2, camera_screen.width-1, camera_screen.height-1, MAKE_COLOR(SCREEN_COLOR, SCREEN_COLOR)); 433 433 434 434 if (sokoban_finished()) { … … 439 439 440 440 sprintf(str, "Batt:%3d%%", get_batt_perc()); 441 draw_txt_string(( screen_width-camera_info.ts_button_border)/FONT_WIDTH-2-9, screen_height/FONT_HEIGHT-1, str, MAKE_COLOR(SCREEN_COLOR, COLOR_WHITE));441 draw_txt_string((camera_screen.width-camera_screen.ts_button_border)/FONT_WIDTH-2-9, camera_screen.height/FONT_HEIGHT-1, str, MAKE_COLOR(SCREEN_COLOR, COLOR_WHITE)); 442 442 } 443 443 -
branches/reyalp-flt/core/gui_space.c
r1355 r1514 50 50 51 51 // Clamp co-ordinates to keep bar on screen 52 if (xx > ( screen_width-width-4)) {53 xx = screen_width-width-4;54 } 55 if (yy > ( screen_height-height-4)) {56 yy = screen_height-height-4;52 if (xx > (camera_screen.width-width-4)) { 53 xx = camera_screen.width-width-4; 54 } 55 if (yy > (camera_screen.height-height-4)) { 56 yy = camera_screen.height-height-4; 57 57 } 58 58 … … 65 65 66 66 // Setup and draw outer shape 67 spacebar_outer(conf.space_hor_pos, ( screen_width / (4 >> conf.space_bar_size)) - 4, conf.space_bar_width);67 spacebar_outer(conf.space_hor_pos, (camera_screen.width / (4 >> conf.space_bar_size)) - 4, conf.space_bar_width); 68 68 69 69 // space bar fill … … 79 79 80 80 // Setup and draw outer shape 81 spacebar_outer(conf.space_ver_pos, conf.space_bar_width, ( screen_height / (4 >> conf.space_bar_size)) - 4);81 spacebar_outer(conf.space_ver_pos, conf.space_bar_width, (camera_screen.height / (4 >> conf.space_bar_size)) - 4); 82 82 83 83 // space bar fill -
branches/reyalp-flt/core/gui_tetris.c
r1513 r1514 158 158 for (j = 0; j < 4; ++j) { 159 159 if (game->nextBlock.cells[i][j] != EMPTY_CELL) { 160 draw_filled_rect(camera_ info.ts_button_border+PREVIEW_X + (TILE_SIZE * i),160 draw_filled_rect(camera_screen.ts_button_border+PREVIEW_X + (TILE_SIZE * i), 161 161 PREVIEW_Y + (TILE_SIZE * j), 162 camera_ info.ts_button_border+PREVIEW_X + (TILE_SIZE * i)+TILE_SIZE-1,162 camera_screen.ts_button_border+PREVIEW_X + (TILE_SIZE * i)+TILE_SIZE-1, 163 163 PREVIEW_Y + (TILE_SIZE * j)+TILE_SIZE-1, 164 164 MAKE_COLOR(game->nextBlock.cells[i][j], game->nextBlock.cells[i][j])); 165 165 }else{ 166 draw_filled_rect(camera_ info.ts_button_border+PREVIEW_X + (TILE_SIZE * i),166 draw_filled_rect(camera_screen.ts_button_border+PREVIEW_X + (TILE_SIZE * i), 167 167 PREVIEW_Y + (TILE_SIZE * j), 168 camera_ info.ts_button_border+PREVIEW_X + (TILE_SIZE * i)+TILE_SIZE-1,168 camera_screen.ts_button_border+PREVIEW_X + (TILE_SIZE * i)+TILE_SIZE-1, 169 169 PREVIEW_Y + (TILE_SIZE * j)+TILE_SIZE-1, 170 170 TETRIS_COLOR_BG); … … 194 194 for (j = 0; j < BOARD_HEIGHT; ++j){ 195 195 if(tmp[i][j] != EMPTY_CELL){ 196 draw_filled_rect(camera_ info.ts_button_border+BOARD_X + (TILE_SIZE * i),196 draw_filled_rect(camera_screen.ts_button_border+BOARD_X + (TILE_SIZE * i), 197 197 BOARD_Y + (TILE_SIZE * j), 198 camera_ info.ts_button_border+BOARD_X + (TILE_SIZE * i)+TILE_SIZE-1,198 camera_screen.ts_button_border+BOARD_X + (TILE_SIZE * i)+TILE_SIZE-1, 199 199 BOARD_Y + (TILE_SIZE * j)+TILE_SIZE-1, 200 200 MAKE_COLOR(tmp[i][j], tmp[i][j])); 201 201 }else if(tmp2[i][j] != EMPTY_CELL){ 202 draw_filled_rect(camera_ info.ts_button_border+BOARD_X + (TILE_SIZE * i),202 draw_filled_rect(camera_screen.ts_button_border+BOARD_X + (TILE_SIZE * i), 203 203 BOARD_Y + (TILE_SIZE * j), 204 camera_ info.ts_button_border+BOARD_X + (TILE_SIZE * i)+TILE_SIZE-1,204 camera_screen.ts_button_border+BOARD_X + (TILE_SIZE * i)+TILE_SIZE-1, 205 205 BOARD_Y + (TILE_SIZE * j)+TILE_SIZE-1, 206 206 MAKE_COLOR(tmp2[i][j], tmp2[i][j])); 207 207 }else{ 208 draw_filled_rect(camera_ info.ts_button_border+BOARD_X + (TILE_SIZE * i),208 draw_filled_rect(camera_screen.ts_button_border+BOARD_X + (TILE_SIZE * i), 209 209 BOARD_Y + (TILE_SIZE * j), 210 camera_ info.ts_button_border+BOARD_X + (TILE_SIZE * i)+TILE_SIZE-1,210 camera_screen.ts_button_border+BOARD_X + (TILE_SIZE * i)+TILE_SIZE-1, 211 211 BOARD_Y + (TILE_SIZE * j)+TILE_SIZE-1, 212 212 TETRIS_COLOR_BOARD); … … 219 219 static struct tm *ttm; 220 220 sprintf(str_buf,"High: %5d",game->stats.high); 221 draw_string(camera_ info.ts_button_border+150,35,str_buf, MAKE_COLOR(TETRIS_COLOR_BG, COLOR_BLACK));221 draw_string(camera_screen.ts_button_border+150,35,str_buf, MAKE_COLOR(TETRIS_COLOR_BG, COLOR_BLACK)); 222 222 sprintf(str_buf,"Points: %5d",game->stats.score); 223 draw_string(camera_ info.ts_button_border+150,55,str_buf, MAKE_COLOR(TETRIS_COLOR_BG, COLOR_BLACK));223 draw_string(camera_screen.ts_button_border+150,55,str_buf, MAKE_COLOR(TETRIS_COLOR_BG, COLOR_BLACK)); 224 224 sprintf(str_buf,"Lines: %5d",game->stats.lines); 225 draw_string(camera_ info.ts_button_border+150,75,str_buf, MAKE_COLOR(TETRIS_COLOR_BG, COLOR_BLACK));225 draw_string(camera_screen.ts_button_border+150,75,str_buf, MAKE_COLOR(TETRIS_COLOR_BG, COLOR_BLACK)); 226 226 sprintf(str_buf,"Level: %5d",game->stats.level); 227 draw_string(camera_ info.ts_button_border+150,95,str_buf, MAKE_COLOR(TETRIS_COLOR_BG, COLOR_BLACK));227 draw_string(camera_screen.ts_button_border+150,95,str_buf, MAKE_COLOR(TETRIS_COLOR_BG, COLOR_BLACK)); 228 228 sprintf(str_buf,"UP -> Pause"); 229 draw_string(camera_ info.ts_button_border+150,135,str_buf, MAKE_COLOR(TETRIS_COLOR_BG, COLOR_BLACK));229 draw_string(camera_screen.ts_button_border+150,135,str_buf, MAKE_COLOR(TETRIS_COLOR_BG, COLOR_BLACK)); 230 230 sprintf(str_buf,"SET -> Rotate"); 231 draw_string(camera_ info.ts_button_border+150,155,str_buf, MAKE_COLOR(TETRIS_COLOR_BG, COLOR_BLACK));231 draw_string(camera_screen.ts_button_border+150,155,str_buf, MAKE_COLOR(TETRIS_COLOR_BG, COLOR_BLACK)); 232 232 t = time(NULL); 233 233 ttm = localtime(&t); 234 234 sprintf(str_buf,"Time: %2u:%02u", ttm->tm_hour, ttm->tm_min); 235 draw_string(camera_ info.ts_button_border+150,195,str_buf, MAKE_COLOR(TETRIS_COLOR_BG, COLOR_BLACK));235 draw_string(camera_screen.ts_button_border+150,195,str_buf, MAKE_COLOR(TETRIS_COLOR_BG, COLOR_BLACK)); 236 236 sprintf(str_buf,"Batt: %3d%%", get_batt_perc()); 237 draw_string(camera_ info.ts_button_border+150,215,str_buf, MAKE_COLOR(TETRIS_COLOR_BG, COLOR_BLACK));237 draw_string(camera_screen.ts_button_border+150,215,str_buf, MAKE_COLOR(TETRIS_COLOR_BG, COLOR_BLACK)); 238 238 } 239 239 … … 665 665 666 666 void gui_tetris_init(){ 667 draw_filled_rect(camera_ info.ts_button_border+0,0,screen_width-camera_info.ts_button_border,screen_height, TETRIS_COLOR_BG);668 draw_rect(camera_ info.ts_button_border+BOARD_X-1,BOARD_Y-1,camera_info.ts_button_border+BOARD_WIDTH*TILE_SIZE+10,BOARD_HEIGHT*TILE_SIZE+10, COLOR_BLACK);667 draw_filled_rect(camera_screen.ts_button_border+0,0,camera_screen.width-camera_screen.ts_button_border,camera_screen.height, TETRIS_COLOR_BG); 668 draw_rect(camera_screen.ts_button_border+BOARD_X-1,BOARD_Y-1,camera_screen.ts_button_border+BOARD_WIDTH*TILE_SIZE+10,BOARD_HEIGHT*TILE_SIZE+10, COLOR_BLACK); 669 669 game = createGame(); 670 670 gameInit(game); -
branches/reyalp-flt/core/gui_usb.c
- Property svn:eol-style set to native
-
branches/reyalp-flt/core/gui_usb.h
- Property svn:eol-style set to native
-
branches/reyalp-flt/core/luascript.c
r1513 r1514 1717 1717 { 1718 1718 vid_info.bm_buffer_start = total_size; 1719 vid_info.bm_buffer_size = vid_get_bitmap_buffer_width()*vid_get_bitmap_screen_height();1719 vid_info.bm_buffer_size = camera_screen.buffer_width*camera_screen.height; 1720 1720 total_size += vid_info.bm_buffer_size; 1721 1721 } … … 1775 1775 details.vp_buffer_width = vid_get_viewport_buffer_width_proper(); 1776 1776 #if CAM_USES_ASPECT_CORRECTION 1777 details.bm_max_width = ASPECT_XCORRECTION( vid_get_bitmap_screen_width());1777 details.bm_max_width = ASPECT_XCORRECTION(camera_screen.width); 1778 1778 #else 1779 details.bm_max_width = vid_get_bitmap_screen_width();1779 details.bm_max_width = camera_screen.width; 1780 1780 #endif 1781 details.bm_max_height = vid_get_bitmap_screen_height();1782 details.bm_buffer_width = vid_get_bitmap_buffer_width();1781 details.bm_max_height = camera_screen.height; 1782 details.bm_buffer_width = camera_screen.buffer_width; 1783 1783 details.lcd_aspect_ratio = vid_get_aspect_ratio(); 1784 1784 -
branches/reyalp-flt/core/main.c
r1512 r1514 18 18 // Used by modules to ensure module code is platform independent 19 19 20 _cam_ info camera_info= {20 _cam_sensor camera_sensor = { 21 21 CAM_SENSOR_BITS_PER_PIXEL, 22 22 CAM_BLACK_LEVEL, CAM_WHITE_LEVEL, … … 40 40 cam_CFAPattern, cam_CalibrationIlluminant1, 41 41 #if defined(OPT_GPS) 42 1,42 PROPCASE_GPS, 43 43 #else 44 44 0, 45 45 #endif 46 }; 47 48 _cam_screen camera_screen = 49 { 50 CAM_SCREEN_WIDTH, CAM_SCREEN_HEIGHT, CAM_SCREEN_WIDTH * CAM_SCREEN_HEIGHT, 51 CAM_BITMAP_WIDTH, CAM_BITMAP_HEIGHT, CAM_BITMAP_WIDTH * CAM_BITMAP_HEIGHT, 46 52 EDGE_HMARGIN, CAM_TS_BUTTON_BORDER, 47 53 }; -
branches/reyalp-flt/core/module_exportlist.c
r1513 r1514 149 149 gui_default_kbd_process_menu_btn, 150 150 151 &screen_width,152 &screen_height,153 &screen_buffer_size,154 151 vid_get_viewport_fb, 155 152 vid_get_viewport_height, … … 300 297 pow_calc_2, 301 298 302 &camera_info, 299 &camera_screen, 300 &camera_sensor, 303 301 &altGuiHandler, 304 302 0 -
branches/reyalp-flt/core/module_wrappers.c
- Property svn:eol-style set to native
-
branches/reyalp-flt/core/modules/module_inspector.c
r1513 r1514 142 142 if (modinspect_redraw) { 143 143 144 draw_filled_rect(0, 0, screen_width-1, screen_height-1, MAKE_COLOR(SCREEN_COLOR, SCREEN_COLOR));144 draw_filled_rect(0, 0, camera_screen.width-1, camera_screen.height-1, MAKE_COLOR(SCREEN_COLOR, SCREEN_COLOR)); 145 145 draw_txt_string(5, 0, "*** Module Inspector ***", MAKE_COLOR(SCREEN_COLOR, COLOR_WHITE)); 146 146 draw_txt_string(0, 2, "Idx Name Addr Size", MAKE_COLOR(SCREEN_COLOR, COLOR_WHITE)); -
branches/reyalp-flt/core/modules/module_menu.c
- Property svn:eol-style set to native
-
branches/reyalp-flt/core/modules/simple_game.c
- Property svn:eol-style set to native
-
branches/reyalp-flt/core/motion_detector.c
r1511 r1514 333 333 fd = open(fn, O_WRONLY|O_CREAT, 0777); 334 334 if (fd) { 335 write(fd, img, screen_width*vid_get_viewport_height()*3);335 write(fd, img, camera_screen.width*vid_get_viewport_height()*3); 336 336 close(fd); 337 337 } … … 562 562 yoffset = vid_get_viewport_yoffset(); // used when image size != viewport size 563 563 564 x_step=( screen_width-xoffset*2)/motion_detector->columns;565 y_step=( screen_height-yoffset*2)/motion_detector->rows;564 x_step=(camera_screen.width-xoffset*2)/motion_detector->columns; 565 y_step=(camera_screen.height-yoffset*2)/motion_detector->rows; 566 566 #if 0 567 567 row_start=1; … … 575 575 if(motion_detector->clipping_region_mode==0 || motion_detector->clipping_region_mode==2){ 576 576 for(col=col_start;col<col_stop;col++){ 577 draw_line(col*x_step,0,col*x_step, screen_height, COLOR_GREEN);577 draw_line(col*x_step,0,col*x_step,camera_screen.height, COLOR_GREEN); 578 578 } 579 579 for(row=row_start;row<row_stop;row++){ 580 draw_line(0,row*y_step, screen_width,row*y_step, COLOR_GREEN);580 draw_line(0,row*y_step,camera_screen.width,row*y_step, COLOR_GREEN); 581 581 } 582 582 } else if(motion_detector->clipping_region_mode==1){ 583 583 for(col=1;col<motion_detector->columns;col++){ 584 584 if(col<){ 585 draw_line(col*x_step,0,col*x_step, screen_height, COLOR_GREEN);585 draw_line(col*x_step,0,col*x_step,camera_screen.height, COLOR_GREEN); 586 586 } 587 587 } -
branches/reyalp-flt/core/ptp.c
- Property svn:eol-style set to native
-
branches/reyalp-flt/core/ptp.h
- Property svn:eol-style set to native
-
branches/reyalp-flt/core/raw.c
r1512 r1514 192 192 193 193 void set_raw_pixel(unsigned int x, unsigned int y, unsigned short value) { 194 unsigned char* addr=(unsigned char*)get_raw_image_addr()+y*camera_ info.raw_rowlen+(x/8)*camera_info.bits_per_pixel;194 unsigned char* addr=(unsigned char*)get_raw_image_addr()+y*camera_sensor.raw_rowlen+(x/8)*camera_sensor.bits_per_pixel; 195 195 #if CAM_SENSOR_BITS_PER_PIXEL==10 196 196 switch (x%8) { … … 218 218 //------------------------------------------------------------------- 219 219 unsigned short get_raw_pixel(unsigned int x,unsigned int y) { 220 unsigned char* addr=(unsigned char*)get_raw_image_addr()+y*camera_ info.raw_rowlen+(x/8)*camera_info.bits_per_pixel;220 unsigned char* addr=(unsigned char*)get_raw_image_addr()+y*camera_sensor.raw_rowlen+(x/8)*camera_sensor.bits_per_pixel; 221 221 #if CAM_SENSOR_BITS_PER_PIXEL==10 222 222 switch (x%8) { … … 249 249 int i,j; 250 250 int val; 251 if ((x>=2) && (x<camera_ info.raw_rowpix-2) && (y>=2) && (y<camera_info.raw_rows-2)) {251 if ((x>=2) && (x<camera_sensor.raw_rowpix-2) && (y>=2) && (y<camera_sensor.raw_rows-2)) { 252 252 if ((conf.bad_pixel_removal==1) || (conf.save_raw && conf.dng_raw)) { // interpolation or DNG saving 253 253 for (i=-2; i<=2; i+=2) -
branches/reyalp-flt/core/raw_merge.c
r1512 r1514 37 37 int result; 38 38 if ((from==0) || (sub==0)) return 0; // bad pixel 39 result = from - sub + camera_ info.black_level;40 if (result<camera_ info.black_level) result=camera_info.black_level;41 if (result>camera_ info.white_level) result=camera_info.white_level;39 result = from - sub + camera_sensor.black_level; 40 if (result<camera_sensor.black_level) result=camera_sensor.black_level; 41 if (result>camera_sensor.white_level) result=camera_sensor.white_level; 42 42 return result; 43 43 … … 64 64 return 0; 65 65 66 if( (baccum=malloc(camera_ info.raw_rowlen)) &&67 (bsub=malloc(camera_ info.raw_rowlen)) &&66 if( (baccum=malloc(camera_sensor.raw_rowlen)) && 67 (bsub=malloc(camera_sensor.raw_rowlen)) && 68 68 (ffrom=fopen(from, "rb")) && 69 69 (fsub=fopen(sub, "rb")) && … … 72 72 { 73 73 started(); 74 for (j = 0; j < camera_ info.raw_rows; j++) {75 fread(baccum,1, camera_ info.raw_rowlen,ffrom);76 fread(bsub,1, camera_ info.raw_rowlen,fsub);74 for (j = 0; j < camera_sensor.raw_rows; j++) { 75 fread(baccum,1, camera_sensor.raw_rowlen,ffrom); 76 fread(bsub,1, camera_sensor.raw_rowlen,fsub); 77 77 78 78 #if CAM_MODULE_SENSOR_BITS_PER_PIXEL==10 79 79 80 for(i = 0;i<camera_ info.raw_rowlen; i+=10) {80 for(i = 0;i<camera_sensor.raw_rowlen; i+=10) { 81 81 s =((0x3fc&(((unsigned short)bsub[i+1])<<2)) | (bsub[i+0] >> 6)); 82 82 d =((0x3fc&(((unsigned short)baccum[i+1])<<2)) | (baccum[i+0] >> 6)); … … 133 133 #elif CAM_MODULE_SENSOR_BITS_PER_PIXEL==12 134 134 135 for(i = 0;i<camera_ info.raw_rowlen; i+=6) {135 for(i = 0;i<camera_sensor.raw_rowlen; i+=6) { 136 136 137 137 s=((0xFF0&(((unsigned short)bsub[i+1])<<4)) | (bsub[i+0] >> 4)); … … 164 164 #endif 165 165 166 fwrite(baccum,1,camera_ info.raw_rowlen,fdest);166 fwrite(baccum,1,camera_sensor.raw_rowlen,fdest); 167 167 if ( (j & 0x1F) == 0 ) { 168 gui_browser_progress_show((char *)dest, j*100/camera_ info.raw_rows);168 gui_browser_progress_show((char *)dest, j*100/camera_sensor.raw_rows); 169 169 } 170 170 } … … 189 189 int raw_merge_start(int action){ 190 190 unsigned int req, avail; 191 req=((camera_ info.raw_rows*camera_info.raw_rows)>>18)+1;191 req=((camera_sensor.raw_rows*camera_sensor.raw_rows)>>18)+1; 192 192 avail=GetFreeCardSpaceKb()>>10; 193 193 if (avail<req) { … … 198 198 raw_action=action; 199 199 raw_count=0; 200 row=malloc(camera_ info.raw_rows*sizeof(unsigned short));200 row=malloc(camera_sensor.raw_rows*sizeof(unsigned short)); 201 201 if (!row) 202 202 return 0; 203 rawrow=malloc(camera_ info.raw_rowlen);203 rawrow=malloc(camera_sensor.raw_rowlen); 204 204 if (!rawrow) { 205 205 free(row); … … 230 230 fbrawout=fopen(TEMP_FILE_NAME_1,"w+b"); 231 231 if (fbrawout){ 232 fread(rawrow, 1, camera_ info.raw_rowlen, fcraw);232 fread(rawrow, 1, camera_sensor.raw_rowlen, fcraw); 233 233 if (raw_count) 234 fread(row, 1, camera_ info.raw_rows*sizeof(unsigned short), fbrawin);234 fread(row, 1, camera_sensor.raw_rows*sizeof(unsigned short), fbrawin); 235 235 else 236 for (i=0;i<camera_ info.raw_rows;i++)236 for (i=0;i<camera_sensor.raw_rows;i++) 237 237 row[i]=0; 238 238 239 for (nrow=0,j=0;nrow<camera_ info.raw_rows;nrow++,j++){239 for (nrow=0,j=0;nrow<camera_sensor.raw_rows;nrow++,j++){ 240 240 241 241 #if CAM_MODULE_SENSOR_BITS_PER_PIXEL==10 242 242 243 for (i=0,src=0; i<camera_ info.raw_rows; i+=8, src+=10){243 for (i=0,src=0; i<camera_sensor.raw_rows; i+=8, src+=10){ 244 244 row[i+0]+=((0x3fc&(((unsigned short)rawrow[src+1])<<2)) | (rawrow[src+0] >> 6)); 245 245 row[i+1]+=((0x3f0&(((unsigned short)rawrow[src+0])<<4)) | (rawrow[src+3] >> 4)); … … 254 254 #elif CAM_MODULE_SENSOR_BITS_PER_PIXEL==12 255 255 256 for (i=0,src=0; i<camera_ info.raw_rows; i+=4, src+=6){256 for (i=0,src=0; i<camera_sensor.raw_rows; i+=4, src+=6){ 257 257 row[i+0]+=((0xFF0&(((unsigned short)rawrow[src+1])<<4)) | (rawrow[src+0] >> 4)); 258 258 row[i+1]+=((0xF00&(((unsigned short)rawrow[src+0])<<8)) | (rawrow[src+3] )); … … 265 265 #endif 266 266 267 fwrite(row, 1, camera_ info.raw_rows*sizeof(unsigned short), fbrawout);267 fwrite(row, 1, camera_sensor.raw_rows*sizeof(unsigned short), fbrawout); 268 268 if (raw_count) 269 fread(row, 1, camera_ info.raw_rows*sizeof(unsigned short), fbrawin);269 fread(row, 1, camera_sensor.raw_rows*sizeof(unsigned short), fbrawin); 270 270 else 271 for (i=0;i<camera_ info.raw_rows;i++)271 for (i=0;i<camera_sensor.raw_rows;i++) 272 272 row[i]=0; 273 fread(rawrow, 1, camera_ info.raw_rowlen, fcraw);274 if (j>=camera_ info.raw_rows/10) {275 j-=camera_ info.raw_rows/10;276 gui_browser_progress_show(filename, nrow*100/camera_ info.raw_rows);273 fread(rawrow, 1, camera_sensor.raw_rowlen, fcraw); 274 if (j>=camera_sensor.raw_rows/10) { 275 j-=camera_sensor.raw_rows/10; 276 gui_browser_progress_show(filename, nrow*100/camera_sensor.raw_rows); 277 277 } 278 278 } … … 309 309 fcraw=fopen(namebuf,"w+b"); 310 310 if (fcraw) { 311 fread(row, 1, camera_ info.raw_rows*sizeof(unsigned short), fbraw);312 for (nrow=0,j=0;nrow<camera_ info.raw_rows;nrow++,j++) {313 for (i=0;i<camera_ info.raw_rows;i++) {311 fread(row, 1, camera_sensor.raw_rows*sizeof(unsigned short), fbraw); 312 for (nrow=0,j=0;nrow<camera_sensor.raw_rows;nrow++,j++) { 313 for (i=0;i<camera_sensor.raw_rows;i++) { 314 314 if (raw_action==RAW_OPERATION_AVERAGE) 315 315 row[i]/=raw_count; 316 316 else { 317 if (row[i]>camera_ info.black_level*(raw_count-1))318 row[i]-=camera_ info.black_level*(raw_count-1);317 if (row[i]>camera_sensor.black_level*(raw_count-1)) 318 row[i]-=camera_sensor.black_level*(raw_count-1); 319 319 else 320 320 row[i]=0; 321 if (row[i]>camera_ info.white_level)322 row[i]=camera_ info.white_level;321 if (row[i]>camera_sensor.white_level) 322 row[i]=camera_sensor.white_level; 323 323 } 324 324 } 325 325 #if CAM_MODULE_SENSOR_BITS_PER_PIXEL==10 326 for (i=0,src=0;i<camera_ info.raw_rows;i+=8,src+=10) {326 for (i=0,src=0;i<camera_sensor.raw_rows;i+=8,src+=10) { 327 327 rawrow[src+0]=(row[i+0]<<6)|(row[i+1]>>4); 328 328 rawrow[src+1]=(row[i+0]>>2); … … 337 337 } 338 338 #elif CAM_MODULE_SENSOR_BITS_PER_PIXEL==12 339 for (i=0,src=0; i<camera_ info.raw_rows; i+=4, src+=6){339 for (i=0,src=0; i<camera_sensor.raw_rows; i+=4, src+=6){ 340 340 rawrow[src+0]=(row[i+0]<<4)|(row[i+1]>>8); 341 341 rawrow[src+1]=(row[i+0]>>4); … … 349 349 #endif 350 350 351 fwrite(rawrow, 1, camera_ info.raw_rowlen, fcraw);352 fread(row, 1, camera_ info.raw_rows*sizeof(unsigned short), fbraw);353 if (j>=camera_ info.raw_rows/5) {354 j-=camera_ info.raw_rows/5;355 gui_browser_progress_show(namebuf, nrow*100/camera_ info.raw_rows);351 fwrite(rawrow, 1, camera_sensor.raw_rowlen, fcraw); 352 fread(row, 1, camera_sensor.raw_rows*sizeof(unsigned short), fbraw); 353 if (j>=camera_sensor.raw_rows/5) { 354 j-=camera_sensor.raw_rows/5; 355 gui_browser_progress_show(namebuf, nrow*100/camera_sensor.raw_rows); 356 356 } 357 357 } -
branches/reyalp-flt/core/shot_histogram.c
r1512 r1514 55 55 memset(shot_histogram,0,SHOT_HISTOGRAM_SIZE); 56 56 57 marginstep= (camera_ info.raw_rowpix - 2 * SHOT_HISTOGRAM_MARGIN)/10;57 marginstep= (camera_sensor.raw_rowpix - 2 * SHOT_HISTOGRAM_MARGIN)/10; 58 58 59 59 // In future, support definition of a sort of "spot metering" 60 60 x0 = SHOT_HISTOGRAM_MARGIN + shot_margin_left * marginstep; 61 x1 = camera_ info.raw_rowpix - SHOT_HISTOGRAM_MARGIN - shot_margin_right * marginstep;61 x1 = camera_sensor.raw_rowpix - SHOT_HISTOGRAM_MARGIN - shot_margin_right * marginstep; 62 62 y0 = SHOT_HISTOGRAM_MARGIN + shot_margin_top * marginstep; 63 y1 = camera_ info.raw_rows - SHOT_HISTOGRAM_MARGIN - shot_margin_bottom * marginstep;63 y1 = camera_sensor.raw_rows - SHOT_HISTOGRAM_MARGIN - shot_margin_bottom * marginstep; 64 64 65 65 //x0 = SHOT_HISTOGRAM_MARGIN ; 66 //x1 = camera_ info.raw_rowpix - SHOT_HISTOGRAM_MARGIN ;66 //x1 = camera_sensor.raw_rowpix - SHOT_HISTOGRAM_MARGIN ; 67 67 //y0 = SHOT_HISTOGRAM_MARGIN; 68 //y1 = camera_ info.raw_rows - SHOT_HISTOGRAM_MARGIN;68 //y1 = camera_sensor.raw_rows - SHOT_HISTOGRAM_MARGIN; 69 69 70 70 -
branches/reyalp-flt/include/camera.h
r1512 r1514 104 104 // Define CAM_USES_ASPECT_CORRECTION with a value of 1 to enable this scaled display 105 105 #define CAM_USES_ASPECT_CORRECTION 0 106 #define CAM_SCREEN_WIDTH 360 // Width of bitmap screen in CHDK co-ordinates (360 or 480) 107 #define CAM_SCREEN_HEIGHT 240 // Height of bitmap screen in CHDK co-ordinates (always 240 on all cameras so far) 108 #define CAM_BITMAP_WIDTH 360 // Actual width of bitmap screen in bytes (may be larger than displayed area) 109 #define CAM_BITMAP_HEIGHT 240 // Actual height of bitmap screen in rows (240 or 270) 106 110 107 111 #define EDGE_HMARGIN 0 // define sup and inf screen margins on edge overlay without overlay. Necessary to save memory buffer space. sx200is needs values other than 0 … … 248 252 int color_matrix1[18]; // DNG Color Matrix 249 253 int cfa_pattern, calibration_illuminant1; 250 int has_gps; 251 int edge_hmargin, ts_button_border; 252 } _cam_info; 253 254 extern _cam_info camera_info; 254 int gps_propcase; 255 } _cam_sensor; 256 257 extern _cam_sensor camera_sensor; 258 259 typedef struct 260 { 261 unsigned int width, height, size; // Size of bitmap screen in CHDK co-ordinates 262 unsigned int buffer_width, buffer_height, buffer_size; // Physical size of bitmap screen 263 int edge_hmargin, ts_button_border; // margin and touch-screen adjustment values 264 } _cam_screen; 265 266 extern _cam_screen camera_screen; 255 267 256 268 //========================================================== -
branches/reyalp-flt/include/platform.h
r1511 r1514 211 211 long vid_is_bitmap_shown(); 212 212 void *vid_get_bitmap_fb(); 213 long vid_get_bitmap_screen_width();214 long vid_get_bitmap_screen_height();215 long vid_get_bitmap_buffer_width();216 long vid_get_bitmap_buffer_height();217 213 218 214 void *vid_get_viewport_fb(); -
branches/reyalp-flt/loader/sx120is
-
Property
svn:ignore
set to
.dep
*.a
*.o
main.bin
*.elf
*.elf.syms
*.dump
-
Property
svn:ignore
set to
-
branches/reyalp-flt/loader/sx120is/Makefile
- Property svn:eol-style set to LF
-
branches/reyalp-flt/loader/sx120is/blobs.S
- Property svn:eol-style set to native
-
branches/reyalp-flt/loader/sx120is/entry.S
- Property svn:eol-style set to native
-
branches/reyalp-flt/loader/sx120is/main.c
- Property svn:eol-style set to native
-
branches/reyalp-flt/loader/sx120is/resetcode
-
Property
svn:ignore
set to
.dep
*.a
*.o
main.bin
*.elf
*.elf.syms
*.dump
-
Property
svn:ignore
set to
-
branches/reyalp-flt/loader/sx120is/resetcode/Makefile
- Property svn:eol-style set to LF
-
branches/reyalp-flt/loader/sx120is/resetcode/entry.S
- Property svn:eol-style set to native
-
branches/reyalp-flt/loader/sx120is/resetcode/main.c
- Property svn:eol-style set to native
-
branches/reyalp-flt/platform/a1100/platform_camera.h
r1418 r1514 78 78 #undef CAM_USES_ASPECT_CORRECTION 79 79 #define CAM_USES_ASPECT_CORRECTION 1 //camera uses the modified graphics primitives to map screens an viewports to buffers more sized 80 #undef CAM_BITMAP_WIDTH 81 #define CAM_BITMAP_WIDTH 720 // Actual width of bitmap screen in bytes 80 82 81 83 #undef CAM_MENU_BORDERWIDTH -
branches/reyalp-flt/platform/a1100/sub/100c/lib.c
r1233 r1514 35 35 } 36 36 37 38 long vid_get_bitmap_screen_width()39 {40 return 360;41 }42 43 long vid_get_bitmap_screen_height()44 {45 return 240;46 }47 48 37 long vid_get_viewport_height() 49 38 { … … 55 44 return (char*)0x2F4A8; // "9999"-----fixed 56 45 } 57 58 long vid_get_bitmap_buffer_width() { return 720; }59 60 long vid_get_bitmap_buffer_height() { return 240; } -
branches/reyalp-flt/platform/a2000/sub/100c/lib.c
r831 r1514 44 44 } 45 45 46 47 long vid_get_bitmap_screen_width()48 {49 return 360;50 }51 52 long vid_get_bitmap_screen_height()53 {54 return 240;55 }56 57 46 long vid_get_viewport_height() 58 47 { … … 64 53 return (char*)0x45100; 65 54 } 66 67 68 long vid_get_bitmap_buffer_width() { return 360; }69 70 long vid_get_bitmap_buffer_height() { return 240; }71 72 //int zoom_status = 0; -
branches/reyalp-flt/platform/a3000/sub/100b/lib.c
r1372 r1514 51 51 } 52 52 53 54 long vid_get_bitmap_screen_width()55 {56 return 360;57 }58 59 long vid_get_bitmap_screen_height()60 {61 return 240;62 }63 64 65 53 int vid_get_viewport_width() 66 54 { … … 77 65 return (void*)0x75120; // found at FFD7BD90 search string: a9999 78 66 } 79 80 long vid_get_bitmap_buffer_width() { return 360; }81 long vid_get_bitmap_buffer_height() { return 240; }82 -
branches/reyalp-flt/platform/a3000/sub/100c/lib.c
r1372 r1514 35 35 } 36 36 37 38 long vid_get_bitmap_screen_width()39 {40 return 360;41 }42 43 long vid_get_bitmap_screen_height()44 {45 return 240;46 }47 48 49 37 int vid_get_viewport_width() 50 38 { … … 61 49 return (void*)0x75120; 62 50 } 63 64 long vid_get_bitmap_buffer_width() { return 360; }65 long vid_get_bitmap_buffer_height() { return 240; }66 -
branches/reyalp-flt/platform/a3000/sub/100d/lib.c
r1372 r1514 52 52 } 53 53 54 // found at FFCD5A04 height 24055 // found at FFCD5A00 width 72056 57 long vid_get_bitmap_screen_width()58 {59 return 360;60 }61 62 long vid_get_bitmap_screen_height()63 {64 return 240;65 }66 67 68 54 int vid_get_viewport_width() 69 55 { … … 80 66 return (void*)0x75120; // found at FFD7BD90 search string: a9999 81 67 } 82 83 long vid_get_bitmap_buffer_width() { return 360; }84 long vid_get_bitmap_buffer_height() { return 240; }85 -
branches/reyalp-flt/platform/a410/sub/100f/lib.c
r1226 r1514 57 57 } 58 58 59 long vid_get_bitmap_screen_width()60 {61 return 360;62 }63 64 long vid_get_bitmap_screen_height()65 {66 return 240;67 }68 69 59 long vid_get_viewport_height() 70 60 { … … 77 67 return (char*)0x7F9F0; // @ffdd479c 78 68 } 79 80 long vid_get_bitmap_buffer_width() { return 360; }81 82 long vid_get_bitmap_buffer_height() { return 240; }83 -
branches/reyalp-flt/platform/a430/sub/100b/lib.c
r1376 r1514 57 57 } 58 58 59 long vid_get_bitmap_screen_width()60 {61 return 360;62 }63 64 long vid_get_bitmap_screen_height()65 {66 return 240;67 }68 69 59 long vid_get_viewport_height() 70 60 { … … 77 67 return (char*)0x7C588; 78 68 } 79 80 long vid_get_bitmap_buffer_width() { return 360; }81 82 long vid_get_bitmap_buffer_height() { return 240; }83 -
branches/reyalp-flt/platform/a450/sub/100d/lib.c
r515 r1514 42 42 } 43 43 44 long vid_get_bitmap_screen_width()45 {46 return 360;47 }48 49 long vid_get_bitmap_screen_height()50 {51 return 240;52 }53 54 44 long vid_get_viewport_height() 55 45 { … … 61 51 return (char*)0x10F70; 62 52 } 63 64 long vid_get_bitmap_buffer_width() { return 360; }65 66 long vid_get_bitmap_buffer_height() { return 240; }67 -
branches/reyalp-flt/platform/a460/sub/100d/lib.c
r515 r1514 42 42 } 43 43 44 long vid_get_bitmap_screen_width()45 {46 return 360;47 }48 49 long vid_get_bitmap_screen_height()50 {51 return 240;52 }53 54 44 long vid_get_viewport_height() 55 45 { … … 61 51 return (char*)0x10F70; 62 52 } 63 64 long vid_get_bitmap_buffer_width() { return 360; }65 66 long vid_get_bitmap_buffer_height() { return 240; }67 -
branches/reyalp-flt/platform/a470/sub/100e/lib.c
r785 r1514 44 44 } 45 45 46 long vid_get_bitmap_screen_width()47 {48 return 360;49 }50 51 long vid_get_bitmap_screen_height()52 {53 return 240;54 }55 56 46 long vid_get_viewport_height() 57 47 { … … 62 52 return (char*)0x49A00; // found above a9999 63 53 } 64 65 long vid_get_bitmap_buffer_width() { return 360; }66 67 long vid_get_bitmap_buffer_height() { return 240; }68 -
branches/reyalp-flt/platform/a470/sub/101b/lib.c
r739 r1514 44 44 } 45 45 46 long vid_get_bitmap_screen_width()47 {48 return 360;49 }50 51 long vid_get_bitmap_screen_height()52 {53 return 240;54 }55 56 46 long vid_get_viewport_height() 57 47 { … … 62 52 return (char*)0x49A00; // found above a9999 63 53 } 64 65 long vid_get_bitmap_buffer_width() { return 360; }66 67 long vid_get_bitmap_buffer_height() { return 240; }68 -
branches/reyalp-flt/platform/a470/sub/102c/lib.c
r739 r1514 44 44 } 45 45 46 long vid_get_bitmap_screen_width()47 {48 return 360;49 }50 51 long vid_get_bitmap_screen_height()52 {53 return 240;54 }55 56 46 long vid_get_viewport_height() 57 47 { … … 62 52 return (char*)0x49A80; // found above a9999 63 53 } 64 65 long vid_get_bitmap_buffer_width() { return 360; }66 67 long vid_get_bitmap_buffer_height() { return 240; }68 -
branches/reyalp-flt/platform/a480/sub/100b/lib.c
r884 r1514 34 34 } 35 35 36 37 long vid_get_bitmap_screen_width()38 {39 return 360;40 }41 42 long vid_get_bitmap_screen_height()43 {44 return 240;45 }46 47 36 long vid_get_viewport_height() 48 37 { … … 54 43 return (char*)0x2CFF8; // "9999" 55 44 } 56 57 58 long vid_get_bitmap_buffer_width() { return 360; }59 60 long vid_get_bitmap_buffer_height() { return 240; } -
branches/reyalp-flt/platform/a490/sub/100d/lib.c
r1353 r1514 39 39 } 40 40 41 long vid_get_bitmap_screen_width() { return 360; }42 long vid_get_bitmap_screen_height() { return 240; }43 44 41 long vid_get_viewport_height() { return 240; } 45 46 long vid_get_bitmap_buffer_width() { return 360; }47 long vid_get_bitmap_buffer_height() { return 240; }48 42 49 43 char *camera_jpeg_count_str() -
branches/reyalp-flt/platform/a490/sub/100f/lib.c
r1205 r1514 39 39 } 40 40 41 long vid_get_bitmap_screen_width() { return 360; }42 long vid_get_bitmap_screen_height() { return 240; }43 44 41 long vid_get_viewport_height() { return 240; } 45 46 long vid_get_bitmap_buffer_width() { return 360; }47 long vid_get_bitmap_buffer_height() { return 240; }48 42 49 43 char *camera_jpeg_count_str() -
branches/reyalp-flt/platform/a495/sub/100d/lib.c
r1376 r1514 39 39 } 40 40 41 long vid_get_bitmap_screen_width() { return 360; }42 long vid_get_bitmap_screen_height() { return 240; }43 44 41 long vid_get_viewport_height() { return 240; } 45 46 long vid_get_bitmap_buffer_width() { return 360; }47 long vid_get_bitmap_buffer_height() { return 240; }48 42 49 43 char *camera_jpeg_count_str() -
branches/reyalp-flt/platform/a495/sub/100e/lib.c
r1376 r1514 39 39 } 40 40 41 long vid_get_bitmap_screen_width() { return 360; }42 long vid_get_bitmap_screen_height() { return 240; }43 44 41 long vid_get_viewport_height() { return 240; } 45 46 long vid_get_bitmap_buffer_width() { return 360; }47 long vid_get_bitmap_buffer_height() { return 240; }48 42 49 43 char *camera_jpeg_count_str() -
branches/reyalp-flt/platform/a495/sub/100f/lib.c
r1376 r1514 39 39 } 40 40 41 long vid_get_bitmap_screen_width() { return 360; }42 long vid_get_bitmap_screen_height() { return 240; }43 44 41 long vid_get_viewport_height() { return 240; } 45 46 long vid_get_bitmap_buffer_width() { return 360; }47 long vid_get_bitmap_buffer_height() { return 240; }48 42 49 43 char *camera_jpeg_count_str() -
branches/reyalp-flt/platform/a530/sub/100a/lib.c
r515 r1514 55 55 } 56 56 57 long vid_get_bitmap_screen_width()58 {59 return 360;60 }61 62 long vid_get_bitmap_screen_height()63 {64 return 240;65 }66 67 57 long vid_get_viewport_height() 68 58 { … … 74 64 return (char*)0x6E820; 75 65 } 76 77 long vid_get_bitmap_buffer_width() { return 360; }78 79 long vid_get_bitmap_buffer_height() { return 240; }80 -
branches/reyalp-flt/platform/a540/sub/100b/lib.c
r682 r1514 47 47 // from ewavr 48 48 return (void*)(*(int*)0x63AD0); // found in sub_FFD25770 49 }50 51 long vid_get_bitmap_screen_width()52 {53 return 360;54 }55 56 long vid_get_bitmap_screen_height()57 {58 return 240;59 49 } 60 50 … … 117 107 return (char*)0x6E8D0 ; // from 700 added orig. 0x78688 118 108 } 119 120 long vid_get_bitmap_buffer_width() { return 360; }121 122 long vid_get_bitmap_buffer_height() { return 240; }123 -
branches/reyalp-flt/platform/a550/sub/100c/lib.c
r515 r1514 42 42 } 43 43 44 long vid_get_bitmap_screen_width()45 {46 return 360;47 }48 49 long vid_get_bitmap_screen_height()50 {51 return 240;52 }53 54 44 long vid_get_viewport_height() 55 45 { … … 62 52 } 63 53 64 long vid_get_bitmap_buffer_width() { return 360; }65 66 long vid_get_bitmap_buffer_height() { return 240; }67 68 54 void _EnterToCompensationEVF() {} // Dummy function. To be removed after stub is found. See stubs_entry_2.S. 69 55 void _ExitFromCompensationEVF() {} // Dummy function. To be removed after stub is found. See stubs_entry_2.S. -
branches/reyalp-flt/platform/a570/sub/100e/lib.c
r659 r1514 53 53 } 54 54 55 long vid_get_bitmap_screen_width()56 {57 return 360;58 }59 60 long vid_get_bitmap_screen_height()61 {62 return 240;63 }64 65 55 long vid_get_viewport_height() 66 56 { 67 57 return ((mode_get()&MODE_MASK) == MODE_PLAY)?240:230; 68 58 } 59 69 60 char *camera_jpeg_count_str() 70 61 { 71 62 return (char*)0x10F28; 72 63 } 73 74 long vid_get_bitmap_buffer_width() { return 360; }75 76 long vid_get_bitmap_buffer_height() { return 240; }77 -
branches/reyalp-flt/platform/a570/sub/101a/lib.c
r766 r1514 53 53 } 54 54 55 long vid_get_bitmap_screen_width()56 {57 return 360;58 }59 60 long vid_get_bitmap_screen_height()61 {62 return 240;63 }64 65 55 long vid_get_viewport_height() 66 56 { 67 57 return ((mode_get()&MODE_MASK) == MODE_PLAY)?240:230; 68 58 } 59 69 60 char *camera_jpeg_count_str() 70 61 { 71 62 return (char*)0x10F28; 72 63 } 73 74 long vid_get_bitmap_buffer_width() { return 360; }75 76 long vid_get_bitmap_buffer_height() { return 240; }77 -
branches/reyalp-flt/platform/a580/sub/101b/lib.c
r1308 r1514 50 50 } 51 51 52 53 long vid_get_bitmap_screen_width() 54 { 55 return 360; 56 } 57 58 long vid_get_bitmap_screen_height() 52 long vid_get_viewport_height() 59 53 { 60 54 return 240; 61 55 } 62 56 63 long vid_get_viewport_height()64 {65 return 240;66 }67 57 char *camera_jpeg_count_str() 68 58 { 69 59 return (char*)0x00048AE0; // OK! 70 60 } 71 72 long vid_get_bitmap_buffer_width() { return 360; }73 74 long vid_get_bitmap_buffer_height() { return 240; } -
branches/reyalp-flt/platform/a590/sub/100e/lib.c
r675 r1514 57 57 } 58 58 59 long vid_get_bitmap_screen_width()60 {61 return 360;62 }63 64 long vid_get_bitmap_screen_height()65 {66 return 240;67 }68 69 59 long vid_get_viewport_height() 70 60 { … … 75 65 return (char*)0x49344; // ok found at FFD727B0 76 66 } 77 78 long vid_get_bitmap_buffer_width() { return 360; }79 80 long vid_get_bitmap_buffer_height() { return 240; }81 -
branches/reyalp-flt/platform/a590/sub/101b/lib.c
r675 r1514 54 54 } 55 55 56 57 long vid_get_bitmap_screen_width()58 {59 return 360;60 }61 62 long vid_get_bitmap_screen_height()63 {64 return 240;65 }66 67 56 long vid_get_viewport_height() 68 57 { … … 73 62 return (char*)0x49344; // same as 100e, found @ FFD727B0 74 63 } 75 76 long vid_get_bitmap_buffer_width() { return 360; }77 78 long vid_get_bitmap_buffer_height() { return 240; }79 -
branches/reyalp-flt/platform/a610/sub/100e/lib.c
r515 r1514 50 50 } 51 51 52 long vid_get_bitmap_screen_width()53 {54 return 360;55 }56 57 long vid_get_bitmap_screen_height()58 {59 return 240;60 }61 62 52 long vid_get_viewport_height() 63 53 { … … 75 65 } 76 66 77 long vid_get_bitmap_buffer_width() { return 360; }78 79 long vid_get_bitmap_buffer_height() { return 240; }80 81 67 void _EnterToCompensationEVF() {} // Dummy function. To be removed after stub is found. See stubs_entry_2.S. 82 68 void _ExitFromCompensationEVF() {} // Dummy function. To be removed after stub is found. See stubs_entry_2.S. -
branches/reyalp-flt/platform/a610/sub/100f/lib.c
r515 r1514 50 50 } 51 51 52 long vid_get_bitmap_screen_width()53 {54 return 360;55 }56 57 long vid_get_bitmap_screen_height()58 {59 return 240;60 }61 62 52 long vid_get_viewport_height() 63 53 { … … 74 64 return (char*)0x80A90; 75 65 } 76 77 long vid_get_bitmap_buffer_width() { return 360; }78 79 long vid_get_bitmap_buffer_height() { return 240; }80 -
branches/reyalp-flt/platform/a620/sub/100f/lib.c
r515 r1514 41 41 } 42 42 43 long vid_get_bitmap_screen_width()44 {45 return 360;46 }47 48 long vid_get_bitmap_screen_height()49 {50 return 240;51 }52 53 43 long vid_get_viewport_height() 54 44 { … … 59 49 return (char*)0x7F6F8; 60 50 } 61 62 long vid_get_bitmap_buffer_width() { return 360; }63 64 long vid_get_bitmap_buffer_height() { return 240; }65 -
branches/reyalp-flt/platform/a630/sub/100c/lib.c
r515 r1514 50 50 } 51 51 52 long vid_get_bitmap_screen_width()53 {54 return 360;55 }56 57 long vid_get_bitmap_screen_height()58 {59 return 240;60 }61 62 52 long vid_get_viewport_height() 63 53 { … … 68 58 return (char*)0x70EA0; 69 59 } 70 71 long vid_get_bitmap_buffer_width() { return 360; }72 73 long vid_get_bitmap_buffer_height() { return 240; }74 -
branches/reyalp-flt/platform/a640/sub/100b/lib.c
r515 r1514 41 41 } 42 42 43 long vid_get_bitmap_screen_width()44 {45 return 360;46 }47 48 long vid_get_bitmap_screen_height()49 {50 return 240;51 }52 53 43 long vid_get_viewport_height() 54 44 { … … 59 49 return (char*)0x71200; 60 50 } 61 62 long vid_get_bitmap_buffer_width() { return 360; }63 64 long vid_get_bitmap_buffer_height() { return 240; }65 -
branches/reyalp-flt/platform/a650/sub/100d/lib.c
r515 r1514 42 42 } 43 43 44 45 long vid_get_bitmap_screen_width()46 {47 return 360;48 }49 50 long vid_get_bitmap_screen_height()51 {52 return 240;53 }54 55 44 long vid_get_viewport_height() 56 45 { … … 62 51 return (char*)0x5CB38; 63 52 } 64 65 long vid_get_bitmap_buffer_width() { return 360; }66 67 long vid_get_bitmap_buffer_height() { return 240; }68 -
branches/reyalp-flt/platform/a700/sub/100b/lib.c
r773 r1514 50 50 } 51 51 52 long vid_get_bitmap_screen_width()53 {54 return 360;55 }56 57 long vid_get_bitmap_screen_height()58 {59 return 240;60 }61 62 52 long vid_get_viewport_height() 63 53 { … … 68 58 return (char*)0x78688; 69 59 } 70 71 long vid_get_bitmap_buffer_width() { return 360; }72 73 long vid_get_bitmap_buffer_height() { return 240; }74 -
branches/reyalp-flt/platform/a710/sub/100a/lib.c
r515 r1514 51 51 } 52 52 53 long vid_get_bitmap_screen_width()54 {55 return 360;56 }57 58 long vid_get_bitmap_screen_height()59 {60 return 240;61 }62 63 53 long vid_get_viewport_height() 64 54 { … … 69 59 return (char*)0x7BD98; 70 60 } 71 72 long vid_get_bitmap_buffer_width() { return 360; }73 74 long vid_get_bitmap_buffer_height() { return 240; }75 -
branches/reyalp-flt/platform/a720/sub/100c/lib.c
r515 r1514 50 50 } 51 51 52 53 long vid_get_bitmap_screen_width()54 {55 return 360;56 }57 58 long vid_get_bitmap_screen_height()59 {60 return 240;61 }62 63 52 long vid_get_viewport_height() 64 53 { … … 69 58 return (char*)0x580CC; 70 59 } 71 72 long vid_get_bitmap_buffer_width() { return 360; }73 74 long vid_get_bitmap_buffer_height() { return 240; }75 -
branches/reyalp-flt/platform/d10/platform_camera.h
r1456 r1514 96 96 #undef CAM_USES_ASPECT_CORRECTION 97 97 #define CAM_USES_ASPECT_CORRECTION 1 //camera uses the modified graphics primitives to map screens an viewports to buffers more sized 98 #undef CAM_BITMAP_WIDTH 99 #define CAM_BITMAP_WIDTH 720 // Actual width of bitmap screen in bytes 98 100 99 101 #define CAM_ZEBRA_ASPECT_ADJUST 1 -
branches/reyalp-flt/platform/d10/sub/100a/lib.c
r982 r1514 43 43 } 44 44 45 46 long vid_get_bitmap_screen_width()47 {48 // return 720;49 return 360; // 720 is the real width but we lie for aspect correction ...50 }51 52 long vid_get_bitmap_screen_height()53 {54 return 240;55 }56 57 45 int vid_get_viewport_width() 58 46 { … … 69 57 return (char *)0x525E4; // search on "9999" done 70 58 } 71 72 long vid_get_bitmap_buffer_width() { return 720; }73 long vid_get_bitmap_buffer_height() { return 240; }74 75 76 -
branches/reyalp-flt/platform/g10/lib.c
r1329 r1514 72 72 // Values that may change are in lib.c for each firmware version. 73 73 74 long vid_get_bitmap_screen_width() { return 360; } // G10 use 320 for 9/4 mode, 360 otherwise75 long vid_get_bitmap_screen_height() { return 240; } // G1076 77 long vid_get_bitmap_buffer_width() { return 720; } // G10 1.00h @ 0xFF8F2FB478 long vid_get_bitmap_buffer_height() { return 240; } // G10 1.00h @ 0xFF8F2FB879 80 74 int vid_get_viewport_width() 81 75 { -
branches/reyalp-flt/platform/g10/platform_camera.h
r1493 r1514 75 75 #undef CAM_USES_ASPECT_CORRECTION 76 76 #define CAM_USES_ASPECT_CORRECTION 1 //camera uses the modified graphics primitives to map screens an viewports to buffers more sized 77 #undef CAM_BITMAP_WIDTH 78 #define CAM_BITMAP_WIDTH 720 // Actual width of bitmap screen in bytes 77 79 78 80 #undef EDGE_HMARGIN -
branches/reyalp-flt/platform/g11/platform_camera.h
r1418 r1514 57 57 #undef CAM_USES_ASPECT_CORRECTION 58 58 #define CAM_USES_ASPECT_CORRECTION 1 //camera uses the modified graphics primitives to map screens an viewports to buffers more sized 59 #undef CAM_BITMAP_WIDTH 60 #undef CAM_BITMAP_HEIGHT 61 #define CAM_BITMAP_WIDTH 960 // Actual width of bitmap screen in bytes 62 #define CAM_BITMAP_HEIGHT 270 // Actual height of bitmap screen in rows 59 63 60 64 #undef CAM_BITMAP_PALETTE -
branches/reyalp-flt/platform/g11/sub/100f/lib.c
r1363 r1514 88 88 } 89 89 90 91 long vid_get_bitmap_screen_width()92 {93 return 360;94 }95 96 long vid_get_bitmap_screen_height()97 {98 return 240;99 }100 101 90 int vid_get_viewport_width() 102 91 { … … 109 98 110 99 } 111 112 long vid_get_bitmap_buffer_width() { return 960; }113 114 long vid_get_bitmap_buffer_height() { return 270; }115 -
branches/reyalp-flt/platform/g11/sub/100j/lib.c
r1363 r1514 108 108 } 109 109 110 111 long vid_get_bitmap_screen_width()112 {113 return 360;114 }115 116 long vid_get_bitmap_screen_height()117 {118 return 240;119 }120 121 110 int vid_get_viewport_width() 122 111 { … … 129 118 130 119 } 131 132 long vid_get_bitmap_buffer_width() { return 960; } // G11 OK @FF916304 (search for aBmpddev_c)133 134 long vid_get_bitmap_buffer_height() { return 270; } // G11 OK @FF916300135 -
branches/reyalp-flt/platform/g11/sub/100l/lib.c
r1363 r1514 108 108 } 109 109 110 111 long vid_get_bitmap_screen_width()112 {113 return 360;114 }115 116 long vid_get_bitmap_screen_height()117 {118 return 240;119 }120 121 110 int vid_get_viewport_width() 122 111 { … … 129 118 130 119 } 131 132 long vid_get_bitmap_buffer_width() { return 960; } // G11 OK @FF916304 (search for aBmpddev_c)133 134 long vid_get_bitmap_buffer_height() { return 270; } // G11 OK @FF916300135 -
branches/reyalp-flt/platform/g12/lib.c
r1511 r1514 91 91 } 92 92 93 long vid_get_bitmap_screen_width() { return 360; }94 long vid_get_bitmap_screen_height() { return 240; }95 long vid_get_bitmap_buffer_width() { return 960; }96 long vid_get_bitmap_buffer_height() { return 270; }97 98 93 // Y multiplier for cameras with 480 pixel high viewports (CHDK code assumes 240) 99 94 int vid_get_viewport_yscale() { -
branches/reyalp-flt/platform/g12/platform_camera.h
r1512 r1514 66 66 #undef CAM_USES_ASPECT_CORRECTION 67 67 #define CAM_USES_ASPECT_CORRECTION 1 //camera uses the modified graphics primitives to map screens an viewports to buffers more sized 68 #undef CAM_BITMAP_WIDTH 69 #undef CAM_BITMAP_HEIGHT 70 #define CAM_BITMAP_WIDTH 960 // Actual width of bitmap screen in bytes 71 #define CAM_BITMAP_HEIGHT 270 // Actual height of bitmap screen in rows 68 72 69 73 #undef EDGE_HMARGIN -
branches/reyalp-flt/platform/g7/sub/100e/lib.c
r515 r1514 42 42 } 43 43 44 long vid_get_bitmap_screen_width()45 {46 return 360;47 }48 49 long vid_get_bitmap_screen_height()50 {51 return 240;52 }53 54 44 long vid_get_viewport_height() 55 45 { … … 79 69 } 80 70 81 long vid_get_bitmap_buffer_width() { return 360; }82 83 long vid_get_bitmap_buffer_height() { return 240; }84 85 71 void _EnterToCompensationEVF() {} // Dummy function. To be removed after stub is found. See stubs_entry_2.S. 86 72 void _ExitFromCompensationEVF() {} // Dummy function. To be removed after stub is found. See stubs_entry_2.S. -
branches/reyalp-flt/platform/g7/sub/100g/lib.c
r515 r1514 42 42 } 43 43 44 long vid_get_bitmap_screen_width()45 {46 return 360;47 }48 49 long vid_get_bitmap_screen_height()50 {51 return 240;52 }53 54 44 long vid_get_viewport_height() 55 45 { … … 78 68 return (char*)0x82F88; 79 69 } 80 81 long vid_get_bitmap_buffer_width() { return 360; }82 83 long vid_get_bitmap_buffer_height() { return 240; }84 -
branches/reyalp-flt/platform/g7/sub/100i/lib.c
r515 r1514 42 42 } 43 43 44 long vid_get_bitmap_screen_width()45 {46 return 360;47 }48 49 long vid_get_bitmap_screen_height()50 {51 return 240;52 }53 54 44 long vid_get_viewport_height() 55 45 { … … 78 68 return (char*)0x82F88; 79 69 } 80 81 long vid_get_bitmap_buffer_width() { return 360; }82 83 long vid_get_bitmap_buffer_height() { return 240; }84 -
branches/reyalp-flt/platform/g7/sub/100j/lib.c
r515 r1514 42 42 } 43 43 44 long vid_get_bitmap_screen_width()45 {46 return 360;47 }48 49 long vid_get_bitmap_screen_height()50 {51 return 240;52 }53 54 44 long vid_get_viewport_height() 55 45 { … … 78 68 return (char*)0x82F88; 79 69 } 80 81 long vid_get_bitmap_buffer_width() { return 360; }82 83 long vid_get_bitmap_buffer_height() { return 240; }84 -
branches/reyalp-flt/platform/g9/sub/100d/lib.c
r647 r1514 56 56 } 57 57 58 59 long vid_get_bitmap_screen_width()60 {61 return 360;62 }63 64 long vid_get_bitmap_screen_height()65 {66 return 240;67 }68 69 58 long vid_get_viewport_height() 70 59 { … … 111 100 return (char*)0x60354;//OK 112 101 } 113 114 long vid_get_bitmap_buffer_width() { return 360; }115 116 long vid_get_bitmap_buffer_height() { return 240; } -
branches/reyalp-flt/platform/g9/sub/100g/lib.c
r647 r1514 56 56 } 57 57 58 59 long vid_get_bitmap_screen_width()60 {61 return 360;62 }63 64 long vid_get_bitmap_screen_height()65 {66 return 240;67 }68 69 58 long vid_get_viewport_height() 70 59 { … … 111 100 return (char*)0x60354;//OK 112 101 } 113 114 long vid_get_bitmap_buffer_width() { return 360; }115 116 long vid_get_bitmap_buffer_height() { return 240; } -
branches/reyalp-flt/platform/g9/sub/100i/lib.c
r821 r1514 46 46 } 47 47 48 49 long vid_get_bitmap_screen_width()50 {51 return 360;52 }53 54 long vid_get_bitmap_screen_height()55 {56 return 240;57 }58 59 48 long vid_get_viewport_height() 60 49 { … … 88 77 return (char*)0x60354;//OK 89 78 } 90 91 long vid_get_bitmap_buffer_width() { return 360; }92 93 long vid_get_bitmap_buffer_height() { return 240; } -
branches/reyalp-flt/platform/generic/wrappers.c
r1511 r1514 1163 1163 // same as bitmap width for most cameras, override in platform/sub/lib.c as needed 1164 1164 int __attribute__((weak)) vid_get_viewport_width() { 1165 return vid_get_bitmap_screen_width();1165 return camera_screen.width; 1166 1166 } 1167 1167 -
branches/reyalp-flt/platform/ixus1000_sd4500/platform_camera.h
r1418 r1514 94 94 #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 95 95 96 #define CAM_HAS_VARIABLE_ASPECT 196 #define CAM_HAS_VARIABLE_ASPECT 1 97 97 98 //nandoide sept-200999 98 #undef CAM_USES_ASPECT_CORRECTION 100 #undef CAM_USES_ASPECT_YCORRECTION101 99 #define CAM_USES_ASPECT_CORRECTION 1 //camera uses the modified graphics primitives to map screens an viewports to buffers more sized 102 #define CAM_USES_ASPECT_YCORRECTION 0 //only uses mappings on x coordinate 103 104 105 //#undef ASPECT_XCORRECTION 106 //#define ASPECT_XCORRECTION(x) (((x)<<1)) //correction x*screen_buffer_width/screen_width = x*960/480 = x*2/1 107 108 #undef ASPECT_GRID_XCORRECTION 109 #define ASPECT_GRID_XCORRECTION(x) ( (x)+60 ) 110 #undef ASPECT_GRID_YCORRECTION 111 #define ASPECT_GRID_YCORRECTION(y) ( (y) ) //y correction for grids made on a 360x240 As the buffer is 720x240 we have no correction here. 112 113 114 #undef ASPECT_VIEWPORT_XCORRECTION 115 #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 116 #undef ASPECT_VIEWPORT_YCORRECTION 117 #define ASPECT_VIEWPORT_YCORRECTION(y) ( (y) ) 100 #undef CAM_SCREEN_WIDTH 101 #undef CAM_BITMAP_WIDTH 102 #undef CAM_BITMAP_HEIGHT 103 #define CAM_SCREEN_WIDTH 480 // Width of bitmap screen in CHDK co-ordinates 104 #define CAM_BITMAP_WIDTH 960 // Actual width of bitmap screen in bytes 105 #define CAM_BITMAP_HEIGHT 270 // Actual height of bitmap screen in rows 118 106 119 107 #undef EDGE_HMARGIN 120 108 #define EDGE_HMARGIN 10 //10 fits video mode of sx210 121 122 //games mappings123 #undef GAMES_SCREEN_WIDTH124 #undef GAMES_SCREEN_HEIGHT125 #define GAMES_SCREEN_WIDTH 360126 #define GAMES_SCREEN_HEIGHT 240127 #undef ASPECT_GAMES_XCORRECTION128 // 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 resolution129 // 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 for130 // other modes in perfect aspect ratio 4/3: slightly better visualization: file menus more readable, ...131 #define ASPECT_GAMES_XCORRECTION(x) ( ((x)<<1) )132 #undef ASPECT_GAMES_YCORRECTION133 #define ASPECT_GAMES_YCORRECTION(y) ( (y) ) //none134 109 135 110 //zebra letterbox for saving memory … … 141 116 #define ZEBRA_HMARGIN0 30 //this 30 rows are not used by the display buffer is 720x240 effective, no 960x270, i.e. (270-240) reduction in widht possible but not done (more difficult to manage it and slower). 142 117 143 //end nandoide sept-2009144 118 #define CAM_QUALITY_OVERRIDE 1 145 119 #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 -
branches/reyalp-flt/platform/ixus1000_sd4500/sub/100d/lib.c
r1511 r1514 97 97 } 98 98 99 //ASM1989100 // found at FF9263F0 LDR R1, =0x10E - height 270101 // found at FF9263F4 MOV R0, #0x3C0 - width 960102 103 long vid_get_bitmap_screen_width()104 {105 // return SCREENX; // -------------------------------------yes, the buffer is greater, and de106 // return 320;107 108 109 //return ((mode_get()&MODE_MASK) == MODE_VIDEO_STD ||(mode_get()&MODE_MASK) == MODE_PLAY)?480:320;110 return 480; // as in sd980111 112 113 }114 115 long vid_get_bitmap_screen_height()116 {117 // return SCREENY; // ---- yes, the buffer is also greater,118 // seems a 16/9 buffer (i.e. 480x270) but duplicating pixels at x : (480x2)x270119 return 240;120 }121 122 99 // begin 16:9 support 123 100 … … 159 136 return (void*)0xB7E00; // found at FFA23818 160 137 } 161 162 long vid_get_bitmap_buffer_width() { return 960; }163 164 long vid_get_bitmap_buffer_height() { return 270; }165 -
branches/reyalp-flt/platform/ixus1000_sd4500/sub/100f/lib.c
r1511 r1514 139 139 } 140 140 141 //ASM1989142 // found at FF9263F0 LDR R1, =0x10E - height 270143 // found at FF9263F4 MOV R0, #0x3C0 - width 960144 145 long vid_get_bitmap_screen_width()146 {147 // return SCREENX; // -------------------------------------yes, the buffer is greater, and de148 // return 320;149 150 151 //return ((mode_get()&MODE_MASK) == MODE_VIDEO_STD ||(mode_get()&MODE_MASK) == MODE_PLAY)?480:320;152 return 480; // as in sd980153 154 155 }156 157 long vid_get_bitmap_screen_height()158 {159 // return SCREENY; // ---- yes, the buffer is also greater,160 // seems a 16/9 buffer (i.e. 480x270) but duplicating pixels at x : (480x2)x270161 return 240;162 }163 141 164 142 // begin 16:9 support … … 201 179 return (void*)0xB7E00; // found at FFA23818 202 180 } 203 204 long vid_get_bitmap_buffer_width() { return 960; }205 206 long vid_get_bitmap_buffer_height() { return 270; }207 -
branches/reyalp-flt/platform/ixus100_sd780/platform_camera.h
r1418 r1514 100 100 #undef CAM_USES_ASPECT_CORRECTION 101 101 #define CAM_USES_ASPECT_CORRECTION 1 //camera uses the modified graphics primitives to map screens an viewports to buffers more sized 102 #undef CAM_BITMAP_WIDTH 103 #undef CAM_BITMAP_HEIGHT 104 #define CAM_BITMAP_WIDTH 960 // Actual width of bitmap screen in bytes 105 #define CAM_BITMAP_HEIGHT 270 // Actual height of bitmap screen in rows 102 106 103 107 #define CAM_ZEBRA_ASPECT_ADJUST 1 -
branches/reyalp-flt/platform/ixus100_sd780/sub/100b/lib.c
r1328 r1514 66 66 } 67 67 68 69 //SD780 - 720px real screen width70 long vid_get_bitmap_screen_width()71 {72 return 360; // half of real for aspect correction73 //72074 }75 76 //SD780 - 240px real screen height77 long vid_get_bitmap_screen_height()78 {79 return 240;80 //24081 }82 83 68 //VERIFY_SD780 - - Check resolutions again. 84 69 int vid_get_viewport_width() … … 99 84 return (char *)0x33110; 100 85 } 101 102 //VERIFY_SD780103 long vid_get_bitmap_buffer_width() { return 960; } // _sub_FF8EA47C__BmpDDev_c__134...104 // or maybe not, some 360x240 cams have this too ?105 //VERIFY_SD780106 long vid_get_bitmap_buffer_height() { return 270; } -
branches/reyalp-flt/platform/ixus100_sd780/sub/100c/lib.c
r1173 r1514 66 66 } 67 67 68 69 //SD780 - 720px real screen width70 long vid_get_bitmap_screen_width()71 {72 return 360; // half of real for aspect correction73 //72074 }75 76 //SD780 - 240px real screen height77 long vid_get_bitmap_screen_height()78 {79 return 240;80 //24081 }82 83 68 //VERIFY_SD780 - - Check resolutions again. 84 69 int vid_get_viewport_width() … … 99 84 return (char *)0x33110; 100 85 } 101 102 //VERIFY_SD780103 long vid_get_bitmap_buffer_width() { return 960; } // _sub_FF8EA47C__BmpDDev_c__134...104 // or maybe not, some 360x240 cams have this too ?105 //VERIFY_SD780106 long vid_get_bitmap_buffer_height() { return 270; } -
branches/reyalp-flt/platform/ixus120_sd940/platform_camera.h
r1511 r1514 87 87 #undef CAM_USES_ASPECT_CORRECTION 88 88 #define CAM_USES_ASPECT_CORRECTION 1 //camera uses the modified graphics primitives to map screens an viewports to buffers more sized 89 #undef CAM_BITMAP_WIDTH 90 #undef CAM_BITMAP_HEIGHT 91 #define CAM_BITMAP_WIDTH 960 // Actual width of bitmap screen in bytes 92 #define CAM_BITMAP_HEIGHT 270 // Actual height of bitmap screen in rows 89 93 90 94 #undef EDGE_HMARGIN -
branches/reyalp-flt/platform/ixus120_sd940/sub/100e/lib.c
r1207 r1514 2 2 3 3 #include "platform.h" 4 5 long vid_get_bitmap_screen_width()6 {7 return 360 ; // SD940 103c ? 360 103b: seems to use same number.8 }9 10 long vid_get_bitmap_screen_height()11 {12 return 240; // SD940 103c 103b: seems to use same number.13 }14 4 15 5 int vid_get_viewport_width() … … 21 11 { 22 12 return 240; // SD940 103c 103b: seems to use same number. 23 }24 25 long vid_get_bitmap_buffer_width()26 {27 return 960; // SD940 103c 103b: seems to use same number.28 }29 30 long vid_get_bitmap_buffer_height()31 {32 return 270; // SD940 103c 103b: seems to use same number.33 13 } 34 14 -
branches/reyalp-flt/platform/ixus120_sd940/sub/101a/lib.c
r1207 r1514 2 2 3 3 #include "platform.h" 4 5 long vid_get_bitmap_screen_width()6 {7 return 360 ; // SD940 103c ? 360 103b: seems to use same number.8 }9 10 long vid_get_bitmap_screen_height()11 {12 return 240; // SD940 103c 103b: seems to use same number.13 }14 4 15 5 int vid_get_viewport_width() … … 21 11 { 22 12 return 240; // SD940 103c 103b: seems to use same number. 23 }24 25 long vid_get_bitmap_buffer_width()26 {27 return 960; // SD940 103c 103b: seems to use same number.28 }29 30 long vid_get_bitmap_buffer_height()31 {32 return 270; // SD940 103c 103b: seems to use same number.33 13 } 34 14 -
branches/reyalp-flt/platform/ixus120_sd940/sub/102c/lib.c
r1207 r1514 56 56 } 57 57 58 59 long vid_get_bitmap_screen_width()60 {61 //return 320;62 63 return 360;64 }65 66 67 long vid_get_bitmap_screen_height()68 {69 return 240;70 }71 72 73 58 long vid_get_viewport_height() 74 59 { … … 86 71 return (char *) 0x700B0; // search on "9999" 87 72 } 88 89 long vid_get_bitmap_buffer_width()90 {91 return 960;92 }93 94 95 long vid_get_bitmap_buffer_height()96 {97 //return 240;98 99 return 270;100 } -
branches/reyalp-flt/platform/ixus120_sd940/sub/103b/lib.c
r1207 r1514 1 1 #include "platform.h" 2 3 long vid_get_bitmap_screen_width()4 {5 return 360 ; // SD940 103c ? 360 103b: seems to use same number.6 }7 8 long vid_get_bitmap_screen_height()9 {10 return 240; // SD940 103c 103b: seems to use same number.11 }12 2 13 3 int vid_get_viewport_width() … … 19 9 { 20 10 return 240; // SD940 103c 103b: seems to use same number. 21 }22 23 long vid_get_bitmap_buffer_width()24 {25 return 960; // SD940 103c 103b: seems to use same number.26 }27 28 long vid_get_bitmap_buffer_height()29 {30 return 270; // SD940 103c 103b: seems to use same number.31 11 } 32 12 -
branches/reyalp-flt/platform/ixus120_sd940/sub/103c/lib.c
r1207 r1514 1 1 #include "platform.h" 2 3 long vid_get_bitmap_screen_width()4 {5 return 360 ; // SD940 103c ? 3606 }7 8 long vid_get_bitmap_screen_height()9 {10 return 240; // SD940 103c11 }12 2 13 3 int vid_get_viewport_width() … … 19 9 { 20 10 return 240; // SD940 103c 21 }22 23 long vid_get_bitmap_buffer_width()24 {25 return 960; // SD940 103c26 }27 28 long vid_get_bitmap_buffer_height()29 {30 return 270; // SD940 103c31 11 } 32 12 -
branches/reyalp-flt/platform/ixus200_sd980/platform_camera.h
r1418 r1514 75 75 #undef CAM_USES_ASPECT_CORRECTION 76 76 #define CAM_USES_ASPECT_CORRECTION 1 //camera uses the modified graphics primitives to map screens an viewports to buffers more sized 77 #undef CAM_SCREEN_WIDTH 78 #undef CAM_BITMAP_WIDTH 79 #undef CAM_BITMAP_HEIGHT 80 #define CAM_SCREEN_WIDTH 480 // Width of bitmap screen in CHDK co-ordinates 81 #define CAM_BITMAP_WIDTH 960 // Actual width of bitmap screen in bytes 82 #define CAM_BITMAP_HEIGHT 270 // Actual height of bitmap screen in rows 77 83 78 84 #undef EDGE_HMARGIN -
branches/reyalp-flt/platform/ixus200_sd980/sub/101c/lib.c
r1511 r1514 41 41 } 42 42 43 44 long vid_get_bitmap_screen_width() { return 480; }45 long vid_get_bitmap_screen_height() { return 240; }46 long vid_get_bitmap_buffer_width() { return 960; }47 long vid_get_bitmap_buffer_height() { return 270; }48 49 50 43 long vid_get_viewport_height() { return 240; } 51 44 -
branches/reyalp-flt/platform/ixus200_sd980/sub/101d/lib.c
r1511 r1514 41 41 } 42 42 43 44 long vid_get_bitmap_screen_width() { return 480; }45 long vid_get_bitmap_screen_height() { return 240; }46 long vid_get_bitmap_buffer_width() { return 960; }47 long vid_get_bitmap_buffer_height() { return 270; }48 49 50 43 long vid_get_viewport_height() { return 240; } 51 44 -
branches/reyalp-flt/platform/ixus220_elph300hs/lib.c
r1511 r1514 48 48 // Values that may change are in lib.c for each firmware version. 49 49 50 long vid_get_bitmap_screen_width() { return 360; }51 long vid_get_bitmap_screen_height() { return 240; }52 long vid_get_bitmap_buffer_width() { return 960; }53 long vid_get_bitmap_buffer_height() { return 270; }54 55 50 int vid_get_viewport_buffer_width() { return 360; } 56 51 -
branches/reyalp-flt/platform/ixus220_elph300hs/platform_camera.h
r1457 r1514 76 76 #undef CAM_USES_ASPECT_CORRECTION 77 77 #define CAM_USES_ASPECT_CORRECTION 1 //camera uses the modified graphics primitives to map screens an viewports to buffers more sized 78 #undef CAM_BITMAP_WIDTH 79 #undef CAM_BITMAP_HEIGHT 80 #define CAM_BITMAP_WIDTH 960 // Actual width of bitmap screen in bytes 81 #define CAM_BITMAP_HEIGHT 270 // Actual height of bitmap screen in rows 78 82 79 83 #undef EDGE_HMARGIN -
branches/reyalp-flt/platform/ixus220_elph300hs/sub/100c/stubs_entry.S
- Property svn:eol-style set to native
-
branches/reyalp-flt/platform/ixus220_elph300hs/sub/101a/stubs_entry.S
- Property svn:eol-style set to native
-
branches/reyalp-flt/platform/ixus220_elph300hs/sub/101c/stubs_entry.S
- Property svn:eol-style set to native
-
branches/reyalp-flt/platform/ixus300_sd4000/lib.c
r1377 r1514 156 156 // Values that may change are in lib.c for each firmware version. 157 157 158 // ROM:FF9013D8 0x2D0 = 720 ?!?159 // SD990 ROM:FF83CFC8 ?!?160 long vid_get_bitmap_screen_width() {161 //return 320;162 //return 360;163 return 480;164 //return 720;165 //return 960;166 }167 168 long vid_get_bitmap_screen_height() {169 return 240;170 //return 270;171 //return 360;172 }173 174 // if buffer width was to small, CHDK Logo was shown as distorted "row" on Display175 long vid_get_bitmap_buffer_width() {176 //return 360;177 //return 480;178 //return 720;179 return 960; // working180 }181 182 long vid_get_bitmap_buffer_height() {183 //return 240;184 return 270;185 //return 360;186 //return 480;187 }188 189 158 /* 190 159 int vid_get_viewport_width() { -
branches/reyalp-flt/platform/ixus300_sd4000/platform_camera.h
r1418 r1514 123 123 #undef CAM_USES_ASPECT_CORRECTION 124 124 #define CAM_USES_ASPECT_CORRECTION 1 // camera uses the modified graphics primitives to map screens an viewports to buffers more sized 125 #undef CAM_SCREEN_WIDTH 126 #undef CAM_BITMAP_WIDTH 127 #undef CAM_BITMAP_HEIGHT 128 #define CAM_SCREEN_WIDTH 480 // Width of bitmap screen in CHDK co-ordinates 129 #define CAM_BITMAP_WIDTH 960 // Actual width of bitmap screen in bytes 130 #define CAM_BITMAP_HEIGHT 270 // Actual height of bitmap screen in rows 125 131 126 132 // Not required -
branches/reyalp-flt/platform/ixus310_elph500hs/kbd.c
r1498 r1514 345 345 #endif 346 346 { 3, KEY_DISPLAY , 0x00000008, LB(0,4), 0, "Back", 0, GUI_MODE_MENU, GUI_MODE_MENU, MODE_REC|MODE_PLAY }, 347 { 3, KEY_DISPLAY , 0x00000008, LB(0,4), 0, "Disp", 0, GUI_MODE_ PALETTE,100, MODE_REC|MODE_PLAY },347 { 3, KEY_DISPLAY , 0x00000008, LB(0,4), 0, "Disp", 0, GUI_MODE_MENU+1, 100, MODE_REC|MODE_PLAY }, 348 348 { 3, KEY_UP , 0x00000010, RB(0,1), 0, "Up", 0, GUI_MODE_ALT, 100, MODE_REC|MODE_PLAY }, 349 349 { 3, KEY_LEFT , 0x00000020, RB(0,2), 0, "Left", 0, GUI_MODE_ALT, 100, MODE_REC|MODE_PLAY }, -
branches/reyalp-flt/platform/ixus310_elph500hs/lib.c
r1511 r1514 79 79 return bitmap_buffer[0]; 80 80 } 81 82 long vid_get_bitmap_screen_width() { return 480; }83 long vid_get_bitmap_screen_height() { return 240; }84 long vid_get_bitmap_buffer_width() { return 960; }85 long vid_get_bitmap_buffer_height() { return 270; }86 81 87 82 // Physical width of viewport row in bytes -
branches/reyalp-flt/platform/ixus310_elph500hs/platform_camera.h
r1512 r1514 78 78 #undef CAM_USES_ASPECT_CORRECTION 79 79 #define CAM_USES_ASPECT_CORRECTION 1 //camera uses the modified graphics primitives to map screens an viewports to buffers more sized 80 #undef CAM_SCREEN_WIDTH 81 #undef CAM_BITMAP_WIDTH 82 #undef CAM_BITMAP_HEIGHT 83 #define CAM_SCREEN_WIDTH 480 // Width of bitmap screen in CHDK co-ordinates 84 #define CAM_BITMAP_WIDTH 960 // Actual width of bitmap screen in bytes 85 #define CAM_BITMAP_HEIGHT 270 // Actual height of bitmap screen in rows 80 86 81 87 #undef EDGE_HMARGIN -
branches/reyalp-flt/platform/ixus40_sd300/sub/100j/lib.c
r718 r1514 59 59 } 60 60 61 long vid_get_bitmap_screen_width()62 {63 return 360;64 }65 66 long vid_get_bitmap_screen_height()67 {68 return 240;69 }70 71 61 long vid_get_viewport_height() 72 62 { … … 78 68 return (char*)0x75F30; //ok 79 69 } 80 81 long vid_get_bitmap_buffer_width() { return 360; }82 83 long vid_get_bitmap_buffer_height() { return 240; } -
branches/reyalp-flt/platform/ixus40_sd300/sub/100k/lib.c
r718 r1514 59 59 } 60 60 61 long vid_get_bitmap_screen_width()62 {63 return 360;64 }65 66 long vid_get_bitmap_screen_height()67 {68 return 240;69 }70 71 61 long vid_get_viewport_height() 72 62 { … … 78 68 return (char*)0x75F30; //ok 79 69 } 80 81 long vid_get_bitmap_buffer_width() { return 360; }82 83 long vid_get_bitmap_buffer_height() { return 240; } -
branches/reyalp-flt/platform/ixus50_sd400/sub/101a/lib.c
r515 r1514 60 60 } 61 61 62 long vid_get_bitmap_screen_width()63 {64 return 360;65 }66 67 long vid_get_bitmap_screen_height()68 {69 return 240;70 }71 72 62 long vid_get_viewport_height() 73 63 { … … 79 69 return (char*)0x75EC0; 80 70 } 81 82 long vid_get_bitmap_buffer_width() { return 360; }83 84 long vid_get_bitmap_buffer_height() { return 240; } -
branches/reyalp-flt/platform/ixus50_sd400/sub/101b/lib.c
r515 r1514 60 60 } 61 61 62 long vid_get_bitmap_screen_width()63 {64 return 360;65 }66 67 long vid_get_bitmap_screen_height()68 {69 return 240;70 }71 72 62 long vid_get_viewport_height() 73 63 { … … 79 69 return (char*)0x75EC0; // OK! 80 70 } 81 82 long vid_get_bitmap_buffer_width() { return 360; }83 84 long vid_get_bitmap_buffer_height() { return 240; } -
branches/reyalp-flt/platform/ixus55_sd450/sub/100b/lib.c
r515 r1514 45 45 } 46 46 47 long vid_get_bitmap_screen_width()48 {49 return 360;50 }51 52 long vid_get_bitmap_screen_height()53 {54 return 240;55 }56 57 47 long vid_get_viewport_height() 58 48 { … … 69 59 return (char*)0x9B58; 70 60 } 71 72 73 long vid_get_bitmap_buffer_width() { return 360; }74 75 long vid_get_bitmap_buffer_height() { return 240; }76 -
branches/reyalp-flt/platform/ixus55_sd450/sub/100c/lib.c
r515 r1514 45 45 } 46 46 47 long vid_get_bitmap_screen_width()48 {49 return 360;50 }51 52 long vid_get_bitmap_screen_height()53 {54 return 240;55 }56 57 47 long vid_get_viewport_height() 58 48 { … … 70 60 } 71 61 72 long vid_get_bitmap_buffer_width() { return 360; }73 74 long vid_get_bitmap_buffer_height() { return 240; }75 76 62 void _EnterToCompensationEVF() {} // Dummy function. To be removed after stub is found. See stubs_entry_2.S. 77 63 void _ExitFromCompensationEVF() {} // Dummy function. To be removed after stub is found. See stubs_entry_2.S. -
branches/reyalp-flt/platform/ixus55_sd450/sub/100d/lib.c
r515 r1514 45 45 } 46 46 47 long vid_get_bitmap_screen_width()48 {49 return 360;50 }51 52 long vid_get_bitmap_screen_height()53 {54 return 240;55 }56 57 47 long vid_get_viewport_height() 58 48 { … … 69 59 return (char*)0x9B58; 70 60 } 71 72 long vid_get_bitmap_buffer_width() { return 360; }73 74 long vid_get_bitmap_buffer_height() { return 240; }75 -
branches/reyalp-flt/platform/ixus60_sd600/sub/100a/lib.c
r812 r1514 50 50 } 51 51 52 long vid_get_bitmap_screen_width()53 {54 return 360;55 }56 57 long vid_get_bitmap_screen_height()58 {59 return 240;60 }61 62 52 long vid_get_viewport_height() 63 53 { … … 70 60 } 71 61 72 long vid_get_bitmap_buffer_width() { return 360; }73 74 long vid_get_bitmap_buffer_height() { return 240; }75 76 62 void _EnterToCompensationEVF() {} // Dummy function. To be removed after stub is found. See stubs_entry_2.S. 77 63 void _ExitFromCompensationEVF() {} // Dummy function. To be removed after stub is found. See stubs_entry_2.S. -
branches/reyalp-flt/platform/ixus60_sd600/sub/100d/lib.c
r812 r1514 50 50 } 51 51 52 long vid_get_bitmap_screen_width()53 {54 return 360;55 }56 57 long vid_get_bitmap_screen_height()58 {59 return 240;60 }61 62 52 long vid_get_viewport_height() 63 53 { … … 70 60 } 71 61 72 long vid_get_bitmap_buffer_width() { return 360; }73 74 long vid_get_bitmap_buffer_height() { return 240; }75 76 62 void _EnterToCompensationEVF() {} // Dummy function. To be removed after stub is found. See stubs_entry_2.S. 77 63 void _ExitFromCompensationEVF() {} // Dummy function. To be removed after stub is found. See stubs_entry_2.S. -
branches/reyalp-flt/platform/ixus65_sd630/sub/100a/lib.c
r955 r1514 44 44 } 45 45 46 long vid_get_bitmap_screen_width()47 {48 return 360;49 }50 51 long vid_get_bitmap_screen_height()52 {53 return 240;54 }55 56 46 long vid_get_viewport_height() 57 47 { … … 64 54 return (char*)0x10B80; 65 55 } 56 66 57 int movie_status = 0; 67 68 long vid_get_bitmap_buffer_width() { return 360; }69 70 long vid_get_bitmap_buffer_height() { return 240; }71 58 72 59 void _EnterToCompensationEVF() {} // Dummy function. To be removed after stub is found. See stubs_entry_2.S. -
branches/reyalp-flt/platform/ixus700_sd500/sub/101a/lib.c
r515 r1514 44 44 } 45 45 46 long vid_get_bitmap_screen_width()47 {48 return 360;49 }50 51 long vid_get_bitmap_screen_height()52 {53 return 240;54 }55 56 46 long vid_get_viewport_height() 57 47 { … … 63 53 } 64 54 65 long vid_get_bitmap_buffer_width() { return 360; }66 67 long vid_get_bitmap_buffer_height() { return 240; }68 69 55 void _EnterToCompensationEVF() {} // Dummy function. To be removed after stub is found. See stubs_entry_2.S. 70 56 void _ExitFromCompensationEVF() {} // Dummy function. To be removed after stub is found. See stubs_entry_2.S. -
branches/reyalp-flt/platform/ixus700_sd500/sub/101b/lib.c
r515 r1514 44 44 } 45 45 46 long vid_get_bitmap_screen_width()47 {48 return 360;49 }50 51 long vid_get_bitmap_screen_height()52 {53 return 240;54 }55 56 46 long vid_get_viewport_height() 57 47 { … … 63 53 } 64 54 65 long vid_get_bitmap_buffer_width() { return 360; }66 67 long vid_get_bitmap_buffer_height() { return 240; }68 69 55 void _EnterToCompensationEVF() {} // Dummy function. To be removed after stub is found. See stubs_entry_2.S. 70 56 void _ExitFromCompensationEVF() {} // Dummy function. To be removed after stub is found. See stubs_entry_2.S. -
branches/reyalp-flt/platform/ixus70_sd1000/sub/100c/lib.c
r515 r1514 51 51 } 52 52 53 long vid_get_bitmap_screen_width()54 {55 return 360;56 }57 58 long vid_get_bitmap_screen_height()59 {60 return 240;61 }62 63 53 long vid_get_viewport_height() 64 54 { … … 69 59 return (char*)0x12298; 70 60 } 71 72 long vid_get_bitmap_buffer_width() { return 360; }73 74 long vid_get_bitmap_buffer_height() { return 240; }75 -
branches/reyalp-flt/platform/ixus70_sd1000/sub/101b/lib.c
r515 r1514 51 51 } 52 52 53 long vid_get_bitmap_screen_width()54 {55 return 360;56 }57 58 long vid_get_bitmap_screen_height()59 {60 return 240;61 }62 63 53 long vid_get_viewport_height() 64 54 { … … 69 59 return (char*)0x12298; 70 60 } 71 72 long vid_get_bitmap_buffer_width() { return 360; }73 74 long vid_get_bitmap_buffer_height() { return 240; }75 -
branches/reyalp-flt/platform/ixus70_sd1000/sub/102a/lib.c
r515 r1514 51 51 } 52 52 53 long vid_get_bitmap_screen_width()54 {55 return 360;56 }57 58 long vid_get_bitmap_screen_height()59 {60 return 240;61 }62 63 53 long vid_get_viewport_height() 64 54 { … … 69 59 return (char*)0x12298; 70 60 } 71 72 long vid_get_bitmap_buffer_width() { return 360; }73 74 long vid_get_bitmap_buffer_height() { return 240; }75 -
branches/reyalp-flt/platform/ixus750_sd550/sub/100f/lib.c
r515 r1514 47 47 } 48 48 49 long vid_get_bitmap_screen_width()50 {51 return 360;52 }53 54 long vid_get_bitmap_screen_height()55 {56 return 240;57 }58 59 49 long vid_get_viewport_height() 60 50 { … … 66 56 } 67 57 68 long vid_get_bitmap_buffer_width() { return 360; }69 70 long vid_get_bitmap_buffer_height() { return 240; }71 72 58 void _EnterToCompensationEVF() {} // Dummy function. To be removed after stub is found. See stubs_entry_2.S. 73 59 void _ExitFromCompensationEVF() {} // Dummy function. To be removed after stub is found. See stubs_entry_2.S. -
branches/reyalp-flt/platform/ixus750_sd550/sub/100g/lib.c
r515 r1514 47 47 } 48 48 49 long vid_get_bitmap_screen_width()50 {51 return 360;52 }53 54 long vid_get_bitmap_screen_height()55 {56 return 240;57 }58 59 49 long vid_get_viewport_height() 60 50 { … … 66 56 } 67 57 68 long vid_get_bitmap_buffer_width() { return 360; }69 70 long vid_get_bitmap_buffer_height() { return 240; }71 72 58 void _EnterToCompensationEVF() {} // Dummy function. To be removed after stub is found. See stubs_entry_2.S. 73 59 void _ExitFromCompensationEVF() {} // Dummy function. To be removed after stub is found. See stubs_entry_2.S. -
branches/reyalp-flt/platform/ixus750_sd550/sub/100h/lib.c
r1181 r1514 47 47 } 48 48 49 long vid_get_bitmap_screen_width()50 {51 return 360;52 }53 54 long vid_get_bitmap_screen_height()55 {56 return 240;57 }58 59 49 long vid_get_viewport_height() 60 50 { … … 66 56 } 67 57 68 long vid_get_bitmap_buffer_width() { return 360; }69 70 long vid_get_bitmap_buffer_height() { return 240; }71 72 58 void _EnterToCompensationEVF() {} // Dummy function. To be removed after stub is found. See stubs_entry_2.S. 73 59 void _ExitFromCompensationEVF() {} // Dummy function. To be removed after stub is found. See stubs_entry_2.S. -
branches/reyalp-flt/platform/ixus75_sd750/sub/100b/lib.c
r564 r1514 47 47 } 48 48 49 long vid_get_bitmap_screen_width()50 {51 return 360;52 }53 54 long vid_get_bitmap_screen_height()55 {56 return 240;57 }58 59 49 long vid_get_viewport_height() 60 50 { … … 67 57 return (char*)0x12600; 68 58 } 69 70 long vid_get_bitmap_buffer_width() { return 360; }71 72 long vid_get_bitmap_buffer_height() { return 240; } -
branches/reyalp-flt/platform/ixus75_sd750/sub/101a/lib.c
r564 r1514 47 47 } 48 48 49 long vid_get_bitmap_screen_width()50 {51 return 360;52 }53 54 long vid_get_bitmap_screen_height()55 {56 return 240;57 }58 59 49 long vid_get_viewport_height() 60 50 { … … 67 57 return (char*)0x12600; 68 58 } 69 70 long vid_get_bitmap_buffer_width() { return 360; }71 72 long vid_get_bitmap_buffer_height() { return 240; } -
branches/reyalp-flt/platform/ixus75_sd750/sub/102a/lib.c
r564 r1514 47 47 } 48 48 49 long vid_get_bitmap_screen_width()50 {51 return 360;52 }53 54 long vid_get_bitmap_screen_height()55 {56 return 240;57 }58 59 49 long vid_get_viewport_height() 60 50 { … … 67 57 return (char*)0x12600; 68 58 } 69 70 long vid_get_bitmap_buffer_width() { return 360; }71 72 long vid_get_bitmap_buffer_height() { return 240; } -
branches/reyalp-flt/platform/ixus800_sd700/sub/100b/lib.c
r515 r1514 41 41 } 42 42 43 long vid_get_bitmap_screen_width()44 {45 return 360;46 }47 48 long vid_get_bitmap_screen_height()49 {50 return 240;51 }52 53 43 long vid_get_viewport_height() 54 44 { … … 61 51 } 62 52 63 64 long vid_get_bitmap_buffer_width() { return 360; }65 66 long vid_get_bitmap_buffer_height() { return 240; }67 68 53 void _EnterToCompensationEVF() {} // Dummy function. To be removed after stub is found. See stubs_entry_2.S. 69 54 void _ExitFromCompensationEVF() {} // Dummy function. To be removed after stub is found. See stubs_entry_2.S. -
branches/reyalp-flt/platform/ixus800_sd700/sub/101b/lib.c
r515 r1514 41 41 } 42 42 43 long vid_get_bitmap_screen_width()44 {45 return 360;46 }47 48 long vid_get_bitmap_screen_height()49 {50 return 240;51 }52 53 43 long vid_get_viewport_height() 54 44 { … … 61 51 } 62 52 63 long vid_get_bitmap_buffer_width() { return 360; }64 65 long vid_get_bitmap_buffer_height() { return 240; }66 67 53 void _EnterToCompensationEVF() {} // Dummy function. To be removed after stub is found. See stubs_entry_2.S. 68 54 void _ExitFromCompensationEVF() {} // Dummy function. To be removed after stub is found. See stubs_entry_2.S. -
branches/reyalp-flt/platform/ixus80_sd1100/sub/100c/lib.c
r569 r1514 78 78 } 79 79 80 long vid_get_bitmap_screen_width() 81 { 82 return 360; 83 } 84 85 long vid_get_bitmap_screen_height() 80 long vid_get_viewport_height() 86 81 { 87 82 return 240; 88 83 } 89 84 90 long vid_get_viewport_height()91 {92 return 240;93 }94 85 char *camera_jpeg_count_str() 95 86 { 96 87 return (char*)0x4c2c4; 97 88 } 98 99 long vid_get_bitmap_buffer_width() { return 360; }100 101 long vid_get_bitmap_buffer_height() { return 240; } -
branches/reyalp-flt/platform/ixus80_sd1100/sub/101a/lib.c
r569 r1514 51 51 } 52 52 53 long vid_get_bitmap_screen_width()54 {55 return 360;56 }57 58 long vid_get_bitmap_screen_height()59 {60 return 240;61 }62 63 53 long vid_get_viewport_height() 64 54 { … … 69 59 return (char*)0x4c2c4; 70 60 } 71 72 long vid_get_bitmap_buffer_width() { return 360; }73 74 long vid_get_bitmap_buffer_height() { return 240; } -
branches/reyalp-flt/platform/ixus850_sd800/sub/100e/lib.c
r702 r1514 118 118 } 119 119 120 long vid_get_bitmap_screen_width()121 {122 return 360;123 }124 125 long vid_get_bitmap_screen_height()126 {127 return 240;128 }129 130 120 long vid_get_viewport_height() 131 121 { … … 159 149 return (char*)0x96F80; 160 150 } 161 162 long vid_get_bitmap_buffer_width() { return 360; }163 164 long vid_get_bitmap_buffer_height() { return 240; } -
branches/reyalp-flt/platform/ixus85_sd770/sub/100a/lib.c
r1173 r1514 71 71 } 72 72 73 long vid_get_bitmap_screen_width() { return 360; }74 75 long vid_get_bitmap_screen_height() { return 240; }76 77 73 long vid_get_viewport_height() { return 240; } 78 79 long vid_get_bitmap_buffer_width() { return 360; }80 81 long vid_get_bitmap_buffer_height() { return 240; } -
branches/reyalp-flt/platform/ixus860_sd870/sub/100c/lib.c
r515 r1514 50 50 } 51 51 52 53 long vid_get_bitmap_screen_width()54 {55 return 360;56 }57 58 long vid_get_bitmap_screen_height()59 {60 return 240;61 }62 63 52 long vid_get_viewport_height() 64 53 { … … 70 59 } 71 60 72 long vid_get_bitmap_buffer_width() { return 360; }73 74 long vid_get_bitmap_buffer_height() { return 240; }75 76 61 void _EnterToCompensationEVF() {} // Dummy function. To be removed after stub is found. See stubs_entry_2.S. 77 62 void _ExitFromCompensationEVF() {} // Dummy function. To be removed after stub is found. See stubs_entry_2.S. -
branches/reyalp-flt/platform/ixus870_sd880/sub/100e/lib.c
r1174 r1514 52 52 } 53 53 54 55 long vid_get_bitmap_screen_width()56 {57 return 360;58 }59 60 long vid_get_bitmap_screen_height()61 {62 return 240;63 }64 65 54 long vid_get_viewport_height() 66 55 { … … 73 62 return (char*)0x4A980; 74 63 } 75 76 77 long vid_get_bitmap_buffer_width() { return 360; }78 79 long vid_get_bitmap_buffer_height() { return 240; } -
branches/reyalp-flt/platform/ixus870_sd880/sub/101a/lib.c
r1174 r1514 52 52 } 53 53 54 55 long vid_get_bitmap_screen_width()56 {57 return 360;58 }59 60 long vid_get_bitmap_screen_height()61 {62 return 240;63 }64 65 54 long vid_get_viewport_height() 66 55 { … … 73 62 return (char*)0x4A980; 74 63 } 75 76 77 long vid_get_bitmap_buffer_width() { return 360; }78 79 long vid_get_bitmap_buffer_height() { return 240; } -
branches/reyalp-flt/platform/ixus870_sd880/sub/102b/lib.c
r1174 r1514 52 52 } 53 53 54 55 long vid_get_bitmap_screen_width()56 {57 return 360;58 }59 60 long vid_get_bitmap_screen_height()61 {62 return 240;63 }64 65 54 long vid_get_viewport_height() 66 55 { … … 73 62 return (char*)0x4A980; 74 63 } 75 76 77 long vid_get_bitmap_buffer_width() { return 360; }78 79 long vid_get_bitmap_buffer_height() { return 240; } -
branches/reyalp-flt/platform/ixus900_sd900/sub/100c/lib.c
r974 r1514 163 163 } 164 164 165 long vid_get_bitmap_screen_width() {166 return 360;167 }168 169 long vid_get_bitmap_screen_height() {170 return 240;171 }172 173 165 long vid_get_viewport_height() { 174 166 return ((mode_get()&MODE_MASK) == MODE_PLAY)?240:230; … … 201 193 return (char*)0x818C8; // ROM:FFAA714C 202 194 } 203 204 long vid_get_bitmap_buffer_width() {205 return 360;206 }207 208 long vid_get_bitmap_buffer_height() {209 return 240;210 } -
branches/reyalp-flt/platform/ixus90_sd790/sub/100c/lib.c
r1376 r1514 44 44 } 45 45 46 47 long vid_get_bitmap_screen_width()48 {49 return 360;50 }51 52 long vid_get_bitmap_screen_height()53 {54 return 240;55 }56 57 46 long vid_get_viewport_height() 58 47 { … … 63 52 return (char*)0x4C97C; // ixus90 64 53 } 65 66 long vid_get_bitmap_buffer_width() { return 360; }67 68 long vid_get_bitmap_buffer_height() { return 240; } -
branches/reyalp-flt/platform/ixus90_sd790/sub/100d/lib.c
r1376 r1514 46 46 } 47 47 48 49 long vid_get_bitmap_screen_width()50 {51 return 360;52 }53 54 long vid_get_bitmap_screen_height()55 {56 return 240;57 }58 59 48 long vid_get_viewport_height() 60 49 { … … 65 54 return (char*)0x4C97C; // ixus90 66 55 } 67 68 long vid_get_bitmap_buffer_width() { return 360; }69 70 long vid_get_bitmap_buffer_height() { return 240; } -
branches/reyalp-flt/platform/ixus950_sd850/sub/100c/lib.c
r515 r1514 72 72 } 73 73 74 long vid_get_bitmap_screen_width()75 {76 return 360;77 }78 79 long vid_get_bitmap_screen_height()80 {81 return 240;82 }83 84 74 long vid_get_viewport_height() 85 75 { … … 92 82 } 93 83 94 95 long vid_get_bitmap_buffer_width() { return 360; }96 97 long vid_get_bitmap_buffer_height() { return 240; }98 99 84 void _EnterToCompensationEVF() {} // Dummy function. To be removed after stub is found. See stubs_entry_2.S. 100 85 void _ExitFromCompensationEVF() {} // Dummy function. To be removed after stub is found. See stubs_entry_2.S. -
branches/reyalp-flt/platform/ixus95_sd1200/platform_camera.h
r1418 r1514 90 90 #undef CAM_USES_ASPECT_CORRECTION 91 91 #define CAM_USES_ASPECT_CORRECTION 1 //camera uses the modified graphics primitives to map screens an viewports to buffers more sized 92 #undef CAM_BITMAP_WIDTH 93 #define CAM_BITMAP_WIDTH 720 // Actual width of bitmap screen in bytes 92 94 93 95 #define CAM_ZEBRA_ASPECT_ADJUST 1 -
branches/reyalp-flt/platform/ixus95_sd1200/sub/100c/lib.c
r1376 r1514 84 84 } 85 85 86 87 // note real width is 720, report 360 for aspect adjustment88 long vid_get_bitmap_screen_width()89 {90 return 360;91 }92 93 long vid_get_bitmap_screen_height()94 {95 return 240;96 }97 98 86 int vid_get_viewport_width() 99 87 { … … 111 99 return (char *)0x2F1D4; //SD1200 from 0xFFD57DC0 112 100 } 113 114 /* SD1200:115 * FFCADBF4 MOV R0, #0x2D0 ; 0x2D0 == 720116 * FFCADBF8 MOV R1, #0xF0 ; 0xF0 == 240117 */118 119 long vid_get_bitmap_buffer_width() { return 720; }120 long vid_get_bitmap_buffer_height() { return 240; }121 -
branches/reyalp-flt/platform/ixus960_sd950/sub/100d/lib.c
r668 r1514 43 43 } 44 44 45 46 long vid_get_bitmap_width()47 {48 return 360;49 }50 51 long vid_get_bitmap_height()52 {53 return 240;54 }55 56 45 long vid_get_viewport_height() 57 46 { … … 63 52 } 64 53 65 long vid_get_bitmap_screen_width()66 {67 return 360;68 }69 70 long vid_get_bitmap_screen_height()71 {72 return 240;73 }74 75 76 long vid_get_bitmap_buffer_width() { return 360; }77 78 79 long vid_get_bitmap_buffer_height() { return 240; }80 81 82 54 void _EnterToCompensationEVF() {} // Dummy function. To be removed after stub is found. See stubs_entry_2.S. 83 55 void _ExitFromCompensationEVF() {} // Dummy function. To be removed after stub is found. See stubs_entry_2.S. -
branches/reyalp-flt/platform/ixus970_sd890/sub/100b/lib.c
r821 r1514 71 71 } 72 72 73 long vid_get_bitmap_screen_width() { return 360; }74 75 long vid_get_bitmap_screen_height() { return 240; }76 77 73 long vid_get_viewport_height() { return 240; } 78 79 long vid_get_bitmap_buffer_width() { return 360; }80 81 long vid_get_bitmap_buffer_height() { return 240; } -
branches/reyalp-flt/platform/ixus970_sd890/sub/100c/lib.c
r821 r1514 71 71 } 72 72 73 long vid_get_bitmap_screen_width() { return 360; }74 75 long vid_get_bitmap_screen_height() { return 240; }76 77 73 long vid_get_viewport_height() { return 240; } 78 79 long vid_get_bitmap_buffer_width() { return 360; }80 81 long vid_get_bitmap_buffer_height() { return 240; } -
branches/reyalp-flt/platform/ixus970_sd890/sub/100f/lib.c