root/platform/sx100is/sub/100c/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:FFDC5D60
  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     void **fb=(void **)0x21E4;
  32     unsigned char buff = *((unsigned char*)0x2098);
  33     if (buff == 0) {
  34         buff = 2;
  35     }
  36     else {
  37         buff--;
  38     }
  39     return fb[buff];
  40 }
  41 
  42 void *vid_get_bitmap_fb()
  43 {
  44     return (void*)0x10361000;           // Same as A720
  45 }
  46 
  47 void *vid_get_viewport_fb()
  48 {
  49     return (void*)0x1065A4D0; // 0x107D5FD0
  50 }
  51 
  52 void *vid_get_viewport_fb_d()
  53 {
  54     return (void*)(*(int*)0x5420);   // 0x53D8 + 0x48
  55 }
  56 
  57 long vid_get_viewport_height()
  58 {
  59     return 240;
  60 }
  61 char *camera_jpeg_count_str()
  62 {
  63         // Fount at ROM:FFD6D358
  64  return (void*)0x59A1C;
  65 }
  66 
  67 void JogDial_CW(void){
  68   (*(short*)(0x2590+2))--;
  69   *(int*)(0x2590+0x18)=0x32;
  70   _GiveSemaphore(*(int*)(0x2590+0x10));
  71 }
  72 
  73 void JogDial_CCW(void){
  74   (*(short*)(0x2590+2))++;
  75   *(int*)(0x2590+0x18)=0x32;
  76   _GiveSemaphore(*(int*)(0x2590+0x10));
  77 }
  78 
  79 void _EnterToCompensationEVF() {} // Dummy function. To be removed after stub is found. See stubs_entry_2.S.
  80 void _ExitFromCompensationEVF() {} // Dummy function. To be removed after stub is found. See stubs_entry_2.S.

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