root/platform/sx260hs/sub/100b/lib.c

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

DEFINITIONS

This source file includes following definitions.
  1. hook_raw_image_addr
  2. hook_alt_raw_image_addr
  3. vid_get_viewport_fb_d
  4. camera_jpeg_count_str
  5. camera_jpeg_current_filename
  6. camera_jpeg_current_gps

   1 #include "platform.h"
   2 
   3 char *hook_raw_image_addr() 
   4 {
   5         // Appears to be two raw buffers (this returns active buffer)
   6         // Addresses below found in table at FF45507C used in sub_FF0DDA6C
   7         // [0x3188 + 0xC] --> defines which buffer is active
   8 
   9     if (*((int*)(0x3188 + 0xC)) != 0)       //loc_ff07154c: 0x3188 (@FF071550 ) + 0xC (@FF07157C)
  10         return (char*) 0x4ADB54A0;          
  11     else
  12         return (char*) 0x44000000;          
  13 }
  14 
  15 char *hook_alt_raw_image_addr() {
  16     if (*((int*)(0x3188 + 0xC)) == 0)
  17         return (char*) 0x4ADB54A0;
  18     else
  19         return (char*) 0x44000000;
  20 }
  21 
  22 void *vid_get_viewport_fb_d() {
  23     return (void*)(*(int*)(0x2ec0+0x54));   //Found @0xff062d0c & 0xff062d44
  24 }
  25 
  26 char *camera_jpeg_count_str() {
  27      return (void*)0xDD3B4;                 //asm1989 @FF26FE14  CONFIRMED finsig serch for "9999"  sx230: 0xCE488
  28 }
  29 
  30 #ifdef CAM_HAS_GPS
  31 char *camera_jpeg_current_filename() {
  32      return (void*)0xD922C;                 //RAM dump, @ FF22FADC serach for  "%03d-%04d"  sx230:0xCA818
  33 }
  34 
  35 char *camera_jpeg_current_gps() {
  36     return (void*)0xD92A0;
  37 }
  38 #endif

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