root/platform/a590/sub/100e/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     void **fb=(void **)0x2168;
  21     unsigned char buff = *((unsigned char*)0x1FE8); //0x1fe8 found at 0xFFC294D
  22     if (buff == 0) {
  23         buff = 2;
  24     }
  25     else {
  26         buff--;
  27     }
  28     return fb[buff];
  29 }
  30 
  31 void *vid_get_bitmap_fb()  //OSD buffer     
  32 {
  33     return (void*)0x10361000; //ok found at FFDC0F84
  34 }
  35 
  36 void *vid_get_viewport_fb()
  37 {
  38          return (void*)0x10659E80; //ok found at 0xFFC2BCB0
  39 }
  40 
  41 void *vid_get_viewport_fb_d()
  42 {
  43 
  44         //return (void*)(*(int*)0x5228);
  45         //520c+1c
  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 
  52 char *camera_jpeg_count_str()
  53 {
  54     return (char*)0x49344; // ok found at FFD727B0
  55 }
  56 
  57 // PTP display stuff
  58 void *vid_get_bitmap_active_palette() {
  59     return (void *)0x3D518; // GetPaletteFromPhysicalScreen
  60 }
  61 
  62 void *vid_get_bitmap_active_buffer()
  63 {
  64     return (void*)(*(int*)0x761C); // DisplayPhysicalScreenWithYUVPalette
  65 }

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