CHDK_DE Vorschauversion  Trunk Rev. 5249
 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 ()
 
void * vid_get_viewport_live_fb ()
 
void * vid_get_bitmap_fb ()
 
void * vid_get_viewport_fb ()
 
void * vid_get_viewport_fb_d ()
 
int vid_get_viewport_width ()
 
long vid_get_viewport_height ()
 
char * camera_jpeg_count_str ()
 
int vid_get_palette_type ()
 
int vid_get_palette_size ()
 
void * vid_get_bitmap_active_buffer ()
 
int _GetVRAMHPixelsSize ()
 
int _GetVRAMVPixelsSize ()
 
int vid_get_viewport_fullscreen_width ()
 
int vid_get_viewport_fullscreen_height ()
 
int vid_get_viewport_display_xoffset_proper ()
 
int vid_get_viewport_display_yoffset_proper ()
 

Dokumentation der Funktionen

int _GetVRAMHPixelsSize ( )
int _GetVRAMVPixelsSize ( )
char* camera_jpeg_count_str ( )

Definiert in Zeile 67 der Datei lib.c.

68 {
69  return (void*)0x5408C; // found at FF9C1F28
70 }
char* hook_raw_image_addr ( void  )

Definiert in Zeile 17 der Datei lib.c.

18 {
19  //found at FFAC8D10
20  //ROM:FFAC8D10 LDR R6, =0x424B41C0
21  //...
22  //ROM:FFAC8D60 MOV R1, R6
23  //ROM:FFAC8D64 ADR R0, aCrawBuffP ; "CRAW BUFF %p"
24 
25  return (char*)(0x424B41C0);
26 }
void* vid_get_bitmap_active_buffer ( )

Definiert in Zeile 81 der Datei lib.c.

82 {
83  return (void*)(*(int*)(0x5744+0x14)); //"Add: %p Width : %ld Hight : %ld", FF8E62DC
84 }
void* vid_get_bitmap_fb ( )

OSD screen

Definiert in Zeile 38 der Datei lib.c.

39 {
40  return (void*)0x403F1000; // found at FF842AC4 and FFA2BED4
41 }
int vid_get_palette_size ( )

Definiert in Zeile 74 der Datei lib.c.

74 { return 256*4; }
int vid_get_palette_type ( )

Definiert in Zeile 73 der Datei lib.c.

73 { return 3; }
int vid_get_viewport_display_xoffset_proper ( )

Definiert in Zeile 103 der Datei lib.c.

103  {
104  int val=0;
105  int mode = mode_get()&MODE_MASK;
106  int mode_shoot = mode_get()&MODE_SHOOTING_MASK;
107  if(mode != MODE_PLAY && mode_shoot == MODE_STITCH) {
108  short dir=0;
109  short seq=0;
112  // overall stitch window is 3/4 screen width, centered
113  // live part is 1/2, so margin is either 1/8th or 3/8th
114  if(dir==0) {
115  val = seq?270:90;
116  } else {
117  val = seq?90:270;
118  }
119  }
120  return val;
121 }
int vid_get_viewport_display_yoffset_proper ( )

Definiert in Zeile 123 der Datei lib.c.

123  {
124  int mode = mode_get()&MODE_MASK;
125  int mode_shoot = mode_get()&MODE_SHOOTING_MASK;
126  return (mode != MODE_PLAY && mode_shoot == MODE_STITCH)?70:0; // window is 120, not centered
127 }
void* vid_get_viewport_fb ( )

IMG viewport in 'rec' mode

Definiert in Zeile 44 der Datei lib.c.

45 {
46  return (void*)0x415F9E20; // found by search for VRAM Address @FFAC67F0
47 }
void* vid_get_viewport_fb_d ( )

IMG viewport in 'play' mode

Definiert in Zeile 50 der Datei lib.c.

51 {
52 // return (void*)(*(int*)(0x2950+0x50)); // found at FF858A84 and FF859398 (0x58 at FF8594F0)
53  return (void*)(*(int*)(0x2950+0x58)); // suggested by ADamb
54 }
int vid_get_viewport_fullscreen_height ( )

Definiert in Zeile 96 der Datei lib.c.

96  {
97  int mode = mode_get()&MODE_MASK;
98  int mode_shoot = mode_get()&MODE_SHOOTING_MASK;
99  return ((mode == MODE_PLAY) ||
100  (mode != MODE_PLAY && mode_shoot == MODE_STITCH))?240:_GetVRAMVPixelsSize();
101 }
int vid_get_viewport_fullscreen_width ( )

Definiert in Zeile 89 der Datei lib.c.

89  {
90  int mode = mode_get()&MODE_MASK;
91  int mode_shoot = mode_get()&MODE_SHOOTING_MASK;
92  return ((mode == MODE_PLAY) ||
93  (mode != MODE_PLAY && mode_shoot == MODE_STITCH))?720:_GetVRAMHPixelsSize();
94 }
long vid_get_viewport_height ( )

Definiert in Zeile 62 der Datei lib.c.

63 {
64  return 240;
65 }
void* vid_get_viewport_live_fb ( )

Definiert in Zeile 29 der Datei lib.c.

30 {
31  void **fb=(void **)0x2180; // 0x2150 or 0x2180 (suggested by ADamb)
32  unsigned char buff = *((unsigned char*)0x1FD8); // found at FF838090
33  if (buff == 0) buff = 2; else buff--;
34  return fb[buff];
35 }
int vid_get_viewport_width ( )

Definiert in Zeile 57 der Datei lib.c.

58 {
59  return 360; // stays at 360 as IN SD990
60 }