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
- camera_jpeg_count_str
- vid_get_bitmap_active_palette
- vid_get_bitmap_active_buffer
1 #include "platform.h"
2
3 void *hook_raw_fptr()
4 {
5 return (void*)0;
6 }
7
8 void *hook_raw_ret_addr()
9 {
10 return (void*)0;
11 }
12
13 char *hook_raw_image_addr()
14 {
15 return (char*)0x10F63920;
16 }
17
18 void *vid_get_viewport_live_fb()
19 {
20 void **fb=(void **)0x2168;
21 unsigned char buff = *((unsigned char*)0x1FE8);
22 if (buff == 0) {
23 buff = 2;
24 }
25 else {
26 buff--;
27 }
28 return fb[buff];
29 }
30
31 void *vid_get_bitmap_fb()
32 {
33 return (void*)0x10361000;
34 }
35
36 void *vid_get_viewport_fb()
37 {
38 return (void*)0x10659E80;
39 }
40
41 void *vid_get_viewport_fb_d()
42 {
43
44
45
46
47
48 return (void*)(*(int*)(0x520C+0x4C));
49
50 }
51
52 char *camera_jpeg_count_str()
53 {
54 return (char*)0x49344;
55 }
56
57
58 void *vid_get_bitmap_active_palette() {
59 return (void *)0x3D518;
60 }
61
62 void *vid_get_bitmap_active_buffer()
63 {
64 return (void*)(*(int*)0x761C);
65 }