root/platform/ixus870_sd880/sub/101a/lib.c

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

DEFINITIONS

This source file includes following definitions.
  1. hook_raw_image_addr
  2. vid_get_viewport_live_fb
  3. vid_get_bitmap_fb
  4. vid_get_viewport_fb
  5. vid_get_viewport_fb_d
  6. vid_get_viewport_height
  7. camera_jpeg_count_str

   1 #include "platform.h"
   2 
   3 char *hook_raw_image_addr()
   4 {
   5   // _sub_FF863178__SsImgProcBuf.c__0: STR after label
   6   // 0xFF86317C -> 0x5324
   7   // 0xFF8631A8 -> 0x18
   8   //
   9   // via aCrawBufP -> 0x412007FC (as with ixus980)
  10   //
  11   // just before aEscapeOriginal (" Escape Original Raw to CRAW2 BUFFER. ")
  12   // 0xFF84D020: 0x429AAA2C
  13         return (char*) (*(int*)(0x5324+0x18) ? 0x429AAA2C : 0x412007FC);
  14 }
  15 
  16 void *vid_get_viewport_live_fb()
  17 {
  18     void **fb=(void **)0x725C; // 0xff8c2e9c
  19     unsigned char buff = *((unsigned char*)0x70D8); // 0xff8c2e24
  20     if (buff == 0) buff = 2;  else buff--;    
  21     return fb[buff];
  22 }
  23 
  24 void *vid_get_bitmap_fb()
  25 {
  26   // 0xFF841DE0 (below DispCon_ShowBitmapColorBar
  27         return (void*)0x403B1000; 
  28 }
  29 
  30 void *vid_get_viewport_fb()
  31 {
  32   // In data block with aLiveimage_c
  33   // look for use of 0x7E9
  34   // instruction above contains address
  35   // XXX guessed
  36         return (void*)0x40A2F2D0;
  37 }
  38 
  39 void *vid_get_viewport_fb_d()
  40 {
  41   // in _sub_FF856D78__ImagePlayer.c__0
  42   // 3rd instruction -> 0x501C
  43   // 3nd use -> 0x58
  44         return (void*)(*(int*)(0x501C+0x58)); 
  45 }
  46 
  47 long vid_get_viewport_height()
  48 {
  49         return 240;
  50 }
  51 
  52 char *camera_jpeg_count_str()
  53 {
  54   // 0xFF9AD200 (directly above use of "9999")
  55         return (char*)0x4A980;
  56 }

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