root/platform/s100/sub/100e/lib.c

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. vid_get_bitmap_fb
  2. vid_get_viewport_fb
  3. vid_get_viewport_fb_d
  4. camera_jpeg_count_str
  5. get_flash_params_count
  6. hook_raw_image_addr
  7. hook_alt_raw_image_addr
  8. camera_jpeg_current_filename
  9. camera_jpeg_current_gps

   1 #include "platform.h"
   2 
   3 void *vid_get_bitmap_fb()        { return (void*)0x40685000; }             // Found @0xff051fbc
   4 void *vid_get_viewport_fb()      { return (void*)0x407dab80; }             // Found @0xff3fc0d0
   5 void *vid_get_viewport_fb_d()    { return (void*)(*(int*)(0x3da0+0x58)); } // Found @0xff07007c & 0xff0700b4
   6 char *camera_jpeg_count_str()    { return (char*)0x000cf0cc; }             // Found @0xff289050
   7 int get_flash_params_count(void) { return 0x9f; }                          // Found @0xff206d58
   8 
   9 char *hook_raw_image_addr()
  10 {
  11         // Appears to be two raw buffers (this returns active buffer)
  12         // Addresses below found in table at ff467f78 used in sub_ff0f26b8 
  13         // [0x40E0 + 0xC] --> defines which buffer is active
  14 
  15         if (*((int*)0x40EC) != 0)
  16                 return (char*) 0x4AD65BC0;
  17         else
  18                 return (char*) 0x44000000;      // found at (ff3feed4) [search CRAW BUF]
  19 }
  20 
  21 char *hook_alt_raw_image_addr()
  22 {
  23         // Appears to be two raw buffers (this returns active buffer)
  24         // Addresses below found in table at ff467f78 used in sub_ff0f26b8 
  25         // [0x40E0 + 0xC] --> defines which buffer is active
  26 
  27         if (*((int*)0x40EC) == 0)
  28                 return (char*) 0x4AD65BC0;
  29         else
  30                 return (char*) 0x44000000;      // found at (ff3feed4) [search CRAW BUF]
  31 }
  32 
  33 char *camera_jpeg_current_filename() {
  34      return (void*)0xCB764;                 //0xFF24D14C search for  "%03d-%04d"
  35 }
  36 
  37 char *camera_jpeg_current_gps() {
  38     return (void*)0xCB7D8;
  39 }

/* [<][>][^][v][top][bottom][index][help] */