root/platform/a490/sub/100f/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 #include "lolevel.h"
   3 
   4 char *hook_raw_image_addr()
   5 {
   6         return (char*) 0x10E52420; // Ok, ROM:FFCE9A44
   7 }
   8 
   9 // Live picture buffer (shoot not pressed)
  10 void *vid_get_viewport_live_fb()
  11 {
  12         return (void*)0;
  13     /*void **fb=(void **)0x3E80;  // ?
  14     unsigned char buff = *((unsigned char*)0x3CF0); // sub_FFC87F0C
  15     if (buff == 0) buff = 2;  else buff--;
  16     return fb[buff];*/
  17 }
  18 
  19 // OSD buffer
  20 void *vid_get_bitmap_fb()
  21 {
  22         return (void*)0x10361000; // "BmpDDev.c", found at 0xFFCD1DD4
  23 }
  24 
  25 // Live picture buffer (shoot half-pressed)
  26 void *vid_get_viewport_fb()
  27 {
  28         return (void*)0x10648CC0;  // "VRAM Address", found at sub_FFE53B88
  29 }
  30 
  31 void *vid_get_viewport_fb_d()
  32 {
  33         return (void*)(*(int*)(0x2540+0x54)); // sub_FFC528C0 / sub_FFC53554?
  34 }
  35 
  36 long vid_get_viewport_height() { return 240; }
  37 
  38 char *camera_jpeg_count_str()
  39 {
  40         return (char*)0x7571C;  // "9999" at loc_FFD70AF0
  41 }
  42 

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