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

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