root/platform/ixus970_sd890/sub/100c/lib.c

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

DEFINITIONS

This source file includes following definitions.
  1. hook_raw_fptr
  2. hook_raw_ret_addr
  3. hook_raw_image_addr
  4. vid_get_viewport_live_fb
  5. vid_get_viewport_fb
  6. vid_get_viewport_fb_d
  7. vid_get_bitmap_fb
  8. camera_jpeg_count_str
  9. vid_get_viewport_height

   1 #include "platform.h"
   2 
   3 // obsolete
   4 void *hook_raw_fptr() { return (void*)0; }
   5 void *hook_raw_ret_addr() { return (void*)0; }
   6 
   7 char *hook_raw_image_addr()
   8 {
   9         // 0x54F4 + 0x18 @ FF85E534
  10         // @ FFAB1C48
  11         // @ FFAB1C54
  12         return (char*) (*(int*)(0x550C) ? 0x11B97B60 : 0x107D68C0);
  13 }
  14 
  15 // Live picture buffer (shoot not pressed)
  16 void *vid_get_viewport_live_fb()
  17 {
  18         // @ FF8C5AB0
  19         void **fb=(void **)0x7420;
  20         unsigned char buff = *((unsigned char*)0x729C);
  21         if (buff == 0) {
  22                 buff = 2;
  23         } else {
  24                 buff--;
  25         }
  26         return fb[buff];
  27 }
  28 
  29 // Live picture buffer (shoot half-pressed)
  30 void *vid_get_viewport_fb()
  31 {
  32         // @ FFA88AFC
  33         return (void*)0x1065ADC0;
  34 }
  35 
  36 // Picture buffer (play mode)
  37 void *vid_get_viewport_fb_d()
  38 {
  39         // 0x51FC + 0x4C @ FF853E50
  40         return (void*)(*(int*)0x5248);
  41 }
  42 
  43 // OSD buffer
  44 void *vid_get_bitmap_fb()
  45 {
  46         // @ FF8EA9F8
  47         return (void*)0x10361000;
  48 }
  49 
  50 // possible future use
  51 /*
  52 char *vid_get_bitmap_fb_d() 
  53 {
  54         // 0xAEF0+0x4 @ FF9AE274
  55         int *p =(int *)(*(int*)(0xAEF4));
  56         return ((char *)(*(p+2)));
  57 }
  58 */
  59 
  60 char *camera_jpeg_count_str()
  61 {
  62         // @ FF9A6FDC
  63         return (char*)0x4CA80;
  64 }
  65 
  66 long vid_get_viewport_height() { return 240; }

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