root/platform/ixus980_sd990/sub/101b/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_width
  8. camera_jpeg_count_str

   1 #include "platform.h"
   2 
   3 char *hook_raw_image_addr()
   4 {
   5 //    return (char*)0x40EBAFA0; // seach on CRAW BUF
   6         return (char*) (*(int*)(0x5520 + 0x18)? 0x42CFB780 : 0x40EBAFA0); 
   7         // similar to a560, searched for first raw address in a table with others, get variable from functions that use table
   8 }
   9 
  10 void *vid_get_viewport_live_fb()
  11 {
  12     void **fb=(void **)0x2254;
  13     unsigned char buff = *((unsigned char*)0x20B8); // sub_FF839850
  14     if (buff == 0) {
  15         buff = 2;
  16     }
  17     else {
  18         buff--;
  19     }
  20     return fb[buff];
  21 }
  22 
  23 void *vid_get_bitmap_fb()       
  24 {
  25     return (void*)0x40471000; // dispcon* functions and BmpDDev.c
  26 }
  27 
  28 // possible future use, current (or previous ?) bitmap buffer
  29 /*
  30 char *vid_get_bitmap_fb_d() 
  31 {
  32         int *p =(int *)(*(int*)(0xB550 + 0x4));
  33         return ((char *)(*(p+2)));
  34 }
  35 */
  36 
  37 void *vid_get_viewport_fb()
  38 {
  39     return (void *)0x407F6DC0; // search on VRAM Address
  40 }
  41 
  42 void *vid_get_viewport_fb_d()
  43 {
  44     return (void*)(*(int*)(0x5210 + 0x54));  // sub_FF85BE10, similar callers to a720, ref string "HFILYUV"
  45 }
  46 
  47 long vid_get_viewport_height()
  48 {
  49     return 240;
  50 }
  51 
  52 int vid_get_viewport_width()
  53 {
  54         return 360; // viewport is still 360, even though live view is 720
  55 }
  56 
  57 char *camera_jpeg_count_str()
  58 {
  59     return (char *)0x4AF18; // search on "9999"
  60 }

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