source: trunk/platform/a480/sub/100b/lib.c @ 1527

Revision 1527, 738 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*) 0x10C5FA60; // "CRAW BUFF"
6}
7
8long hook_raw_size()
9{
10        return 0xEC04F0;           // "CRAW BUFF SIZE"
11}
12
13void *vid_get_viewport_live_fb()
14{
15    void **fb=(void **)0x3E80;
16    unsigned char buff = *((unsigned char*)0x3CF0); // sub_FFC87F0C
17    if (buff == 0) buff = 2;  else buff--;   
18    return fb[buff];
19}
20
21void *vid_get_bitmap_fb()
22{
23        return (void*)0x10361000; // "BmpDDev.c"
24}
25
26void *vid_get_viewport_fb()
27{
28        return (void*)0x10659EC0;  // "VRAM Address"
29}
30
31void *vid_get_viewport_fb_d()
32{
33        return (void*)(*(int*)(0x2554+0x54)); // sub_FFC3C050
34}
35
36long vid_get_viewport_height()
37{
38        return 240;
39}
40
41char *camera_jpeg_count_str()
42{
43        return (char*)0x2CFF8;  // "9999"
44}
Note: See TracBrowser for help on using the repository browser.