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 #include "keyboard.h"
3
4
5
6
7
8
9
10
11
12
13
14
15 void *hook_raw_fptr()
16 {
17 return (void*)0x55EA0;
18 }
19
20 void *hook_raw_ret_addr()
21 {
22 return (void*)0xFF9B8524;
23 }
24
25
26
27
28
29
30
31
32
33
34
35 char *hook_raw_image_addr()
36 {
37 return (char*)(0x10F3DA00);
38 }
39
40 void *vid_get_viewport_live_fb()
41 {
42
43 void **fb=(void **)0x8C58;
44 unsigned char buff = *((unsigned char*)0x8C74);
45 if (buff == 0) {
46 buff = 2;
47 }
48 else {
49 buff--;
50 }
51 return fb[buff];
52 }
53
54 void *vid_get_bitmap_fb()
55 {
56 return (void*)0x10361000;
57 }
58
59 void *vid_get_viewport_fb()
60 {
61 return ((void **)0x8C58)[*((unsigned char*)0x8C74)];
62 }
63
64 void *vid_get_viewport_fb_d()
65 {
66 return (void*)(*(int*)0x812C8);
67 }
68
69 long vid_get_viewport_height()
70 {
71 return ((mode_get()&MODE_MASK) == MODE_PLAY)?240:230;
72 }
73
74 char *camera_jpeg_count_str()
75 {
76 return (char*)0x143D0;
77 }