source: trunk/platform/a710/sub/100a/lib.c @ 1527

Revision 1527, 902 bytes checked in by philmoz, 2 years ago (diff)

Merge latest code from reyalp-flt branch to main trunk.

  • Property svn:eol-style set to native
Line 
1#include "platform.h"
2#include "keyboard.h"
3
4void *hook_raw_fptr()
5{
6    return (void*)0x3F960;
7}
8
9void *hook_raw_ret_addr()
10{
11    return (void*)0xFFCC6640;
12}
13
14char *hook_raw_image_addr()
15{
16    return (char*)(0x10400000+0x164000+0xBF0);
17}
18
19long hook_raw_size()
20{
21    return 0x8CAE10;
22}
23
24void *vid_get_viewport_live_fb()
25{
26//    return (void*)0x10670ee0;
27    void **fb=(void **)0x522C;
28    unsigned char buff = *((unsigned char*)0x523C);
29    if (buff == 0) {
30        buff = 2;
31    }
32    else {
33        buff--;
34    }
35    return fb[buff];
36}
37
38void *vid_get_bitmap_fb()
39{
40    return (void*)0x10361000;
41}
42
43void *vid_get_viewport_fb()
44{
45    return (void*)0x1055A7E0; //0x105f25e0;
46}
47
48void *vid_get_viewport_fb_d()
49{
50    return (void*)(*(int*)0x70854);
51}
52
53long vid_get_viewport_height()
54{
55    return ((mode_get()&MODE_MASK) == MODE_PLAY)?240:230;
56}
57char *camera_jpeg_count_str()
58{
59    return (char*)0x7BD98;
60}
Note: See TracBrowser for help on using the repository browser.