root/platform/sx100is/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_height
  7. camera_jpeg_count_str
  8. JogDial_CW
  9. JogDial_CCW
  10. _EnterToCompensationEVF
  11. _ExitFromCompensationEVF

   1 #include "platform.h"
   2 #include "lolevel.h"
   3 
   4 //NOTE These functions not used
   5 
   6 /*void *hook_raw_fptr()
   7 {
   8         return (void*)0;
   9 }*/
  10 
  11 /*void *hook_raw_ret_addr()
  12 {
  13         return (void*)0;
  14 }*/
  15 
  16 char *hook_raw_image_addr()
  17 {
  18 //      Found at ROM:FFDC5D2C
  19 //      ROM:FFDC5D60                 LDR     R6, =0x10F6C860
  20 //      ...
  21 //      ROM:FFDC5DB0                 MOV     R1, R6
  22 //      ROM:FFDC5DB4                 ADR     R0, aCrawBuffP  ; "CRAW BUFF       %p"
  23 
  24 
  25     return (char*)0x10F6C860;           // Same as A720
  26 }
  27 
  28 void *vid_get_viewport_live_fb()
  29 {
  30         return (void*)0;//0x10670ee0;
  31 }
  32 
  33 void *vid_get_bitmap_fb()
  34 {
  35     return (void*)0x10361000;           // Same as A720
  36 }
  37 
  38 void *vid_get_viewport_fb()
  39 {
  40     return (void*)0x1065A4D0; // 0x107D5FD0
  41 }
  42 
  43 void *vid_get_viewport_fb_d()
  44 {
  45     return (void*)(*(int*)0x5420);   // 0x53D8 + 0x48
  46 }
  47 
  48 long vid_get_viewport_height()
  49 {
  50     return 240;
  51 }
  52 char *camera_jpeg_count_str()
  53 {
  54         // Fount at ROM:FFD6D324
  55  return (void*)0x59A1C;
  56 }
  57 
  58 void JogDial_CW(void){
  59   (*(short*)(0x2590+2))--;
  60   *(int*)(0x2590+0x18)=0x32;
  61   _GiveSemaphore(*(int*)(0x2590+0x10));
  62 }
  63 
  64 void JogDial_CCW(void){
  65   (*(short*)(0x2590+2))++;
  66   *(int*)(0x2590+0x18)=0x32;
  67   _GiveSemaphore(*(int*)(0x2590+0x10));
  68 }
  69 void _EnterToCompensationEVF() {} // Dummy function. To be removed after stub is found. See stubs_entry_2.S.
  70 void _ExitFromCompensationEVF() {} // Dummy function. To be removed after stub is found. See stubs_entry_2.S.

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