source: branches/juciphox/platform/a610/sub/100e/lib.c @ 427

Revision 427, 1.0 KB checked in by Jucifer, 5 years ago (diff)
  • Updated stuff from the two last trunk commits.

+ Modified a few models to detect motion faster. I hope I got them right.

The rest will follow. I hope.

Line 
1#include "platform.h"
2
3void *hook_raw_fptr()
4{
5    return (void*)0x367D0;
6}
7
8void *hook_raw_ret_addr()
9{
10    return (void*)0xffcb48d4;
11}
12
13char *hook_raw_image_addr()
14{
15    return (char*)0x1058ebd4;
16}
17
18long hook_raw_size()
19{
20    return 0x644C40;
21}
22
23void *vid_get_viewport_live_fb()
24{
25    //return (void*)0x10670d50;
26    void **fb=(void **)0x52EC;
27    unsigned char buff = *((unsigned char*)0x52FC);
28    if (buff == 0) {
29        buff = 2;
30    }
31    else {
32        buff--;
33    }
34    return fb[buff];
35}
36
37void *vid_get_bitmap_fb()
38{
39    return (void*)0x103C79A0;
40}
41
42void *vid_get_viewport_fb()
43{
44    return (void*)0x10559570;
45}
46
47void *vid_get_viewport_fb_d()
48{
49    return (void*)(*(int*)0x7279c);
50}
51
52long vid_get_bitmap_screen_width()
53{
54    return 360;
55}
56
57long vid_get_bitmap_screen_height()
58{
59    return 240;
60}
61
62long vid_get_viewport_height()
63{
64    return 240;
65}
66
67long vid_is_bitmap_shown()
68{
69    return 1;
70}
71
72char *camera_jpeg_count_str()
73{
74    return (char*)0x80A90;
75}
76
77long vid_get_bitmap_buffer_width() { return 360; }
78
79long vid_get_bitmap_buffer_height() { return 240; }
Note: See TracBrowser for help on using the repository browser.