This source file includes following definitions.
- hook_raw_fptr
- hook_raw_ret_addr
- hook_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
- vid_get_viewport_fullscreen_height
- vid_get_viewport_fullscreen_width
1 #include "platform.h"
2 #include "keyboard.h"
3
4 void *hook_raw_fptr()
5 {
6 return (void*)0x0;
7 }
8
9 void *hook_raw_ret_addr()
10 {
11 return (void*)0x0;
12 }
13
14 char *hook_raw_image_addr()
15 {
16 return (char*) (0x10587D78);
17
18
19 }
20
21 void *vid_get_viewport_live_fb()
22 {
23 void **fb=(void **)0x5288;
24 unsigned char buff = *((unsigned char*)0x5298);
25 if (buff == 0) {
26 buff = 2;
27 }
28 else {
29 buff--;
30 }
31 return fb[buff];
32 }
33
34 void *vid_get_bitmap_fb()
35 {
36 return (void*)0x103c79a0;
37 }
38
39 void *vid_get_viewport_fb()
40 {
41 return (void*)(0x10605748);
42
43
44 }
45
46 void *vid_get_viewport_fb_d()
47 {
48 return (void*)(*(int*)0x63a40);
49
50
51
52 }
53
54 long vid_get_viewport_height()
55 {
56 return 240;
57 }
58
59 char *camera_jpeg_count_str()
60 {
61 return (char*)0x6E820;
62 }
63
64
65 extern int _GetVRAMHPixelsSize();
66 extern int _GetVRAMVPixelsSize();
67
68 int vid_get_palette_type() { return 1; }
69 int vid_get_palette_size() { return 16*4; }
70
71 void *vid_get_bitmap_active_palette() {
72 return (void *)0x63450;
73 }
74
75 void *vid_get_bitmap_active_buffer()
76 {
77 return (void*)(*(int*)0x5EFC);
78 }
79
80 int vid_get_viewport_width_proper() {
81 return ((mode_get()&MODE_MASK) == MODE_PLAY)?720:_GetVRAMHPixelsSize();
82 }
83 int vid_get_viewport_height_proper() {
84 return ((mode_get()&MODE_MASK) == MODE_PLAY)?240:_GetVRAMVPixelsSize();
85 }
86
87 int vid_get_viewport_fullscreen_height() {
88
89 int m = mode_get();
90 if((m&MODE_MASK) != MODE_PLAY && (m&MODE_SHOOTING_MASK) == MODE_STITCH) {
91 return 240;
92 }
93 return vid_get_viewport_height_proper();
94 }
95 int vid_get_viewport_fullscreen_width() {
96
97 int m = mode_get();
98 if((m&MODE_MASK) != MODE_PLAY && (m&MODE_SHOOTING_MASK) == MODE_STITCH) {
99 return 720;
100 }
101 return vid_get_viewport_width_proper();
102 }
103