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
- camera_jpeg_count_str
- vid_get_palette_type
- vid_get_palette_size
- vid_get_bitmap_active_palette
- vid_get_bitmap_active_buffer
1 #include "platform.h"
2
3
4
5
6 char *hook_raw_image_addr()
7 {
8 return (char*)(0x1058edd4);
9 }
10
11 void *vid_get_viewport_live_fb()
12 {
13 void **fb=(void **)0x5564;
14 unsigned char buff = *((unsigned char*)0x5574);
15 if (buff == 0) {
16 buff = 2;
17 }
18 else {
19 buff--;
20 }
21 return fb[buff];
22 }
23
24 void *vid_get_bitmap_fb()
25 {
26 return (void*)0x103c79a0;
27 }
28
29 void *vid_get_viewport_fb()
30 {
31 return (void*)0x105f1570;
32 }
33
34 void *vid_get_viewport_fb_d()
35 {
36 return (void*)(*(int*)0x84150);
37 }
38
39 long vid_get_viewport_height()
40 {
41 return ((mode_get()&MODE_MASK) == MODE_PLAY)?240:230;
42 }
43 char *camera_jpeg_count_str()
44 {
45 return (char*)0xa220;
46 }
47
48
49 int vid_get_palette_type() { return 1; }
50 int vid_get_palette_size() { return 16*4; }
51
52 void *vid_get_bitmap_active_palette() {
53 return (void *)0x84050;
54 }
55 void *vid_get_bitmap_active_buffer()
56 {
57 return (void*)(*(int*)0x6cbc);
58 }
59
60