| Line | |
|---|
| 1 | #include "platform.h" |
|---|
| 2 | |
|---|
| 3 | char *hook_raw_image_addr() |
|---|
| 4 | { |
|---|
| 5 | //found 0x11A34C40 at 0xFFC3C948 and 0x10805040 at FFC7D80C |
|---|
| 6 | // not for sure: 53A4 at 0xFFC51A60 and 0x53A4+0x18 at 0xFFC518D4 |
|---|
| 7 | return (char*) (*(int*)(0x53A4+0x18) ? 0x11A34C40 : 0x10805040); |
|---|
| 8 | } |
|---|
| 9 | |
|---|
| 10 | long hook_raw_size() |
|---|
| 11 | { |
|---|
| 12 | // ROM:FFE60BB4 LDR R1, =0xEC04F0 |
|---|
| 13 | return 0xEC04F0; |
|---|
| 14 | } |
|---|
| 15 | |
|---|
| 16 | |
|---|
| 17 | void *vid_get_viewport_live_fb() |
|---|
| 18 | { |
|---|
| 19 | void **fb=(void **)0x21a0; //ROM:FFC285D0 dword_FFC285D0 DCD 0x21A0, look also at ROM:FFC27FF0 |
|---|
| 20 | unsigned char buff = *((unsigned char*)0x2014); //ROM:FFC285C8 dword_FFC285C8 DCD 0x2014 , look also at ROM:FFC27FA0 |
|---|
| 21 | if (buff == 0) buff = 2; else buff--; |
|---|
| 22 | return fb[buff]; |
|---|
| 23 | } |
|---|
| 24 | |
|---|
| 25 | void *vid_get_bitmap_fb() |
|---|
| 26 | { |
|---|
| 27 | return (void*)0x10361000; // found at some addresses e.g. 0xffc32078 or 0xFFDD97B8 , guided by sx100 an a720 and sx10 |
|---|
| 28 | } |
|---|
| 29 | |
|---|
| 30 | void *vid_get_viewport_fb() |
|---|
| 31 | { |
|---|
| 32 | return (void*)0x10659DE0; // found at some addresses e.g. 0xffe5ea50 , guided by sx100 and a720 ans sx10 |
|---|
| 33 | } |
|---|
| 34 | |
|---|
| 35 | void *vid_get_viewport_fb_d() |
|---|
| 36 | { |
|---|
| 37 | return (void*)(*(int*)0x5114); //0x50C0 + 0x54, 0x50C0 found at 0xFFC45E78 and look at 0xffc46568/0xFFC46594 |
|---|
| 38 | } |
|---|
| 39 | |
|---|
| 40 | |
|---|
| 41 | long vid_get_bitmap_screen_width() |
|---|
| 42 | { |
|---|
| 43 | return 360; |
|---|
| 44 | } |
|---|
| 45 | |
|---|
| 46 | long vid_get_bitmap_screen_height() |
|---|
| 47 | { |
|---|
| 48 | return 240; |
|---|
| 49 | } |
|---|
| 50 | |
|---|
| 51 | long vid_get_viewport_height() |
|---|
| 52 | { |
|---|
| 53 | return 240; |
|---|
| 54 | } |
|---|
| 55 | char *camera_jpeg_count_str() |
|---|
| 56 | { |
|---|
| 57 | // Found at ROM:FFD84BC0 |
|---|
| 58 | return (void*)0x45E58; |
|---|
| 59 | } |
|---|
| 60 | |
|---|
| 61 | long vid_get_bitmap_buffer_width() { return 360; } |
|---|
| 62 | |
|---|
| 63 | long vid_get_bitmap_buffer_height() { return 240; } |
|---|
Note: See
TracBrowser
for help on using the repository browser.