source: branches/juciphox/platform/g7/sub/100i/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#include "lolevel.h"
3
4void *hook_raw_fptr()
5{
6    return (void*)0x36D18;
7}
8
9void *hook_raw_ret_addr()
10{
11    return (void*)0xFF8ED708;
12}
13
14char *hook_raw_image_addr()
15{
16 return (char*) (*(int*)0x6E9C ? 0x11BE3A80 : 0x1082C520);
17}
18
19long hook_raw_size()
20{
21    return 0xC58758;         
22}
23
24void *vid_get_viewport_live_fb()
25{
26    return (void*)0;
27}
28
29void *vid_get_bitmap_fb()
30{
31    return (void*)(0x10361000); 
32}
33
34void *vid_get_viewport_fb()
35{
36    return (void*)0x1065B130; //0x105C3330;
37}
38
39void *vid_get_viewport_fb_d()
40{
41    return (void*)(*(int*)0x74FB4);
42}
43
44long vid_get_bitmap_screen_width()
45{
46    return 360;
47}
48
49long vid_get_bitmap_screen_height()
50{
51    return 240;
52}
53
54long vid_get_viewport_height()
55{
56    return 240;
57}
58
59void JogDial_CW(void){
60  (*(short*)0x106EE)++;
61  *(int*)0x106F4=0x32;
62  _GiveSemaphore(*(int*)0x106E4);
63}
64
65void JogDial_CCW(void){
66  (*(short*)0x106EE)--;
67  *(int*)0x106F4=0x32;
68  _GiveSemaphore(*(int*)0x106E4);
69}
70
71int review_fullscreen_mode(){
72 char r;
73 get_parameter_data(53, &r, 1);
74 return  r==0;
75}
76char *camera_jpeg_count_str()
77{
78    return (char*)0x82F88;
79}
80
81long vid_get_bitmap_buffer_width() { return 360; }
82
83long vid_get_bitmap_buffer_height() { return 240; }
84
85void _EnterToCompensationEVF() {} // Dummy function. To be removed after stub is found. See stubs_entry_2.S.
86void _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.