source: trunk/platform/g1x/sub/100f/lib.c @ 1810

Revision 1810, 1.0 KB checked in by philmoz, 13 months ago (diff)

Alpha version of CHDK for the G1X firmware 1.00f.

  • Property svn:eol-style set to native
Line 
1#include "platform.h"
2
3char *hook_raw_image_addr()
4{
5        // Appears to be two raw buffers (this returns active buffer)
6        // Addresses below found in table at FF476254 used in sub_FF0EF32C
7        // [0x40C8 + 0xC] --> defines which buffer is active
8
9        if (*((int*)0x40D4) != 0)
10                return (char*) 0x4A6BA6A0;
11        else
12                return (char*) 0x44000000;      // found at (FF40A81C) [search CRAW BUF]
13}
14
15char *hook_alt_raw_image_addr()
16{
17        // Appears to be two raw buffers (this returns inactive buffer)
18        // Addresses below found in table at FF476254 used in sub_FF0EF32C
19        // [0x40C8 + 0xC] --> defines which buffer is active
20
21        if (*((int*)0x40D4) == 0)
22                return (char*) 0x4A6BA6A0;
23        else
24                return (char*) 0x44000000;      // found at (FF40A81C) [search CRAW BUF]
25}
26
27
28char *camera_jpeg_count_str()    { return (char*)0x000cc108; }             // Found @0xff28c994
29long hook_raw_size()             { return 0x01941be8; }                    // Found @0xff40a828
30
31void *vid_get_viewport_fb_d()    { return (void*)(*(int*)(0x3d88+0x58)); } // Found @0xff06e504 & 0xff06e53c
Note: See TracBrowser for help on using the repository browser.