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