root/platform/a2000/sub/100c/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         // Found 0x11B96B80 at ROM:FFC377A0
   6         // Found 0x107D58E0 at ROM:FFC756CC
   7         // 0x51A0 + 0x18 found at ROM:FFC4C15C  
   8         return (char*) (*(int*)(0x51A0+0x18) ? 0x11B96B80 : 0x107D58E0);
   9 }
  10 
  11 void *vid_get_viewport_live_fb()
  12 {
  13     void **fb=(void **)0x6A68;  // at: ROM:FFC9FB74
  14     unsigned char buff = *((unsigned char*)0x68DC);     // at: ROM:FFC9FB6C
  15     if (buff == 0) {
  16         buff = 2;
  17     }
  18     else {
  19         buff--;
  20     }
  21     return fb[buff];
  22 }
  23 
  24 void *vid_get_bitmap_fb()
  25 {
  26         return (void*)0x10361000; // at: ROM:FFDC306C
  27 }
  28 
  29 void *vid_get_viewport_fb()
  30 {
  31         return (void*)0x10659DE0;               // at ROM:FFE44B48
  32 }
  33 
  34 void *vid_get_viewport_fb_d()
  35 {
  36 
  37     return (void*)(*(int*)(0x4ECC + 0x54));   // found at ROM:FFC40CD0 and ROM:FFC46554
  38 }
  39 
  40 long vid_get_viewport_height()
  41 {
  42         return 240;
  43 }
  44 
  45 char *camera_jpeg_count_str()
  46 {
  47         return (char*)0x45100;
  48 }

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