root/platform/a3100/sub/100a/lib.c

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

DEFINITIONS

This source file includes following definitions.
  1. hook_raw_image_addr
  2. vid_get_bitmap_fb
  3. vid_get_viewport_fb
  4. vid_get_viewport_fb_d
  5. vid_get_viewport_width
  6. vid_get_viewport_height
  7. camera_jpeg_count_str

   1 #include "platform.h"
   2 
   3 char *hook_raw_image_addr()
   4 {
   5 /*
   6 ROM:FFCEDBC4                 LDR     R2, =0xE88
   7 ROM:FFCEDBC8                 LDR     R1, =0x10E59860
   8 ROM:FFCEDBCC                 SUB     R3, R2, #0x3B4
   9 ROM:FFCEDBD0                 ADR     R0, aCrwaddressLxCr ; " CrwAddress %lx, CrwSize H %ld V %ld\r"
  10 sss 
  11 */ 
  12         return (char*) 0x110B7260; // @ffaadc34
  13 }
  14 
  15 
  16 
  17 
  18 // OSD buffer
  19 void *vid_get_bitmap_fb()
  20 {
  21         return (void*)0x103e1000;
  22 }
  23 
  24 // Live picture buffer (shoot half-pressed)
  25 void *vid_get_viewport_fb()
  26 {
  27         return (void*) 0x106f3bc0;
  28 }
  29 
  30 void *vid_get_viewport_fb_d() 
  31 {                  
  32         return (void*)(*(int*)(0x2630+0x54));
  33 }
  34 
  35 int vid_get_viewport_width()
  36 {
  37     return 360;                                               
  38 }
  39 
  40 long vid_get_viewport_height()
  41 {
  42     return 240;
  43 }
  44 
  45 char *camera_jpeg_count_str()
  46 {
  47  return (void*)0x00076b3c;
  48 }

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