root/platform/ixus120_sd940/sub/103c/lib.c

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

DEFINITIONS

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

   1 #include "platform.h"
   2                 
   3 char *hook_raw_image_addr()             
   4 {               
   5     return (char*)0x4219D120;   // SD940 103c FFAD6FF8 from matching subroutine in S90 101a FFB0254C
   6                                                                 // ... search for aCrawBuffP      DCB "CRAW BUFF       %p",0
   7 }               
   8                 
   9                 
  10 void *vid_get_bitmap_fb()               
  11 {               
  12         return (void*)0x403F1000;       // SD940 103c @ FF8532DC after DispCon_ShowBlackChart
  13 }               
  14         
  15 void *vid_get_viewport_live_fb()
  16 {                                                                                                       // Matched IXUS100-SD780 100c code at 0xFF8B02F4 with IXUS120-SD940 at address 0xFF8D9014
  17                                                                                                         // Matched IXUS200-SD980 101c code at 0xFF8E0788 with IXUS120-SD940 at address 0xFF8D9014 
  18         // return (void*) 0;                                                    // __LiveImage.c__  ok
  19     void **fb=(void **)0x4B34;                                          // SD940 102C @ 0xFF8D9280  
  20     unsigned char buff = *((unsigned char*)0x497C); // SD940 103C @ 0xFF8D9018
  21     if (buff == 0) {
  22         buff = 2;
  23     }
  24     else {
  25         buff--;
  26     }
  27     return fb[buff];
  28 }
  29                 
  30 void *vid_get_viewport_fb()             
  31 {               
  32         return (void*)0x4088B700;       // SD940 103c from matching subroutine in S90 101a
  33                                                                 // search on VRAM Address  sub @ 9FFAD4910)
  34 }               
  35                 
  36 void *vid_get_viewport_fb_d()           
  37 {               
  38         return (void*)(*(int*)(0x2790+0x58));  //  @FF869E3C  @FF869E74 
  39 }               

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