root/platform/g11/sub/100f/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. JogDial_CW
  7. JogDial_CCW
  8. camera_jpeg_count_str

   1 #include "platform.h"
   2 #include "lolevel.h"
   3 /*
   4 *********************
   5 G11
   6 **********************
   7 note sensor size for camera.h is from 
   8 @ FFB09A68
   9 0xEE9200  = 15634944 
  10 15634944/12 * 8  = 10423296 ---
  11                                |
  12 @ FFB09690                     |
  13 0xEA0 and 0xAE0 =              |
  14 3744  *  2784  =  10423296  --- 
  15 
  16 ROM:FFB09A68 DC 10 9F E5                             LDR     R1, =0xEE9200   ; Load from Memory
  17 ROM:FFB09A6C DC 00 8F E2                             ADR     R0, aCrawBuffSizeP ; "CRAW BUFF SIZE  %p"
  18  
  19 ROM:FFB09690                         loc_FFB09690                            ; CODE XREF: sub_FFB0965C+10j
  20 ROM:FFB09690 EA 0E A0 E3                             MOV     R0, #0xEA0      ; Rd = Op2
  21 ROM:FFB09694 00 00 81 E5                             STR     R0, [R1]        ; Store to Memory
  22 ROM:FFB09698 AE 0E A0 E3                             MOV     R0, #0xAE0      ; Rd = Op2
  23 */ 
  24 
  25 char *hook_raw_image_addr()
  26 {
  27     return (char*)0x41C0F460;  // G11 search for aCrwaddressLxCr " CrwAddress %lx, CrwSize H %ld V %ld\r" 0x41c0f460 0xEA0 0xAE0
  28                                                            // or for aCrawBuffP      DCB "CRAW BUFF       %p",0
  29 }
  30 
  31 void *vid_get_viewport_live_fb()
  32 {
  33             return (void*)0;
  34 #if 0
  35         void **fb=(void **)0x94E18;                               
  36         unsigned char buff = *((unsigned char*)0x9114+6);         
  37     if (buff == 0) buff = 2;  else buff--;    
  38     return fb[buff];
  39 #endif
  40 }
  41 /*
  42 G11:  IMG VRAM BUFF = 0x4161CFC4 
  43           THUM VRAM BUFF= 0x40A1C030
  44           CRAW BUFF     = 0x41C0F460
  45           CRAW BUFF SIZE= 0xEE9200
  46           JPEG BUFF     = 0x42DEAC00 (0x1215400)
  47  
  48 */
  49 
  50 void *vid_get_bitmap_fb()       
  51 {
  52         return (void*)0x40471000; // G11 OK  loc_FF85A4BC ir 0xFF85A4C0 (at end of function DispCon_ShowBlackChart
  53 }
  54 
  55 void *vid_get_viewport_fb()
  56 {
  57         
  58                 return (void*)0x40587700;//g11 OK
  59 }
  60 
  61 // Histo etc. when in play mode maybe ?
  62 void *vid_get_viewport_fb_d()
  63 {
  64         return (void*)(*(int*)(0x2A50+0x58));   // G11
  65          // G11: 0x58 @FF871330  0x2A50 @FF8712F8 (Search for aImageplayer_c)
  66 }
  67 
  68 
  69 /* ERR99: ToDO: Check if this is also ok for G11 (taken from SX200IS port) */
  70 void JogDial_CW(void){
  71  _PostLogicalEventForNotPowerType(0x874, 1);  // RotateJogDialRight
  72 }
  73 
  74 void JogDial_CCW(void){
  75  _PostLogicalEventForNotPowerType(0x875, 1);  // RotateJogDialLeft
  76 }
  77 
  78 
  79 char *camera_jpeg_count_str()
  80 {
  81     return (char*)0x97234;// G11 OK /* Search for a9999 ; "9999" */
  82 }

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