root/platform/ixus990_sd970/sub/100a/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. camera_jpeg_count_str
  7. vid_get_bitmap_active_buffer

   1 #include "platform.h"
   2 
   3 char *hook_raw_image_addr()
   4 {
   5         //sd970 100A searched in Ghidra for function AttachIntegCrawData_FW
   6         //sd780 was: 0x424AD900 -> we find the decompile: FUN_ff8488a4("INTEGCRW",&DAT_424ad900,uVar2);
   7         //and for sd970: FUN_ff849c5c("INTEGCRW",&DAT_41ec0600,uVar2);
   8         return (char*)0x41ec0600;
   9 }
  10 
  11 void *vid_get_viewport_live_fb()
  12 {
  13     void **fb=(void **)0x4094;
  14     unsigned char buff = *((unsigned char*)0x3F00);
  15     if (buff == 0) buff = 2;  else buff--;    
  16     return fb[buff];
  17 }
  18 
  19 void *vid_get_bitmap_fb()        { return (void*)0x403f1000; }             // sd970 100A: Found @0xff83db4c
  20 void *vid_get_viewport_fb()      { return (void*)0x4126f570; }             // sd970 100A: Found @0xffaba6cc
  21 void *vid_get_viewport_fb_d()    { return (void*)(*(int*)(0x2754+0x58)); } // sd970 100A: Found @0xff85505c & 0xff855094
  22 char *camera_jpeg_count_str()    { return (char*)0x000345e0; }             // sd970 100A: Found @0xff9a6de8
  23 
  24 void *vid_get_bitmap_active_buffer()
  25 {
  26     return (void*)(*(int*)(0x5168+0x14)); // "Add: %p Width : %ld Height : %ld", sd970: 0xff8cee34
  27 }

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