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_byte_width
- vid_get_viewport_width
- vid_get_viewport_display_xoffset
- camera_jpeg_count_str
- get_touch_click_x
- get_touch_click_y
1 #include "platform.h"
2
3 char *hook_raw_image_addr()
4 {
5 return (char*)0x421E1120;
6 }
7
8 void *vid_get_viewport_live_fb()
9 {
10 void **fb=(void **)0x5014;
11 unsigned char buff = *((unsigned char*)0x4E5C);
12 if (buff == 0) buff = 2; else buff--;
13 return (void*)fb[buff];
14 }
15
16 void *vid_get_bitmap_fb()
17 {
18 return (void*)0x40431000;
19 }
20
21 void *vid_get_viewport_fb()
22 {
23 return (void*)0x408CB700;
24 }
25
26 void *vid_get_viewport_fb_d()
27 {
28 return (void*)(*(int*)(0x28F0+0x58));
29 }
30
31 long vid_get_viewport_height() { return 240; }
32
33
34 int vid_get_viewport_byte_width() {
35 return 960 * 6 / 4;
36 }
37
38 int vid_get_viewport_width()
39 {
40 if (shooting_get_prop(PROPCASE_RESOLUTION) == 8)
41 return 480;
42 else
43 return 360;
44 }
45
46 int vid_get_viewport_display_xoffset()
47 {
48 if (shooting_get_prop(PROPCASE_RESOLUTION) == 8)
49 return 0;
50 else
51 return 60;
52 }
53
54
55 char *camera_jpeg_count_str()
56 {
57
58 return (char*)0x00084ca4;
59 }
60
61
62
63 short get_touch_click_x()
64 {
65 return *(short*)(0x258C+6);
66 }
67
68 short get_touch_click_y()
69 {
70 return *(short*)(0x258C+8);
71 }