source: branches/juciphox/platform/ixus750_sd550/sub/100g/lib.c @ 473

Revision 473, 1.4 KB checked in by phyrephox, 5 years ago (diff)
  • updated langfiles

+ 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
3void *hook_raw_fptr()
4{
5    return (void*)0x36708;
6}
7
8void *hook_raw_ret_addr()
9{
10    return (void*)0xFF8D41B0;
11}
12
13char *hook_raw_image_addr()
14{
15    return (char*)(0x10400000+0x160000+0x3980);
16}
17
18long hook_raw_size()
19{
20//    return 0x8CAE10;
21    return 0x8CAE10; //7mpx (0x8C0000 + 0xAE00 + 0x10)(find on "A/%08x.CRW")
22}
23
24void *vid_get_viewport_live_fb()
25{
26    return (void*)0x0;
27}
28
29void *vid_get_bitmap_fb()
30{
31    return (void*)0x103C79A0;
32}
33
34void *vid_get_viewport_fb()
35{
36//    return (void*)0x104B6C20;
37//    return (void*)0x10559670;
38    return (void*)0x105F1370;
39}
40
41void *vid_get_viewport_fb_d()
42{
43//    return (void*)(*(int*)0x5BAEC);
44 //return (void*)0x104B6C20;
45        return (void *)0x72588;
46
47}
48
49long vid_get_bitmap_screen_width()
50{
51    return 360;
52}
53
54long vid_get_bitmap_screen_height()
55{
56    return 240;
57}
58
59long vid_get_viewport_height()
60{
61    return ((mode_get()&MODE_MASK) == MODE_PLAY)?240:230;
62}
63char *camera_jpeg_count_str()
64{
65    return (char*)0x72588;
66}
67
68long vid_get_bitmap_buffer_width() { return 360; }
69
70long vid_get_bitmap_buffer_height() { return 240; }
71
72void _EnterToCompensationEVF() {} // Dummy function. To be removed after stub is found. See stubs_entry_2.S.
73void _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.