source: trunk/platform/sx10/sub/101a/lib.c @ 1527

Revision 1527, 672 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
3char *hook_raw_image_addr()
4{
5        return (char*) (*(int*)(0x55CC+0x18) ? 0x424F1948 : 0x40F65B18);
6}
7
8long hook_raw_size()
9{
10        return 0xEC04F0;
11}
12
13void *vid_get_viewport_live_fb()
14{
15    void **fb=(void **)0x227C;
16    unsigned char buff = *((unsigned char*)0x20D0); // sub_FF839DD8
17    if (buff == 0) buff = 2;  else buff--;   
18    return fb[buff];
19}
20
21void *vid_get_bitmap_fb()
22{
23        return (void*)0x403B1000;
24}
25
26void *vid_get_viewport_fb()
27{
28        return (void*)0x4070D9D0;
29}
30
31void *vid_get_viewport_fb_d()
32{
33        return (void*)(*(int*)(0x5260+0x58));
34}
35
36long vid_get_viewport_height()
37{
38        return 240;
39}
40
41char *camera_jpeg_count_str()
42{
43        return (char*)0x4C138;
44}
Note: See TracBrowser for help on using the repository browser.