root/platform/ixus110_sd960/sub/101f/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. camera_jpeg_count_str
  7. vid_get_bitmap_active_buffer

   1 #include "platform.h"
   2 
   3 char *hook_raw_image_addr()
   4 {
   5     return (char*)0x424ad900; // CRAW BUF
   6 }
   7 
   8 void *vid_get_viewport_live_fb()
   9 {
  10 /*
  11 the addresses seem to be the right ones, but ptp liveview is jerky...
  12 */
  13     void **fb=(void **)0x479c; //@ff8b443c ixus110 101d
  14     unsigned char buff = *((unsigned char*)0x45f4); //@ff8b4640 ixus110 101d
  15     if (buff == 0) {
  16         buff = 2;
  17     }
  18     else {
  19         buff--;
  20     }
  21     return fb[buff]; 
  22     // d10 adds this extra value.  Didn't ever see the value change from zero, may be wrong
  23     //return fb[buff] + *(int *)(0x1F74 + 0xd4); 
  24 }
  25 
  26 void *vid_get_bitmap_fb()       
  27 {
  28     //return (void*)0x40DAB300; //  after DispCon_ShowBlackChart??
  29     return (void*)0x403f1000;
  30 }
  31 
  32 void *vid_get_viewport_fb()
  33 {
  34     return (void *)0x415f3570; // search on VRAM Address
  35 }
  36 
  37 void *vid_get_viewport_fb_d()
  38 {
  39     return (void*)(*(int*)(0x2764 + 0x58));  // @ff855004, ff855030
  40 }
  41 
  42 char *camera_jpeg_count_str()
  43 {
  44     return (char *)0x35278; // search on "9999" done
  45 }
  46 
  47 
  48 // PTP display stuff
  49 
  50 /*
  51 void *vid_get_bitmap_active_palette() { // not usable for color replacement (ROM address?)
  52     return (void *)*(unsigned int*)(0x5068+0x28);  // sub_FF8CE1B4
  53 }
  54 */
  55 void *vid_get_bitmap_active_buffer()
  56 {
  57     return (void*)(*(int*)(0x5068+0x14)); //"Add: %p Width : %ld Hight : %ld", sub_FF8CE2F8
  58 }

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