root/platform/a590/sub/101b/lib.c

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

DEFINITIONS

This source file includes following definitions.
  1. hook_raw_fptr
  2. hook_raw_ret_addr
  3. hook_raw_image_addr
  4. vid_get_viewport_live_fb
  5. vid_get_bitmap_fb
  6. vid_get_viewport_fb
  7. vid_get_viewport_fb_d
  8. camera_jpeg_count_str
  9. vid_get_bitmap_active_palette
  10. vid_get_bitmap_active_buffer

   1 #include "platform.h"
   2 
   3 void *hook_raw_fptr()
   4 {
   5     return (void*)0;
   6 }
   7 
   8 void *hook_raw_ret_addr()
   9 {
  10     return (void*)0;
  11 }
  12 
  13 char *hook_raw_image_addr()
  14 {
  15     return (char*)0x10F63920; //found at 0xFFD987A8
  16 }
  17 
  18 void *vid_get_viewport_live_fb()
  19 {
  20 //    return (void*)0;//0x10670ee0;
  21     void **fb=(void **)0x2168;
  22     unsigned char buff = *((unsigned char*)0x1FE8); //0x1fe8 found at 0xFFC294D
  23     if (buff == 0) {
  24         buff = 2;
  25     }
  26     else {
  27         buff--;
  28     }
  29     return fb[buff];
  30 }
  31 
  32 void *vid_get_bitmap_fb()  //OSD buffer     
  33 {
  34     return (void*)0x10361000; //found at FFDC0F84
  35 }
  36 
  37 void *vid_get_viewport_fb()
  38 {
  39          return (void*)0x10659E80; // same as 100e, search on constant
  40 
  41 }
  42 
  43 void *vid_get_viewport_fb_d()
  44 {
  45     //return (void*)(*(int*)0x5228);  // same as 100e, eg FFC44B58
  46         // http://chdk.setepontos.com/index.php/topic,2361.msg27125.html#msg27125
  47         // sub_FFC45328
  48         return (void*)(*(int*)(0x520C+0x4C));  //0x5258
  49 }
  50 
  51 char *camera_jpeg_count_str()
  52 {
  53     return (char*)0x49344; // same as 100e, found @ FFD727B0
  54 }
  55 
  56 // PTP display stuff
  57 void *vid_get_bitmap_active_palette() {
  58     return (void *)0x3D518; // GetPaletteFromPhysicalScreen
  59 }
  60 
  61 void *vid_get_bitmap_active_buffer()
  62 {
  63     return (void*)(*(int*)0x761C); // DisplayPhysicalScreenWithYUVPalette
  64 }

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