| Revision 473,
1.2 KB
checked in by phyrephox, 5 years ago
(diff) |
|
+ added option in misc - startsound. if enabled (disable as default) you will hear a short beep right before the splash screen. will someday be the antitheft function (yet to be coded...)
- small fix in OSD element fast_ev, should be better now, but still not perfect
+ added functions EnterToCompensationEVF() & ExitFromCompensationEVF(); -> read about it here http://chdk.setepontos.com/index.php/topic,2051.msg19300.html#msg19300 (thx fudgey)
--> prepared the sources so that adding the adresses to other cams will be easy - needs ASM people though
- small patch in symbol mod by CHDKLover
- fixed bug in makefile
+ batch-zip-complete: filename of the zip now gets an "_complete" appended
oh, and thanks Hacki for letting me steal endless hours of your sleep ;)
|
| Line | |
|---|
| 1 | #include "platform.h" |
|---|
| 2 | #include "keyboard.h" |
|---|
| 3 | |
|---|
| 4 | void *hook_raw_fptr() |
|---|
| 5 | { |
|---|
| 6 | return (void*)0x440C0; |
|---|
| 7 | } |
|---|
| 8 | |
|---|
| 9 | void *hook_raw_ret_addr() |
|---|
| 10 | { |
|---|
| 11 | return (void*)0xFFD4CBD8; |
|---|
| 12 | } |
|---|
| 13 | |
|---|
| 14 | char *hook_raw_image_addr() |
|---|
| 15 | { |
|---|
| 16 | return (char*)(0x10800000+0x41000+0x260); |
|---|
| 17 | } |
|---|
| 18 | |
|---|
| 19 | long hook_raw_size() |
|---|
| 20 | { |
|---|
| 21 | return 0x63FF60; // "CRAW BUF","WBIntegPrm.c" - 1/3" 5 MPix - (2664*1968*10/8=0x63FF60) |
|---|
| 22 | } |
|---|
| 23 | |
|---|
| 24 | void *vid_get_viewport_live_fb() |
|---|
| 25 | { |
|---|
| 26 | return (void*)0; |
|---|
| 27 | } |
|---|
| 28 | |
|---|
| 29 | void *vid_get_bitmap_fb() |
|---|
| 30 | { |
|---|
| 31 | return (void*)0x10361000; //(0x10360000 + 0x1000) |
|---|
| 32 | } |
|---|
| 33 | |
|---|
| 34 | void *vid_get_viewport_fb() |
|---|
| 35 | { |
|---|
| 36 | return (void*)0x10E81260; //0x10558D30 |
|---|
| 37 | } |
|---|
| 38 | |
|---|
| 39 | void *vid_get_viewport_fb_d() |
|---|
| 40 | { |
|---|
| 41 | return (void*)(*(int*)0x6D048); |
|---|
| 42 | } |
|---|
| 43 | |
|---|
| 44 | long vid_get_bitmap_screen_width() |
|---|
| 45 | { |
|---|
| 46 | return 360; |
|---|
| 47 | } |
|---|
| 48 | |
|---|
| 49 | long vid_get_bitmap_screen_height() |
|---|
| 50 | { |
|---|
| 51 | return 240; |
|---|
| 52 | } |
|---|
| 53 | |
|---|
| 54 | long vid_get_viewport_height() |
|---|
| 55 | { |
|---|
| 56 | return ((mode_get()&MODE_MASK) == MODE_PLAY) ? 240 : 230; |
|---|
| 57 | } |
|---|
| 58 | |
|---|
| 59 | char *camera_jpeg_count_str() |
|---|
| 60 | { |
|---|
| 61 | return (char*)0x10F70; |
|---|
| 62 | } |
|---|
| 63 | |
|---|
| 64 | long vid_get_bitmap_buffer_width() { return 360; } |
|---|
| 65 | |
|---|
| 66 | long vid_get_bitmap_buffer_height() { return 240; } |
|---|
| 67 | |
|---|
| 68 | void _EnterToCompensationEVF() {} // Dummy function. To be removed after stub is found. See stubs_entry_2.S.
|
|---|
| 69 | void _ExitFromCompensationEVF() {} // Dummy function. To be removed after stub is found. See stubs_entry_2.S.
|
|---|
Note: See
TracBrowser
for help on using the repository browser.