root/platform/sx230hs/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_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*)0x3F64) != 0)
   7         {
   8                 return (char*) 0x46000000;
   9         }
  10         else
  11         {
  12                 return (char*) 0x413591F0;
  13         }
  14 }
  15 
  16 char *hook_alt_raw_image_addr() 
  17 {
  18         if (*((int*)0x3F64) == 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 void *vid_get_viewport_fb_d()
  40 {
  41         return (void*)(*(int*)(0x3CD0+0x58));                  
  42 }
  43 
  44 char *camera_jpeg_count_str()
  45 {
  46          return (void*)0xCE488;                                      
  47 }
  48 
  49 char *camera_jpeg_current_filename()
  50 {
  51 //       return (void*)0xCA488;
  52          return (void*)0xCA818;
  53 }
  54 
  55 void *camera_jpeg_current_gps()
  56 {
  57         return (void*)0xCA88C;
  58 }

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