CHDK_DE Vorschauversion  Trunk Rev. 5514
 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

char * hook_raw_image_addr ()
 
char * hook_alt_raw_image_addr ()
 
char * camera_jpeg_count_str ()
 
void * vid_get_bitmap_fb ()
 
void * vid_get_viewport_fb ()
 
void * vid_get_viewport_fb_d ()
 
void * vid_get_viewport_live_fb ()
 
void * vid_get_bitmap_active_buffer ()
 

Dokumentation der Funktionen

char* camera_jpeg_count_str ( )

Definiert in Zeile 39 der Datei lib.c.

40 {
41  return (char*)0x0004c95c; // G10 autofound @0xff9cccdc
42 }
char* hook_alt_raw_image_addr ( )

Definiert in Zeile 25 der Datei lib.c.

26 {
27  // Appears to be two raw buffers (this returns active buffer)
28  // Addresses below found in table at FFB1017C , ref at FFBBAD50
29  // used in _sub_FF86837C__SsImgProcBuf.c__0
30  // checks [0x555C + 0x18] --> defines which buffer is active
31 
32  if (*((int*)0x5574) == 0)
33  return (char*) 0x43164D80; // G10 @ 0xFFB101AC
34  else
35  return (char*)0x413245A0; // G10 searched for aCrwaddressLxCr or for aCrawBuffP 0xFFACDE48
36 }
char* hook_raw_image_addr ( void  )

Definiert in Zeile 12 der Datei lib.c.

13 {
14  // Appears to be two raw buffers (this returns active buffer)
15  // Addresses below found in table at FFB1017C , ref at FFBBAD50
16  // used in _sub_FF86837C__SsImgProcBuf.c__0
17  // checks [0x555C + 0x18] --> defines which buffer is active
18 
19  if (*((int*)0x5574) != 0)
20  return (char*)0x43164D80; // G10 @ 0xFFB101AC
21  else
22  return (char*)0x413245A0; // G10 searched for aCrwaddressLxCr or for aCrawBuffP 0xFFACDE48
23 }
void* vid_get_bitmap_active_buffer ( )

Definiert in Zeile 73 der Datei lib.c.

74 {
75  return (void*)(*(int*)(0x8034+0x14)); // sub_FF8F331C via "Add: %p Width : %ld Hight : %ld",
76 }
void* vid_get_bitmap_fb ( )

Definiert in Zeile 44 der Datei lib.c.

45 {
46  return (void*)0x40471000; // G10 autofound @0xff846a4c DispCon_ShowBitmapColorBar
47 }
void* vid_get_viewport_fb ( )

Definiert in Zeile 49 der Datei lib.c.

50 {
51  return (void*)0x40816dc0; // G10 autofound @0xffad4d70 - search on VRAM Address
52 }
void* vid_get_viewport_fb_d ( )

Definiert in Zeile 54 der Datei lib.c.

55 {
56  return (void*)(*(int*)(0x524C+0x54)); // @FF85ADD8 & FF85AE28 (comp S95, G11 - search for aImageplayer_c)
57 } // @FF85B864 & FF85B89C
void* vid_get_viewport_live_fb ( )

Definiert in Zeile 59 der Datei lib.c.

60 {
61  void **fb=(void **)0x2298;
62  unsigned char buff = *((unsigned char*)0x20FC);
63  if (buff == 0) {
64  buff = 2;
65  }
66  else {
67  buff--;
68  }
69  return fb[buff];
70 }