This source file includes following definitions.
- 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
- vid_get_viewport_width
- camera_jpeg_count_str
1 #include "platform.h"
2
3 char *hook_raw_image_addr()
4 {
5
6 return (char*) (*(int*)(0x5520 + 0x18)? 0x42CFB780 : 0x40EBAFA0);
7
8 }
9
10 void *vid_get_viewport_live_fb()
11 {
12 void **fb=(void **)0x2254;
13 unsigned char buff = *((unsigned char*)0x20B8);
14 if (buff == 0) {
15 buff = 2;
16 }
17 else {
18 buff--;
19 }
20 return fb[buff];
21 }
22
23 void *vid_get_bitmap_fb()
24 {
25 return (void*)0x40471000;
26 }
27
28
29
30
31
32
33
34
35
36
37 void *vid_get_viewport_fb()
38 {
39 return (void *)0x407F6DC0;
40 }
41
42 void *vid_get_viewport_fb_d()
43 {
44 return (void*)(*(int*)(0x5210 + 0x54));
45 }
46
47 long vid_get_viewport_height()
48 {
49 return 240;
50 }
51
52 int vid_get_viewport_width()
53 {
54 return 360;
55 }
56
57 char *camera_jpeg_count_str()
58 {
59 return (char *)0x4AF18;
60 }