CHDK_DE Vorschauversion  Trunk Rev. 6014
 Alle Datenstrukturen Dateien Funktionen Variablen Typdefinitionen Aufzählungen Aufzählungswerte Makrodefinitionen
lib.c-Dateireferenz
#include "platform.h"
+ Include-Abhängigkeitsdiagramm für lib.c:

gehe zum Quellcode dieser Datei

Funktionen

void * vid_get_bitmap_fb ()
 
void * vid_get_viewport_fb ()
 
char * camera_jpeg_count_str ()
 
int get_flash_params_count (void)
 
char * hook_raw_image_addr ()
 
void * vid_get_viewport_fb_d ()
 
void * vid_get_viewport_live_fb ()
 

Dokumentation der Funktionen

char* camera_jpeg_count_str ( )

Definiert in Zeile 23 der Datei lib.c.

23 { return (char*)0x0002f55c; } // Found @0xffd60580
int get_flash_params_count ( void  )

Definiert in Zeile 24 der Datei lib.c.

24 { return 0x7a; } // Found @0xffd1cfec
char* hook_raw_image_addr ( void  )

Definiert in Zeile 27 der Datei lib.c.

28 {
29 //
30 // ROM:FFE4670C LDR R4, =0x40CED8C0
31 
32 return (char*)0x4139E56C; // seach on CRAW BUF
33 
34  // Appears to be two raw buffers (this returns active buffer)
35  // Addresses below found in table at FFC4AA5C
36  // used in ROM:FFC4AA5C EXPORT _sub_FFC4AA5C__SsImgProcBuf.c__0
37  // checks [0x2848 + 0x1C] --> defines which buffer is active
38 
39  //ROM:FFC4A2A0 ; LOCATION: SsImgProcBuf.c:0
40  // ROM:FFC4A2A4 LDR R4, =0x2848
41  // ROM:FFC4A2A8 LDR R0, [R4,#0x18]
42 
43 //ROM:FFC4A334 LDR R0, =0x40E166C0
44 //ROM:FFCC7C74 LDR R1, =0x4139E56C - found by aCrwaddressLxCr tag
45  // if (*((int*)0x2860) != 0)
46  // return (char*)0x40E166C0; // G10 @ 0xFFB101AC
47  // else
48  // return (char*)0x4139E56C; // G10 searched for aCrwaddressLxCr or for aCrawBuffP 0xFFACDE48
49 
50 
51 }
void* vid_get_bitmap_fb ( )

Definiert in Zeile 21 der Datei lib.c.

21 { return (void*)0x403f1000; } // Found @0xffc2c5cc
void* vid_get_viewport_fb ( )

Definiert in Zeile 22 der Datei lib.c.

22 { return (void*)0x4076fcc0; } // Found @0xffe441f8
void* vid_get_viewport_fb_d ( )

Definiert in Zeile 88 der Datei lib.c.

89 {
90 //ac: ROM:FFC3FAEC LDR R8, =0x2628
91 //ac: ROM:FFC3FB1C LDREQ R0, [R8,#0x1C]
92  return (void*)(*(int*)(0x2628+0x58)); // @FF85ADD8 & FF85AE28 (comp S95, G11 - search for aImageplayer_c)
93 } // @FF85B864 & FF85B89C
void* vid_get_viewport_live_fb ( )

Definiert in Zeile 95 der Datei lib.c.

96 {
97 
98 //ac: Unknown how to find these values
99  void **fb=(void **)0x2710; // 0xFFC243F8 - ? ; also, may be FFC241D8 LDR R1, =0x1F34
100  unsigned char buff = *((unsigned char*)0x1EC8); // 0xFFC24228
101  if (buff == 0) {
102  buff = 2;
103  }
104  else {
105  buff--;
106  }
107  return fb[buff];
108 }