root/platform/ixus120_sd940/sub/102c/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

   1 #include "platform.h"
   2 
   3 char *hook_raw_image_addr()
   4 {
   5         // return (char*) (*(int*)(0x29D4 + 0x0C)? 0 : 0x40B28560);     // "CRAW BUF", "SsImgProcBuf.c:0"
   6 
   7         return (char*)0x4219D120;                                                                       // @FFAD6E84
   8 }
   9 
  10 void *vid_get_viewport_live_fb()
  11 {                                                                                                       // Matched IXUS100-SD780 100c code at 0xFF8B02F4 with IXUS120-SD940 at address 0xFF8D9014
  12                                                                                                         // Matched IXUS200-SD980 101c code at 0xFF8E0788 with IXUS120-SD940 at address 0xFF8D9014 
  13         // return (void*) 0;                                                    // __LiveImage.c__  ok
  14     void **fb=(void **)0x4B34;                                          // SD940 102C @ 0xFF8D9280  
  15     unsigned char buff = *((unsigned char*)0x497C); // SD940 103C @ 0xFF8D9018
  16     if (buff == 0) {
  17         buff = 2;
  18     }
  19     else {
  20         buff--;
  21     }
  22     return fb[buff];
  23 }
  24 
  25 void *vid_get_bitmap_fb()
  26 {
  27         // 0x7080 determined empirically, but 0x7080 = 2*(960-720)*240
  28    // return (void*) (0x403F1000 + 0x7080); // dispcon* functions and BmpDDev.c
  29 
  30 
  31     return (void*) 0x403F1000;
  32 }
  33 
  34 // possible future use, current (or previous ?) bitmap buffer
  35 /*
  36 char *vid_get_bitmap_fb_d()
  37 {
  38         int *p =(int *)(*(int*)(0xB550 + 0x4));
  39         return ((char *)(*(p+2)));
  40 }
  41 */
  42 
  43 void *vid_get_viewport_fb()
  44 {
  45     return (void *) (0x4088B700); // search on VRAM Address
  46 }
  47 
  48 void *vid_get_viewport_fb_d()
  49 {
  50         return (void*)(*(int*)(0x2790+0x58));  //  @FF869DEC  @FF869E24
  51 }

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