root/platform/a800/sub/100c/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_d
  4. vid_get_viewport_height
  5. camera_jpeg_count_str
  6. _GetBatteryTemperature

   1 #include "platform.h"
   2 #include "lolevel.h"
   3 
   4 char *hook_raw_image_addr()
   5 {
   6         return (char*) 0x10e59860; // (a800=ffe72f80 x ixus=ffb61594) 0x10E52420; // at ffe73088 
   7 }
   8 
   9 // OSD buffer
  10 void *vid_get_bitmap_fb()
  11 {
  12         return (void*)0x10361000; // "BmpDDev.c", 0xFFCD1DD4 <-> sub_entry.S { return (void*)0x10361000; } // Found @0xffc3fafc
  13 }
  14 
  15 void *vid_get_viewport_fb_d()
  16 {
  17         return (void*)(*(int*)(0x2588+0x54)); // ffc54ff8 comparando com FFc53554 de A495; // sub_FFC528C0 / sub_FFC53554?
  18 }
  19 
  20 long vid_get_viewport_height() { return 240; }
  21 
  22 char *camera_jpeg_count_str()
  23 {
  24         { return (char*)0x00088994; } // from stub_entry.S Found @0xffd810bcreturn (char*)0x7486C;  // "9999"
  25 }
  26 
  27 /*
  28 Note copied from SX110 IS
  29 GetBatteryTemperature usually will get back temperature of battery compartment/batteries. GetBatteryTemperature is implemented in Canon's firmware for SX120IS.
  30 Firmware entry point is identified (0xFFC394D8) but function is not usable. Camera will crash if Canon's GetBatteryTemperature is called by CHDK.
  31 To avoid a crash Canon's GetBatteryTemperature must not called. As long CHDK general code do not distinguish between cameras that support or don't support GetBatteryTemperature, 
  32 this function will be implemented as specific CHDK-code. It returns always with -99 (which means -99° Celsius or -146° Fahrenheit).
  33 Original entry point in Canon's firmware is disabled (in stubs_entry.S).
  34 */
  35 
  36 int _GetBatteryTemperature()
  37 {
  38       return -99;
  39 }

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