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

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