root/platform/sx260hs/sub/100c/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 FF45516C used in sub_FF0DDADC
   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 //Found by finsig sx240hs 100c
  23 //void *vid_get_bitmap_fb()        { return (void*)0x406c5000; }             // Found @0xff047848
  24 //void *vid_get_viewport_fb()      { return (void*)0x4081ab80; }             // Found @0xff3e3784
  25 void *vid_get_viewport_fb_d()    { return (void*)(*(int*)(0x2ec0+0x54)); } // Found @0xff062d0c & 0xff062d44
  26 char *camera_jpeg_count_str()    { return (char*)0x000dd3b4; }             // Found @0xff26fe7c
  27 //int get_flash_params_count(void) { return 0xa6; }                          // Found @0xff1f401c
  28 
  29 #ifdef CAM_HAS_GPS
  30 char *camera_jpeg_current_filename() {
  31      return (void*)0xD922C;                 //@ FF22FADC search for  "%03d-%04d"  sx230:0xCA818
  32 }
  33 
  34 char *camera_jpeg_current_gps() {
  35     return (void*)0xD92A0;
  36 }
  37 #endif

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