source: trunk/platform/a610/sub/100e/lib.c @ 1527

Revision 1527, 1.0 KB 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
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_viewport_height()
53{
54    return 240;
55}
56
57long vid_is_bitmap_shown()
58{
59    return 1;
60}
61
62char *camera_jpeg_count_str()
63{
64    return (char*)0x80A90;
65}
66
67void _EnterToCompensationEVF() {} // Dummy function. To be removed after stub is found. See stubs_entry_2.S.
68void _ExitFromCompensationEVF() {} // Dummy function. To be removed after stub is found. See stubs_entry_2.S.
Note: See TracBrowser for help on using the repository browser.