This source file includes following definitions.
- hook_raw_image_addr
- vid_get_viewport_live_fb
- vid_get_bitmap_fb
- vid_get_viewport_fb
- vid_get_viewport_fb_d
- camera_jpeg_count_str
- vid_get_bitmap_active_palette
- vid_get_bitmap_active_buffer
1 #include "platform.h"
2 #include "lolevel.h"
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 char *hook_raw_image_addr()
20 {
21 return (char*)0x4213A6EC;
22
23 }
24
25 void *vid_get_viewport_live_fb()
26 {
27 void **fb=(void **)0x2240;
28 unsigned char buff = *((unsigned char*)0x2084);
29 if (buff == 0) {
30 buff = 2;
31 }
32 else {
33 buff--;
34 }
35 return fb[buff];
36 }
37
38 void *vid_get_bitmap_fb()
39 {
40 return (void*)0x40471000;
41 }
42
43 void *vid_get_viewport_fb()
44 {
45
46 return (void*)0x407E8A00;
47
48
49
50
51
52
53
54
55
56
57
58
59 }
60
61
62 void *vid_get_viewport_fb_d()
63 {
64 return (void*)(*(int*)(0x2A20+0x58));
65
66 }
67
68 char *camera_jpeg_count_str()
69 {
70 return (char*)0x9792C;
71 }
72
73 void *vid_get_bitmap_active_palette() {
74 return (void *)*(unsigned int*)(0x5CFC+0x2C);
75 }
76
77 void *vid_get_bitmap_active_buffer()
78 {
79 return (void*)(*(int*)(0x5CFC+0x18));
80 }
81
82