root/platform/sx230hs/sub/101b/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_live_fb
  4. vid_get_bitmap_fb
  5. vid_get_viewport_fb
  6. vid_get_viewport_fb_d
  7. camera_jpeg_count_str
  8. camera_jpeg_current_filename
  9. camera_jpeg_current_gps

   1 #include "platform.h"
   2 
   3 
   4 char *hook_raw_image_addr()
   5 {
   6     if (*((int*)(0x3F58 + 0xc)) != 0)       //0x3F58 ( @FF07B02C ) +0xC (@FF07B0A4 )
   7     {
   8         return (char*) 0x46000000;  //@FF066A14
   9     }
  10     else
  11     {
  12         return (char*) 0x413591F0;  //@FF37FB7C
  13     }
  14 }
  15 
  16 char *hook_alt_raw_image_addr()
  17 {
  18     if (*((int*)(0x3F58 + 0xc)) == 0)
  19         return (char*) 0x46000000;
  20     else
  21         return (char*) 0x413591F0;
  22 }
  23 
  24 void *vid_get_viewport_live_fb()
  25 {
  26     return (void*)(void*)(*(int*)(0x225C));
  27 }
  28 
  29 void *vid_get_bitmap_fb()
  30 {
  31     return (void*)0x40471000;
  32 }
  33 
  34 void *vid_get_viewport_fb()
  35 {
  36     return (void*)0x405D7980;
  37 }
  38 
  39 
  40 void *vid_get_viewport_fb_d()
  41 {
  42     return (void*)(*(int*)(0x3CD0+0x58));
  43 
  44 }
  45 
  46 char *camera_jpeg_count_str()
  47 {
  48      return (void*)0xCE488;
  49 }
  50 
  51 char *camera_jpeg_current_filename()
  52 {
  53          return (void*)0xCA818;
  54 }
  55 
  56 char *camera_jpeg_current_gps()
  57 {
  58         return (void*)0xCA88C;
  59 }

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