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_width
- vid_get_viewport_height
- camera_jpeg_count_str
1 #include "platform.h"
2
3
4
5
6 char *hook_raw_image_addr()
7 {
8
9
10 return (char*) (*(int*)(0x2890) ? 0x424B358C : 0x40F30D7C);
11 }
12
13
14
15
16
17
18
19
20
21 void *vid_get_viewport_live_fb()
22 {
23 void **fb=(void **)0x40E4;
24 unsigned char buff = *((unsigned char*)0x3F50);
25 if (buff == 0) {
26 buff = 2;
27 }
28 else {
29 buff--;
30 }
31 return fb[buff];
32 }
33
34
35
36
37 void *vid_get_bitmap_fb()
38 {
39 return (void*)0x403F1000;
40 }
41
42
43
44 void *vid_get_viewport_fb()
45 {
46 return (void *)0x4076F088;
47 }
48
49
50
51
52
53
54
55
56
57
58 void *vid_get_viewport_fb_d()
59 {
60 return (void*)(*(int*)(0x2658 + 0x54));
61 }
62
63 int vid_get_viewport_width()
64 {
65 return 360;
66 }
67
68 long vid_get_viewport_height()
69 {
70 return 240;
71 }
72
73
74 char *camera_jpeg_count_str()
75 {
76 return (char *)0x2F1D4;
77 }