root/platform/ixus230_elph310hs/sub/100a/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_bitmap_fb
  4. vid_get_viewport_fb_d
  5. camera_jpeg_count_str

   1 #include "platform.h"
   2 
   3 /*
   4 IXUS230HS / ELPH310HS
   5 full 19131120
   6 0x1048 *  BF4   =  C29CA0
   7 4168 * 3060 = 12754080 
   8 */
   9 
  10 char *hook_raw_image_addr()
  11 {
  12         // Appears to be two raw buffers (this returns active buffer)
  13         // Addresses below found in table at 0xff3b9b44  used in sub_FF0DDBFC
  14         // [0x2EF8 + 0xC] --> defines which buffer is active
  15 
  16         if (*((int*)(0x2EF8 + 0xC)) != 0) //loc_FF078D38: 0x2EF8 (@FF078D3C) + 0xC (@FF078D68)
  17                 return (char*) 0x46000000;
  18         else
  19                 return (char*) 0x413391A0;
  20 }
  21 
  22 char *hook_alt_raw_image_addr()
  23 {
  24         // Appears to be two raw buffers (this returns active buffer)
  25         // Addresses below found in table at 0xff3b9b44  used in sub_FF0DDBFC
  26         // [0x2EF8 + 0xC] --> defines which buffer is active
  27 
  28         if (*((int*)(0x2EF8 + 0xC)) == 0) //loc_FF078D38: 0x2EF8 (@FF078D3C) + 0xC (@FF078D68)
  29                 return (char*) 0x46000000;      
  30         else
  31                 return (char*) 0x413391A0;
  32 }
  33 
  34 // OSD buffer
  35 void *vid_get_bitmap_fb()
  36 {       
  37         // Found @0xff053204
  38         return (void*)0x40471000;
  39 }                                  
  40 
  41 void *vid_get_viewport_fb_d()
  42 {
  43         // Found @0xff06c234 & 0xff06c26c
  44         return (void*)(*(int*)(0x2C58+0x58));
  45 }
  46 
  47 char *camera_jpeg_count_str()
  48 {
  49         // Found @0xff226398
  50         return (void*)0x000B9574;
  51 }

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