root/platform/a1100/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
  8. vid_get_bitmap_active_buffer

   1 #include "platform.h"
   2 
   3 char *hook_raw_image_addr()
   4 {
   5         return (char*) 0x4139E56C; // "CRAW BUFF"---fixed
   6 }
   7 
   8 void *vid_get_viewport_live_fb()
   9 {
  10     void **fb=(void **)0x4094;//-----> fixed
  11     unsigned char buff = *((unsigned char*)0x3F00); //   -----fixed
  12     if (buff == 0) buff = 2;  else buff--;    
  13     return fb[buff];
  14 }
  15 
  16 void *vid_get_bitmap_fb()
  17 {
  18         return (void*)0x403F1000; // "BmpDDev.c"----fixed
  19 }
  20 
  21 void *vid_get_viewport_fb()
  22 {
  23         return (void*)0x4076FCC0;  // "VRAM Address"----fixed
  24 }
  25 
  26 void *vid_get_viewport_fb_d()
  27 {
  28         return (void*)(*(int*)(0x2630+0x58)); // sub_FFC3C050   ---fixed
  29 //      return (void*)(*(int*)(0x2630+0x54)); // sub_FFC3C050   ---fixed
  30 }
  31 
  32 long vid_get_viewport_height()
  33 {
  34         return 240;
  35 }
  36 
  37 char *camera_jpeg_count_str()
  38 {
  39         return (char*)0x2F4A8;  // "9999"-----fixed
  40 }
  41 
  42 /*
  43 void *vid_get_bitmap_active_palette() {
  44     return (void *)*(unsigned int*)(0x4988+0x28);  // sub_FFCAD2C0, via sub_FFD669A8 two refs to "Palette Class."
  45 }
  46 */
  47 
  48 void *vid_get_bitmap_active_buffer()
  49 {
  50     return (void*)(*(int*)(0x4988+0x14)); //SaveBmpVRAMData "Add: %p Width : %ld Hight : %ld", sub_FFCAD36C
  51 }

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