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

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