root/platform/a3000/sub/100d/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 /*
   3 0xE88 and AD4 =              
   4 3720  *  2772  =  10311840 
   5 */ 
   6 
   7 
   8 char *hook_raw_image_addr()
   9 {
  10 /*
  11 ROM:FFCEDBC4                 LDR     R2, =0xE88
  12 ROM:FFCEDBC8                 LDR     R1, =0x10E59860
  13 ROM:FFCEDBCC                 SUB     R3, R2, #0x3B4
  14 ROM:FFCEDBD0                 ADR     R0, aCrwaddressLxCr ; " CrwAddress %lx, CrwSize H %ld V %ld\r"
  15 sss 
  16 */ 
  17         return (char*) 0x10E59860; // A3000 @FFE659E0
  18 }
  19 
  20 // Live picture buffer (shoot not pressed)
  21 void *vid_get_viewport_live_fb()
  22 {
  23     void **fb=(void **)0xFFE9856C;                           // 
  24     unsigned char buff = *((unsigned char*)0x4290);          // found at FFCB7A1C (near string "TgTask")
  25     if (buff == 0) buff = 2;  else buff--;    
  26     return fb[buff];
  27 }
  28 
  29 // OSD buffer
  30 void *vid_get_bitmap_fb()
  31 {
  32         return (void*)0x10361000;       // found at ffcd5a60, under "BmpDDev.c"
  33 }
  34 
  35 // Live picture buffer (shoot half-pressed)
  36 void *vid_get_viewport_fb()
  37 {
  38         return (void*) 0x10650100; //A3000IS @FFE626AC
  39 }
  40 
  41 void *vid_get_viewport_fb_d() 
  42 {                  
  43         return (void*)(*(int*)(0x2620+0x54));    // found at FFC52DD8 and  (0x48 at FFC52DE0)
  44 }
  45 
  46 int vid_get_viewport_width()
  47 {
  48     return 360;                                               
  49 }
  50 
  51 long vid_get_viewport_height()
  52 {
  53     return 240;
  54 }
  55 
  56 char *camera_jpeg_count_str()
  57 {
  58  return (void*)0x75120;    // found at FFD7BD90 search string: a9999
  59 }

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