root/platform/a800/sub/100b/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 1.00b at ffe7307C 
   7 }
   8 
   9 // OSD buffer
  10 void *vid_get_bitmap_fb()        { return (void*)0x10361000; }             // Found @0xffc3fafc
  11 void *vid_get_viewport_fb_d()    { return (void*)(*(int*)(0x2588+0x54)); } // Found @0xffc543b8 & 0xffc543f0
  12 long vid_get_viewport_height() { return 240; }
  13 
  14 char *camera_jpeg_count_str()    { return (char*)0x00088994; }             // Found @0xffd810bc
  15 
  16 //int get_flash_params_count(void) { return 0xa0; }                          // Found @0xffd3af20
  17 
  18 /*
  19 Note copied from SX110 IS
  20 GetBatteryTemperature usually will get back temperature of battery compartment/batteries. GetBatteryTemperature is implemented in Canon's firmware for SX120IS.
  21 Firmware entry point is identified (0xFFC394D8) but function is not usable. Camera will crash if Canon's GetBatteryTemperature is called by CHDK.
  22 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, 
  23 this function will be implemented as specific CHDK-code. It returns always with -99 (which means -99 Celsius or -146 Fahrenheit).
  24 Original entry point in Canon's firmware is disabled (in stubs_entry.S).
  25 */
  26 
  27 int _GetBatteryTemperature()
  28 {
  29       return -99;
  30 }

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