This source file includes following definitions.
- hook_raw_fptr
- hook_raw_ret_addr
- hook_raw_image_addr
- vid_get_viewport_live_fb
- vid_get_viewport_fb
- vid_get_viewport_fb_d
- vid_get_bitmap_fb
- camera_jpeg_count_str
- vid_get_viewport_height
1 #include "platform.h"
2
3
4 void *hook_raw_fptr() { return (void*)0; }
5 void *hook_raw_ret_addr() { return (void*)0; }
6
7 char *hook_raw_image_addr()
8 {
9
10
11
12 return (char*) (*(int*)(0x550C) ? 0x11B97B60 : 0x107D68C0);
13 }
14
15
16 void *vid_get_viewport_live_fb()
17 {
18
19 void **fb=(void **)0x7420;
20 unsigned char buff = *((unsigned char*)0x729C);
21 if (buff == 0) {
22 buff = 2;
23 } else {
24 buff--;
25 }
26 return fb[buff];
27 }
28
29
30 void *vid_get_viewport_fb()
31 {
32
33 return (void*)0x1065ADC0;
34 }
35
36
37 void *vid_get_viewport_fb_d()
38 {
39
40 return (void*)(*(int*)0x5248);
41 }
42
43
44 void *vid_get_bitmap_fb()
45 {
46
47 return (void*)0x10361000;
48 }
49
50
51
52
53
54
55
56
57
58
59
60 char *camera_jpeg_count_str()
61 {
62
63 return (char*)0x4CA80;
64 }
65
66 long vid_get_viewport_height() { return 240; }