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
- vid_get_viewport_width_proper
- vid_get_viewport_height_proper
1 #include "platform.h"
2
3 char *hook_raw_image_addr()
4 {
5 return (char*) 0x10C5FA60;
6 }
7
8 void *vid_get_viewport_live_fb()
9 {
10 void **fb=(void **)0x3E80;
11 unsigned char buff = *((unsigned char*)0x3CF0);
12 if (buff == 0) buff = 2; else buff--;
13 return fb[buff];
14 }
15
16 void *vid_get_bitmap_fb()
17 {
18 return (void*)0x10361000;
19 }
20
21 void *vid_get_viewport_fb()
22 {
23 return (void*)0x10659EC0;
24 }
25
26 void *vid_get_viewport_fb_d()
27 {
28
29 return (void*)(*(int*)(0x2554+0x54));
30 }
31
32 long vid_get_viewport_height()
33 {
34 return 240;
35 }
36
37 char *camera_jpeg_count_str()
38 {
39 return (char*)0x2CFF8;
40 }
41
42
43
44 int vid_get_palette_type() { return 1; }
45 int vid_get_palette_size() { return 16*4; }
46
47 void *vid_get_bitmap_active_palette() {
48 return (void *)(0x4C0C+0x20);
49 }
50 void *vid_get_bitmap_active_buffer()
51 {
52 return (void*)(*(int*)(0x4C0C+0x0C));
53 }
54
55
56
57
58 #if 0
59 int vid_get_viewport_width_proper() {
60 return ((mode_get()&MODE_MASK) == MODE_PLAY)?720:*(int*)0x3E50;
61 }
62 int vid_get_viewport_height_proper() {
63 return ((mode_get()&MODE_MASK) == MODE_PLAY)?240:*(int*)(0x32C68+4);
64 }
65 #endif