root/platform/ixus80_sd1100/sub/100c/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. vid_get_viewport_height
  9. camera_jpeg_count_str

   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 /* found at ff9c7368 near "A/%08x.CRW"
  14  * ff9c7368:    e59f51c8        ldr     r5, [pc, #456]  ; ff9c7538: (10f3f400)
  15  */
  16 char *hook_raw_image_addr()
  17 {
  18     return (char*)0x10f3f400;
  19 }
  20 
  21 void *vid_get_viewport_live_fb() // live picture buffer (shoot not pressed)
  22 {
  23     // 00007040 found at ff8c4c70 "LiveImage.c"
  24     // 00006ebc found at ff8c4a6c
  25     void **fb=(void **)0x7040;
  26     unsigned char buff = *((unsigned char*)0x6ebc);
  27     if (buff == 0) {
  28         buff = 2;
  29     }
  30     else {
  31         buff--;
  32     }
  33     return fb[buff];
  34 }
  35 /* found at ff9f32ec
  36  */
  37 void *vid_get_bitmap_fb() // OSD buffer
  38 {
  39     return (void*)0x10361000;
  40 }
  41 
  42 /* found:
  43  * ffa7ff48:    1065ade0        rsbne   sl, r5, r0, ror #27
  44  * "SumY %ld Size %ld":
  45  *
  46  * found at ffa7fd18
  47  * "VRAM Address  : %p"
  48  *
  49  // return (void*)0x1065ade0;
  50  */
  51 void *vid_get_viewport_fb() // live picture buffer (shoot half-pressed)
  52 {
  53     return ((void **)0x7040)[*((unsigned char*)0x6ebc)];
  54 }
  55 
  56 /*
  57  * found with this memory browser hack:
  58     #include "conf.h"
  59     extern Conf conf;
  60     return (void*)(*(int*)conf.mem_view_addr_init);
  61     use zebra mode in review mode
  62 
  63     ... in ROM possibly here:
  64     ff85442c:   e59f0058        ldr     r0, [pc, #88]   ; ff85448c: (00018a5c)
  65     ff854430:   e590100c        ldr     r1, [r0, #12]
  66     ...
  67     ff854470:   151f0ed8        ldrne   r0, [pc, #-3800]        ; ff8535a0: (ff852688)  **"ImagePlayer.c"
  68 */
  69 
  70 void *vid_get_viewport_fb_d() // picture buffer (play mode)
  71 {
  72     return (void*)(*(int*)0x18a68);
  73 }
  74 
  75 long vid_get_viewport_height()
  76 {
  77     return 240;
  78 }
  79 
  80 char *camera_jpeg_count_str()
  81 {
  82     return (char*)0x4c2c4;
  83 }

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