root/platform/ixusw_sd430/sub/110a/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. vid_get_palette_type
  9. vid_get_palette_size
  10. vid_get_bitmap_active_palette
  11. vid_get_bitmap_active_buffer

   1 #include "platform.h"
   2 
   3 //To do: 1) test raw related functions.
   4 //       2) test vieport functions.
   5 
   6 char *hook_raw_image_addr()
   7 {
   8     return (char*)(0x1058edd4); //Found @ 0xff92480c
   9 }
  10 
  11 void *vid_get_viewport_live_fb() //from ixus65
  12 {
  13     void **fb=(void **)0x5564; // ixusw @ 0xff8aa7f8
  14     unsigned char buff = *((unsigned char*)0x5574);
  15     if (buff == 0) {
  16            buff = 2;
  17     }
  18     else {
  19         buff--;
  20     }
  21     return fb[buff];
  22 }
  23 
  24 void *vid_get_bitmap_fb()
  25 {
  26     return (void*)0x103c79a0; // found by srsa_4c
  27 }
  28 
  29 void *vid_get_viewport_fb()
  30 {
  31     return (void*)0x105f1570; // found @ 0xff928e08 by comparison to ixus55 100b
  32 }
  33 
  34 void *vid_get_viewport_fb_d()
  35 {
  36  return (void*)(*(int*)0x84150); //found @ 0xff92aed0 by comparison to ixus55 100b
  37 }
  38 
  39 long vid_get_viewport_height()
  40 {
  41     return ((mode_get()&MODE_MASK) == MODE_PLAY)?240:230;
  42 }
  43 char *camera_jpeg_count_str()
  44 {
  45     return (char*)0xa220; //found @ 0xffa4a96c near to "9999". Check this!!!
  46 }
  47 
  48 // TODO: PTP display
  49 int vid_get_palette_type() { return 1; }
  50 int vid_get_palette_size() { return 16*4; }
  51 
  52 void *vid_get_bitmap_active_palette() {
  53     return (void *)0x84050; // Check this!! found @ 0xff929448 by comparison to ixus700 101a
  54 }
  55 void *vid_get_bitmap_active_buffer()
  56 {
  57     return (void*)(*(int*)0x6cbc); //0x6cc4?? Check this!!! found @ 0xff92945c by comparison to ixus700 101a
  58 }
  59 
  60 

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