root/platform/ixus200_sd980/sub/101c/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. vid_get_viewport_byte_width
  8. vid_get_viewport_width
  9. vid_get_viewport_display_xoffset
  10. camera_jpeg_count_str
  11. get_touch_click_x
  12. get_touch_click_y

   1 #include "platform.h"
   2 
   3 char *hook_raw_image_addr()
   4 {
   5         return (char*)0x421E1120;
   6 }
   7 
   8 void *vid_get_viewport_live_fb()//found in sub_FF8E0788
   9 {
  10     void **fb=(void **)0x5014;
  11     unsigned char buff = *((unsigned char*)0x4E5C);
  12     if (buff == 0) buff = 2;  else buff--;
  13         return (void*)fb[buff];
  14 }
  15 
  16 void *vid_get_bitmap_fb()
  17 {
  18         return (void*)0x40431000;
  19 }
  20 
  21 void *vid_get_viewport_fb()
  22 {
  23         return (void*)0x408CB700;
  24 }
  25 
  26 void *vid_get_viewport_fb_d()
  27 {
  28         return (void*)(*(int*)(0x28F0+0x58));
  29 }
  30 
  31 long vid_get_viewport_height()       { return 240; }
  32 
  33 // Physical width of viewport row in bytes
  34 int vid_get_viewport_byte_width() {
  35         return 960 * 6 / 4;     // IXUS 200 - wide screen LCD is 960 pixels wide, each group of 4 pixels uses 6 bytes (UYVYYY)
  36 }
  37 
  38 int vid_get_viewport_width()
  39 {
  40     if (shooting_get_prop(PROPCASE_RESOLUTION) == 8)    // widescreen (16:9) image size
  41                 return 480;
  42     else
  43         return 360;
  44 }
  45 
  46 int vid_get_viewport_display_xoffset()
  47 {
  48         if (shooting_get_prop(PROPCASE_RESOLUTION) == 8)        // widescreen (16:9) image size
  49            return 0;
  50         else
  51        return 60;
  52 }
  53 
  54 
  55 char *camera_jpeg_count_str()
  56 {
  57 //      return (char*)0x4C138;
  58         return (char*)0x00084ca4;      // Found @0xff9e8aa8
  59 }
  60 
  61 
  62 //only for cameras with a touchscreen
  63 short get_touch_click_x()
  64 {
  65         return *(short*)(0x258C+6);
  66 }
  67 
  68 short get_touch_click_y()
  69 {
  70         return *(short*)(0x258C+8);
  71 }

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