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*)0x3F64) != 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*)0x3F64) == 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 void *vid_get_viewport_fb_d()
40 {
41 return (void*)(*(int*)(0x3CD0+0x58));
42 }
43
44 char *camera_jpeg_count_str()
45 {
46 return (void*)0xCE488;
47 }
48
49 char *camera_jpeg_current_filename()
50 {
51
52 return (void*)0xCA818;
53 }
54
55 void *camera_jpeg_current_gps()
56 {
57 return (void*)0xCA88C;
58 }