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
- camera_jpeg_count_str
1 #include "platform.h"
2
3
4
5
6
7
8
9
10 char *hook_raw_image_addr()
11 {
12
13 if (*((int*)0x2E94) != 0)
14 return (char*) 0x46000000;
15 else
16 return (char*) 0x413391A0;
17
18 }
19
20 char *hook_alt_raw_image_addr()
21 {
22
23 if (*((int*)0x2E94) == 0)
24 return (char*) 0x46000000;
25 else
26 return (char*) 0x413391A0;
27
28 }
29
30 void *vid_get_viewport_live_fb()
31 {
32 return (void*)(void*)(*(int*)(0x2258));
33
34
35
36
37 }
38
39
40 void *vid_get_bitmap_fb()
41 {
42
43 return (void*)0x40471000;
44 }
45
46
47 void *vid_get_viewport_fb()
48 {
49 return (void*)0x405c6b80;
50 }
51
52 void *vid_get_viewport_fb_d()
53 {
54 return (void*)(*(int*)(0x2c08+0x58));
55 }
56
57 char *camera_jpeg_count_str()
58 {
59
60 return (void*)0x000babac;
61
62 }
63