source: trunk/platform/sx230hs/sub/101b/lib.c @ 1828

Revision 1828, 1.1 KB checked in by philmoz, 13 months ago (diff)

Update to viewport functions and code using them to handle the G1X viewport system.
This is now more flexible by allowing viewport buffer offsets to be seperate from the viewport display offsets, it can handle stitch mode properly. This is also needed for reyalp's new live view system.

  • Property svn:eol-style set to native
Line 
1#include "platform.h"
2
3
4char *hook_raw_image_addr()
5{
6    if (*((int*)(0x3F58 + 0xc)) != 0)       //0x3F58 ( @FF07B02C ) +0xC (@FF07B0A4 )
7    {
8        return (char*) 0x46000000;  //@FF066A14
9    }
10    else
11    {
12        return (char*) 0x413591F0;  //@FF37FB7C
13    }
14}
15
16char *hook_alt_raw_image_addr()
17{
18    if (*((int*)(0x3F58 + 0xc)) == 0)
19        return (char*) 0x46000000;
20    else
21        return (char*) 0x413591F0;
22}
23
24long hook_raw_size()
25{
26    return 0x123EAF0;
27}
28
29void *vid_get_viewport_live_fb()
30{
31    return (void*)(void*)(*(int*)(0x225C));
32}
33
34void *vid_get_bitmap_fb()
35{
36    return (void*)0x40471000;
37}
38
39void *vid_get_viewport_fb()
40{
41    return (void*)0x405D7980;
42}
43
44
45void *vid_get_viewport_fb_d()
46{
47    return (void*)(*(int*)(0x3CD0+0x58));
48
49}
50
51char *camera_jpeg_count_str()
52{
53     return (void*)0xCE488;
54}
55
56char *camera_jpeg_current_filename()
57{
58         return (void*)0xCA818;
59}
60
61char * camera_jpeg_current_latitude()
62{
63        return (void*)0xCA890;
64}
65
66char * camera_jpeg_current_longitude()
67{
68        return (void*)0xCA8AC;
69}
70
71char * camera_jpeg_current_height()
72{
73        return (void*)0xCA668;
74}
Note: See TracBrowser for help on using the repository browser.