This source file includes following definitions.
- hook_raw_image_addr
- hook_alt_raw_image_addr
- vid_get_viewport_live_fb
- vid_get_bitmap_fb
- vid_get_viewport_fb
- vid_get_viewport_fb_d
- vid_get_viewport_height
- camera_jpeg_count_str
- vid_get_palette_type
- vid_get_palette_size
- vid_get_bitmap_active_palette
- vid_get_bitmap_active_buffer
- vid_get_viewport_width_proper
- vid_get_viewport_height_proper
1 #include "platform.h"
2
3 char *hook_raw_image_addr()
4 {
5 return (char*) (*(int*)0x5684 ? 0x11F6B740 : 0x108057C0);
6
7 }
8 char *hook_alt_raw_image_addr()
9 {
10 return (char*) (*(int*)0x5684 ? 0x108057C0 : 0x11F6B740);
11 }
12
13 void *vid_get_viewport_live_fb()
14 {
15 void **fb=(void **)0x21D8;
16 unsigned char buff = *((unsigned char*)0x208C);
17 if (buff == 0) {
18 buff = 2;
19 }
20 else {
21 buff--;
22 }
23 return fb[buff];
24 }
25
26 void *vid_get_bitmap_fb()
27 {
28 return (void*)0x10361000;
29 }
30
31 void *vid_get_viewport_fb()
32 {
33 return (void*)0x1065A560;
34 }
35
36 void *vid_get_viewport_fb_d()
37 {
38 return (void*)(*(int*)0x53E8);
39 }
40
41 long vid_get_viewport_height()
42 {
43 return 240;
44 }
45
46 char *camera_jpeg_count_str()
47 {
48 return (char*)0x5CB38;
49 }
50
51
52 int vid_get_palette_type() { return 1; }
53 int vid_get_palette_size() { return 16*4; }
54
55 void *vid_get_bitmap_active_palette() {
56 return (void *)0x4536C;
57 }
58 void *vid_get_bitmap_active_buffer()
59 {
60 return (void*)(*(int*)0xCAC4);
61 }
62
63
64
65
66 #if 0
67 int vid_get_viewport_width_proper() {
68 return ((mode_get()&MODE_MASK) == MODE_PLAY)?720:*(int*)0x21A8;
69 }
70 int vid_get_viewport_height_proper() {
71 return ((mode_get()&MODE_MASK) == MODE_PLAY)?240:*(int*)(0x21A8+4);
72 }
73 #endif
74