This source file includes following definitions.
- hook_raw_image_addr
- hook_alt_raw_image_addr
- camera_jpeg_count_str
- vid_get_bitmap_fb
- vid_get_viewport_fb
- vid_get_viewport_fb_d
- vid_get_viewport_live_fb
- vid_get_bitmap_active_buffer
1 #include "platform.h"
2
3
4
5
6
7
8
9
10
11
12 char *hook_raw_image_addr()
13 {
14
15
16
17
18
19 if (*((int*)0x5574) != 0)
20 return (char*)0x43164D80;
21 else
22 return (char*)0x413245A0;
23 }
24
25 char *hook_alt_raw_image_addr()
26 {
27
28
29
30
31
32 if (*((int*)0x5574) == 0)
33 return (char*) 0x43164D80;
34 else
35 return (char*)0x413245A0;
36 }
37
38
39 char *camera_jpeg_count_str()
40 {
41 return (char*)0x0004c95c;
42 }
43
44 void *vid_get_bitmap_fb()
45 {
46 return (void*)0x40471000;
47 }
48
49 void *vid_get_viewport_fb()
50 {
51 return (void*)0x40816dc0;
52 }
53
54 void *vid_get_viewport_fb_d()
55 {
56 return (void*)(*(int*)(0x524C+0x54));
57 }
58
59 void *vid_get_viewport_live_fb()
60 {
61 void **fb=(void **)0x2298;
62 unsigned char buff = *((unsigned char*)0x20FC);
63 if (buff == 0) {
64 buff = 2;
65 }
66 else {
67 buff--;
68 }
69 return fb[buff];
70 }
71
72
73 void *vid_get_bitmap_active_buffer()
74 {
75 return (void*)(*(int*)(0x8034+0x14));
76 }
77