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 void *hook_raw_fptr()
5 {
6 return (void*)0;
7 }
8
9 void *hook_raw_ret_addr()
10 {
11 return (void*)0;
12 }
13
14 char *hook_raw_image_addr()
15 {
16 return (char*)0x10E706A0;
17 }
18
19 void *vid_get_viewport_live_fb()
20 {
21
22 void **fb=(void **)0x6F8C;
23 unsigned char buff = *((unsigned char*)0x6F9C);
24 if (buff == 0) {
25 buff = 2;
26 }
27 else {
28 buff--;
29 }
30 return fb[buff];
31 }
32
33 void *vid_get_bitmap_fb()
34 {
35 return (void*)0x10361000;
36 }
37
38 void *vid_get_viewport_fb()
39 {
40 return (void*)(0x1065BA50);
41 }
42
43 void *vid_get_viewport_fb_d()
44 {
45 return (void*)(*(int*)0x94408);
46 }
47
48 long vid_get_viewport_height()
49 {
50 return ((mode_get()&MODE_MASK) == MODE_PLAY)?240:230;
51 }
52 char *camera_jpeg_count_str()
53 {
54 return (char*)0x12298;
55 }