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
- vid_get_palette_type
- vid_get_palette_size
- vid_get_bitmap_active_palette
- vid_get_bitmap_active_buffer
- vid_get_viewport_width_proper
- vid_get_viewport_height_proper
1 #include "platform.h"
2
3 void *hook_raw_fptr()
4 {
5 return (void*)0x2F490;
6 }
7
8 void *hook_raw_ret_addr()
9 {
10 return (void*)0xFF8D8BDC;
11 }
12
13 char *hook_raw_image_addr()
14 {
15 return (char*)(0x10400000+0x160000+0x3A80);
16 }
17
18 void *vid_get_viewport_live_fb()
19 {
20 return (void*)0x0;
21
22 #if 0
23 void **fb=(void **)0x317C;
24 unsigned char buff = *((unsigned char*)0x318C);
25 if (buff == 0) {
26 buff = 2;
27 }
28 else {
29 buff--;
30 }
31 return fb[buff];
32 #endif
33 }
34
35 void *vid_get_bitmap_fb()
36 {
37 return (void*)0x103CEB20;
38 }
39
40 void *vid_get_viewport_fb()
41 {
42
43
44 return (void*)0x105F1470;
45 }
46
47 void *vid_get_viewport_fb_d()
48 {
49
50 return (void*)0x104B6C20;
51 }
52
53 long vid_get_viewport_height()
54 {
55 return ((mode_get()&MODE_MASK) == MODE_PLAY)?240:230;
56 }
57 char *camera_jpeg_count_str()
58 {
59 return (char*)0x75BB8;
60 }
61
62
63 int vid_get_palette_type() { return 1; }
64 int vid_get_palette_size() { return 16*4; }
65
66 void *vid_get_bitmap_active_palette() {
67 return (void *)0x6E758;
68 }
69 void *vid_get_bitmap_active_buffer()
70 {
71 return (void*)(*(int*)0x50F4);
72 }
73
74
75
76
77
78
79 #if 0
80 int vid_get_viewport_width_proper() {
81 return ((mode_get()&MODE_MASK) == MODE_PLAY)?720:*(int*)0x2E158;
82 }
83 int vid_get_viewport_height_proper() {
84 return ((mode_get()&MODE_MASK) == MODE_PLAY)?240:*(int*)0x2E15C;
85 }
86 #endif
87