This source file includes following definitions.
- hook_raw_fptr
- hook_raw_ret_addr
- hook_raw_image_addr
- vid_get_viewport_live_fb
- vid_get_bitmap_fb
- vid_get_viewport_fb
- vid_get_viewport_fb_d
- vid_get_viewport_height
- camera_jpeg_count_str
1 #include "platform.h"
2
3 void *hook_raw_fptr()
4 {
5 return (void*)0;
6 }
7
8 void *hook_raw_ret_addr()
9 {
10 return (void*)0;
11 }
12
13
14
15
16 char *hook_raw_image_addr()
17 {
18 return (char*)0x10f3f400;
19 }
20
21 void *vid_get_viewport_live_fb()
22 {
23
24
25 void **fb=(void **)0x7040;
26 unsigned char buff = *((unsigned char*)0x6ebc);
27 if (buff == 0) {
28 buff = 2;
29 }
30 else {
31 buff--;
32 }
33 return fb[buff];
34 }
35
36
37 void *vid_get_bitmap_fb()
38 {
39 return (void*)0x10361000;
40 }
41
42
43
44
45
46
47
48
49
50
51 void *vid_get_viewport_fb()
52 {
53 return ((void **)0x7040)[*((unsigned char*)0x6ebc)];
54 }
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70 void *vid_get_viewport_fb_d()
71 {
72 return (void*)(*(int*)0x18a68);
73 }
74
75 long vid_get_viewport_height()
76 {
77 return 240;
78 }
79
80 char *camera_jpeg_count_str()
81 {
82 return (char*)0x4c2c4;
83 }