This source file includes following definitions.
- hook_raw_image_addr
- hook_alt_raw_image_addr
- vid_get_viewport_live_fb
- _GetBatteryTemperature
- vid_get_bitmap_fb
- vid_get_viewport_fb
- vid_get_viewport_fb_d
- camera_jpeg_count_str
- get_flash_params_count
1 #include "platform.h"
2
3 char *hook_raw_image_addr() {return (char*) 0x420B7FC0;}
4 char *hook_alt_raw_image_addr() {return (char*) 0x420B7FC0;}
5
6 void *vid_get_viewport_live_fb()
7 {
8 void **fb=(void **)0x2274;
9 unsigned char buff = *((unsigned char*)0x2094);
10 if (buff == 0) {
11 buff = 2;
12 }
13 else {
14 buff--;
15 }
16 return fb[buff];
17 }
18
19
20
21
22
23
24
25
26
27 int _GetBatteryTemperature() { return -99;}
28
29
30 void *vid_get_bitmap_fb() { return (void*)0x40411000; }
31 void *vid_get_viewport_fb() { return (void*)0x40566b80; }
32 void *vid_get_viewport_fb_d() { return (void*)(*(int*)(0x2950+0x54)); }
33 char *camera_jpeg_count_str() { return (char*)0x000b3b6c; }
34 int get_flash_params_count(void) { return 0xa6; }