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
- vid_get_palette_type
- vid_get_palette_size
- vid_get_bitmap_active_buffer
- vid_get_viewport_width_proper
- vid_get_viewport_height_proper
1 #include "platform.h"
2
3
4
5 char *hook_raw_image_addr()
6 {
7
8 return (char*)0x424AD900;
9
10 }
11
12
13
14
15
16
17 void *vid_get_viewport_live_fb()
18 {
19 void **fb=(void **)0x43EC;
20 unsigned char buff = *((unsigned char*)0x4244);
21 if (buff == 0) {
22 buff = 2;
23 }
24 else {
25 buff--;
26 }
27 return fb[buff];
28 }
29
30
31
32
33 void *vid_get_bitmap_fb()
34 {
35 return (void*)0x403F1000;
36 }
37
38
39
40 void *vid_get_viewport_fb()
41 {
42 return (void *)0x415F3570;
43
44 }
45
46
47
48
49 void *vid_get_viewport_fb_d()
50 {
51 return (void*)(*(int*)(0x26F4 + 0x58));
52 }
53
54
55 int vid_get_viewport_width()
56 {
57 return 360;
58
59 }
60
61
62 long vid_get_viewport_height()
63 {
64 return 240;
65 }
66
67
68 char *camera_jpeg_count_str()
69 {
70 return (char *)0x33110;
71 }
72
73 int vid_get_palette_type() { return 3; }
74 int vid_get_palette_size() { return 256*4; }
75
76 void *vid_get_bitmap_active_buffer()
77 {
78 return (void*)(*(int*)(0x4cb8+0x14));
79 }
80
81
82
83
84
85
86 #if 0
87 int vid_get_viewport_width_proper() {
88 return ((mode_get()&MODE_MASK) == MODE_PLAY)?720:*(int*)0x43bc;
89 }
90 int vid_get_viewport_height_proper() {
91 return ((mode_get()&MODE_MASK) == MODE_PLAY)?270:*(int*)(0x43bc+4);
92 }
93 #endif
94