root/platform/a3000/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_width
  7. vid_get_viewport_height
  8. camera_jpeg_count_str

   1 #include "platform.h"
   2 char *hook_raw_image_addr()
   3 {
   4         return (char*) 0x10E59860;
   5 }
   6 
   7 // Live picture buffer (shoot not pressed)
   8 void *vid_get_viewport_live_fb()
   9 {
  10     void **fb=(void **)0xFFE9856C;
  11     unsigned char buff = *((unsigned char*)0x4290);
  12     if (buff == 0) buff = 2;  else buff--;    
  13     return fb[buff];
  14 }
  15 
  16 // OSD buffer
  17 void *vid_get_bitmap_fb()
  18 {
  19         return (void*)0x10361000;
  20 }
  21 
  22 // Live picture buffer (shoot half-pressed)
  23 void *vid_get_viewport_fb()
  24 {
  25         return (void*) 0x10650100;
  26 }
  27 
  28 void *vid_get_viewport_fb_d() 
  29 {                  
  30         return (void*)(*(int*)(0x2620+0x54));
  31 }
  32 
  33 int vid_get_viewport_width()
  34 {
  35     return 360;                                               
  36 }
  37 
  38 long vid_get_viewport_height()
  39 {
  40     return 240;
  41 }
  42 
  43 char *camera_jpeg_count_str()
  44 {
  45  return (void*)0x75120;
  46 }

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